From 8bb2ee68a2266368be4d07a0d9cdcce355c00562 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 9 Jun 2026 15:14:02 +0000 Subject: [PATCH 1/2] feat: add v1 client libraries for Oracle Database Goldengate PiperOrigin-RevId: 928949466 Source-Link: https://github.com/googleapis/googleapis/commit/7131ffea8a4dfbbe8a36a67ab6e550f7244dc638 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4d887ddb8444bdf1c19670488a9cd8b2a580674f Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLW9yYWNsZV9kYXRhYmFzZS12MS8uT3dsQm90LnlhbWwiLCJoIjoiNGQ4ODdkZGI4NDQ0YmRmMWMxOTY3MDQ4OGE5Y2Q4YjJhNTgwNjc0ZiJ9 --- .../.gitignore | 22 + .../.repo-metadata.json | 17 + .../.rubocop.yml | 33 + .../google-cloud-oracle_database-v1/.toys.rb | 28 + .../google-cloud-oracle_database-v1/.yardopts | 12 + .../AUTHENTICATION.md | 122 + .../CHANGELOG.md | 2 + .../google-cloud-oracle_database-v1/Gemfile | 14 + .../LICENSE.md | 201 + .../google-cloud-oracle_database-v1/README.md | 154 + .../google-cloud-oracle_database-v1/Rakefile | 169 + .../gapic_metadata.json | 423 + .../google-cloud-oracle_database-v1.gemspec | 29 + .../lib/google-cloud-oracle_database-v1.rb | 21 + .../lib/google/cloud/oracle_database/v1.rb | 45 + .../oracle_database/v1/bindings_override.rb | 75 + .../oracle_database/v1/oracle_database.rb | 56 + .../v1/oracle_database/client.rb | 9331 +++++++++++++++++ .../v1/oracle_database/credentials.rb | 47 + .../v1/oracle_database/operations.rb | 841 ++ .../v1/oracle_database/paths.rb | 451 + .../v1/oracle_database/rest.rb | 54 + .../v1/oracle_database/rest/client.rb | 8729 +++++++++++++++ .../v1/oracle_database/rest/operations.rb | 925 ++ .../v1/oracle_database/rest/service_stub.rb | 5053 +++++++++ .../google/cloud/oracle_database/v1/rest.rb | 38 + .../cloud/oracle_database/v1/version.rb | 28 + .../autonomous_database_character_set_pb.rb | 25 + .../v1/autonomous_database_pb.rb | 62 + .../v1/autonomous_db_backup_pb.rb | 28 + .../v1/autonomous_db_version_pb.rb | 25 + .../cloud/oracledatabase/v1/common_pb.rb | 27 + .../v1/database_character_set_pb.rb | 27 + .../cloud/oracledatabase/v1/database_pb.rb | 38 + .../cloud/oracledatabase/v1/db_node_pb.rb | 27 + .../cloud/oracledatabase/v1/db_server_pb.rb | 26 + .../v1/db_system_initial_storage_size_pb.rb | 30 + .../cloud/oracledatabase/v1/db_system_pb.rb | 42 + .../oracledatabase/v1/db_system_shape_pb.rb | 24 + .../cloud/oracledatabase/v1/db_version_pb.rb | 27 + .../cloud/oracledatabase/v1/entitlement_pb.rb | 26 + .../oracledatabase/v1/exadata_infra_pb.rb | 34 + .../oracledatabase/v1/exadb_vm_cluster_pb.rb | 32 + .../v1/exascale_db_storage_vault_pb.rb | 36 + .../cloud/oracledatabase/v1/gi_version_pb.rb | 24 + .../v1/goldengate_connection_assignment_pb.rb | 38 + .../v1/goldengate_connection_pb.rb | 98 + .../v1/goldengate_connection_type_pb.rb | 28 + .../goldengate_deployment_environment_pb.rb | 29 + .../v1/goldengate_deployment_pb.rb | 54 + .../v1/goldengate_deployment_type_pb.rb | 29 + .../v1/goldengate_deployment_version_pb.rb | 31 + .../oracledatabase/v1/location_metadata_pb.rb | 23 + .../oracledatabase/v1/minor_version_pb.rb | 26 + .../cloud/oracledatabase/v1/odb_network_pb.rb | 32 + .../cloud/oracledatabase/v1/odb_subnet_pb.rb | 33 + .../oracledatabase/v1/oracledatabase_pb.rb | 107 + .../v1/oracledatabase_services_pb.rb | 216 + .../v1/pluggable_database_pb.rb | 38 + .../cloud/oracledatabase/v1/vm_cluster_pb.rb | 32 + .../proto_docs/README.md | 4 + .../proto_docs/google/api/client.rb | 593 ++ .../proto_docs/google/api/field_behavior.rb | 85 + .../proto_docs/google/api/field_info.rb | 88 + .../proto_docs/google/api/launch_stage.rb | 71 + .../proto_docs/google/api/resource.rb | 227 + .../oracledatabase/v1/autonomous_database.rb | 983 ++ .../v1/autonomous_database_character_set.rb | 57 + .../oracledatabase/v1/autonomous_db_backup.rb | 175 + .../v1/autonomous_db_version.rb | 48 + .../google/cloud/oracledatabase/v1/common.rb | 101 + .../cloud/oracledatabase/v1/database.rb | 352 + .../v1/database_character_set.rb | 99 + .../google/cloud/oracledatabase/v1/db_node.rb | 106 + .../cloud/oracledatabase/v1/db_server.rb | 100 + .../cloud/oracledatabase/v1/db_system.rb | 386 + .../v1/db_system_initial_storage_size.rb | 126 + .../oracledatabase/v1/db_system_shape.rb | 70 + .../cloud/oracledatabase/v1/db_version.rb | 102 + .../cloud/oracledatabase/v1/entitlement.rb | 84 + .../cloud/oracledatabase/v1/exadata_infra.rb | 276 + .../oracledatabase/v1/exadb_vm_cluster.rb | 229 + .../v1/exascale_db_storage_vault.rb | 275 + .../cloud/oracledatabase/v1/gi_version.rb | 41 + .../v1/goldengate_connection.rb | 2238 ++++ .../v1/goldengate_connection_assignment.rb | 300 + .../v1/goldengate_connection_type.rb | 186 + .../v1/goldengate_deployment.rb | 712 ++ .../v1/goldengate_deployment_environment.rb | 145 + .../v1/goldengate_deployment_type.rb | 177 + .../v1/goldengate_deployment_version.rb | 175 + .../oracledatabase/v1/location_metadata.rb | 35 + .../cloud/oracledatabase/v1/minor_version.rb | 81 + .../cloud/oracledatabase/v1/odb_network.rb | 184 + .../cloud/oracledatabase/v1/odb_subnet.rb | 189 + .../cloud/oracledatabase/v1/oracledatabase.rb | 916 ++ .../oracledatabase/v1/pluggable_database.rb | 366 + .../cloud/oracledatabase/v1/vm_cluster.rb | 276 + .../google/longrunning/operations.rb | 191 + .../proto_docs/google/protobuf/any.rb | 145 + .../proto_docs/google/protobuf/duration.rb | 98 + .../proto_docs/google/protobuf/empty.rb | 34 + .../proto_docs/google/protobuf/field_mask.rb | 229 + .../proto_docs/google/protobuf/timestamp.rb | 127 + .../proto_docs/google/rpc/status.rb | 48 + .../proto_docs/google/type/datetime.rb | 104 + .../proto_docs/google/type/dayofweek.rb | 49 + .../proto_docs/google/type/month.rb | 64 + .../proto_docs/google/type/timeofday.rb | 49 + .../snippets/Gemfile | 32 + .../create_autonomous_database.rb | 54 + .../create_cloud_exadata_infrastructure.rb | 54 + .../create_cloud_vm_cluster.rb | 54 + .../oracle_database/create_db_system.rb | 54 + .../create_exadb_vm_cluster.rb | 54 + .../create_exascale_db_storage_vault.rb | 54 + .../create_goldengate_connection.rb | 54 + ...create_goldengate_connection_assignment.rb | 54 + .../create_goldengate_deployment.rb | 54 + .../oracle_database/create_odb_network.rb | 54 + .../oracle_database/create_odb_subnet.rb | 54 + .../delete_autonomous_database.rb | 54 + .../delete_cloud_exadata_infrastructure.rb | 54 + .../delete_cloud_vm_cluster.rb | 54 + .../oracle_database/delete_db_system.rb | 54 + .../delete_exadb_vm_cluster.rb | 54 + .../delete_exascale_db_storage_vault.rb | 54 + .../delete_goldengate_connection.rb | 54 + ...delete_goldengate_connection_assignment.rb | 54 + .../delete_goldengate_deployment.rb | 54 + .../oracle_database/delete_odb_network.rb | 54 + .../oracle_database/delete_odb_subnet.rb | 54 + .../failover_autonomous_database.rb | 54 + .../generate_autonomous_database_wallet.rb | 47 + .../get_autonomous_database.rb | 47 + .../get_cloud_exadata_infrastructure.rb | 47 + .../oracle_database/get_cloud_vm_cluster.rb | 47 + .../snippets/oracle_database/get_database.rb | 47 + .../snippets/oracle_database/get_db_system.rb | 47 + .../oracle_database/get_exadb_vm_cluster.rb | 47 + .../get_exascale_db_storage_vault.rb | 47 + .../get_goldengate_connection.rb | 47 + .../get_goldengate_connection_assignment.rb | 47 + .../get_goldengate_connection_type.rb | 47 + .../get_goldengate_deployment.rb | 47 + .../get_goldengate_deployment_environment.rb | 47 + .../get_goldengate_deployment_type.rb | 47 + .../get_goldengate_deployment_version.rb | 47 + .../oracle_database/get_odb_network.rb | 47 + .../oracle_database/get_odb_subnet.rb | 47 + .../oracle_database/get_pluggable_database.rb | 47 + .../list_autonomous_database_backups.rb | 51 + ...list_autonomous_database_character_sets.rb | 51 + .../list_autonomous_databases.rb | 51 + .../list_autonomous_db_versions.rb | 51 + .../list_cloud_exadata_infrastructures.rb | 51 + .../oracle_database/list_cloud_vm_clusters.rb | 51 + .../list_database_character_sets.rb | 51 + .../oracle_database/list_databases.rb | 51 + .../snippets/oracle_database/list_db_nodes.rb | 51 + .../oracle_database/list_db_servers.rb | 51 + .../list_db_system_initial_storage_sizes.rb | 51 + .../oracle_database/list_db_system_shapes.rb | 51 + .../oracle_database/list_db_systems.rb | 51 + .../oracle_database/list_db_versions.rb | 51 + .../oracle_database/list_entitlements.rb | 51 + .../oracle_database/list_exadb_vm_clusters.rb | 51 + .../list_exascale_db_storage_vaults.rb | 51 + .../oracle_database/list_gi_versions.rb | 51 + .../list_goldengate_connection_assignments.rb | 51 + .../list_goldengate_connection_types.rb | 51 + .../list_goldengate_connections.rb | 51 + ...list_goldengate_deployment_environments.rb | 51 + .../list_goldengate_deployment_types.rb | 51 + .../list_goldengate_deployment_versions.rb | 51 + .../list_goldengate_deployments.rb | 51 + .../oracle_database/list_minor_versions.rb | 51 + .../oracle_database/list_odb_networks.rb | 51 + .../oracle_database/list_odb_subnets.rb | 51 + .../list_pluggable_databases.rb | 51 + ...remove_virtual_machine_exadb_vm_cluster.rb | 54 + .../restart_autonomous_database.rb | 54 + .../restore_autonomous_database.rb | 54 + .../start_autonomous_database.rb | 54 + .../start_goldengate_deployment.rb | 54 + .../stop_autonomous_database.rb | 54 + .../stop_goldengate_deployment.rb | 54 + .../switchover_autonomous_database.rb | 54 + .../test_goldengate_connection_assignment.rb | 47 + .../update_autonomous_database.rb | 54 + .../update_exadb_vm_cluster.rb | 54 + ...tadata_google.cloud.oracledatabase.v1.json | 3255 ++++++ .../v1/oracle_database_operations_test.rb | 400 + .../v1/oracle_database_paths_test.rb | 307 + .../v1/oracle_database_rest_test.rb | 4624 ++++++++ .../v1/oracle_database_test.rb | 5428 ++++++++++ .../test/helper.rb | 26 + 197 files changed, 58316 insertions(+) create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.gitignore create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.repo-metadata.json create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.rubocop.yml create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.toys.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.yardopts create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/AUTHENTICATION.md create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/CHANGELOG.md create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/Gemfile create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/LICENSE.md create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/README.md create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/Rakefile create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/gapic_metadata.json create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/google-cloud-oracle_database-v1.gemspec create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google-cloud-oracle_database-v1.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/bindings_override.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/rest.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/version.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/common_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_node_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_server_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_version_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/README.md create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_behavior.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_info.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/launch_stage.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/resource.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/common.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_node.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_server.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_version.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/longrunning/operations.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/any.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/duration.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/empty.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/field_mask.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/timestamp.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/rpc/status.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/datetime.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/dayofweek.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/month.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/timeofday.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/Gemfile create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_exadata_infrastructure.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_db_system.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exadb_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exascale_db_storage_vault.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection_assignment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_deployment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_network.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_subnet.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_exadata_infrastructure.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_db_system.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exadb_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exascale_db_storage_vault.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection_assignment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_deployment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_network.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_subnet.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/failover_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/generate_autonomous_database_wallet.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_exadata_infrastructure.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_db_system.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exadb_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exascale_db_storage_vault.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_assignment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_type.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_environment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_type.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_version.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_network.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_subnet.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_pluggable_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_backups.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_character_sets.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_databases.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_db_versions.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_exadata_infrastructures.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_vm_clusters.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_database_character_sets.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_databases.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_nodes.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_servers.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_initial_storage_sizes.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_shapes.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_systems.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_versions.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_entitlements.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exadb_vm_clusters.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exascale_db_storage_vaults.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_gi_versions.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_assignments.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_types.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connections.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_environments.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_types.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_versions.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployments.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_minor_versions.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_networks.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_subnets.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_pluggable_databases.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/remove_virtual_machine_exadb_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restart_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restore_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_goldengate_deployment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_goldengate_deployment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/switchover_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/test_goldengate_connection_assignment.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_autonomous_database.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_exadb_vm_cluster.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_operations_test.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb create mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/helper.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.gitignore b/owl-bot-staging/google-cloud-oracle_database-v1/.gitignore new file mode 100644 index 000000000000..0135b6bc6cfc --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/.gitignore @@ -0,0 +1,22 @@ +# Ignore bundler lockfiles +Gemfile.lock +gems.locked + +# Ignore documentation output +doc/* +.yardoc/* + +# Ignore test output +coverage/* + +# Ignore build artifacts +pkg/* + +# Ignore files commonly present in certain dev environments +.vagrant +.DS_STORE +.idea +*.iml + +# Ignore synth output +__pycache__ diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.repo-metadata.json b/owl-bot-staging/google-cloud-oracle_database-v1/.repo-metadata.json new file mode 100644 index 000000000000..d25b8ceec3d9 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_id": "oracledatabase.googleapis.com", + "api_shortname": "oracledatabase", + "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest", + "distribution_name": "google-cloud-oracle_database-v1", + "is_cloud": true, + "language": "ruby", + "name": "oracledatabase", + "name_pretty": "Oracle Database@Google Cloud V1 API", + "product_documentation": "https://cloud.google.com/oracle/database/docs", + "release_level": "unreleased", + "repo": "googleapis/google-cloud-ruby", + "requires_billing": true, + "ruby-cloud-description": "The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. Note that google-cloud-oracle_database-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-oracle_database instead. See the readme for more details.", + "ruby-cloud-product-url": "https://cloud.google.com/oracle/database/docs", + "library_type": "GAPIC_AUTO" +} diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.rubocop.yml b/owl-bot-staging/google-cloud-oracle_database-v1/.rubocop.yml new file mode 100644 index 000000000000..5d3a13a478ab --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/.rubocop.yml @@ -0,0 +1,33 @@ +inherit_gem: + google-style: google-style.yml + +AllCops: + Exclude: + - "google-cloud-oracle_database-v1.gemspec" + - "lib/**/*_pb.rb" + - "proto_docs/**/*" + - "test/**/*" + - "acceptance/**/*" + - "samples/acceptance/**/*" + - "Rakefile" + +Layout/LineLength: + Enabled: false +Metrics/AbcSize: + Enabled: false +Metrics/ClassLength: + Enabled: false +Metrics/CyclomaticComplexity: + Enabled: false +Metrics/MethodLength: + Enabled: false +Metrics/ModuleLength: + Enabled: false +Metrics/PerceivedComplexity: + Enabled: false +Naming/AccessorMethodName: + Exclude: + - "snippets/**/*.rb" +Naming/FileName: + Exclude: + - "lib/google-cloud-oracle_database-v1.rb" diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.toys.rb b/owl-bot-staging/google-cloud-oracle_database-v1/.toys.rb new file mode 100644 index 000000000000..177e22456e8a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/.toys.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +toys_version! ">= 0.15.3" + +if ENV["RUBY_COMMON_TOOLS"] + common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] + load File.join(common_tools_dir, "toys", "gapic") +else + load_git remote: "https://github.com/googleapis/ruby-common-tools.git", + path: "toys/gapic", + update: true +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.yardopts b/owl-bot-staging/google-cloud-oracle_database-v1/.yardopts new file mode 100644 index 000000000000..665101124a1e --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/.yardopts @@ -0,0 +1,12 @@ +--no-private +--title="Oracle Database@Google Cloud V1 API" +--exclude _pb\.rb$ +--markup markdown +--markup-provider redcarpet + +./lib/**/*.rb +./proto_docs/**/*.rb +- +README.md +LICENSE.md +AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-oracle_database-v1/AUTHENTICATION.md new file mode 100644 index 000000000000..2f3465a2fa8b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/AUTHENTICATION.md @@ -0,0 +1,122 @@ +# Authentication + +The recommended way to authenticate to the google-cloud-oracle_database-v1 library is to use +[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). +To review all of your authentication options, see [Credentials lookup](#credential-lookup). + +## Quickstart + +The following example shows how to set up authentication for a local development +environment with your user credentials. + +**NOTE:** This method is _not_ recommended for running in production. User credentials +should be used only during development. + +1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). +2. Set up a local ADC file with your user credentials: + +```sh +gcloud auth application-default login +``` + +3. Write code as if already authenticated. + +For more information about setting up authentication for a local development environment, see +[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). + +## Credential Lookup + +The google-cloud-oracle_database-v1 library provides several mechanisms to configure your system. +Generally, using Application Default Credentials to facilitate automatic +credentials discovery is the easist method. But if you need to explicitly specify +credentials, there are several methods available to you. + +Credentials are accepted in the following ways, in the following order or precedence: + +1. Credentials specified in method arguments +2. Credentials specified in configuration +3. Credentials pointed to or included in environment variables +4. Credentials found in local ADC file +5. Credentials returned by the metadata server for the attached service account (GCP) + +### Configuration + +You can configure a path to a JSON credentials file, either for an individual client object or +globally, for all client objects. The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +To configure a credentials file for an individual client initialization: + +```ruby +require "google/cloud/oracle_database/v1" + +client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = "path/to/credentialfile.json" +end +``` + +To configure a credentials file globally for all clients: + +```ruby +require "google/cloud/oracle_database/v1" + +::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config| + config.credentials = "path/to/credentialfile.json" +end + +client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new +``` + +### Environment Variables + +You can also use an environment variable to provide a JSON credentials file. +The environment variable can contain a path to the credentials file or, for +environments such as Docker containers where writing files is not encouraged, +you can include the credentials file itself. + +The JSON file can contain credentials created for +[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), +[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a +[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). + +Note: Service account keys are a security risk if not managed correctly. You should +[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) +whenever possible. + +The environment variables that google-cloud-oracle_database-v1 +checks for credentials are: + +* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents +* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file + +```ruby +require "google/cloud/oracle_database/v1" + +ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" + +client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new +``` + +### Local ADC file + +You can set up a local ADC file with your user credentials for authentication during +development. If credentials are not provided in code or in environment variables, +then the local ADC credentials are discovered. + +Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. + +### Google Cloud Platform environments + +When running on Google Cloud Platform (GCP), including Google Compute Engine +(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud +Functions (GCF) and Cloud Run, credentials are retrieved from the attached +service account automatically. Code should be written as if already authenticated. + +For more information, see +[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/CHANGELOG.md b/owl-bot-staging/google-cloud-oracle_database-v1/CHANGELOG.md new file mode 100644 index 000000000000..f88957a62ba2 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/CHANGELOG.md @@ -0,0 +1,2 @@ +# Release History + diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/Gemfile b/owl-bot-staging/google-cloud-oracle_database-v1/Gemfile new file mode 100644 index 000000000000..1d08558908d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/Gemfile @@ -0,0 +1,14 @@ +source "https://rubygems.org" + +gemspec + +gem "google-style", "~> 1.32.0" +gem "irb", "~> 1.17" +gem "minitest", "~> 6.0.2" +gem "minitest-focus", "~> 1.4" +gem "minitest-mock", "~> 5.27" +gem "minitest-rg", "~> 5.3" +gem "ostruct", "~> 0.5.5" +gem "rake", ">= 13.0" +gem "redcarpet", "~> 3.6" +gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/LICENSE.md b/owl-bot-staging/google-cloud-oracle_database-v1/LICENSE.md new file mode 100644 index 000000000000..c261857ba6ad --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/LICENSE.md @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/README.md b/owl-bot-staging/google-cloud-oracle_database-v1/README.md new file mode 100644 index 000000000000..1f1ce0b8ea51 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/README.md @@ -0,0 +1,154 @@ +# Ruby Client for the Oracle Database@Google Cloud V1 API + +The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. + +The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. + +https://github.com/googleapis/google-cloud-ruby + +This gem is a _versioned_ client. It provides basic client classes for a +specific version of the Oracle Database@Google Cloud V1 API. Most users should consider using +the main client gem, +[google-cloud-oracle_database](https://rubygems.org/gems/google-cloud-oracle_database). +See the section below titled *Which client should I use?* for more information. + +## Installation + +``` +$ gem install google-cloud-oracle_database-v1 +``` + +## Before You Begin + +In order to use this library, you first need to go through the following steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) +1. [Enable the API.](https://console.cloud.google.com/apis/library/oracledatabase.googleapis.com) +1. [Set up authentication.](AUTHENTICATION.md) + +## Quick Start + +```ruby +require "google/cloud/oracle_database/v1" + +client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new +request = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new # (request fields as keyword arguments...) +response = client.list_cloud_exadata_infrastructures request +``` + +View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest) +for class and method documentation. + +See also the [Product Documentation](https://cloud.google.com/oracle/database/docs) +for general usage information. + +## Debug Logging + +This library comes with opt-in Debug Logging that can help you troubleshoot +your application's integration with the API. When logging is activated, key +events such as requests and responses, along with data payloads and metadata +such as headers and client configuration, are logged to the standard error +stream. + +**WARNING:** Client Library Debug Logging includes your data payloads in +plaintext, which could include sensitive data such as PII for yourself or your +customers, private keys, or other security data that could be compromising if +leaked. Always practice good data hygiene with your application logs, and follow +the principle of least access. Google also recommends that Client Library Debug +Logging be enabled only temporarily during active debugging, and not used +permanently in production. + +To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` +to the value `all`. Alternatively, you can set the value to a comma-delimited +list of client library gem names. This will select the default logging behavior, +which writes logs to the standard error stream. On a local workstation, this may +result in logs appearing on the console. When running on a Google Cloud hosting +service such as [Google Cloud Run](https://cloud.google.com/run), this generally +results in logs appearing alongside your application logs in the +[Google Cloud Logging](https://cloud.google.com/logging/) service. + +You can customize logging by modifying the `logger` configuration when +constructing a client object. For example: + +```ruby +require "google/cloud/oracle_database/v1" +require "logger" + +client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.logger = Logger.new "my-app.log" +end +``` + +## Google Cloud Samples + +To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). + +## Supported Ruby Versions + +This library is supported on Ruby 3.0+. + +Google provides official support for Ruby versions that are actively supported +by Ruby Core—that is, Ruby versions that are either in normal maintenance or +in security maintenance, and not end of life. Older versions of Ruby _may_ +still work, but are unsupported and not recommended. See +https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby +support schedule. + +## Which client should I use? + +Most modern Ruby client libraries for Google APIs come in two flavors: the main +client library with a name such as `google-cloud-oracle_database`, +and lower-level _versioned_ client libraries with names such as +`google-cloud-oracle_database-v1`. +_In most cases, you should install the main client._ + +### What's the difference between the main client and a versioned client? + +A _versioned client_ provides a basic set of data types and client classes for +a _single version_ of a specific service. (That is, for a service with multiple +versions, there might be a separate versioned client for each service version.) +Most versioned clients are written and maintained by a code generator. + +The _main client_ is designed to provide you with the _recommended_ client +interfaces for the service. There will be only one main client for any given +service, even a service with multiple versions. The main client includes +factory methods for constructing the client objects we recommend for most +users. In some cases, those will be classes provided by an underlying versioned +client; in other cases, they will be handwritten higher-level client objects +with additional capabilities, convenience methods, or best practices built in. +Generally, the main client will default to a recommended service version, +although in some cases you can override this if you need to talk to a specific +service version. + +### Why would I want to use the main client? + +We recommend that most users install the main client gem for a service. You can +identify this gem as the one _without_ a version in its name, e.g. +`google-cloud-oracle_database`. +The main client is recommended because it will embody the best practices for +accessing the service, and may also provide more convenient interfaces or +tighter integration into frameworks and third-party libraries. In addition, the +documentation and samples published by Google will generally demonstrate use of +the main client. + +### Why would I want to use a versioned client? + +You can use a versioned client if you are content with a possibly lower-level +class interface, you explicitly want to avoid features provided by the main +client, or you want to access a specific service version not be covered by the +main client. You can identify versioned client gems because the service version +is part of the name, e.g. `google-cloud-oracle_database-v1`. + +### What about the google-apis- clients? + +Client library gems with names that begin with `google-apis-` are based on an +older code generation technology. They talk to a REST/JSON backend (whereas +most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may +not offer the same performance, features, and ease of use provided by more +modern clients. + +The `google-apis-` clients have wide coverage across Google services, so you +might need to use one if there is no modern client available for the service. +However, if a modern client is available, we generally recommend it over the +older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/Rakefile b/owl-bot-staging/google-cloud-oracle_database-v1/Rakefile new file mode 100644 index 000000000000..1d5a8d1e2052 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/Rakefile @@ -0,0 +1,169 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "bundler/setup" +require "bundler/gem_tasks" + +require "rubocop/rake_task" +RuboCop::RakeTask.new + +require "rake/testtask" +desc "Run tests." +Rake::TestTask.new do |t| + t.libs << "test" + t.test_files = FileList["test/**/*_test.rb"] + t.warning = false +end + +desc "Runs the smoke tests." +Rake::TestTask.new :smoke_test do |t| + t.test_files = FileList["acceptance/**/*smoke_test.rb"] + t.warning = false +end + +# Acceptance tests +desc "Run the google-cloud-oracle_database-v1 acceptance tests." +task :acceptance, :project, :keyfile do |t, args| + project = args[:project] + project ||= + ENV["GOOGLE_CLOUD_TEST_PROJECT"] || + ENV["GCLOUD_TEST_PROJECT"] + keyfile = args[:keyfile] + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || + ENV["GCLOUD_TEST_KEYFILE"] + if keyfile + keyfile = File.read keyfile + else + keyfile ||= + ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || + ENV["GCLOUD_TEST_KEYFILE_JSON"] + end + if project.nil? || keyfile.nil? + fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" + end + require "google/cloud/oracle_database/v1/oracle_database/credentials" + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Credentials.env_vars.each do |path| + ENV[path] = nil + end + ENV["GOOGLE_CLOUD_PROJECT"] = project + ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project + ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile + + Rake::Task["acceptance:run"].invoke +end + +namespace :acceptance do + task :run do + if File.directory? "acceptance" + Rake::Task[:smoke_test].invoke + else + puts "The google-cloud-oracle_database-v1 gem has no acceptance tests." + end + end + + desc "Run acceptance cleanup." + task :cleanup do + end +end + +task :samples do + Rake::Task["samples:latest"].invoke +end + +namespace :samples do + task :latest do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-oracle_database-v1 gem has no samples to test." + end + end + + task :master do + if File.directory? "samples" + Dir.chdir "samples" do + Bundler.with_clean_env do + ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" + sh "bundle update" + sh "bundle exec rake test" + end + end + else + puts "The google-cloud-oracle_database-v1 gem has no samples to test." + end + end +end + +require "yard" +require "yard/rake/yardoc_task" +YARD::Rake::YardocTask.new do |y| + y.options << "--fail-on-warning" +end + +desc "Run yard-doctest example tests." +task :doctest do + puts "The google-cloud-oracle_database-v1 gem does not have doctest tests." +end + +desc "Run the CI build" +task :ci do + header "BUILDING google-cloud-oracle_database-v1" + header "google-cloud-oracle_database-v1 rubocop", "*" + Rake::Task[:rubocop].invoke + header "google-cloud-oracle_database-v1 yard", "*" + Rake::Task[:yard].invoke + header "google-cloud-oracle_database-v1 test", "*" + Rake::Task[:test].invoke +end + +namespace :ci do + desc "Run the CI build, with smoke tests." + task :smoke_test do + Rake::Task[:ci].invoke + header "google-cloud-oracle_database-v1 smoke_test", "*" + Rake::Task[:smoke_test].invoke + end + desc "Run the CI build, with acceptance tests." + task :acceptance do + Rake::Task[:ci].invoke + header "google-cloud-oracle_database-v1 acceptance", "*" + Rake::Task[:acceptance].invoke + end + task :a do + # This is a handy shortcut to save typing + Rake::Task["ci:acceptance"].invoke + end +end + +task default: :test + +def header str, token = "#" + line_length = str.length + 8 + puts "" + puts token * line_length + puts "#{token * 3} #{str} #{token * 3}" + puts token * line_length + puts "" +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/gapic_metadata.json b/owl-bot-staging/google-cloud-oracle_database-v1/gapic_metadata.json new file mode 100644 index 000000000000..9e05cdb0dd0e --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/gapic_metadata.json @@ -0,0 +1,423 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "ruby", + "protoPackage": "google.cloud.oracledatabase.v1", + "libraryPackage": "::Google::Cloud::OracleDatabase::V1", + "services": { + "OracleDatabase": { + "clients": { + "grpc": { + "libraryClient": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client", + "rpcs": { + "ListCloudExadataInfrastructures": { + "methods": [ + "list_cloud_exadata_infrastructures" + ] + }, + "GetCloudExadataInfrastructure": { + "methods": [ + "get_cloud_exadata_infrastructure" + ] + }, + "CreateCloudExadataInfrastructure": { + "methods": [ + "create_cloud_exadata_infrastructure" + ] + }, + "DeleteCloudExadataInfrastructure": { + "methods": [ + "delete_cloud_exadata_infrastructure" + ] + }, + "ListCloudVmClusters": { + "methods": [ + "list_cloud_vm_clusters" + ] + }, + "GetCloudVmCluster": { + "methods": [ + "get_cloud_vm_cluster" + ] + }, + "CreateCloudVmCluster": { + "methods": [ + "create_cloud_vm_cluster" + ] + }, + "DeleteCloudVmCluster": { + "methods": [ + "delete_cloud_vm_cluster" + ] + }, + "ListEntitlements": { + "methods": [ + "list_entitlements" + ] + }, + "ListDbServers": { + "methods": [ + "list_db_servers" + ] + }, + "ListDbNodes": { + "methods": [ + "list_db_nodes" + ] + }, + "ListGiVersions": { + "methods": [ + "list_gi_versions" + ] + }, + "ListMinorVersions": { + "methods": [ + "list_minor_versions" + ] + }, + "ListDbSystemShapes": { + "methods": [ + "list_db_system_shapes" + ] + }, + "ListAutonomousDatabases": { + "methods": [ + "list_autonomous_databases" + ] + }, + "GetAutonomousDatabase": { + "methods": [ + "get_autonomous_database" + ] + }, + "CreateAutonomousDatabase": { + "methods": [ + "create_autonomous_database" + ] + }, + "UpdateAutonomousDatabase": { + "methods": [ + "update_autonomous_database" + ] + }, + "DeleteAutonomousDatabase": { + "methods": [ + "delete_autonomous_database" + ] + }, + "RestoreAutonomousDatabase": { + "methods": [ + "restore_autonomous_database" + ] + }, + "GenerateAutonomousDatabaseWallet": { + "methods": [ + "generate_autonomous_database_wallet" + ] + }, + "ListAutonomousDbVersions": { + "methods": [ + "list_autonomous_db_versions" + ] + }, + "ListAutonomousDatabaseCharacterSets": { + "methods": [ + "list_autonomous_database_character_sets" + ] + }, + "ListAutonomousDatabaseBackups": { + "methods": [ + "list_autonomous_database_backups" + ] + }, + "StopAutonomousDatabase": { + "methods": [ + "stop_autonomous_database" + ] + }, + "StartAutonomousDatabase": { + "methods": [ + "start_autonomous_database" + ] + }, + "RestartAutonomousDatabase": { + "methods": [ + "restart_autonomous_database" + ] + }, + "SwitchoverAutonomousDatabase": { + "methods": [ + "switchover_autonomous_database" + ] + }, + "FailoverAutonomousDatabase": { + "methods": [ + "failover_autonomous_database" + ] + }, + "ListOdbNetworks": { + "methods": [ + "list_odb_networks" + ] + }, + "GetOdbNetwork": { + "methods": [ + "get_odb_network" + ] + }, + "CreateOdbNetwork": { + "methods": [ + "create_odb_network" + ] + }, + "DeleteOdbNetwork": { + "methods": [ + "delete_odb_network" + ] + }, + "ListOdbSubnets": { + "methods": [ + "list_odb_subnets" + ] + }, + "GetOdbSubnet": { + "methods": [ + "get_odb_subnet" + ] + }, + "CreateOdbSubnet": { + "methods": [ + "create_odb_subnet" + ] + }, + "DeleteOdbSubnet": { + "methods": [ + "delete_odb_subnet" + ] + }, + "ListExadbVmClusters": { + "methods": [ + "list_exadb_vm_clusters" + ] + }, + "GetExadbVmCluster": { + "methods": [ + "get_exadb_vm_cluster" + ] + }, + "CreateExadbVmCluster": { + "methods": [ + "create_exadb_vm_cluster" + ] + }, + "DeleteExadbVmCluster": { + "methods": [ + "delete_exadb_vm_cluster" + ] + }, + "UpdateExadbVmCluster": { + "methods": [ + "update_exadb_vm_cluster" + ] + }, + "RemoveVirtualMachineExadbVmCluster": { + "methods": [ + "remove_virtual_machine_exadb_vm_cluster" + ] + }, + "ListExascaleDbStorageVaults": { + "methods": [ + "list_exascale_db_storage_vaults" + ] + }, + "GetExascaleDbStorageVault": { + "methods": [ + "get_exascale_db_storage_vault" + ] + }, + "CreateExascaleDbStorageVault": { + "methods": [ + "create_exascale_db_storage_vault" + ] + }, + "DeleteExascaleDbStorageVault": { + "methods": [ + "delete_exascale_db_storage_vault" + ] + }, + "ListDbSystemInitialStorageSizes": { + "methods": [ + "list_db_system_initial_storage_sizes" + ] + }, + "ListDatabases": { + "methods": [ + "list_databases" + ] + }, + "GetDatabase": { + "methods": [ + "get_database" + ] + }, + "ListPluggableDatabases": { + "methods": [ + "list_pluggable_databases" + ] + }, + "GetPluggableDatabase": { + "methods": [ + "get_pluggable_database" + ] + }, + "ListDbSystems": { + "methods": [ + "list_db_systems" + ] + }, + "GetDbSystem": { + "methods": [ + "get_db_system" + ] + }, + "CreateDbSystem": { + "methods": [ + "create_db_system" + ] + }, + "DeleteDbSystem": { + "methods": [ + "delete_db_system" + ] + }, + "ListGoldengateDeployments": { + "methods": [ + "list_goldengate_deployments" + ] + }, + "GetGoldengateDeployment": { + "methods": [ + "get_goldengate_deployment" + ] + }, + "CreateGoldengateDeployment": { + "methods": [ + "create_goldengate_deployment" + ] + }, + "DeleteGoldengateDeployment": { + "methods": [ + "delete_goldengate_deployment" + ] + }, + "StopGoldengateDeployment": { + "methods": [ + "stop_goldengate_deployment" + ] + }, + "StartGoldengateDeployment": { + "methods": [ + "start_goldengate_deployment" + ] + }, + "ListGoldengateConnections": { + "methods": [ + "list_goldengate_connections" + ] + }, + "GetGoldengateConnection": { + "methods": [ + "get_goldengate_connection" + ] + }, + "CreateGoldengateConnection": { + "methods": [ + "create_goldengate_connection" + ] + }, + "DeleteGoldengateConnection": { + "methods": [ + "delete_goldengate_connection" + ] + }, + "GetGoldengateDeploymentVersion": { + "methods": [ + "get_goldengate_deployment_version" + ] + }, + "ListGoldengateDeploymentVersions": { + "methods": [ + "list_goldengate_deployment_versions" + ] + }, + "GetGoldengateDeploymentType": { + "methods": [ + "get_goldengate_deployment_type" + ] + }, + "ListGoldengateDeploymentTypes": { + "methods": [ + "list_goldengate_deployment_types" + ] + }, + "GetGoldengateDeploymentEnvironment": { + "methods": [ + "get_goldengate_deployment_environment" + ] + }, + "ListGoldengateDeploymentEnvironments": { + "methods": [ + "list_goldengate_deployment_environments" + ] + }, + "GetGoldengateConnectionType": { + "methods": [ + "get_goldengate_connection_type" + ] + }, + "ListGoldengateConnectionTypes": { + "methods": [ + "list_goldengate_connection_types" + ] + }, + "ListDbVersions": { + "methods": [ + "list_db_versions" + ] + }, + "ListDatabaseCharacterSets": { + "methods": [ + "list_database_character_sets" + ] + }, + "ListGoldengateConnectionAssignments": { + "methods": [ + "list_goldengate_connection_assignments" + ] + }, + "GetGoldengateConnectionAssignment": { + "methods": [ + "get_goldengate_connection_assignment" + ] + }, + "CreateGoldengateConnectionAssignment": { + "methods": [ + "create_goldengate_connection_assignment" + ] + }, + "DeleteGoldengateConnectionAssignment": { + "methods": [ + "delete_goldengate_connection_assignment" + ] + }, + "TestGoldengateConnectionAssignment": { + "methods": [ + "test_goldengate_connection_assignment" + ] + } + } + } + } + } + } +} diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/google-cloud-oracle_database-v1.gemspec b/owl-bot-staging/google-cloud-oracle_database-v1/google-cloud-oracle_database-v1.gemspec new file mode 100644 index 000000000000..2e12f8ded024 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/google-cloud-oracle_database-v1.gemspec @@ -0,0 +1,29 @@ +# -*- ruby -*- +# encoding: utf-8 + +require File.expand_path("lib/google/cloud/oracle_database/v1/version", __dir__) + +Gem::Specification.new do |gem| + gem.name = "google-cloud-oracle_database-v1" + gem.version = Google::Cloud::OracleDatabase::V1::VERSION + + gem.authors = ["Google LLC"] + gem.email = "googleapis-packages@google.com" + gem.description = "The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. Note that google-cloud-oracle_database-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-oracle_database instead. See the readme for more details." + gem.summary = "The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases." + gem.homepage = "https://github.com/googleapis/google-cloud-ruby" + gem.license = "Apache-2.0" + + gem.platform = Gem::Platform::RUBY + + gem.files = `git ls-files -- lib/*`.split("\n") + + `git ls-files -- proto_docs/*`.split("\n") + + ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] + gem.require_paths = ["lib"] + + gem.required_ruby_version = ">= 3.2" + + gem.add_dependency "gapic-common", "~> 1.2" + gem.add_dependency "google-cloud-errors", "~> 1.0" + gem.add_dependency "google-cloud-location", "~> 1.0" +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google-cloud-oracle_database-v1.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google-cloud-oracle_database-v1.rb new file mode 100644 index 000000000000..7ca77b21c9bb --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google-cloud-oracle_database-v1.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# This gem does not autoload during Bundler.require. To load this gem, +# issue explicit require statements for the packages desired, e.g.: +# require "google/cloud/oracle_database/v1" diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1.rb new file mode 100644 index 000000000000..b3c381d14fcf --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1.rb @@ -0,0 +1,45 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/oracle_database/v1/oracle_database" +require "google/cloud/oracle_database/v1/version" + +module Google + module Cloud + module OracleDatabase + ## + # API client module. + # + # @example Load this package, including all its services, and instantiate a gRPC client + # + # require "google/cloud/oracle_database/v1" + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # @example Load this package, including all its services, and instantiate a REST client + # + # require "google/cloud/oracle_database/v1" + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + module V1 + end + end + end +end + +helper_path = ::File.join __dir__, "v1", "_helpers.rb" +require "google/cloud/oracle_database/v1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/bindings_override.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/bindings_override.rb new file mode 100644 index 000000000000..8e311260b1b4 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/bindings_override.rb @@ -0,0 +1,75 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" + +module Google + module Cloud + module OracleDatabase + ## + # @example Loading just the REST part of this package, including all its services, and instantiating a REST client + # + # require "google/cloud/oracle_database/v1/rest" + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + module V1 + ## + # @private + # Initialize the mixin bindings configuration + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "OracleDatabase"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + + default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config + default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ + + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}/locations", + matches: [ + ["name", %r{^projects/[^/]+/?$}, false] + ], + body: nil + ) + ] + default_config + end + yield @configure if block_given? + @configure + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database.rb new file mode 100644 index 000000000000..86384858b5be --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/common" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/oracle_database/v1/version" + +require "google/cloud/oracle_database/v1/oracle_database/credentials" +require "google/cloud/oracle_database/v1/oracle_database/paths" +require "google/cloud/oracle_database/v1/oracle_database/operations" +require "google/cloud/oracle_database/v1/oracle_database/client" +require "google/cloud/oracle_database/v1/oracle_database/rest" + +module Google + module Cloud + module OracleDatabase + module V1 + ## + # Service describing handlers for resources + # + # @example Load this service and instantiate a gRPC client + # + # require "google/cloud/oracle_database/v1/oracle_database" + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # @example Load this service and instantiate a REST client + # + # require "google/cloud/oracle_database/v1/oracle_database/rest" + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + module OracleDatabase + end + end + end + end +end + +helper_path = ::File.join __dir__, "oracle_database", "helpers.rb" +require "google/cloud/oracle_database/v1/oracle_database/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb new file mode 100644 index 000000000000..01d99caa183e --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb @@ -0,0 +1,9331 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/oracledatabase/v1/oracledatabase_pb" +require "google/cloud/location" + +module Google + module Cloud + module OracleDatabase + module V1 + module OracleDatabase + ## + # Client for the OracleDatabase service. + # + # Service describing handlers for resources + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :oracle_database_stub + + ## + # Configure the OracleDatabase Client class. + # + # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all OracleDatabase clients + # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "OracleDatabase", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config.rpcs.list_cloud_exadata_infrastructures.timeout = 60.0 + default_config.rpcs.list_cloud_exadata_infrastructures.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_cloud_exadata_infrastructure.timeout = 60.0 + default_config.rpcs.get_cloud_exadata_infrastructure.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_cloud_vm_clusters.timeout = 60.0 + default_config.rpcs.list_cloud_vm_clusters.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_cloud_vm_cluster.timeout = 60.0 + default_config.rpcs.get_cloud_vm_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_entitlements.timeout = 60.0 + default_config.rpcs.list_entitlements.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_servers.timeout = 60.0 + default_config.rpcs.list_db_servers.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_nodes.timeout = 60.0 + default_config.rpcs.list_db_nodes.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_gi_versions.timeout = 60.0 + default_config.rpcs.list_gi_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_minor_versions.timeout = 60.0 + default_config.rpcs.list_minor_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_system_shapes.timeout = 60.0 + default_config.rpcs.list_db_system_shapes.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_autonomous_databases.timeout = 60.0 + default_config.rpcs.list_autonomous_databases.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_autonomous_database.timeout = 60.0 + default_config.rpcs.get_autonomous_database.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_autonomous_db_versions.timeout = 60.0 + default_config.rpcs.list_autonomous_db_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_autonomous_database_character_sets.timeout = 60.0 + default_config.rpcs.list_autonomous_database_character_sets.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_autonomous_database_backups.timeout = 60.0 + default_config.rpcs.list_autonomous_database_backups.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_odb_networks.timeout = 60.0 + default_config.rpcs.list_odb_networks.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_odb_network.timeout = 60.0 + default_config.rpcs.get_odb_network.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_odb_subnets.timeout = 60.0 + default_config.rpcs.list_odb_subnets.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_odb_subnet.timeout = 60.0 + default_config.rpcs.get_odb_subnet.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_exadb_vm_clusters.timeout = 60.0 + default_config.rpcs.list_exadb_vm_clusters.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_exadb_vm_cluster.timeout = 60.0 + default_config.rpcs.get_exadb_vm_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_exascale_db_storage_vaults.timeout = 60.0 + default_config.rpcs.list_exascale_db_storage_vaults.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_exascale_db_storage_vault.timeout = 60.0 + default_config.rpcs.get_exascale_db_storage_vault.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_system_initial_storage_sizes.timeout = 60.0 + default_config.rpcs.list_db_system_initial_storage_sizes.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_databases.timeout = 60.0 + default_config.rpcs.list_databases.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_database.timeout = 60.0 + default_config.rpcs.get_database.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_pluggable_databases.timeout = 60.0 + default_config.rpcs.list_pluggable_databases.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_pluggable_database.timeout = 60.0 + default_config.rpcs.get_pluggable_database.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_systems.timeout = 60.0 + default_config.rpcs.list_db_systems.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_db_system.timeout = 60.0 + default_config.rpcs.get_db_system.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployments.timeout = 60.0 + default_config.rpcs.list_goldengate_deployments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_deployment.timeout = 60.0 + default_config.rpcs.get_goldengate_deployment.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connections.timeout = 60.0 + default_config.rpcs.list_goldengate_connections.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_connection.timeout = 60.0 + default_config.rpcs.get_goldengate_connection.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_versions.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_types.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_types.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_environments.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_environments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connection_types.timeout = 60.0 + default_config.rpcs.list_goldengate_connection_types.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_versions.timeout = 60.0 + default_config.rpcs.list_db_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_database_character_sets.timeout = 60.0 + default_config.rpcs.list_database_character_sets.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connection_assignments.timeout = 60.0 + default_config.rpcs.list_goldengate_connection_assignments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_connection_assignment.timeout = 60.0 + default_config.rpcs.get_goldengate_connection_assignment.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the OracleDatabase Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @oracle_database_stub.universe_domain + end + + ## + # Create a new OracleDatabase client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the OracleDatabase client. + # @yieldparam config [Client::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/cloud/oracledatabase/v1/oracledatabase_services_pb" + + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @oracle_database_stub = ::Gapic::ServiceStub.new( + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool, + logger: @config.logger + ) + + @oracle_database_stub.stub_logger&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @oracle_database_stub.endpoint + config.universe_domain = @oracle_database_stub.universe_domain + config.logger = @oracle_database_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Client] + # + attr_reader :location_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @oracle_database_stub.logger + end + + # Service calls + + ## + # Lists Exadata Infrastructures in a given project and location. + # + # @overload list_cloud_exadata_infrastructures(request, options = nil) + # Pass arguments to `list_cloud_exadata_infrastructures` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_cloud_exadata_infrastructures` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for CloudExadataInfrastructure in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Exadata infrastructures will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new + # + # # Call the list_cloud_exadata_infrastructures method. + # result = client.list_cloud_exadata_infrastructures request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. + # p item + # end + # + def list_cloud_exadata_infrastructures request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_cloud_exadata_infrastructures.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_cloud_exadata_infrastructures.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_cloud_exadata_infrastructures.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_cloud_exadata_infrastructures, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_cloud_exadata_infrastructures, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single Exadata Infrastructure. + # + # @overload get_cloud_exadata_infrastructure(request, options = nil) + # Pass arguments to `get_cloud_exadata_infrastructure` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_cloud_exadata_infrastructure(name: nil) + # Pass arguments to `get_cloud_exadata_infrastructure` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Cloud Exadata Infrastructure in the following + # format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new + # + # # Call the get_cloud_exadata_infrastructure method. + # result = client.get_cloud_exadata_infrastructure request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. + # p result + # + def get_cloud_exadata_infrastructure request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_cloud_exadata_infrastructure.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_cloud_exadata_infrastructure.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_cloud_exadata_infrastructure.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_cloud_exadata_infrastructure, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Exadata Infrastructure in a given project and location. + # + # @overload create_cloud_exadata_infrastructure(request, options = nil) + # Pass arguments to `create_cloud_exadata_infrastructure` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_cloud_exadata_infrastructure(parent: nil, cloud_exadata_infrastructure_id: nil, cloud_exadata_infrastructure: nil, request_id: nil) + # Pass arguments to `create_cloud_exadata_infrastructure` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for CloudExadataInfrastructure in the following + # format: projects/\\{project}/locations/\\{location}. + # @param cloud_exadata_infrastructure_id [::String] + # Required. The ID of the Exadata Infrastructure to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param cloud_exadata_infrastructure [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure, ::Hash] + # Required. Details of the Exadata Infrastructure instance to create. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new + # + # # Call the create_cloud_exadata_infrastructure method. + # result = client.create_cloud_exadata_infrastructure request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_cloud_exadata_infrastructure request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_cloud_exadata_infrastructure.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_cloud_exadata_infrastructure.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_cloud_exadata_infrastructure.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_cloud_exadata_infrastructure, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Exadata Infrastructure. + # + # @overload delete_cloud_exadata_infrastructure(request, options = nil) + # Pass arguments to `delete_cloud_exadata_infrastructure` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_cloud_exadata_infrastructure(name: nil, request_id: nil, force: nil) + # Pass arguments to `delete_cloud_exadata_infrastructure` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Cloud Exadata Infrastructure in the following + # format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @param force [::Boolean] + # Optional. If set to true, all VM clusters for this Exadata Infrastructure + # will be deleted. An Exadata Infrastructure can only be deleted once all its + # VM clusters have been deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new + # + # # Call the delete_cloud_exadata_infrastructure method. + # result = client.delete_cloud_exadata_infrastructure request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_cloud_exadata_infrastructure request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_cloud_exadata_infrastructure.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_cloud_exadata_infrastructure.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_cloud_exadata_infrastructure.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_cloud_exadata_infrastructure, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the VM Clusters in a given project and location. + # + # @overload list_cloud_vm_clusters(request, options = nil) + # Pass arguments to `list_cloud_vm_clusters` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_cloud_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_cloud_vm_clusters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The number of VM clusters to return. + # If unspecified, at most 50 VM clusters will be returned. + # The maximum value is 1,000. + # @param page_token [::String] + # Optional. A token identifying the page of results the server returns. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new + # + # # Call the list_cloud_vm_clusters method. + # result = client.list_cloud_vm_clusters request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudVmCluster. + # p item + # end + # + def list_cloud_vm_clusters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_cloud_vm_clusters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_cloud_vm_clusters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_cloud_vm_clusters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_cloud_vm_clusters, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_cloud_vm_clusters, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single VM Cluster. + # + # @overload get_cloud_vm_cluster(request, options = nil) + # Pass arguments to `get_cloud_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_cloud_vm_cluster(name: nil) + # Pass arguments to `get_cloud_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Cloud VM Cluster in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new + # + # # Call the get_cloud_vm_cluster method. + # result = client.get_cloud_vm_cluster request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudVmCluster. + # p result + # + def get_cloud_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_cloud_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_cloud_vm_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_cloud_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_cloud_vm_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new VM Cluster in a given project and location. + # + # @overload create_cloud_vm_cluster(request, options = nil) + # Pass arguments to `create_cloud_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_cloud_vm_cluster(parent: nil, cloud_vm_cluster_id: nil, cloud_vm_cluster: nil, request_id: nil) + # Pass arguments to `create_cloud_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @param cloud_vm_cluster_id [::String] + # Required. The ID of the VM Cluster to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @param cloud_vm_cluster [::Google::Cloud::OracleDatabase::V1::CloudVmCluster, ::Hash] + # Required. The resource being created + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new + # + # # Call the create_cloud_vm_cluster method. + # result = client.create_cloud_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_cloud_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_cloud_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_cloud_vm_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_cloud_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_cloud_vm_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single VM Cluster. + # + # @overload delete_cloud_vm_cluster(request, options = nil) + # Pass arguments to `delete_cloud_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_cloud_vm_cluster(name: nil, request_id: nil, force: nil) + # Pass arguments to `delete_cloud_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Cloud VM Cluster in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @param force [::Boolean] + # Optional. If set to true, all child resources for the VM Cluster will be + # deleted. A VM Cluster can only be deleted once all its child resources have + # been deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new + # + # # Call the delete_cloud_vm_cluster method. + # result = client.delete_cloud_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_cloud_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_cloud_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_cloud_vm_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_cloud_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_cloud_vm_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the entitlements in a given project. + # + # @overload list_entitlements(request, options = nil) + # Pass arguments to `list_entitlements` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_entitlements(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_entitlements` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the entitlement in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 entitlements will be returned. + # The maximum value is 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new + # + # # Call the list_entitlements method. + # result = client.list_entitlements request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Entitlement. + # p item + # end + # + def list_entitlements request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_entitlements.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_entitlements.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_entitlements.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_entitlements, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_entitlements, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the database servers of an Exadata Infrastructure instance. + # + # @overload list_db_servers(request, options = nil) + # Pass arguments to `list_db_servers` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbServersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_db_servers(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_db_servers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for database server in the following format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloudExadataInfrastructure}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 db servers will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new + # + # # Call the list_db_servers method. + # result = client.list_db_servers request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbServer. + # p item + # end + # + def list_db_servers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_db_servers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_db_servers.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_db_servers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_db_servers, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_servers, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the database nodes of a VM Cluster. + # + # @overload list_db_nodes(request, options = nil) + # Pass arguments to `list_db_nodes` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_db_nodes(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_db_nodes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for database node in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}. + # . + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 db nodes will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the node should return. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new + # + # # Call the list_db_nodes method. + # result = client.list_db_nodes request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbNode. + # p item + # end + # + def list_db_nodes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_db_nodes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_db_nodes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_db_nodes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_db_nodes, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_nodes, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the valid Oracle Grid Infrastructure (GI) versions for the given + # project and location. + # + # @overload list_gi_versions(request, options = nil) + # Pass arguments to `list_gi_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_gi_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for Grid Infrastructure Version in the following + # format: Format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions + # will be returned. The maximum value is 1000; values above 1000 will be + # reset to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # shape, gcp_oracle_zone and gi_version fields are supported in this format: + # `shape="{shape}"`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new + # + # # Call the list_gi_versions method. + # result = client.list_gi_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GiVersion. + # p item + # end + # + def list_gi_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_gi_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_gi_versions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_gi_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_gi_versions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_gi_versions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the valid minor versions for the given + # project, location, gi version and shape family. + # + # @overload list_minor_versions(request, options = nil) + # Pass arguments to `list_minor_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_minor_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_minor_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the MinorVersion resource with the format: + # projects/\\{project}/locations/\\{location}/giVersions/\\{gi_version} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 System Versions will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # Only shapeFamily and gcp_oracle_zone_id are supported in this format: + # `shape_family="{shapeFamily}" AND + # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new + # + # # Call the list_minor_versions method. + # result = client.list_minor_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::MinorVersion. + # p item + # end + # + def list_minor_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_minor_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_minor_versions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_minor_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_minor_versions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_minor_versions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the database system shapes available for the project and location. + # + # @overload list_db_system_shapes(request, options = nil) + # Pass arguments to `list_db_system_shapes` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_db_system_shapes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for Database System Shapes in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 database system shapes will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # gcp_oracle_zone_id field is supported in this format: + # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new + # + # # Call the list_db_system_shapes method. + # result = client.list_db_system_shapes request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemShape. + # p item + # end + # + def list_db_system_shapes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_db_system_shapes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_db_system_shapes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_db_system_shapes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_db_system_shapes, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_system_shapes, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the Autonomous Databases in a given project and location. + # + # @overload list_autonomous_databases(request, options = nil) + # Pass arguments to `list_autonomous_databases` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_autonomous_databases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_autonomous_databases` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous Database will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new + # + # # Call the list_autonomous_databases method. + # result = client.list_autonomous_databases request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase. + # p item + # end + # + def list_autonomous_databases request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_autonomous_databases.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_autonomous_databases.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_autonomous_databases.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_autonomous_databases, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_autonomous_databases, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the details of a single Autonomous Database. + # + # @overload get_autonomous_database(request, options = nil) + # Pass arguments to `get_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_autonomous_database(name: nil) + # Pass arguments to `get_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new + # + # # Call the get_autonomous_database method. + # result = client.get_autonomous_database request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabase. + # p result + # + def get_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_autonomous_database, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Autonomous Database in a given project and location. + # + # @overload create_autonomous_database(request, options = nil) + # Pass arguments to `create_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_autonomous_database(parent: nil, autonomous_database_id: nil, autonomous_database: nil, request_id: nil) + # Pass arguments to `create_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @param autonomous_database_id [::String] + # Required. The ID of the Autonomous Database to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash] + # Required. The Autonomous Database being created. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new + # + # # Call the create_autonomous_database method. + # result = client.create_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the parameters of a single Autonomous Database. + # + # @overload update_autonomous_database(request, options = nil) + # Pass arguments to `update_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_autonomous_database(update_mask: nil, autonomous_database: nil, request_id: nil) + # Pass arguments to `update_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # 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. + # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash] + # Required. The resource being updated + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new + # + # # Call the update_autonomous_database method. + # result = client.update_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.autonomous_database&.name + header_params["autonomous_database.name"] = request.autonomous_database.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :update_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Autonomous Database. + # + # @overload delete_autonomous_database(request, options = nil) + # Pass arguments to `delete_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_autonomous_database(name: nil, request_id: nil) + # Pass arguments to `delete_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new + # + # # Call the delete_autonomous_database method. + # result = client.delete_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Restores a single Autonomous Database. + # + # @overload restore_autonomous_database(request, options = nil) + # Pass arguments to `restore_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload restore_autonomous_database(name: nil, restore_time: nil) + # Pass arguments to `restore_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param restore_time [::Google::Protobuf::Timestamp, ::Hash] + # Required. The time and date to restore the database to. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new + # + # # Call the restore_autonomous_database method. + # result = client.restore_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def restore_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.restore_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.restore_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.restore_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :restore_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Generates a wallet for an Autonomous Database. + # + # @overload generate_autonomous_database_wallet(request, options = nil) + # Pass arguments to `generate_autonomous_database_wallet` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload generate_autonomous_database_wallet(name: nil, type: nil, is_regional: nil, password: nil) + # Pass arguments to `generate_autonomous_database_wallet` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param type [::Google::Cloud::OracleDatabase::V1::GenerateType] + # Optional. The type of wallet generation for the Autonomous Database. The + # default value is SINGLE. + # @param is_regional [::Boolean] + # Optional. True when requesting regional connection strings in PDB connect + # info, applicable to cross-region Data Guard only. + # @param password [::String] + # Required. The password used to encrypt the keys inside the wallet. The + # password must be a minimum of 8 characters. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new + # + # # Call the generate_autonomous_database_wallet method. + # result = client.generate_autonomous_database_wallet request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse. + # p result + # + def generate_autonomous_database_wallet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.generate_autonomous_database_wallet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.generate_autonomous_database_wallet.timeout, + metadata: metadata, + retry_policy: @config.rpcs.generate_autonomous_database_wallet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :generate_autonomous_database_wallet, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the available Autonomous Database versions for a project and + # location. + # + # @overload list_autonomous_db_versions(request, options = nil) + # Pass arguments to `list_autonomous_db_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_autonomous_db_versions(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_autonomous_db_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Versions will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new + # + # # Call the list_autonomous_db_versions method. + # result = client.list_autonomous_db_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion. + # p item + # end + # + def list_autonomous_db_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_autonomous_db_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_autonomous_db_versions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_autonomous_db_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_autonomous_db_versions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_autonomous_db_versions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Autonomous Database Character Sets in a given project and location. + # + # @overload list_autonomous_database_character_sets(request, options = nil) + # Pass arguments to `list_autonomous_database_character_sets` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_autonomous_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_autonomous_database_character_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Character Sets will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # **character_set_type** field is supported in the following format: + # `character_set_type="{characterSetType}"`. Accepted values include + # `DATABASE` and `NATIONAL`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new + # + # # Call the list_autonomous_database_character_sets method. + # result = client.list_autonomous_database_character_sets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet. + # p item + # end + # + def list_autonomous_database_character_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_autonomous_database_character_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_autonomous_database_character_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_autonomous_database_character_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_autonomous_database_character_sets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_character_sets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the long-term and automatic backups of an Autonomous Database. + # + # @overload list_autonomous_database_backups(request, options = nil) + # Pass arguments to `list_autonomous_database_backups` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_autonomous_database_backups(parent: nil, filter: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_autonomous_database_backups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for ListAutonomousDatabaseBackups in the + # following format: projects/\\{project}/locations/\\{location}. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # **autonomous_database_id** field is supported in the following format: + # `autonomous_database_id="{autonomous_database_id}"`. The accepted values + # must be a valid Autonomous Database ID, limited to the naming + # restrictions of the ID: ^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$). + # The ID must start with a letter, end with a letter or a number, and be + # a maximum of 63 characters. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Backups will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new + # + # # Call the list_autonomous_database_backups method. + # result = client.list_autonomous_database_backups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup. + # p item + # end + # + def list_autonomous_database_backups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_autonomous_database_backups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_autonomous_database_backups.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_autonomous_database_backups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_autonomous_database_backups, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_backups, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Stops an Autonomous Database. + # + # @overload stop_autonomous_database(request, options = nil) + # Pass arguments to `stop_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload stop_autonomous_database(name: nil) + # Pass arguments to `stop_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new + # + # # Call the stop_autonomous_database method. + # result = client.stop_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def stop_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.stop_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.stop_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.stop_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :stop_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts an Autonomous Database. + # + # @overload start_autonomous_database(request, options = nil) + # Pass arguments to `start_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload start_autonomous_database(name: nil) + # Pass arguments to `start_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new + # + # # Call the start_autonomous_database method. + # result = client.start_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def start_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.start_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.start_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.start_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :start_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Restarts an Autonomous Database. + # + # @overload restart_autonomous_database(request, options = nil) + # Pass arguments to `restart_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload restart_autonomous_database(name: nil) + # Pass arguments to `restart_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new + # + # # Call the restart_autonomous_database method. + # result = client.restart_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def restart_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.restart_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.restart_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.restart_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :restart_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Initiates a switchover of specified autonomous database to the associated + # peer database. + # + # @overload switchover_autonomous_database(request, options = nil) + # Pass arguments to `switchover_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload switchover_autonomous_database(name: nil, peer_autonomous_database: nil) + # Pass arguments to `switchover_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param peer_autonomous_database [::String] + # Optional. The peer database name to switch over to. Required for + # cross-region standby, and must be omitted for in-region Data Guard. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new + # + # # Call the switchover_autonomous_database method. + # result = client.switchover_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def switchover_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.switchover_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.switchover_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.switchover_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :switchover_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Initiates a failover to target autonomous database from the associated + # primary database. + # + # @overload failover_autonomous_database(request, options = nil) + # Pass arguments to `failover_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload failover_autonomous_database(name: nil, peer_autonomous_database: nil) + # Pass arguments to `failover_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param peer_autonomous_database [::String] + # Optional. The peer database name to fail over to. Required for cross-region + # standby, and must be omitted for in-region Data Guard. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new + # + # # Call the failover_autonomous_database method. + # result = client.failover_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def failover_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.failover_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.failover_autonomous_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.failover_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :failover_autonomous_database, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the ODB Networks in a given project and location. + # + # @overload list_odb_networks(request, options = nil) + # Pass arguments to `list_odb_networks` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_odb_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_odb_networks` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the ODB Network in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ODB Networks will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new + # + # # Call the list_odb_networks method. + # result = client.list_odb_networks request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbNetwork. + # p item + # end + # + def list_odb_networks request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_odb_networks.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_odb_networks.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_odb_networks.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_odb_networks, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_odb_networks, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single ODB Network. + # + # @overload get_odb_network(request, options = nil) + # Pass arguments to `get_odb_network` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_odb_network(name: nil) + # Pass arguments to `get_odb_network` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the OdbNetwork in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::OdbNetwork] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new + # + # # Call the get_odb_network method. + # result = client.get_odb_network request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbNetwork. + # p result + # + def get_odb_network request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_odb_network.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_odb_network.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_odb_network.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_odb_network, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ODB Network in a given project and location. + # + # @overload create_odb_network(request, options = nil) + # Pass arguments to `create_odb_network` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_odb_network(parent: nil, odb_network_id: nil, odb_network: nil, request_id: nil) + # Pass arguments to `create_odb_network` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the OdbNetwork in the following format: + # projects/\\{project}/locations/\\{location}. + # @param odb_network_id [::String] + # Required. The ID of the OdbNetwork to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @param odb_network [::Google::Cloud::OracleDatabase::V1::OdbNetwork, ::Hash] + # Required. Details of the OdbNetwork instance to create. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new + # + # # Call the create_odb_network method. + # result = client.create_odb_network request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_odb_network request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_odb_network.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_odb_network.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_odb_network.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_odb_network, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ODB Network. + # + # @overload delete_odb_network(request, options = nil) + # Pass arguments to `delete_odb_network` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_odb_network(name: nil, request_id: nil) + # Pass arguments to `delete_odb_network` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new + # + # # Call the delete_odb_network method. + # result = client.delete_odb_network request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_odb_network request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_odb_network.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_odb_network.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_odb_network.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_odb_network, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the ODB Subnets in a given ODB Network. + # + # @overload list_odb_subnets(request, options = nil) + # Pass arguments to `list_odb_subnets` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_odb_subnets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_odb_subnets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ODB Networks will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new + # + # # Call the list_odb_subnets method. + # result = client.list_odb_subnets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbSubnet. + # p item + # end + # + def list_odb_subnets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_odb_subnets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_odb_subnets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_odb_subnets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_odb_subnets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_odb_subnets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single ODB Subnet. + # + # @overload get_odb_subnet(request, options = nil) + # Pass arguments to `get_odb_subnet` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_odb_subnet(name: nil) + # Pass arguments to `get_odb_subnet` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::OdbSubnet] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new + # + # # Call the get_odb_subnet method. + # result = client.get_odb_subnet request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbSubnet. + # p result + # + def get_odb_subnet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_odb_subnet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_odb_subnet.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_odb_subnet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_odb_subnet, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ODB Subnet in a given ODB Network. + # + # @overload create_odb_subnet(request, options = nil) + # Pass arguments to `create_odb_subnet` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_odb_subnet(parent: nil, odb_subnet_id: nil, odb_subnet: nil, request_id: nil) + # Pass arguments to `create_odb_subnet` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @param odb_subnet_id [::String] + # Required. The ID of the OdbSubnet to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @param odb_subnet [::Google::Cloud::OracleDatabase::V1::OdbSubnet, ::Hash] + # Required. Details of the OdbSubnet instance to create. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new + # + # # Call the create_odb_subnet method. + # result = client.create_odb_subnet request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_odb_subnet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_odb_subnet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_odb_subnet.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_odb_subnet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_odb_subnet, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ODB Subnet. + # + # @overload delete_odb_subnet(request, options = nil) + # Pass arguments to `delete_odb_subnet` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_odb_subnet(name: nil, request_id: nil) + # Pass arguments to `delete_odb_subnet` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new + # + # # Call the delete_odb_subnet method. + # result = client.delete_odb_subnet request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_odb_subnet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_odb_subnet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_odb_subnet.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_odb_subnet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_odb_subnet, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the Exadb (Exascale) VM Clusters for the given project and + # location. + # + # @overload list_exadb_vm_clusters(request, options = nil) + # Pass arguments to `list_exadb_vm_clusters` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_exadb_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_exadb_vm_clusters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for ExadbVmClusters in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ExadbVmClusters will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new + # + # # Call the list_exadb_vm_clusters method. + # result = client.list_exadb_vm_clusters request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster. + # p item + # end + # + def list_exadb_vm_clusters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_exadb_vm_clusters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_exadb_vm_clusters.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_exadb_vm_clusters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_exadb_vm_clusters, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_exadb_vm_clusters, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single Exadb (Exascale) VM Cluster. + # + # @overload get_exadb_vm_cluster(request, options = nil) + # Pass arguments to `get_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_exadb_vm_cluster(name: nil) + # Pass arguments to `get_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new + # + # # Call the get_exadb_vm_cluster method. + # result = client.get_exadb_vm_cluster request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExadbVmCluster. + # p result + # + def get_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_exadb_vm_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_exadb_vm_cluster, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Exadb (Exascale) VM Cluster resource. + # + # @overload create_exadb_vm_cluster(request, options = nil) + # Pass arguments to `create_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_exadb_vm_cluster(parent: nil, exadb_vm_cluster_id: nil, exadb_vm_cluster: nil, request_id: nil) + # Pass arguments to `create_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the ExadbVmCluster in the following + # format: projects/\\{project}/locations/\\{location}. + # @param exadb_vm_cluster_id [::String] + # Required. The ID of the ExadbVmCluster to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new + # + # # Call the create_exadb_vm_cluster method. + # result = client.create_exadb_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_exadb_vm_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_exadb_vm_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Exadb (Exascale) VM Cluster. + # + # @overload delete_exadb_vm_cluster(request, options = nil) + # Pass arguments to `delete_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_exadb_vm_cluster(name: nil, request_id: nil) + # Pass arguments to `delete_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new + # + # # Call the delete_exadb_vm_cluster method. + # result = client.delete_exadb_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_exadb_vm_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_exadb_vm_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to + # existing exadb vm cluster, only pass the node count. + # + # @overload update_exadb_vm_cluster(request, options = nil) + # Pass arguments to `update_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload update_exadb_vm_cluster(update_mask: nil, exadb_vm_cluster: nil, request_id: nil) + # Pass arguments to `update_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # 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. + # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash] + # Required. The resource being updated. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new + # + # # Call the update_exadb_vm_cluster method. + # result = client.update_exadb_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.update_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.exadb_vm_cluster&.name + header_params["exadb_vm_cluster.name"] = request.exadb_vm_cluster.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.update_exadb_vm_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.update_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :update_exadb_vm_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Removes virtual machines from an existing exadb vm cluster. + # + # @overload remove_virtual_machine_exadb_vm_cluster(request, options = nil) + # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload remove_virtual_machine_exadb_vm_cluster(name: nil, request_id: nil, hostnames: nil) + # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @param hostnames [::Array<::String>] + # Required. The list of host names of db nodes to be removed from the + # ExadbVmCluster. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new + # + # # Call the remove_virtual_machine_exadb_vm_cluster method. + # result = client.remove_virtual_machine_exadb_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def remove_virtual_machine_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.remove_virtual_machine_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.timeout, + metadata: metadata, + retry_policy: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :remove_virtual_machine_exadb_vm_cluster, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the ExascaleDB Storage Vaults for the given project and + # location. + # + # @overload list_exascale_db_storage_vaults(request, options = nil) + # Pass arguments to `list_exascale_db_storage_vaults` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_exascale_db_storage_vaults(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_exascale_db_storage_vaults` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for ExascaleDbStorageVault in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ExascaleDbStorageVaults will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Filter + # the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. Order + # results as specified in https://google.aip.dev/132. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new + # + # # Call the list_exascale_db_storage_vaults method. + # result = client.list_exascale_db_storage_vaults request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. + # p item + # end + # + def list_exascale_db_storage_vaults request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_exascale_db_storage_vaults.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_exascale_db_storage_vaults.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_exascale_db_storage_vaults.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_exascale_db_storage_vaults, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_exascale_db_storage_vaults, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single ExascaleDB Storage Vault. + # + # @overload get_exascale_db_storage_vault(request, options = nil) + # Pass arguments to `get_exascale_db_storage_vault` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_exascale_db_storage_vault(name: nil) + # Pass arguments to `get_exascale_db_storage_vault` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExascaleDbStorageVault in the following format: + # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new + # + # # Call the get_exascale_db_storage_vault method. + # result = client.get_exascale_db_storage_vault request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. + # p result + # + def get_exascale_db_storage_vault request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_exascale_db_storage_vault.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_exascale_db_storage_vault.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_exascale_db_storage_vault.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_exascale_db_storage_vault, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ExascaleDB Storage Vault resource. + # + # @overload create_exascale_db_storage_vault(request, options = nil) + # Pass arguments to `create_exascale_db_storage_vault` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_exascale_db_storage_vault(parent: nil, exascale_db_storage_vault_id: nil, exascale_db_storage_vault: nil, request_id: nil) + # Pass arguments to `create_exascale_db_storage_vault` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the ExascaleDbStorageVault in the + # following format: projects/\\{project}/locations/\\{location}. + # @param exascale_db_storage_vault_id [::String] + # Required. The ID of the ExascaleDbStorageVault to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param exascale_db_storage_vault [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new + # + # # Call the create_exascale_db_storage_vault method. + # result = client.create_exascale_db_storage_vault request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_exascale_db_storage_vault request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_exascale_db_storage_vault.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_exascale_db_storage_vault.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_exascale_db_storage_vault.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_exascale_db_storage_vault, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ExascaleDB Storage Vault. + # + # @overload delete_exascale_db_storage_vault(request, options = nil) + # Pass arguments to `delete_exascale_db_storage_vault` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_exascale_db_storage_vault(name: nil, request_id: nil) + # Pass arguments to `delete_exascale_db_storage_vault` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExascaleDbStorageVault in the following format: + # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new + # + # # Call the delete_exascale_db_storage_vault method. + # result = client.delete_exascale_db_storage_vault request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_exascale_db_storage_vault request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_exascale_db_storage_vault.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_exascale_db_storage_vault.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_exascale_db_storage_vault.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_exascale_db_storage_vault, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the DbSystemInitialStorageSizes for the given project and + # location. + # + # @overload list_db_system_initial_storage_sizes(request, options = nil) + # Pass arguments to `list_db_system_initial_storage_sizes` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_db_system_initial_storage_sizes(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_db_system_initial_storage_sizes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the DbSystemInitialStorageSize resource with + # the format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be + # returned. The maximum value is 1000; values above 1000 will be reset to + # 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new + # + # # Call the list_db_system_initial_storage_sizes method. + # result = client.list_db_system_initial_storage_sizes request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize. + # p item + # end + # + def list_db_system_initial_storage_sizes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_db_system_initial_storage_sizes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_db_system_initial_storage_sizes.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_db_system_initial_storage_sizes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_db_system_initial_storage_sizes, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_system_initial_storage_sizes, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the Databases for the given project, location and DbSystem. + # + # @overload list_databases(request, options = nil) + # Pass arguments to `list_databases` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_databases(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_databases` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource name in the following format: + # projects/\\{project}/locations/\\{region} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 Databases will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. list for + # container databases is supported only with a valid dbSystem (full resource + # name) filter in this format: + # `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new + # + # # Call the list_databases method. + # result = client.list_databases request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Database. + # p item + # end + # + def list_databases request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_databases.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_databases.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_databases.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_databases, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_databases, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single Database. + # + # @overload get_database(request, options = nil) + # Pass arguments to `get_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_database(name: nil) + # Pass arguments to `get_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Database resource in the following format: + # projects/\\{project}/locations/\\{region}/databases/\\{database} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::Database] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::Database] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new + # + # # Call the get_database method. + # result = client.get_database request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::Database. + # p result + # + def get_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_database, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the PluggableDatabases for the given project, location and + # Container Database. + # + # @overload list_pluggable_databases(request, options = nil) + # Pass arguments to `list_pluggable_databases` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_pluggable_databases(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_pluggable_databases` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of PluggableDatabases. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of PluggableDatabases to return. The service + # may return fewer than this value. + # @param page_token [::String] + # Optional. A page token, received from a previous `ListPluggableDatabases` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListPluggableDatabases` + # must match the call that provided the page token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. List for + # pluggable databases is supported only with a valid container database (full + # resource name) filter in this format: + # `database="projects/{project}/locations/{location}/databases/{database}"` + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new + # + # # Call the list_pluggable_databases method. + # result = client.list_pluggable_databases request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::PluggableDatabase. + # p item + # end + # + def list_pluggable_databases request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_pluggable_databases.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_pluggable_databases.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_pluggable_databases.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_pluggable_databases, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_pluggable_databases, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single PluggableDatabase. + # + # @overload get_pluggable_database(request, options = nil) + # Pass arguments to `get_pluggable_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_pluggable_database(name: nil) + # Pass arguments to `get_pluggable_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the PluggableDatabase resource in the following + # format: + # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new + # + # # Call the get_pluggable_database method. + # result = client.get_pluggable_database request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::PluggableDatabase. + # p result + # + def get_pluggable_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_pluggable_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_pluggable_database.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_pluggable_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_pluggable_database, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the DbSystems for the given project and location. + # + # @overload list_db_systems(request, options = nil) + # Pass arguments to `list_db_systems` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_db_systems(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_db_systems` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for DbSystems in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 DbSystems will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new + # + # # Call the list_db_systems method. + # result = client.list_db_systems request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystem. + # p item + # end + # + def list_db_systems request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_db_systems.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_db_systems.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_db_systems.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_db_systems, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_systems, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single DbSystem. + # + # @overload get_db_system(request, options = nil) + # Pass arguments to `get_db_system` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_db_system(name: nil) + # Pass arguments to `get_db_system` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::DbSystem] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::DbSystem] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new + # + # # Call the get_db_system method. + # result = client.get_db_system request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::DbSystem. + # p result + # + def get_db_system request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_db_system.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_db_system.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_db_system.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_db_system, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new DbSystem in a given project and location. + # + # @overload create_db_system(request, options = nil) + # Pass arguments to `create_db_system` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_db_system(parent: nil, db_system_id: nil, db_system: nil, request_id: nil) + # Pass arguments to `create_db_system` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}. + # @param db_system_id [::String] + # Required. The ID of the DbSystem to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param db_system [::Google::Cloud::OracleDatabase::V1::DbSystem, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new + # + # # Call the create_db_system method. + # result = client.create_db_system request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_db_system request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_db_system.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_db_system.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_db_system.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_db_system, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single DbSystem. + # + # @overload delete_db_system(request, options = nil) + # Pass arguments to `delete_db_system` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_db_system(name: nil, request_id: nil) + # Pass arguments to `delete_db_system` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new + # + # # Call the delete_db_system method. + # result = client.delete_db_system request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_db_system request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_db_system.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_db_system.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_db_system.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_db_system, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the GoldengateDeployments for the given project and location. + # + # @overload list_goldengate_deployments(request, options = nil) + # Pass arguments to `list_goldengate_deployments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_deployments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for GoldengateDeployments in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 GoldengateDeployments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous ListGoldengateDeployments + # call. Provide this to retrieve the subsequent page. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new + # + # # Call the list_goldengate_deployments method. + # result = client.list_goldengate_deployments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment. + # p item + # end + # + def list_goldengate_deployments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_deployments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployments.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_deployments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_deployments, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployments, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeployment. + # + # @overload get_goldengate_deployment(request, options = nil) + # Pass arguments to `get_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_deployment(name: nil) + # Pass arguments to `get_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new + # + # # Call the get_goldengate_deployment method. + # result = client.get_goldengate_deployment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeployment. + # p result + # + def get_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_deployment, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateDeployment in a given project and location. + # + # @overload create_goldengate_deployment(request, options = nil) + # Pass arguments to `create_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_goldengate_deployment(parent: nil, goldengate_deployment_id: nil, goldengate_deployment: nil, request_id: nil) + # Pass arguments to `create_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the GoldengateDeployment in the following + # format: projects/\\{project}/locations/\\{location}. + # @param goldengate_deployment_id [::String] + # Required. The ID of the GoldengateDeployment to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param goldengate_deployment [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new + # + # # Call the create_goldengate_deployment method. + # result = client.create_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_goldengate_deployment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateDeployment. + # + # @overload delete_goldengate_deployment(request, options = nil) + # Pass arguments to `delete_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_goldengate_deployment(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new + # + # # Call the delete_goldengate_deployment method. + # result = client.delete_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_goldengate_deployment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Stops a single GoldengateDeployment. + # + # @overload stop_goldengate_deployment(request, options = nil) + # Pass arguments to `stop_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload stop_goldengate_deployment(name: nil) + # Pass arguments to `stop_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new + # + # # Call the stop_goldengate_deployment method. + # result = client.stop_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def stop_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.stop_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.stop_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.stop_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :stop_goldengate_deployment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts a single GoldengateDeployment. + # + # @overload start_goldengate_deployment(request, options = nil) + # Pass arguments to `start_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload start_goldengate_deployment(name: nil) + # Pass arguments to `start_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new + # + # # Call the start_goldengate_deployment method. + # result = client.start_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def start_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.start_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.start_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.start_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :start_goldengate_deployment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the GoldengateConnections for the given project and location. + # + # @overload list_goldengate_connections(request, options = nil) + # Pass arguments to `list_goldengate_connections` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_connections` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for GoldengateConnections in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 GoldengateConnections will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous ListGoldengateConnections + # call. Provide this to retrieve the subsequent page. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new + # + # # Call the list_goldengate_connections method. + # result = client.list_goldengate_connections request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnection. + # p item + # end + # + def list_goldengate_connections request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_connections.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connections.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_connections.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_connections, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connections, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnection. + # + # @overload get_goldengate_connection(request, options = nil) + # Pass arguments to `get_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_connection(name: nil) + # Pass arguments to `get_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new + # + # # Call the get_goldengate_connection method. + # result = client.get_goldengate_connection request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnection. + # p result + # + def get_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_connection, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateConnection in a given project and location. + # + # @overload create_goldengate_connection(request, options = nil) + # Pass arguments to `create_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_goldengate_connection(parent: nil, goldengate_connection_id: nil, goldengate_connection: nil, request_id: nil) + # Pass arguments to `create_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the GoldengateConnection in the following + # format: projects/\\{project}/locations/\\{location}. + # @param goldengate_connection_id [::String] + # Required. The ID of the GoldengateConnection to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param goldengate_connection [::Google::Cloud::OracleDatabase::V1::GoldengateConnection, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new + # + # # Call the create_goldengate_connection method. + # result = client.create_goldengate_connection request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_goldengate_connection.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_goldengate_connection, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateConnection. + # + # @overload delete_goldengate_connection(request, options = nil) + # Pass arguments to `delete_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_goldengate_connection(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new + # + # # Call the delete_goldengate_connection method. + # result = client.delete_goldengate_connection request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_goldengate_connection, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeploymentVersion. + # + # @overload get_goldengate_deployment_version(request, options = nil) + # Pass arguments to `get_goldengate_deployment_version` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_deployment_version(name: nil) + # Pass arguments to `get_goldengate_deployment_version` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeploymentVersion to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new + # + # # Call the get_goldengate_deployment_version method. + # result = client.get_goldengate_deployment_version request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + # p result + # + def get_goldengate_deployment_version request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_deployment_version.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_version.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_version.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_deployment_version, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateDeploymentVersions in a given project and location. + # + # @overload list_goldengate_deployment_versions(request, options = nil) + # Pass arguments to `list_goldengate_deployment_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_deployment_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_goldengate_deployment_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Parent value for ListGoldengateDeploymentVersionsRequest + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_id and deployment_type fields must be specified in the + # format: `deployment_id="id"` or `deployment_type="DATABASE_ORACLE"`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new + # + # # Call the list_goldengate_deployment_versions method. + # result = client.list_goldengate_deployment_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + # p item + # end + # + def list_goldengate_deployment_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_deployment_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_versions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_deployment_versions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_versions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldenGateDeploymentType. + # + # @overload get_goldengate_deployment_type(request, options = nil) + # Pass arguments to `get_goldengate_deployment_type` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_deployment_type(name: nil) + # Pass arguments to `get_goldengate_deployment_type` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeploymentType to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentTypes/\\{goldengate_deployment_type} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new + # + # # Call the get_goldengate_deployment_type method. + # result = client.get_goldengate_deployment_type request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + # p result + # + def get_goldengate_deployment_type request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_deployment_type.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_type.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_type.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_deployment_type, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldenGateDeploymentTypes in a given project and location. + # + # @overload list_goldengate_deployment_types(request, options = nil) + # Pass arguments to `list_goldengate_deployment_types` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_deployment_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_deployment_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_type and ogg_version fields must be specified in the format: + # `deployment_type="DATABASE_ORACLE"` or `ogg_version="version"`. + # Allowed values for deployment_type are: `DATABASE_ORACLE`, `BIGDATA`, + # `DATABASE_MICROSOFT_SQLSERVER`, `DATABASE_MYSQL`, `DATABASE_POSTGRESQL`, + # `DATABASE_DB2ZOS`, `DATABASE_DB2I`, `GGSA`, `DATA_TRANSFORMS`. + # @param order_by [::String] + # Optional. Hint for how to order the results + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new + # + # # Call the list_goldengate_deployment_types method. + # result = client.list_goldengate_deployment_types request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + # p item + # end + # + def list_goldengate_deployment_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_deployment_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_types.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_deployment_types, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_types, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeploymentEnvironment. + # + # @overload get_goldengate_deployment_environment(request, options = nil) + # Pass arguments to `get_goldengate_deployment_environment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_deployment_environment(name: nil) + # Pass arguments to `get_goldengate_deployment_environment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource with the format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new + # + # # Call the get_goldengate_deployment_environment method. + # result = client.get_goldengate_deployment_environment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + # p result + # + def get_goldengate_deployment_environment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_deployment_environment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_environment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_environment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_deployment_environment, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateDeploymentEnvironments in a given project and location. + # + # @overload list_goldengate_deployment_environments(request, options = nil) + # Pass arguments to `list_goldengate_deployment_environments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_deployment_environments(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_goldengate_deployment_environments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of + # GoldengateDeploymentEnvironments. Format: + # projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 deployment environments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new + # + # # Call the list_goldengate_deployment_environments method. + # result = client.list_goldengate_deployment_environments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + # p item + # end + # + def list_goldengate_deployment_environments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_deployment_environments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_environments.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_environments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_deployment_environments, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_environments, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnectionType. + # + # @overload get_goldengate_connection_type(request, options = nil) + # Pass arguments to `get_goldengate_connection_type` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_connection_type(name: nil) + # Pass arguments to `get_goldengate_connection_type` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource in the format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionTypes/\\{goldengate_connection_type} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new + # + # # Call the get_goldengate_connection_type method. + # result = client.get_goldengate_connection_type request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + # p result + # + def get_goldengate_connection_type request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_connection_type.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_type.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_connection_type.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_connection_type, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateConnectionTypes in a given project and location. + # + # @overload list_goldengate_connection_types(request, options = nil) + # Pass arguments to `list_goldengate_connection_types` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_connection_types(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_goldengate_connection_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Parent value for ListGoldengateConnectionTypesRequest + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. The + # connection_type field must be specified in the format: + # `connection_type="ORACLE"`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new + # + # # Call the list_goldengate_connection_types method. + # result = client.list_goldengate_connection_types request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + # p item + # end + # + def list_goldengate_connection_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_connection_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_types.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_connection_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_connection_types, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_types, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DbVersions for the given project and location. + # + # @overload list_db_versions(request, options = nil) + # Pass arguments to `list_db_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_db_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the DbVersion resource with the + # format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 DbVersions will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @param filter [::String] + # Optional. Filter expression that matches a subset of the DbVersions to + # show. The supported filter for dbSystem creation is `db_system_shape = + # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no + # filter is provided, all DbVersions will be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new + # + # # Call the list_db_versions method. + # result = client.list_db_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. + # p item + # end + # + def list_db_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_db_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_db_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_db_versions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_versions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DatabaseCharacterSets for the given project and location. + # + # @overload list_database_character_sets(request, options = nil) + # Pass arguments to `list_database_character_sets` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for DatabaseCharacterSets in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of DatabaseCharacterSets to return. The + # service may return fewer than this value. If unspecified, at most 50 + # DatabaseCharacterSets will be returned. The maximum value is 1000; values + # above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # `ListDatabaseCharacterSets` must match the call that provided the page + # token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # **character_set_type** field is supported in the following format: + # `character_set_type="{characterSetType}"`. Accepted values include + # `DATABASE` and `NATIONAL`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new + # + # # Call the list_database_character_sets method. + # result = client.list_database_character_sets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. + # p item + # end + # + def list_database_character_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_database_character_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_database_character_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_database_character_sets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateConnectionAssignments in a given project and location. + # + # @overload list_goldengate_connection_assignments(request, options = nil) + # Pass arguments to `list_goldengate_connection_assignments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_connection_assignments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_connection_assignments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the GoldengateConnectionAssignments. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of GoldengateConnectionAssignments to return. + # The service may return fewer than this value. If unspecified, at most 50 + # GoldengateConnectionAssignments will be returned. The maximum value is + # 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListGoldengateConnectionAssignments` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `ListGoldengateConnectionAssignments` must match the call that provided + # the page token. + # @param filter [::String] + # Optional. A filter expression that filters GoldengateConnectionAssignments + # listed in the response. + # @param order_by [::String] + # Optional. A comma-separated list of fields to order by, sorted in ascending + # order. Use "DESC" after a field name for descending. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new + # + # # Call the list_goldengate_connection_assignments method. + # result = client.list_goldengate_connection_assignments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + # p item + # end + # + def list_goldengate_connection_assignments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_connection_assignments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_assignments.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_connection_assignments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_connection_assignments, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_assignments, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnectionAssignment. + # + # @overload get_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `get_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_connection_assignment(name: nil) + # Pass arguments to `get_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnectionAssignment to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new + # + # # Call the get_goldengate_connection_assignment method. + # result = client.get_goldengate_connection_assignment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + # p result + # + def get_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_assignment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_connection_assignment, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateConnectionAssignment in a given project and + # location. + # + # @overload create_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `create_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_goldengate_connection_assignment(parent: nil, goldengate_connection_assignment_id: nil, goldengate_connection_assignment: nil, request_id: nil) + # Pass arguments to `create_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this GoldengateConnectionAssignment + # will be created. Format: projects/\\{project}/locations/\\{location} + # @param goldengate_connection_assignment_id [::String] + # Required. The ID of the GoldengateConnectionAssignment to create. + # @param goldengate_connection_assignment [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment, ::Hash] + # Required. The GoldengateConnectionAssignment to create. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new + # + # # Call the create_goldengate_connection_assignment method. + # result = client.create_goldengate_connection_assignment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_goldengate_connection_assignment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_goldengate_connection_assignment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateConnectionAssignment. + # + # @overload delete_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `delete_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_goldengate_connection_assignment(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnectionAssignment to delete. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes after the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new + # + # # Call the delete_goldengate_connection_assignment method. + # result = client.delete_goldengate_connection_assignment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection_assignment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_goldengate_connection_assignment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Tests a single GoldengateConnectionAssignment. + # + # @overload test_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `test_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_goldengate_connection_assignment(name: nil, type: nil) + # Pass arguments to `test_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the connection assignment for which to test connection. + # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @param type [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest::TestType] + # Optional. The type of the test of the assigned connection. + # The only type actually supported is DEFAULT. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new + # + # # Call the test_goldengate_connection_assignment method. + # result = client.test_goldengate_connection_assignment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse. + # p result + # + def test_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_goldengate_connection_assignment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :test_goldengate_connection_assignment, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the OracleDatabase API. + # + # This class represents the configuration for OracleDatabase, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_cloud_exadata_infrastructures to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the OracleDatabase API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_cloud_exadata_infrastructures` + # @return [::Gapic::Config::Method] + # + attr_reader :list_cloud_exadata_infrastructures + ## + # RPC-specific configuration for `get_cloud_exadata_infrastructure` + # @return [::Gapic::Config::Method] + # + attr_reader :get_cloud_exadata_infrastructure + ## + # RPC-specific configuration for `create_cloud_exadata_infrastructure` + # @return [::Gapic::Config::Method] + # + attr_reader :create_cloud_exadata_infrastructure + ## + # RPC-specific configuration for `delete_cloud_exadata_infrastructure` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_cloud_exadata_infrastructure + ## + # RPC-specific configuration for `list_cloud_vm_clusters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_cloud_vm_clusters + ## + # RPC-specific configuration for `get_cloud_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :get_cloud_vm_cluster + ## + # RPC-specific configuration for `create_cloud_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :create_cloud_vm_cluster + ## + # RPC-specific configuration for `delete_cloud_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_cloud_vm_cluster + ## + # RPC-specific configuration for `list_entitlements` + # @return [::Gapic::Config::Method] + # + attr_reader :list_entitlements + ## + # RPC-specific configuration for `list_db_servers` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_servers + ## + # RPC-specific configuration for `list_db_nodes` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_nodes + ## + # RPC-specific configuration for `list_gi_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_gi_versions + ## + # RPC-specific configuration for `list_minor_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_minor_versions + ## + # RPC-specific configuration for `list_db_system_shapes` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_system_shapes + ## + # RPC-specific configuration for `list_autonomous_databases` + # @return [::Gapic::Config::Method] + # + attr_reader :list_autonomous_databases + ## + # RPC-specific configuration for `get_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :get_autonomous_database + ## + # RPC-specific configuration for `create_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :create_autonomous_database + ## + # RPC-specific configuration for `update_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :update_autonomous_database + ## + # RPC-specific configuration for `delete_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_autonomous_database + ## + # RPC-specific configuration for `restore_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :restore_autonomous_database + ## + # RPC-specific configuration for `generate_autonomous_database_wallet` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_autonomous_database_wallet + ## + # RPC-specific configuration for `list_autonomous_db_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_autonomous_db_versions + ## + # RPC-specific configuration for `list_autonomous_database_character_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_autonomous_database_character_sets + ## + # RPC-specific configuration for `list_autonomous_database_backups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_autonomous_database_backups + ## + # RPC-specific configuration for `stop_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :stop_autonomous_database + ## + # RPC-specific configuration for `start_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :start_autonomous_database + ## + # RPC-specific configuration for `restart_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :restart_autonomous_database + ## + # RPC-specific configuration for `switchover_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :switchover_autonomous_database + ## + # RPC-specific configuration for `failover_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :failover_autonomous_database + ## + # RPC-specific configuration for `list_odb_networks` + # @return [::Gapic::Config::Method] + # + attr_reader :list_odb_networks + ## + # RPC-specific configuration for `get_odb_network` + # @return [::Gapic::Config::Method] + # + attr_reader :get_odb_network + ## + # RPC-specific configuration for `create_odb_network` + # @return [::Gapic::Config::Method] + # + attr_reader :create_odb_network + ## + # RPC-specific configuration for `delete_odb_network` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_odb_network + ## + # RPC-specific configuration for `list_odb_subnets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_odb_subnets + ## + # RPC-specific configuration for `get_odb_subnet` + # @return [::Gapic::Config::Method] + # + attr_reader :get_odb_subnet + ## + # RPC-specific configuration for `create_odb_subnet` + # @return [::Gapic::Config::Method] + # + attr_reader :create_odb_subnet + ## + # RPC-specific configuration for `delete_odb_subnet` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_odb_subnet + ## + # RPC-specific configuration for `list_exadb_vm_clusters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_exadb_vm_clusters + ## + # RPC-specific configuration for `get_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :get_exadb_vm_cluster + ## + # RPC-specific configuration for `create_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :create_exadb_vm_cluster + ## + # RPC-specific configuration for `delete_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_exadb_vm_cluster + ## + # RPC-specific configuration for `update_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :update_exadb_vm_cluster + ## + # RPC-specific configuration for `remove_virtual_machine_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_virtual_machine_exadb_vm_cluster + ## + # RPC-specific configuration for `list_exascale_db_storage_vaults` + # @return [::Gapic::Config::Method] + # + attr_reader :list_exascale_db_storage_vaults + ## + # RPC-specific configuration for `get_exascale_db_storage_vault` + # @return [::Gapic::Config::Method] + # + attr_reader :get_exascale_db_storage_vault + ## + # RPC-specific configuration for `create_exascale_db_storage_vault` + # @return [::Gapic::Config::Method] + # + attr_reader :create_exascale_db_storage_vault + ## + # RPC-specific configuration for `delete_exascale_db_storage_vault` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_exascale_db_storage_vault + ## + # RPC-specific configuration for `list_db_system_initial_storage_sizes` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_system_initial_storage_sizes + ## + # RPC-specific configuration for `list_databases` + # @return [::Gapic::Config::Method] + # + attr_reader :list_databases + ## + # RPC-specific configuration for `get_database` + # @return [::Gapic::Config::Method] + # + attr_reader :get_database + ## + # RPC-specific configuration for `list_pluggable_databases` + # @return [::Gapic::Config::Method] + # + attr_reader :list_pluggable_databases + ## + # RPC-specific configuration for `get_pluggable_database` + # @return [::Gapic::Config::Method] + # + attr_reader :get_pluggable_database + ## + # RPC-specific configuration for `list_db_systems` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_systems + ## + # RPC-specific configuration for `get_db_system` + # @return [::Gapic::Config::Method] + # + attr_reader :get_db_system + ## + # RPC-specific configuration for `create_db_system` + # @return [::Gapic::Config::Method] + # + attr_reader :create_db_system + ## + # RPC-specific configuration for `delete_db_system` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_db_system + ## + # RPC-specific configuration for `list_goldengate_deployments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployments + ## + # RPC-specific configuration for `get_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment + ## + # RPC-specific configuration for `create_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_deployment + ## + # RPC-specific configuration for `delete_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_deployment + ## + # RPC-specific configuration for `stop_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :stop_goldengate_deployment + ## + # RPC-specific configuration for `start_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :start_goldengate_deployment + ## + # RPC-specific configuration for `list_goldengate_connections` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connections + ## + # RPC-specific configuration for `get_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection + ## + # RPC-specific configuration for `create_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_connection + ## + # RPC-specific configuration for `delete_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_connection + ## + # RPC-specific configuration for `get_goldengate_deployment_version` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_version + ## + # RPC-specific configuration for `list_goldengate_deployment_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_versions + ## + # RPC-specific configuration for `get_goldengate_deployment_type` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_type + ## + # RPC-specific configuration for `list_goldengate_deployment_types` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_types + ## + # RPC-specific configuration for `get_goldengate_deployment_environment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_environment + ## + # RPC-specific configuration for `list_goldengate_deployment_environments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_environments + ## + # RPC-specific configuration for `get_goldengate_connection_type` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection_type + ## + # RPC-specific configuration for `list_goldengate_connection_types` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connection_types + ## + # RPC-specific configuration for `list_db_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_versions + ## + # RPC-specific configuration for `list_database_character_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_database_character_sets + ## + # RPC-specific configuration for `list_goldengate_connection_assignments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connection_assignments + ## + # RPC-specific configuration for `get_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection_assignment + ## + # RPC-specific configuration for `create_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_connection_assignment + ## + # RPC-specific configuration for `delete_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_connection_assignment + ## + # RPC-specific configuration for `test_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :test_goldengate_connection_assignment + + # @private + def initialize parent_rpcs = nil + list_cloud_exadata_infrastructures_config = parent_rpcs.list_cloud_exadata_infrastructures if parent_rpcs.respond_to? :list_cloud_exadata_infrastructures + @list_cloud_exadata_infrastructures = ::Gapic::Config::Method.new list_cloud_exadata_infrastructures_config + get_cloud_exadata_infrastructure_config = parent_rpcs.get_cloud_exadata_infrastructure if parent_rpcs.respond_to? :get_cloud_exadata_infrastructure + @get_cloud_exadata_infrastructure = ::Gapic::Config::Method.new get_cloud_exadata_infrastructure_config + create_cloud_exadata_infrastructure_config = parent_rpcs.create_cloud_exadata_infrastructure if parent_rpcs.respond_to? :create_cloud_exadata_infrastructure + @create_cloud_exadata_infrastructure = ::Gapic::Config::Method.new create_cloud_exadata_infrastructure_config + delete_cloud_exadata_infrastructure_config = parent_rpcs.delete_cloud_exadata_infrastructure if parent_rpcs.respond_to? :delete_cloud_exadata_infrastructure + @delete_cloud_exadata_infrastructure = ::Gapic::Config::Method.new delete_cloud_exadata_infrastructure_config + list_cloud_vm_clusters_config = parent_rpcs.list_cloud_vm_clusters if parent_rpcs.respond_to? :list_cloud_vm_clusters + @list_cloud_vm_clusters = ::Gapic::Config::Method.new list_cloud_vm_clusters_config + get_cloud_vm_cluster_config = parent_rpcs.get_cloud_vm_cluster if parent_rpcs.respond_to? :get_cloud_vm_cluster + @get_cloud_vm_cluster = ::Gapic::Config::Method.new get_cloud_vm_cluster_config + create_cloud_vm_cluster_config = parent_rpcs.create_cloud_vm_cluster if parent_rpcs.respond_to? :create_cloud_vm_cluster + @create_cloud_vm_cluster = ::Gapic::Config::Method.new create_cloud_vm_cluster_config + delete_cloud_vm_cluster_config = parent_rpcs.delete_cloud_vm_cluster if parent_rpcs.respond_to? :delete_cloud_vm_cluster + @delete_cloud_vm_cluster = ::Gapic::Config::Method.new delete_cloud_vm_cluster_config + list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements + @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config + list_db_servers_config = parent_rpcs.list_db_servers if parent_rpcs.respond_to? :list_db_servers + @list_db_servers = ::Gapic::Config::Method.new list_db_servers_config + list_db_nodes_config = parent_rpcs.list_db_nodes if parent_rpcs.respond_to? :list_db_nodes + @list_db_nodes = ::Gapic::Config::Method.new list_db_nodes_config + list_gi_versions_config = parent_rpcs.list_gi_versions if parent_rpcs.respond_to? :list_gi_versions + @list_gi_versions = ::Gapic::Config::Method.new list_gi_versions_config + list_minor_versions_config = parent_rpcs.list_minor_versions if parent_rpcs.respond_to? :list_minor_versions + @list_minor_versions = ::Gapic::Config::Method.new list_minor_versions_config + list_db_system_shapes_config = parent_rpcs.list_db_system_shapes if parent_rpcs.respond_to? :list_db_system_shapes + @list_db_system_shapes = ::Gapic::Config::Method.new list_db_system_shapes_config + list_autonomous_databases_config = parent_rpcs.list_autonomous_databases if parent_rpcs.respond_to? :list_autonomous_databases + @list_autonomous_databases = ::Gapic::Config::Method.new list_autonomous_databases_config + get_autonomous_database_config = parent_rpcs.get_autonomous_database if parent_rpcs.respond_to? :get_autonomous_database + @get_autonomous_database = ::Gapic::Config::Method.new get_autonomous_database_config + create_autonomous_database_config = parent_rpcs.create_autonomous_database if parent_rpcs.respond_to? :create_autonomous_database + @create_autonomous_database = ::Gapic::Config::Method.new create_autonomous_database_config + update_autonomous_database_config = parent_rpcs.update_autonomous_database if parent_rpcs.respond_to? :update_autonomous_database + @update_autonomous_database = ::Gapic::Config::Method.new update_autonomous_database_config + delete_autonomous_database_config = parent_rpcs.delete_autonomous_database if parent_rpcs.respond_to? :delete_autonomous_database + @delete_autonomous_database = ::Gapic::Config::Method.new delete_autonomous_database_config + restore_autonomous_database_config = parent_rpcs.restore_autonomous_database if parent_rpcs.respond_to? :restore_autonomous_database + @restore_autonomous_database = ::Gapic::Config::Method.new restore_autonomous_database_config + generate_autonomous_database_wallet_config = parent_rpcs.generate_autonomous_database_wallet if parent_rpcs.respond_to? :generate_autonomous_database_wallet + @generate_autonomous_database_wallet = ::Gapic::Config::Method.new generate_autonomous_database_wallet_config + list_autonomous_db_versions_config = parent_rpcs.list_autonomous_db_versions if parent_rpcs.respond_to? :list_autonomous_db_versions + @list_autonomous_db_versions = ::Gapic::Config::Method.new list_autonomous_db_versions_config + list_autonomous_database_character_sets_config = parent_rpcs.list_autonomous_database_character_sets if parent_rpcs.respond_to? :list_autonomous_database_character_sets + @list_autonomous_database_character_sets = ::Gapic::Config::Method.new list_autonomous_database_character_sets_config + list_autonomous_database_backups_config = parent_rpcs.list_autonomous_database_backups if parent_rpcs.respond_to? :list_autonomous_database_backups + @list_autonomous_database_backups = ::Gapic::Config::Method.new list_autonomous_database_backups_config + stop_autonomous_database_config = parent_rpcs.stop_autonomous_database if parent_rpcs.respond_to? :stop_autonomous_database + @stop_autonomous_database = ::Gapic::Config::Method.new stop_autonomous_database_config + start_autonomous_database_config = parent_rpcs.start_autonomous_database if parent_rpcs.respond_to? :start_autonomous_database + @start_autonomous_database = ::Gapic::Config::Method.new start_autonomous_database_config + restart_autonomous_database_config = parent_rpcs.restart_autonomous_database if parent_rpcs.respond_to? :restart_autonomous_database + @restart_autonomous_database = ::Gapic::Config::Method.new restart_autonomous_database_config + switchover_autonomous_database_config = parent_rpcs.switchover_autonomous_database if parent_rpcs.respond_to? :switchover_autonomous_database + @switchover_autonomous_database = ::Gapic::Config::Method.new switchover_autonomous_database_config + failover_autonomous_database_config = parent_rpcs.failover_autonomous_database if parent_rpcs.respond_to? :failover_autonomous_database + @failover_autonomous_database = ::Gapic::Config::Method.new failover_autonomous_database_config + list_odb_networks_config = parent_rpcs.list_odb_networks if parent_rpcs.respond_to? :list_odb_networks + @list_odb_networks = ::Gapic::Config::Method.new list_odb_networks_config + get_odb_network_config = parent_rpcs.get_odb_network if parent_rpcs.respond_to? :get_odb_network + @get_odb_network = ::Gapic::Config::Method.new get_odb_network_config + create_odb_network_config = parent_rpcs.create_odb_network if parent_rpcs.respond_to? :create_odb_network + @create_odb_network = ::Gapic::Config::Method.new create_odb_network_config + delete_odb_network_config = parent_rpcs.delete_odb_network if parent_rpcs.respond_to? :delete_odb_network + @delete_odb_network = ::Gapic::Config::Method.new delete_odb_network_config + list_odb_subnets_config = parent_rpcs.list_odb_subnets if parent_rpcs.respond_to? :list_odb_subnets + @list_odb_subnets = ::Gapic::Config::Method.new list_odb_subnets_config + get_odb_subnet_config = parent_rpcs.get_odb_subnet if parent_rpcs.respond_to? :get_odb_subnet + @get_odb_subnet = ::Gapic::Config::Method.new get_odb_subnet_config + create_odb_subnet_config = parent_rpcs.create_odb_subnet if parent_rpcs.respond_to? :create_odb_subnet + @create_odb_subnet = ::Gapic::Config::Method.new create_odb_subnet_config + delete_odb_subnet_config = parent_rpcs.delete_odb_subnet if parent_rpcs.respond_to? :delete_odb_subnet + @delete_odb_subnet = ::Gapic::Config::Method.new delete_odb_subnet_config + list_exadb_vm_clusters_config = parent_rpcs.list_exadb_vm_clusters if parent_rpcs.respond_to? :list_exadb_vm_clusters + @list_exadb_vm_clusters = ::Gapic::Config::Method.new list_exadb_vm_clusters_config + get_exadb_vm_cluster_config = parent_rpcs.get_exadb_vm_cluster if parent_rpcs.respond_to? :get_exadb_vm_cluster + @get_exadb_vm_cluster = ::Gapic::Config::Method.new get_exadb_vm_cluster_config + create_exadb_vm_cluster_config = parent_rpcs.create_exadb_vm_cluster if parent_rpcs.respond_to? :create_exadb_vm_cluster + @create_exadb_vm_cluster = ::Gapic::Config::Method.new create_exadb_vm_cluster_config + delete_exadb_vm_cluster_config = parent_rpcs.delete_exadb_vm_cluster if parent_rpcs.respond_to? :delete_exadb_vm_cluster + @delete_exadb_vm_cluster = ::Gapic::Config::Method.new delete_exadb_vm_cluster_config + update_exadb_vm_cluster_config = parent_rpcs.update_exadb_vm_cluster if parent_rpcs.respond_to? :update_exadb_vm_cluster + @update_exadb_vm_cluster = ::Gapic::Config::Method.new update_exadb_vm_cluster_config + remove_virtual_machine_exadb_vm_cluster_config = parent_rpcs.remove_virtual_machine_exadb_vm_cluster if parent_rpcs.respond_to? :remove_virtual_machine_exadb_vm_cluster + @remove_virtual_machine_exadb_vm_cluster = ::Gapic::Config::Method.new remove_virtual_machine_exadb_vm_cluster_config + list_exascale_db_storage_vaults_config = parent_rpcs.list_exascale_db_storage_vaults if parent_rpcs.respond_to? :list_exascale_db_storage_vaults + @list_exascale_db_storage_vaults = ::Gapic::Config::Method.new list_exascale_db_storage_vaults_config + get_exascale_db_storage_vault_config = parent_rpcs.get_exascale_db_storage_vault if parent_rpcs.respond_to? :get_exascale_db_storage_vault + @get_exascale_db_storage_vault = ::Gapic::Config::Method.new get_exascale_db_storage_vault_config + create_exascale_db_storage_vault_config = parent_rpcs.create_exascale_db_storage_vault if parent_rpcs.respond_to? :create_exascale_db_storage_vault + @create_exascale_db_storage_vault = ::Gapic::Config::Method.new create_exascale_db_storage_vault_config + delete_exascale_db_storage_vault_config = parent_rpcs.delete_exascale_db_storage_vault if parent_rpcs.respond_to? :delete_exascale_db_storage_vault + @delete_exascale_db_storage_vault = ::Gapic::Config::Method.new delete_exascale_db_storage_vault_config + list_db_system_initial_storage_sizes_config = parent_rpcs.list_db_system_initial_storage_sizes if parent_rpcs.respond_to? :list_db_system_initial_storage_sizes + @list_db_system_initial_storage_sizes = ::Gapic::Config::Method.new list_db_system_initial_storage_sizes_config + list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases + @list_databases = ::Gapic::Config::Method.new list_databases_config + get_database_config = parent_rpcs.get_database if parent_rpcs.respond_to? :get_database + @get_database = ::Gapic::Config::Method.new get_database_config + list_pluggable_databases_config = parent_rpcs.list_pluggable_databases if parent_rpcs.respond_to? :list_pluggable_databases + @list_pluggable_databases = ::Gapic::Config::Method.new list_pluggable_databases_config + get_pluggable_database_config = parent_rpcs.get_pluggable_database if parent_rpcs.respond_to? :get_pluggable_database + @get_pluggable_database = ::Gapic::Config::Method.new get_pluggable_database_config + list_db_systems_config = parent_rpcs.list_db_systems if parent_rpcs.respond_to? :list_db_systems + @list_db_systems = ::Gapic::Config::Method.new list_db_systems_config + get_db_system_config = parent_rpcs.get_db_system if parent_rpcs.respond_to? :get_db_system + @get_db_system = ::Gapic::Config::Method.new get_db_system_config + create_db_system_config = parent_rpcs.create_db_system if parent_rpcs.respond_to? :create_db_system + @create_db_system = ::Gapic::Config::Method.new create_db_system_config + delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system + @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config + list_goldengate_deployments_config = parent_rpcs.list_goldengate_deployments if parent_rpcs.respond_to? :list_goldengate_deployments + @list_goldengate_deployments = ::Gapic::Config::Method.new list_goldengate_deployments_config + get_goldengate_deployment_config = parent_rpcs.get_goldengate_deployment if parent_rpcs.respond_to? :get_goldengate_deployment + @get_goldengate_deployment = ::Gapic::Config::Method.new get_goldengate_deployment_config + create_goldengate_deployment_config = parent_rpcs.create_goldengate_deployment if parent_rpcs.respond_to? :create_goldengate_deployment + @create_goldengate_deployment = ::Gapic::Config::Method.new create_goldengate_deployment_config + delete_goldengate_deployment_config = parent_rpcs.delete_goldengate_deployment if parent_rpcs.respond_to? :delete_goldengate_deployment + @delete_goldengate_deployment = ::Gapic::Config::Method.new delete_goldengate_deployment_config + stop_goldengate_deployment_config = parent_rpcs.stop_goldengate_deployment if parent_rpcs.respond_to? :stop_goldengate_deployment + @stop_goldengate_deployment = ::Gapic::Config::Method.new stop_goldengate_deployment_config + start_goldengate_deployment_config = parent_rpcs.start_goldengate_deployment if parent_rpcs.respond_to? :start_goldengate_deployment + @start_goldengate_deployment = ::Gapic::Config::Method.new start_goldengate_deployment_config + list_goldengate_connections_config = parent_rpcs.list_goldengate_connections if parent_rpcs.respond_to? :list_goldengate_connections + @list_goldengate_connections = ::Gapic::Config::Method.new list_goldengate_connections_config + get_goldengate_connection_config = parent_rpcs.get_goldengate_connection if parent_rpcs.respond_to? :get_goldengate_connection + @get_goldengate_connection = ::Gapic::Config::Method.new get_goldengate_connection_config + create_goldengate_connection_config = parent_rpcs.create_goldengate_connection if parent_rpcs.respond_to? :create_goldengate_connection + @create_goldengate_connection = ::Gapic::Config::Method.new create_goldengate_connection_config + delete_goldengate_connection_config = parent_rpcs.delete_goldengate_connection if parent_rpcs.respond_to? :delete_goldengate_connection + @delete_goldengate_connection = ::Gapic::Config::Method.new delete_goldengate_connection_config + get_goldengate_deployment_version_config = parent_rpcs.get_goldengate_deployment_version if parent_rpcs.respond_to? :get_goldengate_deployment_version + @get_goldengate_deployment_version = ::Gapic::Config::Method.new get_goldengate_deployment_version_config + list_goldengate_deployment_versions_config = parent_rpcs.list_goldengate_deployment_versions if parent_rpcs.respond_to? :list_goldengate_deployment_versions + @list_goldengate_deployment_versions = ::Gapic::Config::Method.new list_goldengate_deployment_versions_config + get_goldengate_deployment_type_config = parent_rpcs.get_goldengate_deployment_type if parent_rpcs.respond_to? :get_goldengate_deployment_type + @get_goldengate_deployment_type = ::Gapic::Config::Method.new get_goldengate_deployment_type_config + list_goldengate_deployment_types_config = parent_rpcs.list_goldengate_deployment_types if parent_rpcs.respond_to? :list_goldengate_deployment_types + @list_goldengate_deployment_types = ::Gapic::Config::Method.new list_goldengate_deployment_types_config + get_goldengate_deployment_environment_config = parent_rpcs.get_goldengate_deployment_environment if parent_rpcs.respond_to? :get_goldengate_deployment_environment + @get_goldengate_deployment_environment = ::Gapic::Config::Method.new get_goldengate_deployment_environment_config + list_goldengate_deployment_environments_config = parent_rpcs.list_goldengate_deployment_environments if parent_rpcs.respond_to? :list_goldengate_deployment_environments + @list_goldengate_deployment_environments = ::Gapic::Config::Method.new list_goldengate_deployment_environments_config + get_goldengate_connection_type_config = parent_rpcs.get_goldengate_connection_type if parent_rpcs.respond_to? :get_goldengate_connection_type + @get_goldengate_connection_type = ::Gapic::Config::Method.new get_goldengate_connection_type_config + list_goldengate_connection_types_config = parent_rpcs.list_goldengate_connection_types if parent_rpcs.respond_to? :list_goldengate_connection_types + @list_goldengate_connection_types = ::Gapic::Config::Method.new list_goldengate_connection_types_config + list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions + @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config + list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets + @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config + list_goldengate_connection_assignments_config = parent_rpcs.list_goldengate_connection_assignments if parent_rpcs.respond_to? :list_goldengate_connection_assignments + @list_goldengate_connection_assignments = ::Gapic::Config::Method.new list_goldengate_connection_assignments_config + get_goldengate_connection_assignment_config = parent_rpcs.get_goldengate_connection_assignment if parent_rpcs.respond_to? :get_goldengate_connection_assignment + @get_goldengate_connection_assignment = ::Gapic::Config::Method.new get_goldengate_connection_assignment_config + create_goldengate_connection_assignment_config = parent_rpcs.create_goldengate_connection_assignment if parent_rpcs.respond_to? :create_goldengate_connection_assignment + @create_goldengate_connection_assignment = ::Gapic::Config::Method.new create_goldengate_connection_assignment_config + delete_goldengate_connection_assignment_config = parent_rpcs.delete_goldengate_connection_assignment if parent_rpcs.respond_to? :delete_goldengate_connection_assignment + @delete_goldengate_connection_assignment = ::Gapic::Config::Method.new delete_goldengate_connection_assignment_config + test_goldengate_connection_assignment_config = parent_rpcs.test_goldengate_connection_assignment if parent_rpcs.respond_to? :test_goldengate_connection_assignment + @test_goldengate_connection_assignment = ::Gapic::Config::Method.new test_goldengate_connection_assignment_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb new file mode 100644 index 000000000000..8cf0dcf36d98 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "googleauth" + +module Google + module Cloud + module OracleDatabase + module V1 + module OracleDatabase + # Credentials for the OracleDatabase API. + class Credentials < ::Google::Auth::Credentials + self.scope = [ + "https://www.googleapis.com/auth/cloud-platform" + ] + self.env_vars = [ + "GOOGLE_CLOUD_CREDENTIALS", + "GOOGLE_CLOUD_KEYFILE", + "GCLOUD_KEYFILE", + "GOOGLE_CLOUD_CREDENTIALS_JSON", + "GOOGLE_CLOUD_KEYFILE_JSON", + "GCLOUD_KEYFILE_JSON" + ] + self.paths = [ + "~/.config/google_cloud/application_default_credentials.json" + ] + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb new file mode 100644 index 000000000000..6319605163d9 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb @@ -0,0 +1,841 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" +require "google/longrunning/operations_pb" + +module Google + module Cloud + module OracleDatabase + module V1 + module OracleDatabase + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the OracleDatabase Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the OracleDatabase Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # These require statements are intentionally placed here to initialize + # the gRPC module only when it's required. + # See https://github.com/googleapis/toolkit/issues/446 + require "gapic/grpc" + require "google/longrunning/operations_services_pb" + + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = ::Gapic::ServiceStub.new( + ::Google::Longrunning::Operations::Stub, + credentials: credentials, + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + channel_args: @config.channel_args, + interceptors: @config.interceptors, + channel_pool_config: @config.channel_pool + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| + wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } + response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes 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`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts 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`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Protobuf::Empty] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Waits until the specified long-running operation is done or reaches at most + # a specified timeout, returning the latest state. If the operation is + # already done, the latest state is immediately returned. If the timeout + # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + # timeout is used. If the server does not support this method, it returns + # `google.rpc.Code.UNIMPLEMENTED`. + # Note that this method is on a best-effort basis. It may return the latest + # state before the specified timeout (including immediately), meaning even an + # immediate response is no guarantee that the operation is done. + # + # @overload wait_operation(request, options = nil) + # Pass arguments to `wait_operation` via a request object, either of type + # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload wait_operation(name: nil, timeout: nil) + # Pass arguments to `wait_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to wait on. + # @param timeout [::Google::Protobuf::Duration, ::Hash] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::WaitOperationRequest.new + # + # # Call the wait_operation method. + # result = client.wait_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def wait_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.wait_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, + metadata: metadata, + retry_policy: @config.rpcs.wait_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations API. + # + # This class represents the configuration for Operations, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Longrunning::Operations::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) + config_attr :interceptors, nil, ::Array, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration for the channel pool + # @return [::Gapic::ServiceStub::ChannelPool::Configuration] + # + def channel_pool + @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + ## + # RPC-specific configuration for `wait_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :wait_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation + @wait_operation = ::Gapic::Config::Method.new wait_operation_config + + yield self if block_given? + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb new file mode 100644 index 000000000000..c3ceeacf7397 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb @@ -0,0 +1,451 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + module OracleDatabase + # Path helper methods for the OracleDatabase API. + module Paths + ## + # Create a fully-qualified AutonomousDatabase resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}` + # + # @param project [String] + # @param location [String] + # @param autonomous_database [String] + # + # @return [::String] + def autonomous_database_path project:, location:, autonomous_database: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/autonomousDatabases/#{autonomous_database}" + end + + ## + # Create a fully-qualified CloudExadataInfrastructure resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}` + # + # @param project [String] + # @param location [String] + # @param cloud_exadata_infrastructure [String] + # + # @return [::String] + def cloud_exadata_infrastructure_path project:, location:, cloud_exadata_infrastructure: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/cloudExadataInfrastructures/#{cloud_exadata_infrastructure}" + end + + ## + # Create a fully-qualified CloudVmCluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}` + # + # @param project [String] + # @param location [String] + # @param cloud_vm_cluster [String] + # + # @return [::String] + def cloud_vm_cluster_path project:, location:, cloud_vm_cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/cloudVmClusters/#{cloud_vm_cluster}" + end + + ## + # Create a fully-qualified CryptoKey resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + # + # @param project [String] + # @param location [String] + # @param key_ring [String] + # @param crypto_key [String] + # + # @return [::String] + def crypto_key_path project:, location:, key_ring:, crypto_key: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" + + "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" + end + + ## + # Create a fully-qualified Database resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/databases/{database}` + # + # @param project [String] + # @param location [String] + # @param database [String] + # + # @return [::String] + def database_path project:, location:, database: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/databases/#{database}" + end + + ## + # Create a fully-qualified DbSystem resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/dbSystems/{db_system}` + # + # @param project [String] + # @param location [String] + # @param db_system [String] + # + # @return [::String] + def db_system_path project:, location:, db_system: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/dbSystems/#{db_system}" + end + + ## + # Create a fully-qualified ExadbVmCluster resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}` + # + # @param project [String] + # @param location [String] + # @param exadb_vm_cluster [String] + # + # @return [::String] + def exadb_vm_cluster_path project:, location:, exadb_vm_cluster: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/exadbVmClusters/#{exadb_vm_cluster}" + end + + ## + # Create a fully-qualified ExascaleDbStorageVault resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}` + # + # @param project [String] + # @param location [String] + # @param exascale_db_storage_vault [String] + # + # @return [::String] + def exascale_db_storage_vault_path project:, location:, exascale_db_storage_vault: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/exascaleDbStorageVaults/#{exascale_db_storage_vault}" + end + + ## + # Create a fully-qualified GiVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/giVersions/{gi_version}` + # + # @param project [String] + # @param location [String] + # @param gi_version [String] + # + # @return [::String] + def gi_version_path project:, location:, gi_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/giVersions/#{gi_version}" + end + + ## + # Create a fully-qualified GoldengateConnection resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}` + # + # @param project [String] + # @param location [String] + # @param goldengate_connection [String] + # + # @return [::String] + def goldengate_connection_path project:, location:, goldengate_connection: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateConnections/#{goldengate_connection}" + end + + ## + # Create a fully-qualified GoldengateConnectionAssignment resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateConnectionAssignments/{goldengate_connection_assignment}` + # + # @param project [String] + # @param location [String] + # @param goldengate_connection_assignment [String] + # + # @return [::String] + def goldengate_connection_assignment_path project:, location:, goldengate_connection_assignment: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateConnectionAssignments/#{goldengate_connection_assignment}" + end + + ## + # Create a fully-qualified GoldengateConnectionType resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}` + # + # @param project [String] + # @param location [String] + # @param goldengate_connection_type [String] + # + # @return [::String] + def goldengate_connection_type_path project:, location:, goldengate_connection_type: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateConnectionTypes/#{goldengate_connection_type}" + end + + ## + # Create a fully-qualified GoldengateDeployment resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}` + # + # @param project [String] + # @param location [String] + # @param goldengate_deployment [String] + # + # @return [::String] + def goldengate_deployment_path project:, location:, goldengate_deployment: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateDeployments/#{goldengate_deployment}" + end + + ## + # Create a fully-qualified GoldengateDeploymentEnvironment resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}` + # + # @param project [String] + # @param location [String] + # @param goldengate_deployment_environment [String] + # + # @return [::String] + def goldengate_deployment_environment_path project:, location:, goldengate_deployment_environment: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateDeploymentEnvironments/#{goldengate_deployment_environment}" + end + + ## + # Create a fully-qualified GoldengateDeploymentType resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}` + # + # @param project [String] + # @param location [String] + # @param goldengate_deployment_type [String] + # + # @return [::String] + def goldengate_deployment_type_path project:, location:, goldengate_deployment_type: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateDeploymentTypes/#{goldengate_deployment_type}" + end + + ## + # Create a fully-qualified GoldengateDeploymentVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}` + # + # @param project [String] + # @param location [String] + # @param goldengate_deployment_version [String] + # + # @return [::String] + def goldengate_deployment_version_path project:, location:, goldengate_deployment_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateDeploymentVersions/#{goldengate_deployment_version}" + end + + ## + # Create a fully-qualified Location resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}` + # + # @param project [String] + # @param location [String] + # + # @return [::String] + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/locations/#{location}" + end + + ## + # Create a fully-qualified Network resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/global/networks/{network}` + # + # @param project [String] + # @param network [String] + # + # @return [::String] + def network_path project:, network: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + + "projects/#{project}/global/networks/#{network}" + end + + ## + # Create a fully-qualified OdbNetwork resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/odbNetworks/{odb_network}` + # + # @param project [String] + # @param location [String] + # @param odb_network [String] + # + # @return [::String] + def odb_network_path project:, location:, odb_network: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/odbNetworks/#{odb_network}" + end + + ## + # Create a fully-qualified OdbSubnet resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}` + # + # @param project [String] + # @param location [String] + # @param odb_network [String] + # @param odb_subnet [String] + # + # @return [::String] + def odb_subnet_path project:, location:, odb_network:, odb_subnet: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + raise ::ArgumentError, "odb_network cannot contain /" if odb_network.to_s.include? "/" + + "projects/#{project}/locations/#{location}/odbNetworks/#{odb_network}/odbSubnets/#{odb_subnet}" + end + + ## + # Create a fully-qualified PluggableDatabase resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/pluggableDatabases/{pluggable_database}` + # + # @param project [String] + # @param location [String] + # @param pluggable_database [String] + # + # @return [::String] + def pluggable_database_path project:, location:, pluggable_database: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/pluggableDatabases/#{pluggable_database}" + end + + ## + # Create a fully-qualified SecretVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/secrets/{secret}/versions/{secret_version}` + # + # @param project [String] + # @param secret [String] + # @param secret_version [String] + # + # @return [::String] + def secret_version_path project:, secret:, secret_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" + + "projects/#{project}/secrets/#{secret}/versions/#{secret_version}" + end + + extend self + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb new file mode 100644 index 000000000000..05bbcd80a48e --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/rest" +require "gapic/config" +require "gapic/config/method" + +require "google/cloud/oracle_database/v1/version" +require "google/cloud/oracle_database/v1/bindings_override" + +require "google/cloud/oracle_database/v1/oracle_database/credentials" +require "google/cloud/oracle_database/v1/oracle_database/paths" +require "google/cloud/oracle_database/v1/oracle_database/rest/operations" +require "google/cloud/oracle_database/v1/oracle_database/rest/client" + +module Google + module Cloud + module OracleDatabase + module V1 + ## + # Service describing handlers for resources + # + # To load this service and instantiate a REST client: + # + # require "google/cloud/oracle_database/v1/oracle_database/rest" + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + module OracleDatabase + # Client for the REST transport + module Rest + end + end + end + end + end +end + +helper_path = ::File.join __dir__, "rest", "helpers.rb" +require "google/cloud/oracle_database/v1/oracle_database/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb new file mode 100644 index 000000000000..27ca944e9d8d --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb @@ -0,0 +1,8729 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/errors" +require "google/cloud/oracledatabase/v1/oracledatabase_pb" +require "google/cloud/oracle_database/v1/oracle_database/rest/service_stub" +require "google/cloud/location/rest" + +module Google + module Cloud + module OracleDatabase + module V1 + module OracleDatabase + module Rest + ## + # REST client for the OracleDatabase service. + # + # Service describing handlers for resources + # + class Client + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$" + + include Paths + + # @private + attr_reader :oracle_database_stub + + ## + # Configure the OracleDatabase Client class. + # + # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @example + # + # # Modify the configuration for all OracleDatabase clients + # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def self.configure + @configure ||= begin + namespace = ["Google", "Cloud", "OracleDatabase", "V1"] + parent_config = while namespace.any? + parent_name = namespace.join "::" + parent_const = const_get parent_name + break parent_const.configure if parent_const.respond_to? :configure + namespace.pop + end + default_config = Client::Configuration.new parent_config + + default_config.timeout = 60.0 + + default_config.rpcs.list_cloud_exadata_infrastructures.timeout = 60.0 + default_config.rpcs.list_cloud_exadata_infrastructures.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_cloud_exadata_infrastructure.timeout = 60.0 + default_config.rpcs.get_cloud_exadata_infrastructure.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_cloud_vm_clusters.timeout = 60.0 + default_config.rpcs.list_cloud_vm_clusters.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_cloud_vm_cluster.timeout = 60.0 + default_config.rpcs.get_cloud_vm_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_entitlements.timeout = 60.0 + default_config.rpcs.list_entitlements.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_servers.timeout = 60.0 + default_config.rpcs.list_db_servers.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_nodes.timeout = 60.0 + default_config.rpcs.list_db_nodes.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_gi_versions.timeout = 60.0 + default_config.rpcs.list_gi_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_minor_versions.timeout = 60.0 + default_config.rpcs.list_minor_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_system_shapes.timeout = 60.0 + default_config.rpcs.list_db_system_shapes.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_autonomous_databases.timeout = 60.0 + default_config.rpcs.list_autonomous_databases.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_autonomous_database.timeout = 60.0 + default_config.rpcs.get_autonomous_database.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_autonomous_db_versions.timeout = 60.0 + default_config.rpcs.list_autonomous_db_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_autonomous_database_character_sets.timeout = 60.0 + default_config.rpcs.list_autonomous_database_character_sets.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_autonomous_database_backups.timeout = 60.0 + default_config.rpcs.list_autonomous_database_backups.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_odb_networks.timeout = 60.0 + default_config.rpcs.list_odb_networks.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_odb_network.timeout = 60.0 + default_config.rpcs.get_odb_network.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_odb_subnets.timeout = 60.0 + default_config.rpcs.list_odb_subnets.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_odb_subnet.timeout = 60.0 + default_config.rpcs.get_odb_subnet.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_exadb_vm_clusters.timeout = 60.0 + default_config.rpcs.list_exadb_vm_clusters.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_exadb_vm_cluster.timeout = 60.0 + default_config.rpcs.get_exadb_vm_cluster.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_exascale_db_storage_vaults.timeout = 60.0 + default_config.rpcs.list_exascale_db_storage_vaults.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_exascale_db_storage_vault.timeout = 60.0 + default_config.rpcs.get_exascale_db_storage_vault.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_system_initial_storage_sizes.timeout = 60.0 + default_config.rpcs.list_db_system_initial_storage_sizes.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_databases.timeout = 60.0 + default_config.rpcs.list_databases.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_database.timeout = 60.0 + default_config.rpcs.get_database.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_pluggable_databases.timeout = 60.0 + default_config.rpcs.list_pluggable_databases.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_pluggable_database.timeout = 60.0 + default_config.rpcs.get_pluggable_database.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_systems.timeout = 60.0 + default_config.rpcs.list_db_systems.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_db_system.timeout = 60.0 + default_config.rpcs.get_db_system.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployments.timeout = 60.0 + default_config.rpcs.list_goldengate_deployments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_deployment.timeout = 60.0 + default_config.rpcs.get_goldengate_deployment.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connections.timeout = 60.0 + default_config.rpcs.list_goldengate_connections.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_connection.timeout = 60.0 + default_config.rpcs.get_goldengate_connection.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_versions.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_types.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_types.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_environments.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_environments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connection_types.timeout = 60.0 + default_config.rpcs.list_goldengate_connection_types.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_db_versions.timeout = 60.0 + default_config.rpcs.list_db_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_database_character_sets.timeout = 60.0 + default_config.rpcs.list_database_character_sets.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connection_assignments.timeout = 60.0 + default_config.rpcs.list_goldengate_connection_assignments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_connection_assignment.timeout = 60.0 + default_config.rpcs.get_goldengate_connection_assignment.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config + end + yield @configure if block_given? + @configure + end + + ## + # Configure the OracleDatabase Client instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Client.configure}. + # + # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration} + # for a description of the configuration fields. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Client::Configuration] + # + # @return [Client::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @oracle_database_stub.universe_domain + end + + ## + # Create a new OracleDatabase REST client object. + # + # @example + # + # # Create a client using the default configuration + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a client using a custom configuration + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + # config.timeout = 10.0 + # end + # + # @yield [config] Configure the OracleDatabase client. + # @yieldparam config [Client::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Client.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + # Use self-signed JWT if the endpoint is unchanged from default, + # but only if the default endpoint does not have a region prefix. + enable_self_signed_jwt = @config.endpoint.nil? || + (@config.endpoint == Configuration::DEFAULT_ENDPOINT && + !@config.endpoint.split(".").first.include?("-")) + credentials ||= Credentials.default scope: @config.scope, + enable_self_signed_jwt: enable_self_signed_jwt + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Operations.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @config.endpoint + config.universe_domain = @config.universe_domain + end + + @oracle_database_stub = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials, + logger: @config.logger + ) + + @oracle_database_stub.logger(stub: true)&.info do |entry| + entry.set_system_name + entry.set_service + entry.message = "Created client for #{entry.service}" + entry.set_credentials_fields credentials + entry.set "customEndpoint", @config.endpoint if @config.endpoint + entry.set "defaultTimeout", @config.timeout if @config.timeout + entry.set "quotaProject", @quota_project_id if @quota_project_id + end + + @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| + config.credentials = credentials + config.quota_project = @quota_project_id + config.endpoint = @oracle_database_stub.endpoint + config.universe_domain = @oracle_database_stub.universe_domain + config.bindings_override = @config.bindings_override + config.logger = @oracle_database_stub.logger if config.respond_to? :logger= + end + end + + ## + # Get the associated client for long-running operations. + # + # @return [::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Operations] + # + attr_reader :operations_client + + ## + # Get the associated client for mix-in of the Locations. + # + # @return [Google::Cloud::Location::Locations::Rest::Client] + # + attr_reader :location_client + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger + @oracle_database_stub.logger + end + + # Service calls + + ## + # Lists Exadata Infrastructures in a given project and location. + # + # @overload list_cloud_exadata_infrastructures(request, options = nil) + # Pass arguments to `list_cloud_exadata_infrastructures` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_cloud_exadata_infrastructures` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for CloudExadataInfrastructure in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Exadata infrastructures will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new + # + # # Call the list_cloud_exadata_infrastructures method. + # result = client.list_cloud_exadata_infrastructures request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. + # p item + # end + # + def list_cloud_exadata_infrastructures request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_cloud_exadata_infrastructures.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_cloud_exadata_infrastructures.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_cloud_exadata_infrastructures.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_cloud_exadata_infrastructures request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_cloud_exadata_infrastructures, "cloud_exadata_infrastructures", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single Exadata Infrastructure. + # + # @overload get_cloud_exadata_infrastructure(request, options = nil) + # Pass arguments to `get_cloud_exadata_infrastructure` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_cloud_exadata_infrastructure(name: nil) + # Pass arguments to `get_cloud_exadata_infrastructure` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Cloud Exadata Infrastructure in the following + # format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new + # + # # Call the get_cloud_exadata_infrastructure method. + # result = client.get_cloud_exadata_infrastructure request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. + # p result + # + def get_cloud_exadata_infrastructure request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_cloud_exadata_infrastructure.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_cloud_exadata_infrastructure.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_cloud_exadata_infrastructure.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_cloud_exadata_infrastructure request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Exadata Infrastructure in a given project and location. + # + # @overload create_cloud_exadata_infrastructure(request, options = nil) + # Pass arguments to `create_cloud_exadata_infrastructure` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_cloud_exadata_infrastructure(parent: nil, cloud_exadata_infrastructure_id: nil, cloud_exadata_infrastructure: nil, request_id: nil) + # Pass arguments to `create_cloud_exadata_infrastructure` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for CloudExadataInfrastructure in the following + # format: projects/\\{project}/locations/\\{location}. + # @param cloud_exadata_infrastructure_id [::String] + # Required. The ID of the Exadata Infrastructure to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param cloud_exadata_infrastructure [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure, ::Hash] + # Required. Details of the Exadata Infrastructure instance to create. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new + # + # # Call the create_cloud_exadata_infrastructure method. + # result = client.create_cloud_exadata_infrastructure request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_cloud_exadata_infrastructure request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_cloud_exadata_infrastructure.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_cloud_exadata_infrastructure.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_cloud_exadata_infrastructure.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_cloud_exadata_infrastructure request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Exadata Infrastructure. + # + # @overload delete_cloud_exadata_infrastructure(request, options = nil) + # Pass arguments to `delete_cloud_exadata_infrastructure` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_cloud_exadata_infrastructure(name: nil, request_id: nil, force: nil) + # Pass arguments to `delete_cloud_exadata_infrastructure` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Cloud Exadata Infrastructure in the following + # format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @param force [::Boolean] + # Optional. If set to true, all VM clusters for this Exadata Infrastructure + # will be deleted. An Exadata Infrastructure can only be deleted once all its + # VM clusters have been deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new + # + # # Call the delete_cloud_exadata_infrastructure method. + # result = client.delete_cloud_exadata_infrastructure request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_cloud_exadata_infrastructure request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_cloud_exadata_infrastructure.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_cloud_exadata_infrastructure.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_cloud_exadata_infrastructure.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_cloud_exadata_infrastructure request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the VM Clusters in a given project and location. + # + # @overload list_cloud_vm_clusters(request, options = nil) + # Pass arguments to `list_cloud_vm_clusters` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_cloud_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_cloud_vm_clusters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The number of VM clusters to return. + # If unspecified, at most 50 VM clusters will be returned. + # The maximum value is 1,000. + # @param page_token [::String] + # Optional. A token identifying the page of results the server returns. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new + # + # # Call the list_cloud_vm_clusters method. + # result = client.list_cloud_vm_clusters request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudVmCluster. + # p item + # end + # + def list_cloud_vm_clusters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_cloud_vm_clusters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_cloud_vm_clusters.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_cloud_vm_clusters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_cloud_vm_clusters request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_cloud_vm_clusters, "cloud_vm_clusters", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single VM Cluster. + # + # @overload get_cloud_vm_cluster(request, options = nil) + # Pass arguments to `get_cloud_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_cloud_vm_cluster(name: nil) + # Pass arguments to `get_cloud_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Cloud VM Cluster in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new + # + # # Call the get_cloud_vm_cluster method. + # result = client.get_cloud_vm_cluster request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudVmCluster. + # p result + # + def get_cloud_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_cloud_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_cloud_vm_cluster.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_cloud_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_cloud_vm_cluster request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new VM Cluster in a given project and location. + # + # @overload create_cloud_vm_cluster(request, options = nil) + # Pass arguments to `create_cloud_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_cloud_vm_cluster(parent: nil, cloud_vm_cluster_id: nil, cloud_vm_cluster: nil, request_id: nil) + # Pass arguments to `create_cloud_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @param cloud_vm_cluster_id [::String] + # Required. The ID of the VM Cluster to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @param cloud_vm_cluster [::Google::Cloud::OracleDatabase::V1::CloudVmCluster, ::Hash] + # Required. The resource being created + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new + # + # # Call the create_cloud_vm_cluster method. + # result = client.create_cloud_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_cloud_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_cloud_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_cloud_vm_cluster.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_cloud_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_cloud_vm_cluster request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single VM Cluster. + # + # @overload delete_cloud_vm_cluster(request, options = nil) + # Pass arguments to `delete_cloud_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_cloud_vm_cluster(name: nil, request_id: nil, force: nil) + # Pass arguments to `delete_cloud_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Cloud VM Cluster in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @param force [::Boolean] + # Optional. If set to true, all child resources for the VM Cluster will be + # deleted. A VM Cluster can only be deleted once all its child resources have + # been deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new + # + # # Call the delete_cloud_vm_cluster method. + # result = client.delete_cloud_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_cloud_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_cloud_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_cloud_vm_cluster.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_cloud_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_cloud_vm_cluster request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the entitlements in a given project. + # + # @overload list_entitlements(request, options = nil) + # Pass arguments to `list_entitlements` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_entitlements(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_entitlements` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the entitlement in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 entitlements will be returned. + # The maximum value is 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new + # + # # Call the list_entitlements method. + # result = client.list_entitlements request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Entitlement. + # p item + # end + # + def list_entitlements request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_entitlements.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_entitlements.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_entitlements.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_entitlements request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_entitlements, "entitlements", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the database servers of an Exadata Infrastructure instance. + # + # @overload list_db_servers(request, options = nil) + # Pass arguments to `list_db_servers` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbServersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_db_servers(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_db_servers` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for database server in the following format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloudExadataInfrastructure}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 db servers will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new + # + # # Call the list_db_servers method. + # result = client.list_db_servers request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbServer. + # p item + # end + # + def list_db_servers request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_db_servers.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_db_servers.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_db_servers.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_db_servers request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_servers, "db_servers", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the database nodes of a VM Cluster. + # + # @overload list_db_nodes(request, options = nil) + # Pass arguments to `list_db_nodes` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_db_nodes(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_db_nodes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for database node in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}. + # . + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 db nodes will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the node should return. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new + # + # # Call the list_db_nodes method. + # result = client.list_db_nodes request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbNode. + # p item + # end + # + def list_db_nodes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_db_nodes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_db_nodes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_db_nodes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_db_nodes request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_nodes, "db_nodes", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the valid Oracle Grid Infrastructure (GI) versions for the given + # project and location. + # + # @overload list_gi_versions(request, options = nil) + # Pass arguments to `list_gi_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_gi_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for Grid Infrastructure Version in the following + # format: Format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions + # will be returned. The maximum value is 1000; values above 1000 will be + # reset to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # shape, gcp_oracle_zone and gi_version fields are supported in this format: + # `shape="{shape}"`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new + # + # # Call the list_gi_versions method. + # result = client.list_gi_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GiVersion. + # p item + # end + # + def list_gi_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_gi_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_gi_versions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_gi_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_gi_versions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_gi_versions, "gi_versions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the valid minor versions for the given + # project, location, gi version and shape family. + # + # @overload list_minor_versions(request, options = nil) + # Pass arguments to `list_minor_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_minor_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_minor_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the MinorVersion resource with the format: + # projects/\\{project}/locations/\\{location}/giVersions/\\{gi_version} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 System Versions will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # Only shapeFamily and gcp_oracle_zone_id are supported in this format: + # `shape_family="{shapeFamily}" AND + # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new + # + # # Call the list_minor_versions method. + # result = client.list_minor_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::MinorVersion. + # p item + # end + # + def list_minor_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_minor_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_minor_versions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_minor_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_minor_versions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_minor_versions, "minor_versions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the database system shapes available for the project and location. + # + # @overload list_db_system_shapes(request, options = nil) + # Pass arguments to `list_db_system_shapes` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_db_system_shapes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for Database System Shapes in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 database system shapes will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # gcp_oracle_zone_id field is supported in this format: + # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new + # + # # Call the list_db_system_shapes method. + # result = client.list_db_system_shapes request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemShape. + # p item + # end + # + def list_db_system_shapes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_db_system_shapes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_db_system_shapes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_db_system_shapes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_db_system_shapes request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_system_shapes, "db_system_shapes", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the Autonomous Databases in a given project and location. + # + # @overload list_autonomous_databases(request, options = nil) + # Pass arguments to `list_autonomous_databases` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_autonomous_databases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_autonomous_databases` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous Database will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new + # + # # Call the list_autonomous_databases method. + # result = client.list_autonomous_databases request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase. + # p item + # end + # + def list_autonomous_databases request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_autonomous_databases.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_autonomous_databases.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_autonomous_databases.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_autonomous_databases request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_databases, "autonomous_databases", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the details of a single Autonomous Database. + # + # @overload get_autonomous_database(request, options = nil) + # Pass arguments to `get_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_autonomous_database(name: nil) + # Pass arguments to `get_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new + # + # # Call the get_autonomous_database method. + # result = client.get_autonomous_database request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabase. + # p result + # + def get_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_autonomous_database request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Autonomous Database in a given project and location. + # + # @overload create_autonomous_database(request, options = nil) + # Pass arguments to `create_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_autonomous_database(parent: nil, autonomous_database_id: nil, autonomous_database: nil, request_id: nil) + # Pass arguments to `create_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @param autonomous_database_id [::String] + # Required. The ID of the Autonomous Database to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash] + # Required. The Autonomous Database being created. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new + # + # # Call the create_autonomous_database method. + # result = client.create_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates the parameters of a single Autonomous Database. + # + # @overload update_autonomous_database(request, options = nil) + # Pass arguments to `update_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_autonomous_database(update_mask: nil, autonomous_database: nil, request_id: nil) + # Pass arguments to `update_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # 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. + # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash] + # Required. The resource being updated + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new + # + # # Call the update_autonomous_database method. + # result = client.update_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.update_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Autonomous Database. + # + # @overload delete_autonomous_database(request, options = nil) + # Pass arguments to `delete_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_autonomous_database(name: nil, request_id: nil) + # Pass arguments to `delete_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new + # + # # Call the delete_autonomous_database method. + # result = client.delete_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Restores a single Autonomous Database. + # + # @overload restore_autonomous_database(request, options = nil) + # Pass arguments to `restore_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload restore_autonomous_database(name: nil, restore_time: nil) + # Pass arguments to `restore_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param restore_time [::Google::Protobuf::Timestamp, ::Hash] + # Required. The time and date to restore the database to. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new + # + # # Call the restore_autonomous_database method. + # result = client.restore_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def restore_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.restore_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.restore_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.restore_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.restore_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Generates a wallet for an Autonomous Database. + # + # @overload generate_autonomous_database_wallet(request, options = nil) + # Pass arguments to `generate_autonomous_database_wallet` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload generate_autonomous_database_wallet(name: nil, type: nil, is_regional: nil, password: nil) + # Pass arguments to `generate_autonomous_database_wallet` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param type [::Google::Cloud::OracleDatabase::V1::GenerateType] + # Optional. The type of wallet generation for the Autonomous Database. The + # default value is SINGLE. + # @param is_regional [::Boolean] + # Optional. True when requesting regional connection strings in PDB connect + # info, applicable to cross-region Data Guard only. + # @param password [::String] + # Required. The password used to encrypt the keys inside the wallet. The + # password must be a minimum of 8 characters. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new + # + # # Call the generate_autonomous_database_wallet method. + # result = client.generate_autonomous_database_wallet request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse. + # p result + # + def generate_autonomous_database_wallet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.generate_autonomous_database_wallet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.generate_autonomous_database_wallet.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.generate_autonomous_database_wallet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.generate_autonomous_database_wallet request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the available Autonomous Database versions for a project and + # location. + # + # @overload list_autonomous_db_versions(request, options = nil) + # Pass arguments to `list_autonomous_db_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_autonomous_db_versions(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_autonomous_db_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Versions will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new + # + # # Call the list_autonomous_db_versions method. + # result = client.list_autonomous_db_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion. + # p item + # end + # + def list_autonomous_db_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_autonomous_db_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_autonomous_db_versions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_autonomous_db_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_autonomous_db_versions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_db_versions, "autonomous_db_versions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists Autonomous Database Character Sets in a given project and location. + # + # @overload list_autonomous_database_character_sets(request, options = nil) + # Pass arguments to `list_autonomous_database_character_sets` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_autonomous_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_autonomous_database_character_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Character Sets will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # **character_set_type** field is supported in the following format: + # `character_set_type="{characterSetType}"`. Accepted values include + # `DATABASE` and `NATIONAL`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new + # + # # Call the list_autonomous_database_character_sets method. + # result = client.list_autonomous_database_character_sets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet. + # p item + # end + # + def list_autonomous_database_character_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_autonomous_database_character_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_autonomous_database_character_sets.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_autonomous_database_character_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_autonomous_database_character_sets request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_character_sets, "autonomous_database_character_sets", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the long-term and automatic backups of an Autonomous Database. + # + # @overload list_autonomous_database_backups(request, options = nil) + # Pass arguments to `list_autonomous_database_backups` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_autonomous_database_backups(parent: nil, filter: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_autonomous_database_backups` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for ListAutonomousDatabaseBackups in the + # following format: projects/\\{project}/locations/\\{location}. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # **autonomous_database_id** field is supported in the following format: + # `autonomous_database_id="{autonomous_database_id}"`. The accepted values + # must be a valid Autonomous Database ID, limited to the naming + # restrictions of the ID: ^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$). + # The ID must start with a letter, end with a letter or a number, and be + # a maximum of 63 characters. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Backups will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new + # + # # Call the list_autonomous_database_backups method. + # result = client.list_autonomous_database_backups request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup. + # p item + # end + # + def list_autonomous_database_backups request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_autonomous_database_backups.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_autonomous_database_backups.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_autonomous_database_backups.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_autonomous_database_backups request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_backups, "autonomous_database_backups", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Stops an Autonomous Database. + # + # @overload stop_autonomous_database(request, options = nil) + # Pass arguments to `stop_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload stop_autonomous_database(name: nil) + # Pass arguments to `stop_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new + # + # # Call the stop_autonomous_database method. + # result = client.stop_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def stop_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.stop_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.stop_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.stop_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.stop_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts an Autonomous Database. + # + # @overload start_autonomous_database(request, options = nil) + # Pass arguments to `start_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload start_autonomous_database(name: nil) + # Pass arguments to `start_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new + # + # # Call the start_autonomous_database method. + # result = client.start_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def start_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.start_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.start_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.start_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.start_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Restarts an Autonomous Database. + # + # @overload restart_autonomous_database(request, options = nil) + # Pass arguments to `restart_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload restart_autonomous_database(name: nil) + # Pass arguments to `restart_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new + # + # # Call the restart_autonomous_database method. + # result = client.restart_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def restart_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.restart_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.restart_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.restart_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.restart_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Initiates a switchover of specified autonomous database to the associated + # peer database. + # + # @overload switchover_autonomous_database(request, options = nil) + # Pass arguments to `switchover_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload switchover_autonomous_database(name: nil, peer_autonomous_database: nil) + # Pass arguments to `switchover_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param peer_autonomous_database [::String] + # Optional. The peer database name to switch over to. Required for + # cross-region standby, and must be omitted for in-region Data Guard. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new + # + # # Call the switchover_autonomous_database method. + # result = client.switchover_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def switchover_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.switchover_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.switchover_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.switchover_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.switchover_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Initiates a failover to target autonomous database from the associated + # primary database. + # + # @overload failover_autonomous_database(request, options = nil) + # Pass arguments to `failover_autonomous_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload failover_autonomous_database(name: nil, peer_autonomous_database: nil) + # Pass arguments to `failover_autonomous_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @param peer_autonomous_database [::String] + # Optional. The peer database name to fail over to. Required for cross-region + # standby, and must be omitted for in-region Data Guard. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new + # + # # Call the failover_autonomous_database method. + # result = client.failover_autonomous_database request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def failover_autonomous_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.failover_autonomous_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.failover_autonomous_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.failover_autonomous_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.failover_autonomous_database request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists the ODB Networks in a given project and location. + # + # @overload list_odb_networks(request, options = nil) + # Pass arguments to `list_odb_networks` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_odb_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_odb_networks` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the ODB Network in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ODB Networks will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new + # + # # Call the list_odb_networks method. + # result = client.list_odb_networks request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbNetwork. + # p item + # end + # + def list_odb_networks request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_odb_networks.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_odb_networks.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_odb_networks.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_odb_networks request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_odb_networks, "odb_networks", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single ODB Network. + # + # @overload get_odb_network(request, options = nil) + # Pass arguments to `get_odb_network` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_odb_network(name: nil) + # Pass arguments to `get_odb_network` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the OdbNetwork in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbNetwork] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new + # + # # Call the get_odb_network method. + # result = client.get_odb_network request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbNetwork. + # p result + # + def get_odb_network request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_odb_network.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_odb_network.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_odb_network.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_odb_network request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ODB Network in a given project and location. + # + # @overload create_odb_network(request, options = nil) + # Pass arguments to `create_odb_network` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_odb_network(parent: nil, odb_network_id: nil, odb_network: nil, request_id: nil) + # Pass arguments to `create_odb_network` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the OdbNetwork in the following format: + # projects/\\{project}/locations/\\{location}. + # @param odb_network_id [::String] + # Required. The ID of the OdbNetwork to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @param odb_network [::Google::Cloud::OracleDatabase::V1::OdbNetwork, ::Hash] + # Required. Details of the OdbNetwork instance to create. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new + # + # # Call the create_odb_network method. + # result = client.create_odb_network request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_odb_network request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_odb_network.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_odb_network.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_odb_network.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_odb_network request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ODB Network. + # + # @overload delete_odb_network(request, options = nil) + # Pass arguments to `delete_odb_network` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_odb_network(name: nil, request_id: nil) + # Pass arguments to `delete_odb_network` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new + # + # # Call the delete_odb_network method. + # result = client.delete_odb_network request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_odb_network request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_odb_network.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_odb_network.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_odb_network.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_odb_network request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the ODB Subnets in a given ODB Network. + # + # @overload list_odb_subnets(request, options = nil) + # Pass arguments to `list_odb_subnets` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_odb_subnets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_odb_subnets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ODB Networks will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new + # + # # Call the list_odb_subnets method. + # result = client.list_odb_subnets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbSubnet. + # p item + # end + # + def list_odb_subnets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_odb_subnets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_odb_subnets.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_odb_subnets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_odb_subnets request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_odb_subnets, "odb_subnets", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single ODB Subnet. + # + # @overload get_odb_subnet(request, options = nil) + # Pass arguments to `get_odb_subnet` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_odb_subnet(name: nil) + # Pass arguments to `get_odb_subnet` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbSubnet] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new + # + # # Call the get_odb_subnet method. + # result = client.get_odb_subnet request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbSubnet. + # p result + # + def get_odb_subnet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_odb_subnet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_odb_subnet.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_odb_subnet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_odb_subnet request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ODB Subnet in a given ODB Network. + # + # @overload create_odb_subnet(request, options = nil) + # Pass arguments to `create_odb_subnet` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_odb_subnet(parent: nil, odb_subnet_id: nil, odb_subnet: nil, request_id: nil) + # Pass arguments to `create_odb_subnet` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @param odb_subnet_id [::String] + # Required. The ID of the OdbSubnet to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @param odb_subnet [::Google::Cloud::OracleDatabase::V1::OdbSubnet, ::Hash] + # Required. Details of the OdbSubnet instance to create. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new + # + # # Call the create_odb_subnet method. + # result = client.create_odb_subnet request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_odb_subnet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_odb_subnet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_odb_subnet.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_odb_subnet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_odb_subnet request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ODB Subnet. + # + # @overload delete_odb_subnet(request, options = nil) + # Pass arguments to `delete_odb_subnet` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_odb_subnet(name: nil, request_id: nil) + # Pass arguments to `delete_odb_subnet` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new + # + # # Call the delete_odb_subnet method. + # result = client.delete_odb_subnet request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_odb_subnet request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_odb_subnet.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_odb_subnet.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_odb_subnet.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_odb_subnet request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the Exadb (Exascale) VM Clusters for the given project and + # location. + # + # @overload list_exadb_vm_clusters(request, options = nil) + # Pass arguments to `list_exadb_vm_clusters` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_exadb_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_exadb_vm_clusters` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for ExadbVmClusters in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ExadbVmClusters will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new + # + # # Call the list_exadb_vm_clusters method. + # result = client.list_exadb_vm_clusters request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster. + # p item + # end + # + def list_exadb_vm_clusters request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_exadb_vm_clusters.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_exadb_vm_clusters.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_exadb_vm_clusters.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_exadb_vm_clusters request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_exadb_vm_clusters, "exadb_vm_clusters", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single Exadb (Exascale) VM Cluster. + # + # @overload get_exadb_vm_cluster(request, options = nil) + # Pass arguments to `get_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_exadb_vm_cluster(name: nil) + # Pass arguments to `get_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new + # + # # Call the get_exadb_vm_cluster method. + # result = client.get_exadb_vm_cluster request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExadbVmCluster. + # p result + # + def get_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_exadb_vm_cluster.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_exadb_vm_cluster request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new Exadb (Exascale) VM Cluster resource. + # + # @overload create_exadb_vm_cluster(request, options = nil) + # Pass arguments to `create_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_exadb_vm_cluster(parent: nil, exadb_vm_cluster_id: nil, exadb_vm_cluster: nil, request_id: nil) + # Pass arguments to `create_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the ExadbVmCluster in the following + # format: projects/\\{project}/locations/\\{location}. + # @param exadb_vm_cluster_id [::String] + # Required. The ID of the ExadbVmCluster to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new + # + # # Call the create_exadb_vm_cluster method. + # result = client.create_exadb_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_exadb_vm_cluster.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_exadb_vm_cluster request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single Exadb (Exascale) VM Cluster. + # + # @overload delete_exadb_vm_cluster(request, options = nil) + # Pass arguments to `delete_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_exadb_vm_cluster(name: nil, request_id: nil) + # Pass arguments to `delete_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new + # + # # Call the delete_exadb_vm_cluster method. + # result = client.delete_exadb_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_exadb_vm_cluster.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_exadb_vm_cluster request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to + # existing exadb vm cluster, only pass the node count. + # + # @overload update_exadb_vm_cluster(request, options = nil) + # Pass arguments to `update_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload update_exadb_vm_cluster(update_mask: nil, exadb_vm_cluster: nil, request_id: nil) + # Pass arguments to `update_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] + # 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. + # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash] + # Required. The resource being updated. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new + # + # # Call the update_exadb_vm_cluster method. + # result = client.update_exadb_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def update_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.update_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.update_exadb_vm_cluster.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.update_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.update_exadb_vm_cluster request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Removes virtual machines from an existing exadb vm cluster. + # + # @overload remove_virtual_machine_exadb_vm_cluster(request, options = nil) + # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload remove_virtual_machine_exadb_vm_cluster(name: nil, request_id: nil, hostnames: nil) + # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @param hostnames [::Array<::String>] + # Required. The list of host names of db nodes to be removed from the + # ExadbVmCluster. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new + # + # # Call the remove_virtual_machine_exadb_vm_cluster method. + # result = client.remove_virtual_machine_exadb_vm_cluster request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def remove_virtual_machine_exadb_vm_cluster request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.remove_virtual_machine_exadb_vm_cluster.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.remove_virtual_machine_exadb_vm_cluster request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the ExascaleDB Storage Vaults for the given project and + # location. + # + # @overload list_exascale_db_storage_vaults(request, options = nil) + # Pass arguments to `list_exascale_db_storage_vaults` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_exascale_db_storage_vaults(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_exascale_db_storage_vaults` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for ExascaleDbStorageVault in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ExascaleDbStorageVaults will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Filter + # the list as specified in https://google.aip.dev/160. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. Order + # results as specified in https://google.aip.dev/132. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new + # + # # Call the list_exascale_db_storage_vaults method. + # result = client.list_exascale_db_storage_vaults request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. + # p item + # end + # + def list_exascale_db_storage_vaults request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_exascale_db_storage_vaults.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_exascale_db_storage_vaults.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_exascale_db_storage_vaults.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_exascale_db_storage_vaults request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_exascale_db_storage_vaults, "exascale_db_storage_vaults", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single ExascaleDB Storage Vault. + # + # @overload get_exascale_db_storage_vault(request, options = nil) + # Pass arguments to `get_exascale_db_storage_vault` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_exascale_db_storage_vault(name: nil) + # Pass arguments to `get_exascale_db_storage_vault` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExascaleDbStorageVault in the following format: + # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new + # + # # Call the get_exascale_db_storage_vault method. + # result = client.get_exascale_db_storage_vault request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. + # p result + # + def get_exascale_db_storage_vault request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_exascale_db_storage_vault.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_exascale_db_storage_vault.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_exascale_db_storage_vault.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_exascale_db_storage_vault request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new ExascaleDB Storage Vault resource. + # + # @overload create_exascale_db_storage_vault(request, options = nil) + # Pass arguments to `create_exascale_db_storage_vault` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_exascale_db_storage_vault(parent: nil, exascale_db_storage_vault_id: nil, exascale_db_storage_vault: nil, request_id: nil) + # Pass arguments to `create_exascale_db_storage_vault` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the ExascaleDbStorageVault in the + # following format: projects/\\{project}/locations/\\{location}. + # @param exascale_db_storage_vault_id [::String] + # Required. The ID of the ExascaleDbStorageVault to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param exascale_db_storage_vault [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new + # + # # Call the create_exascale_db_storage_vault method. + # result = client.create_exascale_db_storage_vault request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_exascale_db_storage_vault request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_exascale_db_storage_vault.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_exascale_db_storage_vault.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_exascale_db_storage_vault.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_exascale_db_storage_vault request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single ExascaleDB Storage Vault. + # + # @overload delete_exascale_db_storage_vault(request, options = nil) + # Pass arguments to `delete_exascale_db_storage_vault` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_exascale_db_storage_vault(name: nil, request_id: nil) + # Pass arguments to `delete_exascale_db_storage_vault` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the ExascaleDbStorageVault in the following format: + # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new + # + # # Call the delete_exascale_db_storage_vault method. + # result = client.delete_exascale_db_storage_vault request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_exascale_db_storage_vault request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_exascale_db_storage_vault.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_exascale_db_storage_vault.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_exascale_db_storage_vault.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_exascale_db_storage_vault request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the DbSystemInitialStorageSizes for the given project and + # location. + # + # @overload list_db_system_initial_storage_sizes(request, options = nil) + # Pass arguments to `list_db_system_initial_storage_sizes` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_db_system_initial_storage_sizes(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_db_system_initial_storage_sizes` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the DbSystemInitialStorageSize resource with + # the format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be + # returned. The maximum value is 1000; values above 1000 will be reset to + # 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new + # + # # Call the list_db_system_initial_storage_sizes method. + # result = client.list_db_system_initial_storage_sizes request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize. + # p item + # end + # + def list_db_system_initial_storage_sizes request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_db_system_initial_storage_sizes.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_db_system_initial_storage_sizes.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_db_system_initial_storage_sizes.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_db_system_initial_storage_sizes request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_system_initial_storage_sizes, "db_system_initial_storage_sizes", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the Databases for the given project, location and DbSystem. + # + # @overload list_databases(request, options = nil) + # Pass arguments to `list_databases` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_databases(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_databases` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource name in the following format: + # projects/\\{project}/locations/\\{region} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 Databases will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. list for + # container databases is supported only with a valid dbSystem (full resource + # name) filter in this format: + # `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new + # + # # Call the list_databases method. + # result = client.list_databases request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Database. + # p item + # end + # + def list_databases request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_databases.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_databases.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_databases.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_databases request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_databases, "databases", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single Database. + # + # @overload get_database(request, options = nil) + # Pass arguments to `get_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_database(name: nil) + # Pass arguments to `get_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Database resource in the following format: + # projects/\\{project}/locations/\\{region}/databases/\\{database} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::Database] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::Database] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new + # + # # Call the get_database method. + # result = client.get_database request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::Database. + # p result + # + def get_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_database request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the PluggableDatabases for the given project, location and + # Container Database. + # + # @overload list_pluggable_databases(request, options = nil) + # Pass arguments to `list_pluggable_databases` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_pluggable_databases(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_pluggable_databases` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of PluggableDatabases. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of PluggableDatabases to return. The service + # may return fewer than this value. + # @param page_token [::String] + # Optional. A page token, received from a previous `ListPluggableDatabases` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListPluggableDatabases` + # must match the call that provided the page token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. List for + # pluggable databases is supported only with a valid container database (full + # resource name) filter in this format: + # `database="projects/{project}/locations/{location}/databases/{database}"` + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new + # + # # Call the list_pluggable_databases method. + # result = client.list_pluggable_databases request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::PluggableDatabase. + # p item + # end + # + def list_pluggable_databases request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_pluggable_databases.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_pluggable_databases.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_pluggable_databases.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_pluggable_databases request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_pluggable_databases, "pluggable_databases", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single PluggableDatabase. + # + # @overload get_pluggable_database(request, options = nil) + # Pass arguments to `get_pluggable_database` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_pluggable_database(name: nil) + # Pass arguments to `get_pluggable_database` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the PluggableDatabase resource in the following + # format: + # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new + # + # # Call the get_pluggable_database method. + # result = client.get_pluggable_database request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::PluggableDatabase. + # p result + # + def get_pluggable_database request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_pluggable_database.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_pluggable_database.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_pluggable_database.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_pluggable_database request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the DbSystems for the given project and location. + # + # @overload list_db_systems(request, options = nil) + # Pass arguments to `list_db_systems` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_db_systems(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_db_systems` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for DbSystems in the following format: + # projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 DbSystems will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new + # + # # Call the list_db_systems method. + # result = client.list_db_systems request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystem. + # p item + # end + # + def list_db_systems request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_db_systems.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_db_systems.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_db_systems.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_db_systems request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_systems, "db_systems", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single DbSystem. + # + # @overload get_db_system(request, options = nil) + # Pass arguments to `get_db_system` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_db_system(name: nil) + # Pass arguments to `get_db_system` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::DbSystem] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::DbSystem] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new + # + # # Call the get_db_system method. + # result = client.get_db_system request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::DbSystem. + # p result + # + def get_db_system request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_db_system.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_db_system.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_db_system.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_db_system request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new DbSystem in a given project and location. + # + # @overload create_db_system(request, options = nil) + # Pass arguments to `create_db_system` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_db_system(parent: nil, db_system_id: nil, db_system: nil, request_id: nil) + # Pass arguments to `create_db_system` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}. + # @param db_system_id [::String] + # Required. The ID of the DbSystem to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param db_system [::Google::Cloud::OracleDatabase::V1::DbSystem, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new + # + # # Call the create_db_system method. + # result = client.create_db_system request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_db_system request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_db_system.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_db_system.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_db_system.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_db_system request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single DbSystem. + # + # @overload delete_db_system(request, options = nil) + # Pass arguments to `delete_db_system` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_db_system(name: nil, request_id: nil) + # Pass arguments to `delete_db_system` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new + # + # # Call the delete_db_system method. + # result = client.delete_db_system request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_db_system request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_db_system.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_db_system.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_db_system.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_db_system request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the GoldengateDeployments for the given project and location. + # + # @overload list_goldengate_deployments(request, options = nil) + # Pass arguments to `list_goldengate_deployments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_deployments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for GoldengateDeployments in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 GoldengateDeployments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous ListGoldengateDeployments + # call. Provide this to retrieve the subsequent page. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new + # + # # Call the list_goldengate_deployments method. + # result = client.list_goldengate_deployments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment. + # p item + # end + # + def list_goldengate_deployments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_deployments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployments.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_deployments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_deployments request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployments, "goldengate_deployments", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeployment. + # + # @overload get_goldengate_deployment(request, options = nil) + # Pass arguments to `get_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_deployment(name: nil) + # Pass arguments to `get_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new + # + # # Call the get_goldengate_deployment method. + # result = client.get_goldengate_deployment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeployment. + # p result + # + def get_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_deployment request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateDeployment in a given project and location. + # + # @overload create_goldengate_deployment(request, options = nil) + # Pass arguments to `create_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_goldengate_deployment(parent: nil, goldengate_deployment_id: nil, goldengate_deployment: nil, request_id: nil) + # Pass arguments to `create_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the GoldengateDeployment in the following + # format: projects/\\{project}/locations/\\{location}. + # @param goldengate_deployment_id [::String] + # Required. The ID of the GoldengateDeployment to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param goldengate_deployment [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new + # + # # Call the create_goldengate_deployment method. + # result = client.create_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_goldengate_deployment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateDeployment. + # + # @overload delete_goldengate_deployment(request, options = nil) + # Pass arguments to `delete_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_goldengate_deployment(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new + # + # # Call the delete_goldengate_deployment method. + # result = client.delete_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_goldengate_deployment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Stops a single GoldengateDeployment. + # + # @overload stop_goldengate_deployment(request, options = nil) + # Pass arguments to `stop_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload stop_goldengate_deployment(name: nil) + # Pass arguments to `stop_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new + # + # # Call the stop_goldengate_deployment method. + # result = client.stop_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def stop_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.stop_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.stop_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.stop_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.stop_goldengate_deployment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts a single GoldengateDeployment. + # + # @overload start_goldengate_deployment(request, options = nil) + # Pass arguments to `start_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload start_goldengate_deployment(name: nil) + # Pass arguments to `start_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new + # + # # Call the start_goldengate_deployment method. + # result = client.start_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def start_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.start_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.start_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.start_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.start_goldengate_deployment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the GoldengateConnections for the given project and location. + # + # @overload list_goldengate_connections(request, options = nil) + # Pass arguments to `list_goldengate_connections` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_connections` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for GoldengateConnections in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 GoldengateConnections will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous ListGoldengateConnections + # call. Provide this to retrieve the subsequent page. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new + # + # # Call the list_goldengate_connections method. + # result = client.list_goldengate_connections request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnection. + # p item + # end + # + def list_goldengate_connections request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_connections.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connections.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_connections.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_connections request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connections, "goldengate_connections", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnection. + # + # @overload get_goldengate_connection(request, options = nil) + # Pass arguments to `get_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_connection(name: nil) + # Pass arguments to `get_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new + # + # # Call the get_goldengate_connection method. + # result = client.get_goldengate_connection request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnection. + # p result + # + def get_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_connection request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateConnection in a given project and location. + # + # @overload create_goldengate_connection(request, options = nil) + # Pass arguments to `create_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_goldengate_connection(parent: nil, goldengate_connection_id: nil, goldengate_connection: nil, request_id: nil) + # Pass arguments to `create_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the GoldengateConnection in the following + # format: projects/\\{project}/locations/\\{location}. + # @param goldengate_connection_id [::String] + # Required. The ID of the GoldengateConnection to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param goldengate_connection [::Google::Cloud::OracleDatabase::V1::GoldengateConnection, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new + # + # # Call the create_goldengate_connection method. + # result = client.create_goldengate_connection request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_goldengate_connection.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_goldengate_connection request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateConnection. + # + # @overload delete_goldengate_connection(request, options = nil) + # Pass arguments to `delete_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_goldengate_connection(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new + # + # # Call the delete_goldengate_connection method. + # result = client.delete_goldengate_connection request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_goldengate_connection request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeploymentVersion. + # + # @overload get_goldengate_deployment_version(request, options = nil) + # Pass arguments to `get_goldengate_deployment_version` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_deployment_version(name: nil) + # Pass arguments to `get_goldengate_deployment_version` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeploymentVersion to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new + # + # # Call the get_goldengate_deployment_version method. + # result = client.get_goldengate_deployment_version request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + # p result + # + def get_goldengate_deployment_version request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_deployment_version.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_version.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_version.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_deployment_version request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateDeploymentVersions in a given project and location. + # + # @overload list_goldengate_deployment_versions(request, options = nil) + # Pass arguments to `list_goldengate_deployment_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_deployment_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_goldengate_deployment_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Parent value for ListGoldengateDeploymentVersionsRequest + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_id and deployment_type fields must be specified in the + # format: `deployment_id="id"` or `deployment_type="DATABASE_ORACLE"`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new + # + # # Call the list_goldengate_deployment_versions method. + # result = client.list_goldengate_deployment_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + # p item + # end + # + def list_goldengate_deployment_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_deployment_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_versions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_deployment_versions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_versions, "goldengate_deployment_versions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldenGateDeploymentType. + # + # @overload get_goldengate_deployment_type(request, options = nil) + # Pass arguments to `get_goldengate_deployment_type` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_deployment_type(name: nil) + # Pass arguments to `get_goldengate_deployment_type` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeploymentType to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentTypes/\\{goldengate_deployment_type} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new + # + # # Call the get_goldengate_deployment_type method. + # result = client.get_goldengate_deployment_type request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + # p result + # + def get_goldengate_deployment_type request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_deployment_type.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_type.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_type.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_deployment_type request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldenGateDeploymentTypes in a given project and location. + # + # @overload list_goldengate_deployment_types(request, options = nil) + # Pass arguments to `list_goldengate_deployment_types` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_deployment_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_deployment_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_type and ogg_version fields must be specified in the format: + # `deployment_type="DATABASE_ORACLE"` or `ogg_version="version"`. + # Allowed values for deployment_type are: `DATABASE_ORACLE`, `BIGDATA`, + # `DATABASE_MICROSOFT_SQLSERVER`, `DATABASE_MYSQL`, `DATABASE_POSTGRESQL`, + # `DATABASE_DB2ZOS`, `DATABASE_DB2I`, `GGSA`, `DATA_TRANSFORMS`. + # @param order_by [::String] + # Optional. Hint for how to order the results + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new + # + # # Call the list_goldengate_deployment_types method. + # result = client.list_goldengate_deployment_types request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + # p item + # end + # + def list_goldengate_deployment_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_deployment_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_types.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_deployment_types request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_types, "goldengate_deployment_types", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeploymentEnvironment. + # + # @overload get_goldengate_deployment_environment(request, options = nil) + # Pass arguments to `get_goldengate_deployment_environment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_deployment_environment(name: nil) + # Pass arguments to `get_goldengate_deployment_environment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource with the format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new + # + # # Call the get_goldengate_deployment_environment method. + # result = client.get_goldengate_deployment_environment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + # p result + # + def get_goldengate_deployment_environment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_deployment_environment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_environment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_environment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_deployment_environment request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateDeploymentEnvironments in a given project and location. + # + # @overload list_goldengate_deployment_environments(request, options = nil) + # Pass arguments to `list_goldengate_deployment_environments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_deployment_environments(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_goldengate_deployment_environments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of + # GoldengateDeploymentEnvironments. Format: + # projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 deployment environments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new + # + # # Call the list_goldengate_deployment_environments method. + # result = client.list_goldengate_deployment_environments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + # p item + # end + # + def list_goldengate_deployment_environments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_deployment_environments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_environments.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_environments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_deployment_environments request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_environments, "goldengate_deployment_environments", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnectionType. + # + # @overload get_goldengate_connection_type(request, options = nil) + # Pass arguments to `get_goldengate_connection_type` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_connection_type(name: nil) + # Pass arguments to `get_goldengate_connection_type` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource in the format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionTypes/\\{goldengate_connection_type} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new + # + # # Call the get_goldengate_connection_type method. + # result = client.get_goldengate_connection_type request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + # p result + # + def get_goldengate_connection_type request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_connection_type.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_type.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_connection_type.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_connection_type request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateConnectionTypes in a given project and location. + # + # @overload list_goldengate_connection_types(request, options = nil) + # Pass arguments to `list_goldengate_connection_types` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_connection_types(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_goldengate_connection_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Parent value for ListGoldengateConnectionTypesRequest + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. The + # connection_type field must be specified in the format: + # `connection_type="ORACLE"`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new + # + # # Call the list_goldengate_connection_types method. + # result = client.list_goldengate_connection_types request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + # p item + # end + # + def list_goldengate_connection_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_connection_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_types.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_connection_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_connection_types request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_types, "goldengate_connection_types", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DbVersions for the given project and location. + # + # @overload list_db_versions(request, options = nil) + # Pass arguments to `list_db_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_db_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the DbVersion resource with the + # format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 DbVersions will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @param filter [::String] + # Optional. Filter expression that matches a subset of the DbVersions to + # show. The supported filter for dbSystem creation is `db_system_shape = + # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no + # filter is provided, all DbVersions will be returned. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new + # + # # Call the list_db_versions method. + # result = client.list_db_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. + # p item + # end + # + def list_db_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_db_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_db_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_db_versions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_versions, "db_versions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DatabaseCharacterSets for the given project and location. + # + # @overload list_database_character_sets(request, options = nil) + # Pass arguments to `list_database_character_sets` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for DatabaseCharacterSets in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of DatabaseCharacterSets to return. The + # service may return fewer than this value. If unspecified, at most 50 + # DatabaseCharacterSets will be returned. The maximum value is 1000; values + # above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # `ListDatabaseCharacterSets` must match the call that provided the page + # token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # **character_set_type** field is supported in the following format: + # `character_set_type="{characterSetType}"`. Accepted values include + # `DATABASE` and `NATIONAL`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new + # + # # Call the list_database_character_sets method. + # result = client.list_database_character_sets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. + # p item + # end + # + def list_database_character_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_database_character_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_database_character_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_database_character_sets request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, "database_character_sets", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateConnectionAssignments in a given project and location. + # + # @overload list_goldengate_connection_assignments(request, options = nil) + # Pass arguments to `list_goldengate_connection_assignments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_connection_assignments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_connection_assignments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the GoldengateConnectionAssignments. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of GoldengateConnectionAssignments to return. + # The service may return fewer than this value. If unspecified, at most 50 + # GoldengateConnectionAssignments will be returned. The maximum value is + # 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListGoldengateConnectionAssignments` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `ListGoldengateConnectionAssignments` must match the call that provided + # the page token. + # @param filter [::String] + # Optional. A filter expression that filters GoldengateConnectionAssignments + # listed in the response. + # @param order_by [::String] + # Optional. A comma-separated list of fields to order by, sorted in ascending + # order. Use "DESC" after a field name for descending. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new + # + # # Call the list_goldengate_connection_assignments method. + # result = client.list_goldengate_connection_assignments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + # p item + # end + # + def list_goldengate_connection_assignments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_connection_assignments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_assignments.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_connection_assignments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_connection_assignments request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_assignments, "goldengate_connection_assignments", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnectionAssignment. + # + # @overload get_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `get_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_connection_assignment(name: nil) + # Pass arguments to `get_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnectionAssignment to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new + # + # # Call the get_goldengate_connection_assignment method. + # result = client.get_goldengate_connection_assignment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + # p result + # + def get_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_assignment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_connection_assignment request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateConnectionAssignment in a given project and + # location. + # + # @overload create_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `create_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_goldengate_connection_assignment(parent: nil, goldengate_connection_assignment_id: nil, goldengate_connection_assignment: nil, request_id: nil) + # Pass arguments to `create_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this GoldengateConnectionAssignment + # will be created. Format: projects/\\{project}/locations/\\{location} + # @param goldengate_connection_assignment_id [::String] + # Required. The ID of the GoldengateConnectionAssignment to create. + # @param goldengate_connection_assignment [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment, ::Hash] + # Required. The GoldengateConnectionAssignment to create. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new + # + # # Call the create_goldengate_connection_assignment method. + # result = client.create_goldengate_connection_assignment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_goldengate_connection_assignment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_goldengate_connection_assignment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateConnectionAssignment. + # + # @overload delete_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `delete_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_goldengate_connection_assignment(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnectionAssignment to delete. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes after the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new + # + # # Call the delete_goldengate_connection_assignment method. + # result = client.delete_goldengate_connection_assignment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection_assignment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_goldengate_connection_assignment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Tests a single GoldengateConnectionAssignment. + # + # @overload test_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `test_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload test_goldengate_connection_assignment(name: nil, type: nil) + # Pass arguments to `test_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the connection assignment for which to test connection. + # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @param type [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest::TestType] + # Optional. The type of the test of the assigned connection. + # The only type actually supported is DEFAULT. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new + # + # # Call the test_goldengate_connection_assignment method. + # result = client.test_goldengate_connection_assignment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse. + # p result + # + def test_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.test_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.test_goldengate_connection_assignment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.test_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.test_goldengate_connection_assignment request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the OracleDatabase REST API. + # + # This class represents the configuration for OracleDatabase REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_cloud_exadata_infrastructures to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + + # @private + # Overrides for http bindings for the RPCs of this service + # are only used when this service is used as mixin, and only + # by the host service. + # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] + config_attr :bindings_override, {}, ::Hash, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the OracleDatabase API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_cloud_exadata_infrastructures` + # @return [::Gapic::Config::Method] + # + attr_reader :list_cloud_exadata_infrastructures + ## + # RPC-specific configuration for `get_cloud_exadata_infrastructure` + # @return [::Gapic::Config::Method] + # + attr_reader :get_cloud_exadata_infrastructure + ## + # RPC-specific configuration for `create_cloud_exadata_infrastructure` + # @return [::Gapic::Config::Method] + # + attr_reader :create_cloud_exadata_infrastructure + ## + # RPC-specific configuration for `delete_cloud_exadata_infrastructure` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_cloud_exadata_infrastructure + ## + # RPC-specific configuration for `list_cloud_vm_clusters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_cloud_vm_clusters + ## + # RPC-specific configuration for `get_cloud_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :get_cloud_vm_cluster + ## + # RPC-specific configuration for `create_cloud_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :create_cloud_vm_cluster + ## + # RPC-specific configuration for `delete_cloud_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_cloud_vm_cluster + ## + # RPC-specific configuration for `list_entitlements` + # @return [::Gapic::Config::Method] + # + attr_reader :list_entitlements + ## + # RPC-specific configuration for `list_db_servers` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_servers + ## + # RPC-specific configuration for `list_db_nodes` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_nodes + ## + # RPC-specific configuration for `list_gi_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_gi_versions + ## + # RPC-specific configuration for `list_minor_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_minor_versions + ## + # RPC-specific configuration for `list_db_system_shapes` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_system_shapes + ## + # RPC-specific configuration for `list_autonomous_databases` + # @return [::Gapic::Config::Method] + # + attr_reader :list_autonomous_databases + ## + # RPC-specific configuration for `get_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :get_autonomous_database + ## + # RPC-specific configuration for `create_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :create_autonomous_database + ## + # RPC-specific configuration for `update_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :update_autonomous_database + ## + # RPC-specific configuration for `delete_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_autonomous_database + ## + # RPC-specific configuration for `restore_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :restore_autonomous_database + ## + # RPC-specific configuration for `generate_autonomous_database_wallet` + # @return [::Gapic::Config::Method] + # + attr_reader :generate_autonomous_database_wallet + ## + # RPC-specific configuration for `list_autonomous_db_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_autonomous_db_versions + ## + # RPC-specific configuration for `list_autonomous_database_character_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_autonomous_database_character_sets + ## + # RPC-specific configuration for `list_autonomous_database_backups` + # @return [::Gapic::Config::Method] + # + attr_reader :list_autonomous_database_backups + ## + # RPC-specific configuration for `stop_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :stop_autonomous_database + ## + # RPC-specific configuration for `start_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :start_autonomous_database + ## + # RPC-specific configuration for `restart_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :restart_autonomous_database + ## + # RPC-specific configuration for `switchover_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :switchover_autonomous_database + ## + # RPC-specific configuration for `failover_autonomous_database` + # @return [::Gapic::Config::Method] + # + attr_reader :failover_autonomous_database + ## + # RPC-specific configuration for `list_odb_networks` + # @return [::Gapic::Config::Method] + # + attr_reader :list_odb_networks + ## + # RPC-specific configuration for `get_odb_network` + # @return [::Gapic::Config::Method] + # + attr_reader :get_odb_network + ## + # RPC-specific configuration for `create_odb_network` + # @return [::Gapic::Config::Method] + # + attr_reader :create_odb_network + ## + # RPC-specific configuration for `delete_odb_network` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_odb_network + ## + # RPC-specific configuration for `list_odb_subnets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_odb_subnets + ## + # RPC-specific configuration for `get_odb_subnet` + # @return [::Gapic::Config::Method] + # + attr_reader :get_odb_subnet + ## + # RPC-specific configuration for `create_odb_subnet` + # @return [::Gapic::Config::Method] + # + attr_reader :create_odb_subnet + ## + # RPC-specific configuration for `delete_odb_subnet` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_odb_subnet + ## + # RPC-specific configuration for `list_exadb_vm_clusters` + # @return [::Gapic::Config::Method] + # + attr_reader :list_exadb_vm_clusters + ## + # RPC-specific configuration for `get_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :get_exadb_vm_cluster + ## + # RPC-specific configuration for `create_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :create_exadb_vm_cluster + ## + # RPC-specific configuration for `delete_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_exadb_vm_cluster + ## + # RPC-specific configuration for `update_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :update_exadb_vm_cluster + ## + # RPC-specific configuration for `remove_virtual_machine_exadb_vm_cluster` + # @return [::Gapic::Config::Method] + # + attr_reader :remove_virtual_machine_exadb_vm_cluster + ## + # RPC-specific configuration for `list_exascale_db_storage_vaults` + # @return [::Gapic::Config::Method] + # + attr_reader :list_exascale_db_storage_vaults + ## + # RPC-specific configuration for `get_exascale_db_storage_vault` + # @return [::Gapic::Config::Method] + # + attr_reader :get_exascale_db_storage_vault + ## + # RPC-specific configuration for `create_exascale_db_storage_vault` + # @return [::Gapic::Config::Method] + # + attr_reader :create_exascale_db_storage_vault + ## + # RPC-specific configuration for `delete_exascale_db_storage_vault` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_exascale_db_storage_vault + ## + # RPC-specific configuration for `list_db_system_initial_storage_sizes` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_system_initial_storage_sizes + ## + # RPC-specific configuration for `list_databases` + # @return [::Gapic::Config::Method] + # + attr_reader :list_databases + ## + # RPC-specific configuration for `get_database` + # @return [::Gapic::Config::Method] + # + attr_reader :get_database + ## + # RPC-specific configuration for `list_pluggable_databases` + # @return [::Gapic::Config::Method] + # + attr_reader :list_pluggable_databases + ## + # RPC-specific configuration for `get_pluggable_database` + # @return [::Gapic::Config::Method] + # + attr_reader :get_pluggable_database + ## + # RPC-specific configuration for `list_db_systems` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_systems + ## + # RPC-specific configuration for `get_db_system` + # @return [::Gapic::Config::Method] + # + attr_reader :get_db_system + ## + # RPC-specific configuration for `create_db_system` + # @return [::Gapic::Config::Method] + # + attr_reader :create_db_system + ## + # RPC-specific configuration for `delete_db_system` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_db_system + ## + # RPC-specific configuration for `list_goldengate_deployments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployments + ## + # RPC-specific configuration for `get_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment + ## + # RPC-specific configuration for `create_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_deployment + ## + # RPC-specific configuration for `delete_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_deployment + ## + # RPC-specific configuration for `stop_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :stop_goldengate_deployment + ## + # RPC-specific configuration for `start_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :start_goldengate_deployment + ## + # RPC-specific configuration for `list_goldengate_connections` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connections + ## + # RPC-specific configuration for `get_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection + ## + # RPC-specific configuration for `create_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_connection + ## + # RPC-specific configuration for `delete_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_connection + ## + # RPC-specific configuration for `get_goldengate_deployment_version` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_version + ## + # RPC-specific configuration for `list_goldengate_deployment_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_versions + ## + # RPC-specific configuration for `get_goldengate_deployment_type` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_type + ## + # RPC-specific configuration for `list_goldengate_deployment_types` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_types + ## + # RPC-specific configuration for `get_goldengate_deployment_environment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_environment + ## + # RPC-specific configuration for `list_goldengate_deployment_environments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_environments + ## + # RPC-specific configuration for `get_goldengate_connection_type` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection_type + ## + # RPC-specific configuration for `list_goldengate_connection_types` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connection_types + ## + # RPC-specific configuration for `list_db_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_db_versions + ## + # RPC-specific configuration for `list_database_character_sets` + # @return [::Gapic::Config::Method] + # + attr_reader :list_database_character_sets + ## + # RPC-specific configuration for `list_goldengate_connection_assignments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connection_assignments + ## + # RPC-specific configuration for `get_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection_assignment + ## + # RPC-specific configuration for `create_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_connection_assignment + ## + # RPC-specific configuration for `delete_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_connection_assignment + ## + # RPC-specific configuration for `test_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :test_goldengate_connection_assignment + + # @private + def initialize parent_rpcs = nil + list_cloud_exadata_infrastructures_config = parent_rpcs.list_cloud_exadata_infrastructures if parent_rpcs.respond_to? :list_cloud_exadata_infrastructures + @list_cloud_exadata_infrastructures = ::Gapic::Config::Method.new list_cloud_exadata_infrastructures_config + get_cloud_exadata_infrastructure_config = parent_rpcs.get_cloud_exadata_infrastructure if parent_rpcs.respond_to? :get_cloud_exadata_infrastructure + @get_cloud_exadata_infrastructure = ::Gapic::Config::Method.new get_cloud_exadata_infrastructure_config + create_cloud_exadata_infrastructure_config = parent_rpcs.create_cloud_exadata_infrastructure if parent_rpcs.respond_to? :create_cloud_exadata_infrastructure + @create_cloud_exadata_infrastructure = ::Gapic::Config::Method.new create_cloud_exadata_infrastructure_config + delete_cloud_exadata_infrastructure_config = parent_rpcs.delete_cloud_exadata_infrastructure if parent_rpcs.respond_to? :delete_cloud_exadata_infrastructure + @delete_cloud_exadata_infrastructure = ::Gapic::Config::Method.new delete_cloud_exadata_infrastructure_config + list_cloud_vm_clusters_config = parent_rpcs.list_cloud_vm_clusters if parent_rpcs.respond_to? :list_cloud_vm_clusters + @list_cloud_vm_clusters = ::Gapic::Config::Method.new list_cloud_vm_clusters_config + get_cloud_vm_cluster_config = parent_rpcs.get_cloud_vm_cluster if parent_rpcs.respond_to? :get_cloud_vm_cluster + @get_cloud_vm_cluster = ::Gapic::Config::Method.new get_cloud_vm_cluster_config + create_cloud_vm_cluster_config = parent_rpcs.create_cloud_vm_cluster if parent_rpcs.respond_to? :create_cloud_vm_cluster + @create_cloud_vm_cluster = ::Gapic::Config::Method.new create_cloud_vm_cluster_config + delete_cloud_vm_cluster_config = parent_rpcs.delete_cloud_vm_cluster if parent_rpcs.respond_to? :delete_cloud_vm_cluster + @delete_cloud_vm_cluster = ::Gapic::Config::Method.new delete_cloud_vm_cluster_config + list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements + @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config + list_db_servers_config = parent_rpcs.list_db_servers if parent_rpcs.respond_to? :list_db_servers + @list_db_servers = ::Gapic::Config::Method.new list_db_servers_config + list_db_nodes_config = parent_rpcs.list_db_nodes if parent_rpcs.respond_to? :list_db_nodes + @list_db_nodes = ::Gapic::Config::Method.new list_db_nodes_config + list_gi_versions_config = parent_rpcs.list_gi_versions if parent_rpcs.respond_to? :list_gi_versions + @list_gi_versions = ::Gapic::Config::Method.new list_gi_versions_config + list_minor_versions_config = parent_rpcs.list_minor_versions if parent_rpcs.respond_to? :list_minor_versions + @list_minor_versions = ::Gapic::Config::Method.new list_minor_versions_config + list_db_system_shapes_config = parent_rpcs.list_db_system_shapes if parent_rpcs.respond_to? :list_db_system_shapes + @list_db_system_shapes = ::Gapic::Config::Method.new list_db_system_shapes_config + list_autonomous_databases_config = parent_rpcs.list_autonomous_databases if parent_rpcs.respond_to? :list_autonomous_databases + @list_autonomous_databases = ::Gapic::Config::Method.new list_autonomous_databases_config + get_autonomous_database_config = parent_rpcs.get_autonomous_database if parent_rpcs.respond_to? :get_autonomous_database + @get_autonomous_database = ::Gapic::Config::Method.new get_autonomous_database_config + create_autonomous_database_config = parent_rpcs.create_autonomous_database if parent_rpcs.respond_to? :create_autonomous_database + @create_autonomous_database = ::Gapic::Config::Method.new create_autonomous_database_config + update_autonomous_database_config = parent_rpcs.update_autonomous_database if parent_rpcs.respond_to? :update_autonomous_database + @update_autonomous_database = ::Gapic::Config::Method.new update_autonomous_database_config + delete_autonomous_database_config = parent_rpcs.delete_autonomous_database if parent_rpcs.respond_to? :delete_autonomous_database + @delete_autonomous_database = ::Gapic::Config::Method.new delete_autonomous_database_config + restore_autonomous_database_config = parent_rpcs.restore_autonomous_database if parent_rpcs.respond_to? :restore_autonomous_database + @restore_autonomous_database = ::Gapic::Config::Method.new restore_autonomous_database_config + generate_autonomous_database_wallet_config = parent_rpcs.generate_autonomous_database_wallet if parent_rpcs.respond_to? :generate_autonomous_database_wallet + @generate_autonomous_database_wallet = ::Gapic::Config::Method.new generate_autonomous_database_wallet_config + list_autonomous_db_versions_config = parent_rpcs.list_autonomous_db_versions if parent_rpcs.respond_to? :list_autonomous_db_versions + @list_autonomous_db_versions = ::Gapic::Config::Method.new list_autonomous_db_versions_config + list_autonomous_database_character_sets_config = parent_rpcs.list_autonomous_database_character_sets if parent_rpcs.respond_to? :list_autonomous_database_character_sets + @list_autonomous_database_character_sets = ::Gapic::Config::Method.new list_autonomous_database_character_sets_config + list_autonomous_database_backups_config = parent_rpcs.list_autonomous_database_backups if parent_rpcs.respond_to? :list_autonomous_database_backups + @list_autonomous_database_backups = ::Gapic::Config::Method.new list_autonomous_database_backups_config + stop_autonomous_database_config = parent_rpcs.stop_autonomous_database if parent_rpcs.respond_to? :stop_autonomous_database + @stop_autonomous_database = ::Gapic::Config::Method.new stop_autonomous_database_config + start_autonomous_database_config = parent_rpcs.start_autonomous_database if parent_rpcs.respond_to? :start_autonomous_database + @start_autonomous_database = ::Gapic::Config::Method.new start_autonomous_database_config + restart_autonomous_database_config = parent_rpcs.restart_autonomous_database if parent_rpcs.respond_to? :restart_autonomous_database + @restart_autonomous_database = ::Gapic::Config::Method.new restart_autonomous_database_config + switchover_autonomous_database_config = parent_rpcs.switchover_autonomous_database if parent_rpcs.respond_to? :switchover_autonomous_database + @switchover_autonomous_database = ::Gapic::Config::Method.new switchover_autonomous_database_config + failover_autonomous_database_config = parent_rpcs.failover_autonomous_database if parent_rpcs.respond_to? :failover_autonomous_database + @failover_autonomous_database = ::Gapic::Config::Method.new failover_autonomous_database_config + list_odb_networks_config = parent_rpcs.list_odb_networks if parent_rpcs.respond_to? :list_odb_networks + @list_odb_networks = ::Gapic::Config::Method.new list_odb_networks_config + get_odb_network_config = parent_rpcs.get_odb_network if parent_rpcs.respond_to? :get_odb_network + @get_odb_network = ::Gapic::Config::Method.new get_odb_network_config + create_odb_network_config = parent_rpcs.create_odb_network if parent_rpcs.respond_to? :create_odb_network + @create_odb_network = ::Gapic::Config::Method.new create_odb_network_config + delete_odb_network_config = parent_rpcs.delete_odb_network if parent_rpcs.respond_to? :delete_odb_network + @delete_odb_network = ::Gapic::Config::Method.new delete_odb_network_config + list_odb_subnets_config = parent_rpcs.list_odb_subnets if parent_rpcs.respond_to? :list_odb_subnets + @list_odb_subnets = ::Gapic::Config::Method.new list_odb_subnets_config + get_odb_subnet_config = parent_rpcs.get_odb_subnet if parent_rpcs.respond_to? :get_odb_subnet + @get_odb_subnet = ::Gapic::Config::Method.new get_odb_subnet_config + create_odb_subnet_config = parent_rpcs.create_odb_subnet if parent_rpcs.respond_to? :create_odb_subnet + @create_odb_subnet = ::Gapic::Config::Method.new create_odb_subnet_config + delete_odb_subnet_config = parent_rpcs.delete_odb_subnet if parent_rpcs.respond_to? :delete_odb_subnet + @delete_odb_subnet = ::Gapic::Config::Method.new delete_odb_subnet_config + list_exadb_vm_clusters_config = parent_rpcs.list_exadb_vm_clusters if parent_rpcs.respond_to? :list_exadb_vm_clusters + @list_exadb_vm_clusters = ::Gapic::Config::Method.new list_exadb_vm_clusters_config + get_exadb_vm_cluster_config = parent_rpcs.get_exadb_vm_cluster if parent_rpcs.respond_to? :get_exadb_vm_cluster + @get_exadb_vm_cluster = ::Gapic::Config::Method.new get_exadb_vm_cluster_config + create_exadb_vm_cluster_config = parent_rpcs.create_exadb_vm_cluster if parent_rpcs.respond_to? :create_exadb_vm_cluster + @create_exadb_vm_cluster = ::Gapic::Config::Method.new create_exadb_vm_cluster_config + delete_exadb_vm_cluster_config = parent_rpcs.delete_exadb_vm_cluster if parent_rpcs.respond_to? :delete_exadb_vm_cluster + @delete_exadb_vm_cluster = ::Gapic::Config::Method.new delete_exadb_vm_cluster_config + update_exadb_vm_cluster_config = parent_rpcs.update_exadb_vm_cluster if parent_rpcs.respond_to? :update_exadb_vm_cluster + @update_exadb_vm_cluster = ::Gapic::Config::Method.new update_exadb_vm_cluster_config + remove_virtual_machine_exadb_vm_cluster_config = parent_rpcs.remove_virtual_machine_exadb_vm_cluster if parent_rpcs.respond_to? :remove_virtual_machine_exadb_vm_cluster + @remove_virtual_machine_exadb_vm_cluster = ::Gapic::Config::Method.new remove_virtual_machine_exadb_vm_cluster_config + list_exascale_db_storage_vaults_config = parent_rpcs.list_exascale_db_storage_vaults if parent_rpcs.respond_to? :list_exascale_db_storage_vaults + @list_exascale_db_storage_vaults = ::Gapic::Config::Method.new list_exascale_db_storage_vaults_config + get_exascale_db_storage_vault_config = parent_rpcs.get_exascale_db_storage_vault if parent_rpcs.respond_to? :get_exascale_db_storage_vault + @get_exascale_db_storage_vault = ::Gapic::Config::Method.new get_exascale_db_storage_vault_config + create_exascale_db_storage_vault_config = parent_rpcs.create_exascale_db_storage_vault if parent_rpcs.respond_to? :create_exascale_db_storage_vault + @create_exascale_db_storage_vault = ::Gapic::Config::Method.new create_exascale_db_storage_vault_config + delete_exascale_db_storage_vault_config = parent_rpcs.delete_exascale_db_storage_vault if parent_rpcs.respond_to? :delete_exascale_db_storage_vault + @delete_exascale_db_storage_vault = ::Gapic::Config::Method.new delete_exascale_db_storage_vault_config + list_db_system_initial_storage_sizes_config = parent_rpcs.list_db_system_initial_storage_sizes if parent_rpcs.respond_to? :list_db_system_initial_storage_sizes + @list_db_system_initial_storage_sizes = ::Gapic::Config::Method.new list_db_system_initial_storage_sizes_config + list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases + @list_databases = ::Gapic::Config::Method.new list_databases_config + get_database_config = parent_rpcs.get_database if parent_rpcs.respond_to? :get_database + @get_database = ::Gapic::Config::Method.new get_database_config + list_pluggable_databases_config = parent_rpcs.list_pluggable_databases if parent_rpcs.respond_to? :list_pluggable_databases + @list_pluggable_databases = ::Gapic::Config::Method.new list_pluggable_databases_config + get_pluggable_database_config = parent_rpcs.get_pluggable_database if parent_rpcs.respond_to? :get_pluggable_database + @get_pluggable_database = ::Gapic::Config::Method.new get_pluggable_database_config + list_db_systems_config = parent_rpcs.list_db_systems if parent_rpcs.respond_to? :list_db_systems + @list_db_systems = ::Gapic::Config::Method.new list_db_systems_config + get_db_system_config = parent_rpcs.get_db_system if parent_rpcs.respond_to? :get_db_system + @get_db_system = ::Gapic::Config::Method.new get_db_system_config + create_db_system_config = parent_rpcs.create_db_system if parent_rpcs.respond_to? :create_db_system + @create_db_system = ::Gapic::Config::Method.new create_db_system_config + delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system + @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config + list_goldengate_deployments_config = parent_rpcs.list_goldengate_deployments if parent_rpcs.respond_to? :list_goldengate_deployments + @list_goldengate_deployments = ::Gapic::Config::Method.new list_goldengate_deployments_config + get_goldengate_deployment_config = parent_rpcs.get_goldengate_deployment if parent_rpcs.respond_to? :get_goldengate_deployment + @get_goldengate_deployment = ::Gapic::Config::Method.new get_goldengate_deployment_config + create_goldengate_deployment_config = parent_rpcs.create_goldengate_deployment if parent_rpcs.respond_to? :create_goldengate_deployment + @create_goldengate_deployment = ::Gapic::Config::Method.new create_goldengate_deployment_config + delete_goldengate_deployment_config = parent_rpcs.delete_goldengate_deployment if parent_rpcs.respond_to? :delete_goldengate_deployment + @delete_goldengate_deployment = ::Gapic::Config::Method.new delete_goldengate_deployment_config + stop_goldengate_deployment_config = parent_rpcs.stop_goldengate_deployment if parent_rpcs.respond_to? :stop_goldengate_deployment + @stop_goldengate_deployment = ::Gapic::Config::Method.new stop_goldengate_deployment_config + start_goldengate_deployment_config = parent_rpcs.start_goldengate_deployment if parent_rpcs.respond_to? :start_goldengate_deployment + @start_goldengate_deployment = ::Gapic::Config::Method.new start_goldengate_deployment_config + list_goldengate_connections_config = parent_rpcs.list_goldengate_connections if parent_rpcs.respond_to? :list_goldengate_connections + @list_goldengate_connections = ::Gapic::Config::Method.new list_goldengate_connections_config + get_goldengate_connection_config = parent_rpcs.get_goldengate_connection if parent_rpcs.respond_to? :get_goldengate_connection + @get_goldengate_connection = ::Gapic::Config::Method.new get_goldengate_connection_config + create_goldengate_connection_config = parent_rpcs.create_goldengate_connection if parent_rpcs.respond_to? :create_goldengate_connection + @create_goldengate_connection = ::Gapic::Config::Method.new create_goldengate_connection_config + delete_goldengate_connection_config = parent_rpcs.delete_goldengate_connection if parent_rpcs.respond_to? :delete_goldengate_connection + @delete_goldengate_connection = ::Gapic::Config::Method.new delete_goldengate_connection_config + get_goldengate_deployment_version_config = parent_rpcs.get_goldengate_deployment_version if parent_rpcs.respond_to? :get_goldengate_deployment_version + @get_goldengate_deployment_version = ::Gapic::Config::Method.new get_goldengate_deployment_version_config + list_goldengate_deployment_versions_config = parent_rpcs.list_goldengate_deployment_versions if parent_rpcs.respond_to? :list_goldengate_deployment_versions + @list_goldengate_deployment_versions = ::Gapic::Config::Method.new list_goldengate_deployment_versions_config + get_goldengate_deployment_type_config = parent_rpcs.get_goldengate_deployment_type if parent_rpcs.respond_to? :get_goldengate_deployment_type + @get_goldengate_deployment_type = ::Gapic::Config::Method.new get_goldengate_deployment_type_config + list_goldengate_deployment_types_config = parent_rpcs.list_goldengate_deployment_types if parent_rpcs.respond_to? :list_goldengate_deployment_types + @list_goldengate_deployment_types = ::Gapic::Config::Method.new list_goldengate_deployment_types_config + get_goldengate_deployment_environment_config = parent_rpcs.get_goldengate_deployment_environment if parent_rpcs.respond_to? :get_goldengate_deployment_environment + @get_goldengate_deployment_environment = ::Gapic::Config::Method.new get_goldengate_deployment_environment_config + list_goldengate_deployment_environments_config = parent_rpcs.list_goldengate_deployment_environments if parent_rpcs.respond_to? :list_goldengate_deployment_environments + @list_goldengate_deployment_environments = ::Gapic::Config::Method.new list_goldengate_deployment_environments_config + get_goldengate_connection_type_config = parent_rpcs.get_goldengate_connection_type if parent_rpcs.respond_to? :get_goldengate_connection_type + @get_goldengate_connection_type = ::Gapic::Config::Method.new get_goldengate_connection_type_config + list_goldengate_connection_types_config = parent_rpcs.list_goldengate_connection_types if parent_rpcs.respond_to? :list_goldengate_connection_types + @list_goldengate_connection_types = ::Gapic::Config::Method.new list_goldengate_connection_types_config + list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions + @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config + list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets + @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config + list_goldengate_connection_assignments_config = parent_rpcs.list_goldengate_connection_assignments if parent_rpcs.respond_to? :list_goldengate_connection_assignments + @list_goldengate_connection_assignments = ::Gapic::Config::Method.new list_goldengate_connection_assignments_config + get_goldengate_connection_assignment_config = parent_rpcs.get_goldengate_connection_assignment if parent_rpcs.respond_to? :get_goldengate_connection_assignment + @get_goldengate_connection_assignment = ::Gapic::Config::Method.new get_goldengate_connection_assignment_config + create_goldengate_connection_assignment_config = parent_rpcs.create_goldengate_connection_assignment if parent_rpcs.respond_to? :create_goldengate_connection_assignment + @create_goldengate_connection_assignment = ::Gapic::Config::Method.new create_goldengate_connection_assignment_config + delete_goldengate_connection_assignment_config = parent_rpcs.delete_goldengate_connection_assignment if parent_rpcs.respond_to? :delete_goldengate_connection_assignment + @delete_goldengate_connection_assignment = ::Gapic::Config::Method.new delete_goldengate_connection_assignment_config + test_goldengate_connection_assignment_config = parent_rpcs.test_goldengate_connection_assignment if parent_rpcs.respond_to? :test_goldengate_connection_assignment + @test_goldengate_connection_assignment = ::Gapic::Config::Method.new test_goldengate_connection_assignment_config + + yield self if block_given? + end + end + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb new file mode 100644 index 000000000000..74a11c0caaec --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb @@ -0,0 +1,925 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "gapic/operation" + +module Google + module Cloud + module OracleDatabase + module V1 + module OracleDatabase + module Rest + # Service that implements Longrunning Operations API. + class Operations + # @private + API_VERSION = "" + + # @private + DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$" + + # @private + attr_reader :operations_stub + + ## + # Configuration for the OracleDatabase Operations API. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def self.configure + @configure ||= Operations::Configuration.new + yield @configure if block_given? + @configure + end + + ## + # Configure the OracleDatabase Operations instance. + # + # The configuration is set to the derived mode, meaning that values can be changed, + # but structural changes (adding new fields, etc.) are not allowed. Structural changes + # should be made on {Operations.configure}. + # + # @yield [config] Configure the Operations client. + # @yieldparam config [Operations::Configuration] + # + # @return [Operations::Configuration] + # + def configure + yield @config if block_given? + @config + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @operations_stub.universe_domain + end + + ## + # Create a new Operations client object. + # + # @yield [config] Configure the Client client. + # @yieldparam config [Operations::Configuration] + # + def initialize + # Create the configuration object + @config = Configuration.new Operations.configure + + # Yield the configuration if needed + yield @config if block_given? + + # Create credentials + credentials = @config.credentials + credentials ||= Credentials.default scope: @config.scope + if credentials.is_a?(::String) || credentials.is_a?(::Hash) + credentials = Credentials.new credentials, scope: @config.scope + end + + @quota_project_id = @config.quota_project + @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id + + @operations_stub = OperationsServiceStub.new( + endpoint: @config.endpoint, + endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, + universe_domain: @config.universe_domain, + credentials: credentials + ) + + # Used by an LRO wrapper for some methods of this service + @operations_client = self + end + + # Service calls + + ## + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # + # @overload list_operations(request, options = nil) + # Pass arguments to `list_operations` via a request object, either of type + # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) + # Pass arguments to `list_operations` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation's parent resource. + # @param filter [::String] + # The standard list filter. + # @param page_size [::Integer] + # The standard list page size. + # @param page_token [::String] + # The standard list page token. + # @param return_partial_success [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::ListOperationsRequest.new + # + # # Call the list_operations method. + # result = client.list_operations request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Longrunning::Operation. + # p item + # end + # + def list_operations request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_operations.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_operations.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_operations.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.list_operations request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # + # @overload get_operation(request, options = nil) + # Pass arguments to `get_operation` via a request object, either of type + # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_operation(name: nil) + # Pass arguments to `get_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::GetOperationRequest.new + # + # # Call the get_operation method. + # result = client.get_operation request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def get_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.get_operation request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes 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`. + # + # @overload delete_operation(request, options = nil) + # Pass arguments to `delete_operation` via a request object, either of type + # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_operation(name: nil) + # Pass arguments to `delete_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be deleted. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::DeleteOperationRequest.new + # + # # Call the delete_operation method. + # result = client.delete_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def delete_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.delete_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts 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`. Clients can use + # Operations.GetOperation or + # other methods to check whether the cancellation succeeded or whether the + # operation completed despite cancellation. On successful cancellation, + # the operation is not deleted; instead, it becomes an operation with + # an {::Google::Longrunning::Operation#error Operation.error} value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to + # `Code.CANCELLED`. + # + # @overload cancel_operation(request, options = nil) + # Pass arguments to `cancel_operation` via a request object, either of type + # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. + # + # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload cancel_operation(name: nil) + # Pass arguments to `cancel_operation` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # The name of the operation resource to be cancelled. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/longrunning" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Longrunning::Operations::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Longrunning::CancelOperationRequest.new + # + # # Call the cancel_operation method. + # result = client.cancel_operation request + # + # # The returned object is of type Google::Protobuf::Empty. + # p result + # + def cancel_operation request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.cancel_operation.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.cancel_operation.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @operations_stub.cancel_operation request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the Operations REST API. + # + # This class represents the configuration for Operations REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_operations to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Longrunning::Operations::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_operations.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private + # The endpoint specific to the default "googleapis.com" universe. Deprecated. + DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" + + config_attr :endpoint, nil, ::String, nil + config_attr :credentials, nil do |value| + allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] + allowed.any? { |klass| klass === value } + end + config_attr :scope, nil, ::String, ::Array, nil + config_attr :lib_name, nil, ::String, nil + config_attr :lib_version, nil, ::String, nil + config_attr :timeout, nil, ::Numeric, nil + config_attr :metadata, nil, ::Hash, nil + config_attr :retry_policy, nil, ::Hash, ::Proc, nil + config_attr :quota_project, nil, ::String, nil + config_attr :universe_domain, nil, ::String, nil + config_attr :logger, :default, ::Logger, nil, :default + + # @private + def initialize parent_config = nil + @parent_config = parent_config unless parent_config.nil? + + yield self if block_given? + end + + ## + # Configurations for individual RPCs + # @return [Rpcs] + # + def rpcs + @rpcs ||= begin + parent_rpcs = nil + parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) + Rpcs.new parent_rpcs + end + end + + ## + # Configuration RPC class for the Operations API. + # + # Includes fields providing the configuration for each RPC in this service. + # Each configuration object is of type `Gapic::Config::Method` and includes + # the following configuration fields: + # + # * `timeout` (*type:* `Numeric`) - The call timeout in seconds + # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers + # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields + # include the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # + class Rpcs + ## + # RPC-specific configuration for `list_operations` + # @return [::Gapic::Config::Method] + # + attr_reader :list_operations + ## + # RPC-specific configuration for `get_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :get_operation + ## + # RPC-specific configuration for `delete_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_operation + ## + # RPC-specific configuration for `cancel_operation` + # @return [::Gapic::Config::Method] + # + attr_reader :cancel_operation + + # @private + def initialize parent_rpcs = nil + list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations + @list_operations = ::Gapic::Config::Method.new list_operations_config + get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation + @get_operation = ::Gapic::Config::Method.new get_operation_config + delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation + @delete_operation = ::Gapic::Config::Method.new delete_operation_config + cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation + @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config + + yield self if block_given? + end + end + end + end + + ## + # @private + # REST service stub for the Longrunning Operations API. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + class OperationsServiceStub + def initialize endpoint:, endpoint_template:, universe_domain:, credentials: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials + end + + ## + # Baseline implementation for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::ListOperationsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::ListOperationsResponse] + # A result object deserialized from the server's reply + def list_operations request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_operations", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def get_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def delete_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Protobuf::Empty] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Protobuf::Empty] + # A result object deserialized from the server's reply + def cancel_operation request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "cancel_operation", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_operations REST call + # + # @param request_pb [::Google::Longrunning::ListOperationsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_operations_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_operation REST call + # + # @param request_pb [::Google::Longrunning::GetOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_operation REST call + # + # @param request_pb [::Google::Longrunning::DeleteOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the cancel_operation REST call + # + # @param request_pb [::Google::Longrunning::CancelOperationRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_cancel_operation_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb new file mode 100644 index 000000000000..b2004bddb044 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb @@ -0,0 +1,5053 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/oracledatabase/v1/oracledatabase_pb" + +module Google + module Cloud + module OracleDatabase + module V1 + module OracleDatabase + module Rest + ## + # REST service stub for the OracleDatabase service. + # Service stub contains baseline method implementations + # including transcoding, making the REST call, and deserialing the response. + # + class ServiceStub + # @private + def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: + # These require statements are intentionally placed here to initialize + # the REST modules only when it's required. + require "gapic/rest" + + @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, + endpoint_template: endpoint_template, + universe_domain: universe_domain, + credentials: credentials, + numeric_enums: true, + service_name: self.class, + raise_faraday_errors: false, + logger: logger + end + + ## + # The effective universe domain + # + # @return [String] + # + def universe_domain + @client_stub.universe_domain + end + + ## + # The effective endpoint + # + # @return [String] + # + def endpoint + @client_stub.endpoint + end + + ## + # The logger used for request/response debug logging. + # + # @return [Logger] + # + def logger stub: false + stub ? @client_stub.stub_logger : @client_stub.logger + end + + ## + # Baseline implementation for the list_cloud_exadata_infrastructures REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse] + # A result object deserialized from the server's reply + def list_cloud_exadata_infrastructures request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_cloud_exadata_infrastructures_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_cloud_exadata_infrastructures", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] + # A result object deserialized from the server's reply + def get_cloud_exadata_infrastructure request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_cloud_exadata_infrastructure_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_cloud_exadata_infrastructure", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_cloud_exadata_infrastructure request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_cloud_exadata_infrastructure_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_cloud_exadata_infrastructure", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_cloud_exadata_infrastructure request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_cloud_exadata_infrastructure_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_cloud_exadata_infrastructure", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_cloud_vm_clusters REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse] + # A result object deserialized from the server's reply + def list_cloud_vm_clusters request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_cloud_vm_clusters_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_cloud_vm_clusters", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] + # A result object deserialized from the server's reply + def get_cloud_vm_cluster request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_cloud_vm_cluster_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_cloud_vm_cluster", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::CloudVmCluster.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_cloud_vm_cluster request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_cloud_vm_cluster_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_cloud_vm_cluster", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_cloud_vm_cluster request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_cloud_vm_cluster_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_cloud_vm_cluster", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_entitlements REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse] + # A result object deserialized from the server's reply + def list_entitlements request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_entitlements_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_entitlements", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_db_servers REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbServersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDbServersResponse] + # A result object deserialized from the server's reply + def list_db_servers request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_db_servers_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_db_servers", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_db_nodes REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse] + # A result object deserialized from the server's reply + def list_db_nodes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_db_nodes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_db_nodes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_gi_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse] + # A result object deserialized from the server's reply + def list_gi_versions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_gi_versions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_gi_versions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_minor_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse] + # A result object deserialized from the server's reply + def list_minor_versions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_minor_versions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_minor_versions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_db_system_shapes REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse] + # A result object deserialized from the server's reply + def list_db_system_shapes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_db_system_shapes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_db_system_shapes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_autonomous_databases REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse] + # A result object deserialized from the server's reply + def list_autonomous_databases request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_databases_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_autonomous_databases", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] + # A result object deserialized from the server's reply + def get_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def update_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the restore_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def restore_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_restore_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "restore_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the generate_autonomous_database_wallet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] + # A result object deserialized from the server's reply + def generate_autonomous_database_wallet request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_generate_autonomous_database_wallet_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "generate_autonomous_database_wallet", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_autonomous_db_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse] + # A result object deserialized from the server's reply + def list_autonomous_db_versions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_db_versions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_autonomous_db_versions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_autonomous_database_character_sets REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse] + # A result object deserialized from the server's reply + def list_autonomous_database_character_sets request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_database_character_sets_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_autonomous_database_character_sets", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_autonomous_database_backups REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse] + # A result object deserialized from the server's reply + def list_autonomous_database_backups request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_database_backups_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_autonomous_database_backups", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the stop_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def stop_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_stop_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "stop_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the start_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def start_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_start_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "start_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the restart_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def restart_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_restart_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "restart_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the switchover_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def switchover_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_switchover_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "switchover_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the failover_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def failover_autonomous_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_failover_autonomous_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "failover_autonomous_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_odb_networks REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse] + # A result object deserialized from the server's reply + def list_odb_networks request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_odb_networks_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_odb_networks", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_odb_network REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbNetwork] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork] + # A result object deserialized from the server's reply + def get_odb_network request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_odb_network_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_odb_network", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::OdbNetwork.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_odb_network REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_odb_network request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_odb_network_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_odb_network", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_odb_network REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_odb_network request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_odb_network_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_odb_network", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_odb_subnets REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse] + # A result object deserialized from the server's reply + def list_odb_subnets request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_odb_subnets_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_odb_subnets", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_odb_subnet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbSubnet] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet] + # A result object deserialized from the server's reply + def get_odb_subnet request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_odb_subnet_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_odb_subnet", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::OdbSubnet.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_odb_subnet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_odb_subnet request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_odb_subnet_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_odb_subnet", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_odb_subnet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_odb_subnet request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_odb_subnet_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_odb_subnet", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_exadb_vm_clusters REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse] + # A result object deserialized from the server's reply + def list_exadb_vm_clusters request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_exadb_vm_clusters_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_exadb_vm_clusters", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] + # A result object deserialized from the server's reply + def get_exadb_vm_cluster request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_exadb_vm_cluster_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_exadb_vm_cluster", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_exadb_vm_cluster request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_exadb_vm_cluster_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_exadb_vm_cluster", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_exadb_vm_cluster request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_exadb_vm_cluster_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_exadb_vm_cluster", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the update_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def update_exadb_vm_cluster request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_update_exadb_vm_cluster_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "update_exadb_vm_cluster", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the remove_virtual_machine_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def remove_virtual_machine_exadb_vm_cluster request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_remove_virtual_machine_exadb_vm_cluster_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "remove_virtual_machine_exadb_vm_cluster", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_exascale_db_storage_vaults REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse] + # A result object deserialized from the server's reply + def list_exascale_db_storage_vaults request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_exascale_db_storage_vaults_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_exascale_db_storage_vaults", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_exascale_db_storage_vault REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] + # A result object deserialized from the server's reply + def get_exascale_db_storage_vault request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_exascale_db_storage_vault_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_exascale_db_storage_vault", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_exascale_db_storage_vault REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_exascale_db_storage_vault request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_exascale_db_storage_vault_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_exascale_db_storage_vault", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_exascale_db_storage_vault REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_exascale_db_storage_vault request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_exascale_db_storage_vault_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_exascale_db_storage_vault", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_db_system_initial_storage_sizes REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse] + # A result object deserialized from the server's reply + def list_db_system_initial_storage_sizes request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_db_system_initial_storage_sizes_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_db_system_initial_storage_sizes", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_databases REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse] + # A result object deserialized from the server's reply + def list_databases request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_databases_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_databases", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::Database] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::Database] + # A result object deserialized from the server's reply + def get_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::Database.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_pluggable_databases REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse] + # A result object deserialized from the server's reply + def list_pluggable_databases request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_pluggable_databases_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_pluggable_databases", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_pluggable_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] + # A result object deserialized from the server's reply + def get_pluggable_database request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_pluggable_database_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_pluggable_database", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::PluggableDatabase.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_db_systems REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse] + # A result object deserialized from the server's reply + def list_db_systems request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_db_systems_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_db_systems", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_db_system REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::DbSystem] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::DbSystem] + # A result object deserialized from the server's reply + def get_db_system request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_db_system_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_db_system", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::DbSystem.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_db_system REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_db_system request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_db_system_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_db_system", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_db_system REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_db_system request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_db_system_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_db_system", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_deployments REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse] + # A result object deserialized from the server's reply + def list_goldengate_deployments request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployments_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_deployments", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # A result object deserialized from the server's reply + def get_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the stop_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def stop_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_stop_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "stop_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the start_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def start_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_start_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "start_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_connections REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse] + # A result object deserialized from the server's reply + def list_goldengate_connections request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connections_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_connections", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_connection REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # A result object deserialized from the server's reply + def get_goldengate_connection request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_connection", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_goldengate_connection REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_goldengate_connection request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_connection_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_goldengate_connection", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_goldengate_connection REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_goldengate_connection request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_connection_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_goldengate_connection", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_deployment_version REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # A result object deserialized from the server's reply + def get_goldengate_deployment_version request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_version_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_deployment_version", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_deployment_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse] + # A result object deserialized from the server's reply + def list_goldengate_deployment_versions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_versions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_deployment_versions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_deployment_type REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # A result object deserialized from the server's reply + def get_goldengate_deployment_type request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_type_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_deployment_type", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_deployment_types REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse] + # A result object deserialized from the server's reply + def list_goldengate_deployment_types request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_types_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_deployment_types", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_deployment_environment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # A result object deserialized from the server's reply + def get_goldengate_deployment_environment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_environment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_deployment_environment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_deployment_environments REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse] + # A result object deserialized from the server's reply + def list_goldengate_deployment_environments request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_environments_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_deployment_environments", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_connection_type REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # A result object deserialized from the server's reply + def get_goldengate_connection_type request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_type_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_connection_type", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_connection_types REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse] + # A result object deserialized from the server's reply + def list_goldengate_connection_types request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connection_types_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_connection_types", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_db_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse] + # A result object deserialized from the server's reply + def list_db_versions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_db_versions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_db_versions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_database_character_sets REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse] + # A result object deserialized from the server's reply + def list_database_character_sets request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_database_character_sets_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_database_character_sets", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_connection_assignments REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse] + # A result object deserialized from the server's reply + def list_goldengate_connection_assignments request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connection_assignments_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_connection_assignments", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # A result object deserialized from the server's reply + def get_goldengate_connection_assignment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_assignment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_connection_assignment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_goldengate_connection_assignment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_connection_assignment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_goldengate_connection_assignment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_goldengate_connection_assignment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_connection_assignment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_goldengate_connection_assignment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the test_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # A result object deserialized from the server's reply + def test_goldengate_connection_assignment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_test_goldengate_connection_assignment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "test_goldengate_connection_assignment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_cloud_exadata_infrastructures REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_cloud_exadata_infrastructures_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/cloudExadataInfrastructures", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_cloud_exadata_infrastructure_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_cloud_exadata_infrastructure_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/cloudExadataInfrastructures", + body: "cloud_exadata_infrastructure", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_cloud_exadata_infrastructure_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_cloud_vm_clusters REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_cloud_vm_clusters_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/cloudVmClusters", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_cloud_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_cloud_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/cloudVmClusters", + body: "cloud_vm_cluster", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_cloud_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_entitlements REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_entitlements_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/entitlements", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_servers REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_servers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbServers", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_nodes REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_nodes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbNodes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbNodes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_gi_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_gi_versions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/giVersions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_minor_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_minor_versions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/minorVersions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/giVersions/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_system_shapes REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_system_shapes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbSystemShapes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_autonomous_databases REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_autonomous_databases_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/autonomousDatabases", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/autonomousDatabases", + body: "autonomous_database", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{autonomous_database.name}", + body: "autonomous_database", + matches: [ + ["autonomous_database.name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the restore_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_restore_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:restore", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the generate_autonomous_database_wallet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_generate_autonomous_database_wallet_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:generateWallet", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_autonomous_db_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_autonomous_db_versions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/autonomousDbVersions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_autonomous_database_character_sets REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_autonomous_database_character_sets_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/autonomousDatabaseCharacterSets", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_autonomous_database_backups REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_autonomous_database_backups_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/autonomousDatabaseBackups", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the stop_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_stop_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:stop", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the start_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_start_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:start", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the restart_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_restart_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:restart", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the switchover_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_switchover_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:switchover", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the failover_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_failover_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:failover", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_odb_networks REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_odb_networks_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/odbNetworks", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_odb_network REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_odb_network_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_odb_network REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_odb_network_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/odbNetworks", + body: "odb_network", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_odb_network REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_odb_network_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_odb_subnets REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_odb_subnets_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/odbSubnets", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_odb_subnet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_odb_subnet_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_odb_subnet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_odb_subnet_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/odbSubnets", + body: "odb_subnet", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_odb_subnet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_odb_subnet_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_exadb_vm_clusters REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_exadb_vm_clusters_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/exadbVmClusters", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_exadb_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_exadb_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/exadbVmClusters", + body: "exadb_vm_cluster", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_exadb_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_exadb_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{exadb_vm_cluster.name}", + body: "exadb_vm_cluster", + matches: [ + ["exadb_vm_cluster.name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the remove_virtual_machine_exadb_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_remove_virtual_machine_exadb_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:removeVirtualMachine", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_exascale_db_storage_vaults REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_exascale_db_storage_vaults_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/exascaleDbStorageVaults", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_exascale_db_storage_vault REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_exascale_db_storage_vault_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_exascale_db_storage_vault REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_exascale_db_storage_vault_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/exascaleDbStorageVaults", + body: "exascale_db_storage_vault", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_exascale_db_storage_vault REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_exascale_db_storage_vault_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_system_initial_storage_sizes REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_system_initial_storage_sizes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbSystemInitialStorageSizes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_databases REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_databases_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/databases", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/databases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_pluggable_databases REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_pluggable_databases_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/pluggableDatabases", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_pluggable_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_pluggable_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/pluggableDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_systems REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_systems_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbSystems", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_db_system REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_db_system_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_db_system REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_db_system_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/dbSystems", + body: "db_system", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_db_system REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_db_system_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_goldengate_deployments REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_goldengate_deployments_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/goldengateDeployments", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_goldengate_deployment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_goldengate_deployment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/goldengateDeployments", + body: "goldengate_deployment", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_goldengate_deployment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the stop_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_stop_goldengate_deployment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:stop", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the start_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_start_goldengate_deployment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:start", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_goldengate_connections REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_goldengate_connections_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/goldengateConnections", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_goldengate_connection REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_goldengate_connection_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnections/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_goldengate_connection REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_goldengate_connection_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/goldengateConnections", + body: "goldengate_connection", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_goldengate_connection REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_goldengate_connection_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnections/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_goldengate_deployment_version REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_goldengate_deployment_version_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentVersions/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_goldengate_deployment_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_goldengate_deployment_versions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/goldengateDeploymentVersions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_goldengate_deployment_type REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_goldengate_deployment_type_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentTypes/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_goldengate_deployment_types REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_goldengate_deployment_types_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/goldengateDeploymentTypes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_goldengate_deployment_environment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_goldengate_deployment_environment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentEnvironments/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_goldengate_deployment_environments REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_goldengate_deployment_environments_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/goldengateDeploymentEnvironments", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_goldengate_connection_type REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_goldengate_connection_type_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionTypes/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_goldengate_connection_types REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_goldengate_connection_types_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/goldengateConnectionTypes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_versions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbVersions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_database_character_sets REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_database_character_sets_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/databaseCharacterSets", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_goldengate_connection_assignments REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_goldengate_connection_assignments_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/goldengateConnectionAssignments", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_goldengate_connection_assignment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_goldengate_connection_assignment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/goldengateConnectionAssignments", + body: "goldengate_connection_assignment", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_goldengate_connection_assignment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the test_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_test_goldengate_connection_assignment_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:test", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + end + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/rest.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/rest.rb new file mode 100644 index 000000000000..b868c499e65f --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/rest.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "google/cloud/oracle_database/v1/oracle_database/rest" +require "google/cloud/oracle_database/v1/bindings_override" +require "google/cloud/oracle_database/v1/version" + +module Google + module Cloud + module OracleDatabase + ## + # To load just the REST part of this package, including all its services, and instantiate a REST client: + # + # @example + # + # require "google/cloud/oracle_database/v1/rest" + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + module V1 + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/version.rb new file mode 100644 index 000000000000..46ab3c0683b4 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/version.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + VERSION = "0.0.1" + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb new file mode 100644 index 000000000000..e8ce2b0977af --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/autonomous_database_character_set.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nFgoogle/cloud/oracledatabase/v1/autonomous_database_character_set.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x88\x04\n\x1e\x41utonomousDatabaseCharacterSet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12p\n\x12\x63haracter_set_type\x18\x02 \x01(\x0e\x32O.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetTypeB\x03\xe0\x41\x03\x12\x1a\n\rcharacter_set\x18\x03 \x01(\tB\x03\xe0\x41\x03\"R\n\x10\x43haracterSetType\x12\"\n\x1e\x43HARACTER_SET_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x41TABASE\x10\x01\x12\x0c\n\x08NATIONAL\x10\x02:\xf0\x01\xea\x41\xec\x01\n.google.cloud.oracledatabase.v1.AutonomousDatabase.LabelsEntryB\x03\xe0\x41\x01\x12:\n\x07network\x18\t \x01(\tB)\xe0\x41\x01\xe0\x41\x05\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x14\n\x04\x63idr\x18\n \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12H\n\x0bodb_network\x18\x10 \x01(\tB3\xe0\x41\x01\xe0\x41\x05\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x46\n\nodb_subnet\x18\x11 \x01(\tB2\xe0\x41\x01\xe0\x41\x05\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12K\n\rsource_config\x18\x0b \x01(\x0b\x32,.google.cloud.oracledatabase.v1.SourceConfigB\x06\xe0\x41\x01\xe0\x41\x05\x12[\n\x19peer_autonomous_databases\x18\x0c \x03(\tB8\xe0\x41\x03\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12X\n%disaster_recovery_supported_locations\x18\x0f \x03(\tB)\xe0\x41\x03\xfa\x41#\n!locations.googleapis.com/Location\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xb2\x01\xea\x41\xae\x01\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Qprojects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}*\x13\x61utonomousDatabases2\x12\x61utonomousDatabase\"\x99\x01\n\x0cSourceConfig\x12U\n\x13\x61utonomous_database\x18\x01 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x32\n%automatic_backups_replication_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe0)\n\x1c\x41utonomousDatabaseProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\rcompute_count\x18\x02 \x01(\x02\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x1e\n\x0e\x63pu_core_count\x18\x03 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12$\n\x14\x64\x61ta_storage_size_tb\x18\x04 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12$\n\x14\x64\x61ta_storage_size_gb\x18? \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12G\n\x0b\x64\x62_workload\x18\x05 \x01(\x0e\x32*.google.cloud.oracledatabase.v1.DBWorkloadB\x06\xe0\x41\x02\xe0\x41\x05\x12h\n\ndb_edition\x18\x06 \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEditionB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1d\n\rcharacter_set\x18\x08 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1f\n\x0fn_character_set\x18\t \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12#\n\x13private_endpoint_ip\x18\n \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12&\n\x16private_endpoint_label\x18\x0b \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1a\n\ndb_version\x18\x0c \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\'\n\x17is_auto_scaling_enabled\x18\x0e \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12/\n\x1fis_storage_auto_scaling_enabled\x18\x0f \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x66\n\x0clicense_type\x18\x10 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12R\n\x11\x63ustomer_contacts\x18\x11 \x03(\x0b\x32/.google.cloud.oracledatabase.v1.CustomerContactB\x06\xe0\x41\x01\xe0\x41\x05\x12\x19\n\tsecret_id\x18\x12 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x18\n\x08vault_id\x18\x13 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x7f\n\x19maintenance_schedule_type\x18\x14 \x01(\x0e\x32T.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleTypeB\x06\xe0\x41\x01\xe0\x41\x05\x12(\n\x18mtls_connection_required\x18\" \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12,\n\x1c\x62\x61\x63kup_retention_period_days\x18\x39 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12-\n actual_used_data_storage_size_tb\x18\x15 \x01(\x01\x42\x03\xe0\x41\x03\x12&\n\x19\x61llocated_storage_size_tb\x18\x16 \x01(\x01\x42\x03\xe0\x41\x03\x12Q\n\x0c\x61pex_details\x18\x17 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.AutonomousDatabaseApexB\x03\xe0\x41\x03\x12\x32\n are_primary_allowlisted_ips_used\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x11lifecycle_details\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x1a \x01(\x0e\x32%.google.cloud.oracledatabase.v1.StateB\x03\xe0\x41\x03\x12-\n autonomous_container_database_id\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12\'\n\x1a\x61vailable_upgrade_versions\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x64\n\x12\x63onnection_strings\x18\x1d \x01(\x0b\x32\x43.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsB\x03\xe0\x41\x03\x12^\n\x0f\x63onnection_urls\x18\x1e \x01(\x0b\x32@.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsB\x03\xe0\x41\x03\x12\x45\n\x1d\x66\x61iled_data_recovery_duration\x18\x1f \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1d\n\x10memory_table_gbs\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12*\n\x1bis_local_data_guard_enabled\x18! \x01(\x08\x42\x05\x18\x01\xe0\x41\x03\x12:\n+local_adg_auto_failover_max_data_loss_limit\x18# \x01(\x05\x42\x05\x18\x01\xe0\x41\x03\x12_\n\x10local_standby_db\x18$ \x01(\x0b\x32@.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryB\x03\xe0\x41\x03\x12/\n\"memory_per_oracle_compute_unit_gbs\x18% \x01(\x05\x42\x03\xe0\x41\x03\x12\x81\x01\n\x1clocal_disaster_recovery_type\x18& \x01(\x0e\x32V.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryTypeB\x03\xe0\x41\x03\x12h\n\x0f\x64\x61ta_safe_state\x18\' \x01(\x0e\x32J.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeStateB\x03\xe0\x41\x03\x12|\n\x19\x64\x61tabase_management_state\x18( \x01(\x0e\x32T.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementStateB\x03\xe0\x41\x03\x12]\n\topen_mode\x18) \x01(\x0e\x32\x45.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenModeB\x03\xe0\x41\x03\x12_\n\x19operations_insights_state\x18* \x01(\x0e\x32\x37.google.cloud.oracledatabase.v1.OperationsInsightsStateB\x03\xe0\x41\x03\x12\x18\n\x0bpeer_db_ids\x18+ \x03(\tB\x03\xe0\x41\x03\x12k\n\x10permission_level\x18, \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevelB\x03\xe0\x41\x03\x12\x1d\n\x10private_endpoint\x18- \x01(\tB\x03\xe0\x41\x03\x12k\n\x10refreshable_mode\x18. \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableModeB\x03\xe0\x41\x03\x12m\n\x11refreshable_state\x18/ \x01(\x0e\x32M.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableStateB\x03\xe0\x41\x03\x12T\n\x04role\x18\x30 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RoleB\x03\xe0\x41\x03\x12\x63\n\x1bscheduled_operation_details\x18@ \x03(\x0b\x32\x39.google.cloud.oracledatabase.v1.ScheduledOperationDetailsB\x03\xe0\x41\x03\x12\"\n\x15sql_web_developer_url\x18\x32 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17supported_clone_regions\x18\x33 \x03(\tB\x03\xe0\x41\x03\x12\'\n\x1aused_data_storage_size_tbs\x18\x35 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\x36 \x01(\tB\x03\xe0\x41\x03\x12/\n\"total_auto_backup_storage_size_gbs\x18; \x01(\x02\x42\x03\xe0\x41\x03\x12\x43\n\x1anext_long_term_backup_time\x18< \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x1c\x64\x61ta_guard_role_changed_time\x18= \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n#disaster_recovery_role_changed_time\x18> \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_begin_time\x18\x41 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\x42 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\x0f\x61llowlisted_ips\x18\x43 \x03(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12J\n\x0e\x65ncryption_key\x18\x44 \x01(\x0b\x32-.google.cloud.oracledatabase.v1.EncryptionKeyB\x03\xe0\x41\x01\x12\x66\n\x1e\x65ncryption_key_history_entries\x18\x45 \x03(\x0b\x32\x39.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryB\x03\xe0\x41\x03\x12 \n\x13service_agent_email\x18\x46 \x01(\tB\x03\xe0\x41\x03\x12*\n\x18local_data_guard_enabled\x18G \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x46\n4local_adg_auto_failover_max_data_loss_limit_duration\x18H \x01(\x05\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\"a\n\x0f\x44\x61tabaseEdition\x12 \n\x1c\x44\x41TABASE_EDITION_UNSPECIFIED\x10\x00\x12\x14\n\x10STANDARD_EDITION\x10\x01\x12\x16\n\x12\x45NTERPRISE_EDITION\x10\x02\"]\n\x0bLicenseType\x12\x1c\n\x18LICENSE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\\\n\x17MaintenanceScheduleType\x12)\n%MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45\x41RLY\x10\x01\x12\x0b\n\x07REGULAR\x10\x02\"w\n\x19LocalDisasterRecoveryType\x12,\n(LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44G\x10\x01\x12\x10\n\x0c\x42\x41\x43KUP_BASED\x10\x02\x12\x11\n\rNOT_AVAILABLE\x10\x03\"\x84\x01\n\rDataSafeState\x12\x1f\n\x1b\x44\x41TA_SAFE_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bREGISTERING\x10\x01\x12\x0e\n\nREGISTERED\x10\x02\x12\x11\n\rDEREGISTERING\x10\x03\x12\x12\n\x0eNOT_REGISTERED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"\xaa\x01\n\x17\x44\x61tabaseManagementState\x12)\n%DATABASE_MANAGEMENT_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06\"D\n\x08OpenMode\x12\x19\n\x15OPEN_MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\"U\n\x0fPermissionLevel\x12 \n\x1cPERMISSION_LEVEL_UNSPECIFIED\x10\x00\x12\x0e\n\nRESTRICTED\x10\x01\x12\x10\n\x0cUNRESTRICTED\x10\x02\"N\n\x0fRefreshableMode\x12 \n\x1cREFRESHABLE_MODE_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATIC\x10\x01\x12\n\n\x06MANUAL\x10\x02\"Y\n\x10RefreshableState\x12!\n\x1dREFRESHABLE_STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nREFRESHING\x10\x01\x12\x12\n\x0eNOT_REFRESHING\x10\x02\"s\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\x0b\n\x07STANDBY\x10\x02\x12\x14\n\x10\x44ISABLED_STANDBY\x10\x03\x12\x0f\n\x0b\x42\x41\x43KUP_COPY\x10\x04\x12\x14\n\x10SNAPSHOT_STANDBY\x10\x05\x42#\n!_are_primary_allowlisted_ips_usedB\x1b\n\x19_local_data_guard_enabledB7\n5_local_adg_auto_failover_max_data_loss_limit_duration\"\xa1\x01\n\x19\x45ncryptionKeyHistoryEntry\x12J\n\x0e\x65ncryption_key\x18\x01 \x01(\x0b\x32-.google.cloud.oracledatabase.v1.EncryptionKeyB\x03\xe0\x41\x03\x12\x38\n\x0f\x61\x63tivation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xe8\x01\n\rEncryptionKey\x12M\n\x08provider\x18\x01 \x01(\x0e\x32\x36.google.cloud.oracledatabase.v1.EncryptionKey.ProviderB\x03\xe0\x41\x01\x12:\n\x07kms_key\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"L\n\x08Provider\x12\x18\n\x14PROVIDER_UNSPECIFIED\x10\x00\x12\x12\n\x0eGOOGLE_MANAGED\x10\x01\x12\x12\n\x0eORACLE_MANAGED\x10\x02\"N\n\x16\x41utonomousDatabaseApex\x12\x19\n\x0c\x61pex_version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cords_version\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xaa\x02\n#AutonomousDatabaseConnectionStrings\x12Y\n\x16\x61ll_connection_strings\x18\x01 \x01(\x0b\x32\x34.google.cloud.oracledatabase.v1.AllConnectionStringsB\x03\xe0\x41\x03\x12\x16\n\tdedicated\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04high\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03low\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06medium\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12V\n\x08profiles\x18\x06 \x03(\x0b\x32?.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileB\x03\xe0\x41\x03\"\xb2\t\n\x1f\x44\x61tabaseConnectionStringProfile\x12j\n\x0e\x63onsumer_group\x18\x01 \x01(\x0e\x32M.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroupB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x64\n\x0bhost_format\x18\x03 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormatB\x03\xe0\x41\x03\x12\x18\n\x0bis_regional\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12_\n\x08protocol\x18\x05 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ProtocolB\x03\xe0\x41\x03\x12\x66\n\x0csession_mode\x18\x06 \x01(\x0e\x32K.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionModeB\x03\xe0\x41\x03\x12h\n\rsyntax_format\x18\x07 \x01(\x0e\x32L.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormatB\x03\xe0\x41\x03\x12r\n\x12tls_authentication\x18\x08 \x01(\x0e\x32Q.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthenticationB\x03\xe0\x41\x03\x12\x12\n\x05value\x18\t \x01(\tB\x03\xe0\x41\x03\"d\n\rConsumerGroup\x12\x1e\n\x1a\x43ONSUMER_GROUP_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x07\n\x03LOW\x10\x03\x12\x06\n\x02TP\x10\x04\x12\x0c\n\x08TPURGENT\x10\x05\";\n\nHostFormat\x12\x1b\n\x17HOST_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46QDN\x10\x01\x12\x06\n\x02IP\x10\x02\"7\n\x08Protocol\x12\x18\n\x14PROTOCOL_UNSPECIFIED\x10\x00\x12\x07\n\x03TCP\x10\x01\x12\x08\n\x04TCPS\x10\x02\"E\n\x0bSessionMode\x12\x1c\n\x18SESSION_MODE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44IRECT\x10\x01\x12\x0c\n\x08INDIRECT\x10\x02\"Y\n\x0cSyntaxFormat\x12\x1d\n\x19SYNTAX_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04LONG\x10\x01\x12\r\n\tEZCONNECT\x10\x02\x12\x11\n\rEZCONNECTPLUS\x10\x03\"O\n\x11TLSAuthentication\x12\"\n\x1eTLS_AUTHENTICATION_UNSPECIFIED\x10\x00\x12\n\n\x06SERVER\x10\x01\x12\n\n\x06MUTUAL\x10\x02\"P\n\x14\x41llConnectionStrings\x12\x11\n\x04high\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03low\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06medium\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xad\x02\n AutonomousDatabaseConnectionUrls\x12\x15\n\x08\x61pex_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17\x64\x61tabase_transforms_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10graph_studio_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12*\n\x1dmachine_learning_notebook_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x31\n$machine_learning_user_management_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cmongo_db_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08ords_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsql_dev_web_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\"\xcd\x02\n AutonomousDatabaseStandbySummary\x12\x39\n\x11lag_time_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1e\n\x11lifecycle_details\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32%.google.cloud.oracledatabase.v1.StateB\x03\xe0\x41\x03\x12\x45\n\x1c\x64\x61ta_guard_role_changed_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n#disaster_recovery_role_changed_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xae\x01\n\x19ScheduledOperationDetails\x12\x30\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x03\x12/\n\nstart_time\x18\x04 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x03\x12.\n\tstop_time\x18\x05 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x03*B\n\x0cGenerateType\x12\x1d\n\x19GENERATE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\n\n\x06SINGLE\x10\x02*\xab\x03\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08STOPPING\x10\x03\x12\x0b\n\x07STOPPED\x10\x04\x12\x0c\n\x08STARTING\x10\x05\x12\x0f\n\x0bTERMINATING\x10\x06\x12\x0e\n\nTERMINATED\x10\x07\x12\x0f\n\x0bUNAVAILABLE\x10\x08\x12\x17\n\x13RESTORE_IN_PROGRESS\x10\t\x12\x12\n\x0eRESTORE_FAILED\x10\n\x12\x16\n\x12\x42\x41\x43KUP_IN_PROGRESS\x10\x0b\x12\x15\n\x11SCALE_IN_PROGRESS\x10\x0c\x12\x1d\n\x19\x41VAILABLE_NEEDS_ATTENTION\x10\r\x12\x0c\n\x08UPDATING\x10\x0e\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x0f\x12\x0e\n\nRESTARTING\x10\x10\x12\x0e\n\nRECREATING\x10\x11\x12\x1b\n\x17ROLE_CHANGE_IN_PROGRESS\x10\x12\x12\r\n\tUPGRADING\x10\x13\x12\x10\n\x0cINACCESSIBLE\x10\x14\x12\x0b\n\x07STANDBY\x10\x15*\xaa\x01\n\x17OperationsInsightsState\x12)\n%OPERATIONS_INSIGHTS_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06*N\n\nDBWorkload\x12\x1b\n\x17\x44\x42_WORKLOAD_UNSPECIFIED\x10\x00\x12\x08\n\x04OLTP\x10\x01\x12\x06\n\x02\x44W\x10\x02\x12\x07\n\x03\x41JD\x10\x03\x12\x08\n\x04\x41PEX\x10\x04\x42\xf1\x01\n\"com.google.cloud.oracledatabase.v1B\x17\x41utonomousDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + AutonomousDatabase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabase").msgclass + SourceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.SourceConfig").msgclass + AutonomousDatabaseProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties").msgclass + AutonomousDatabaseProperties::DatabaseEdition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition").enummodule + AutonomousDatabaseProperties::LicenseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType").enummodule + AutonomousDatabaseProperties::MaintenanceScheduleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType").enummodule + AutonomousDatabaseProperties::LocalDisasterRecoveryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType").enummodule + AutonomousDatabaseProperties::DataSafeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState").enummodule + AutonomousDatabaseProperties::DatabaseManagementState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState").enummodule + AutonomousDatabaseProperties::OpenMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode").enummodule + AutonomousDatabaseProperties::PermissionLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel").enummodule + AutonomousDatabaseProperties::RefreshableMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode").enummodule + AutonomousDatabaseProperties::RefreshableState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState").enummodule + AutonomousDatabaseProperties::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role").enummodule + EncryptionKeyHistoryEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry").msgclass + EncryptionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.EncryptionKey").msgclass + EncryptionKey::Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.EncryptionKey.Provider").enummodule + AutonomousDatabaseApex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseApex").msgclass + AutonomousDatabaseConnectionStrings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings").msgclass + DatabaseConnectionStringProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile").msgclass + DatabaseConnectionStringProfile::ConsumerGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup").enummodule + DatabaseConnectionStringProfile::HostFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat").enummodule + DatabaseConnectionStringProfile::Protocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol").enummodule + DatabaseConnectionStringProfile::SessionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode").enummodule + DatabaseConnectionStringProfile::SyntaxFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat").enummodule + DatabaseConnectionStringProfile::TLSAuthentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication").enummodule + AllConnectionStrings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AllConnectionStrings").msgclass + AutonomousDatabaseConnectionUrls = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls").msgclass + AutonomousDatabaseStandbySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary").msgclass + ScheduledOperationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ScheduledOperationDetails").msgclass + GenerateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GenerateType").enummodule + State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.State").enummodule + OperationsInsightsState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OperationsInsightsState").enummodule + DBWorkload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DBWorkload").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb new file mode 100644 index 000000000000..bedf6a362cb2 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/autonomous_db_backup.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n9google/cloud/oracledatabase/v1/autonomous_db_backup.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x04\n\x18\x41utonomousDatabaseBackup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12U\n\x13\x61utonomous_database\x18\x02 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12[\n\nproperties\x18\x04 \x01(\x0b\x32\x42.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesB\x03\xe0\x41\x01\x12Y\n\x06labels\x18\x05 \x03(\x0b\x32\x44.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xd1\x01\xea\x41\xcd\x01\n6oracledatabase.googleapis.com/AutonomousDatabaseBackup\x12^projects/{project}/locations/{location}/autonomousDatabaseBackups/{autonomous_database_backup}*\x19\x61utonomousDatabaseBackups2\x18\x61utonomousDatabaseBackup\"\xf2\x07\n\"AutonomousDatabaseBackupProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15retention_period_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0e\x63ompartment_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x64\x61tabase_size_tb\x18\x04 \x01(\x02\x42\x03\xe0\x41\x03\x12\x17\n\ndb_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13is_long_term_backup\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12 \n\x13is_automatic_backup\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\ris_restorable\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12\x19\n\x0ckey_store_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10key_store_wallet\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nkms_key_id\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12kms_key_version_id\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11lifecycle_details\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x66\n\x0flifecycle_state\x18\x0e \x01(\x0e\x32H.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.StateB\x03\xe0\x41\x03\x12\x14\n\x07size_tb\x18\x0f \x01(\x02\x42\x03\xe0\x41\x03\x12<\n\x13\x61vailable_till_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Z\n\x04type\x18\x13 \x01(\x0e\x32G.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.TypeB\x03\xe0\x41\x03\x12\x15\n\x08vault_id\x18\x14 \x01(\tB\x03\xe0\x41\x01\"m\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08UPDATING\x10\x07\"F\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINCREMENTAL\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x12\r\n\tLONG_TERM\x10\x03\x42\xf1\x01\n\"com.google.cloud.oracledatabase.v1B\x17\x41utonomousDbBackupProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + AutonomousDatabaseBackup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseBackup").msgclass + AutonomousDatabaseBackupProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties").msgclass + AutonomousDatabaseBackupProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State").enummodule + AutonomousDatabaseBackupProperties::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb new file mode 100644 index 000000000000..f6b11887ea0a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/autonomous_db_version.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/cloud/oracledatabase/v1/autonomous_database_pb' + + +descriptor_data = "\n:google/cloud/oracledatabase/v1/autonomous_db_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/oracledatabase/v1/autonomous_database.proto\"\xda\x02\n\x13\x41utonomousDbVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07version\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x0b\x64\x62_workload\x18\x04 \x01(\x0e\x32*.google.cloud.oracledatabase.v1.DBWorkloadB\x03\xe0\x41\x03\x12\x19\n\x0cworkload_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03:\xb8\x01\xea\x41\xb4\x01\n1oracledatabase.googleapis.com/AutonomousDbVersion\x12Tprojects/{project}/locations/{location}/autonomousDbVersions/{autonomous_db_version}*\x14\x61utonomousDbVersions2\x13\x61utonomousDbVersionB\xf2\x01\n\"com.google.cloud.oracledatabase.v1B\x18\x41utonomousDbVersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + AutonomousDbVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDbVersion").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/common_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/common_pb.rb new file mode 100644 index 000000000000..67f8e8a7253c --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/common_pb.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/common.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n+google/cloud/oracledatabase/v1/common.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\"%\n\x0f\x43ustomerContact\x12\x12\n\x05\x65mail\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x93\x02\n\x11IdentityConnector\x12 \n\x13service_agent_email\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12`\n\x10\x63onnection_state\x18\x02 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionStateB\x03\xe0\x41\x03\"z\n\x0f\x43onnectionState\x12 \n\x1c\x43ONNECTION_STATE_UNSPECIFIED\x10\x00\x12\r\n\tCONNECTED\x10\x01\x12\x17\n\x13PARTIALLY_CONNECTED\x10\x02\x12\x10\n\x0c\x44ISCONNECTED\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x9b\x01\n\x1b\x44\x61taCollectionOptionsCommon\x12*\n\x1dis_diagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12)\n\x1cis_health_monitoring_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12%\n\x18is_incident_logs_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01*]\n\x0c\x43omputeModel\x12\x1d\n\x19\x43OMPUTE_MODEL_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43OMPUTE_MODEL_ECPU\x10\x01\x12\x16\n\x12\x43OMPUTE_MODEL_OCPU\x10\x02\x42\xe5\x01\n\"com.google.cloud.oracledatabase.v1B\x0b\x43ommonProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + CustomerContact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CustomerContact").msgclass + IdentityConnector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IdentityConnector").msgclass + IdentityConnector::ConnectionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState").enummodule + DataCollectionOptionsCommon = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DataCollectionOptionsCommon").msgclass + ComputeModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ComputeModel").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb new file mode 100644 index 000000000000..b444310405ac --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/database_character_set.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n;google/cloud/oracledatabase/v1/database_character_set.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc1\x03\n\x14\x44\x61tabaseCharacterSet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x66\n\x12\x63haracter_set_type\x18\x02 \x01(\x0e\x32\x45.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetTypeB\x03\xe0\x41\x03\x12\x1a\n\rcharacter_set\x18\x03 \x01(\tB\x03\xe0\x41\x03\"R\n\x10\x43haracterSetType\x12\"\n\x1e\x43HARACTER_SET_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x41TABASE\x10\x01\x12\x0c\n\x08NATIONAL\x10\x02:\xbd\x01\xea\x41\xb9\x01\n2oracledatabase.googleapis.com/DatabaseCharacterSet\x12Vprojects/{project}/locations/{location}/databaseCharacterSets/{database_character_set}*\x15\x64\x61tabaseCharacterSets2\x14\x64\x61tabaseCharacterSet\"\xb4\x01\n ListDatabaseCharacterSetsRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32oracledatabase.googleapis.com/DatabaseCharacterSet\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x93\x01\n!ListDatabaseCharacterSetsResponse\x12U\n\x17\x64\x61tabase_character_sets\x18\x01 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.DatabaseCharacterSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xf3\x01\n\"com.google.cloud.oracledatabase.v1B\x19\x44\x61tabaseCharacterSetProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + DatabaseCharacterSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseCharacterSet").msgclass + DatabaseCharacterSet::CharacterSetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType").enummodule + ListDatabaseCharacterSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest").msgclass + ListDatabaseCharacterSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb new file mode 100644 index 000000000000..fd06468cdb9f --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/database.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/cloud/oracledatabase/v1/pluggable_database_pb' +require 'google/protobuf/timestamp_pb' +require 'google/type/dayofweek_pb' + + +descriptor_data = "\n-google/cloud/oracledatabase/v1/database.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x37google/cloud/oracledatabase/v1/pluggable_database.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\"\xcd\x08\n\x08\x44\x61tabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07\x64\x62_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x62_unique_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x61\x64min_password\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x1d\x61\x64min_password_secret_version\x18\x11 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12 \n\x13tde_wallet_password\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12^\n\"tde_wallet_password_secret_version\x18\x12 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1a\n\rcharacter_set\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0encharacter_set\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07oci_url\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\nproperties\x18\n \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DatabasePropertiesB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x61tabase_id\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64\x62_home_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x13ops_insights_status\x18\x0e \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatusB\x03\xe0\x41\x03\x12\"\n\x15pluggable_database_id\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12$\n\x17pluggable_database_name\x18\x10 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n\x18OperationsInsightsStatus\x12*\n&OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06:~\xea\x41{\n&oracledatabase.googleapis.com/Database\x12\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/Database\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"m\n\x15ListDatabasesResponse\x12;\n\tdatabases\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.Database\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + Database = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.Database").msgclass + Database::OperationsInsightsStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus").enummodule + DatabaseProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseProperties").msgclass + DatabaseProperties::DatabaseLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState").enummodule + DbBackupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig").msgclass + DbBackupConfig::BackupDestinationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails").msgclass + DbBackupConfig::BackupDestinationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType").enummodule + DbBackupConfig::BackupWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow").enummodule + DbBackupConfig::BackupDeletionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy").enummodule + GetDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetDatabaseRequest").msgclass + ListDatabasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDatabasesRequest").msgclass + ListDatabasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDatabasesResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_node_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_node_pb.rb new file mode 100644 index 000000000000..f2e89492c238 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_node_pb.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/db_node.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n,google/cloud/oracledatabase/v1/db_node.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\x02\n\x06\x44\x62Node\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12I\n\nproperties\x18\x03 \x01(\x0b\x32\x30.google.cloud.oracledatabase.v1.DbNodePropertiesB\x03\xe0\x41\x01:\xf7\x01\xea\x41\xf3\x01\n$oracledatabase.googleapis.com/DbNode\x12\\projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}\x12\\projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}/dbNodes/{db_node}*\x07\x64\x62Nodes2\x06\x64\x62Node\"\xf6\x03\n\x10\x44\x62NodeProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nocpu_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x16\n\x0ememory_size_gb\x18\x03 \x01(\x05\x12$\n\x17\x64\x62_node_storage_size_gb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x62_server_ocid\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08hostname\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12J\n\x05state\x18\t \x01(\x0e\x32\x36.google.cloud.oracledatabase.v1.DbNodeProperties.StateB\x03\xe0\x41\x03\x12\x1c\n\x14total_cpu_core_count\x18\n \x01(\x05\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xa3\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x0c\n\x08STARTING\x10\x06\x12\x0f\n\x0bTERMINATING\x10\x07\x12\x0e\n\nTERMINATED\x10\x08\x12\n\n\x06\x46\x41ILED\x10\tB\xe5\x01\n\"com.google.cloud.oracledatabase.v1B\x0b\x44\x62NodeProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + DbNode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbNode").msgclass + DbNodeProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbNodeProperties").msgclass + DbNodeProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbNodeProperties.State").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_server_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_server_pb.rb new file mode 100644 index 000000000000..3436607e9032 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_server_pb.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/db_server.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n.google/cloud/oracledatabase/v1/db_server.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc3\x02\n\x08\x44\x62Server\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\nproperties\x18\x03 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DbServerPropertiesB\x03\xe0\x41\x01:\xbb\x01\xea\x41\xb7\x01\n&oracledatabase.googleapis.com/DbServer\x12xprojects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}*\tdbServers2\x08\x64\x62Server\"\xd3\x03\n\x12\x44\x62ServerProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nocpu_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0emax_ocpu_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0ememory_size_gb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12max_memory_size_gb\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17\x64\x62_node_storage_size_gb\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12(\n\x1bmax_db_node_storage_size_gb\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x15\n\x08vm_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12L\n\x05state\x18\t \x01(\x0e\x32\x38.google.cloud.oracledatabase.v1.DbServerProperties.StateB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x62_node_ids\x18\n \x03(\tB\x03\xe0\x41\x03\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0f\n\x0bUNAVAILABLE\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x42\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDbServerProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + DbServer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbServer").msgclass + DbServerProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbServerProperties").msgclass + DbServerProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbServerProperties.State").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb new file mode 100644 index 000000000000..2470f1dfbb80 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb @@ -0,0 +1,30 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nCgoogle/cloud/oracledatabase/v1/db_system_initial_storage_size.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xee\x02\n\x1a\x44\x62SystemInitialStorageSize\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12]\n\nproperties\x18\x03 \x01(\x0b\x32\x44.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesB\x03\xe0\x41\x03:\xdd\x01\xea\x41\xd9\x01\n8oracledatabase.googleapis.com/DbSystemInitialStorageSize\x12\x64projects/{project}/locations/{location}/dbSystemInitialStorageSizes/{db_system_initial_storage_size}*\x1b\x64\x62SystemInitialStorageSizes2\x1a\x64\x62SystemInitialStorageSize\"\xcf\x04\n$DbSystemInitialStorageSizeProperties\x12w\n\x12storage_management\x18\x01 \x01(\x0e\x32V.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagementB\x03\xe0\x41\x03\x12g\n\nshape_type\x18\x02 \x01(\x0e\x32N.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeTypeB\x03\xe0\x41\x03\x12U\n\x14storage_size_details\x18\x03 \x03(\x0b\x32\x32.google.cloud.oracledatabase.v1.StorageSizeDetailsB\x03\xe0\x41\x03\x12h\n\'launch_from_backup_storage_size_details\x18\x04 \x03(\x0b\x32\x32.google.cloud.oracledatabase.v1.StorageSizeDetailsB\x03\xe0\x41\x03\"I\n\x11StorageManagement\x12\"\n\x1eSTORAGE_MANAGEMENT_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41SM\x10\x01\x12\x07\n\x03LVM\x10\x02\"9\n\tShapeType\x12\x1a\n\x16SHAPE_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cSTANDARD_X86\x10\x01\"b\n\x12StorageSizeDetails\x12%\n\x18\x64\x61ta_storage_size_in_gbs\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18reco_storage_size_in_gbs\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\"\xab\x01\n&ListDbSystemInitialStorageSizesRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/DbSystemInitialStorageSize\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa7\x01\n\'ListDbSystemInitialStorageSizesResponse\x12\x63\n\x1f\x64\x62_system_initial_storage_sizes\x18\x01 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xf9\x01\n\"com.google.cloud.oracledatabase.v1B\x1f\x44\x62SystemInitialStorageSizeProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + DbSystemInitialStorageSize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemInitialStorageSize").msgclass + DbSystemInitialStorageSizeProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties").msgclass + DbSystemInitialStorageSizeProperties::StorageManagement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement").enummodule + DbSystemInitialStorageSizeProperties::ShapeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType").enummodule + StorageSizeDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.StorageSizeDetails").msgclass + ListDbSystemInitialStorageSizesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest").msgclass + ListDbSystemInitialStorageSizesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb new file mode 100644 index 000000000000..41caf3c91bbc --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb @@ -0,0 +1,42 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/db_system.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/cloud/oracledatabase/v1/database_pb' +require 'google/protobuf/timestamp_pb' +require 'google/type/datetime_pb' + + +descriptor_data = "\n.google/cloud/oracledatabase/v1/db_system.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/oracledatabase/v1/database.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x93\x05\n\x08\x44\x62System\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12K\n\nproperties\x18\x02 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DbSystemPropertiesB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.DbSystem.LabelsEntryB\x03\xe0\x41\x01\x12\x45\n\x0bodb_network\x18\x05 \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x06 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1b\n\x0e\x65ntitlement_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n&oracledatabase.googleapis.com/DbSystem\x12=projects/{project}/locations/{location}/dbSystems/{db_system}*\tdbSystems2\x08\x64\x62System\"\xe4\x0c\n\x12\x44\x62SystemProperties\x12\x12\n\x05shape\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcompute_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12)\n\x1cinitial_data_storage_size_gb\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12i\n\x10\x64\x61tabase_edition\x18\x04 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEditionB\x03\xe0\x41\x02\x12[\n\rlicense_model\x18\x05 \x01(\x0e\x32?.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModelB\x03\xe0\x41\x02\x12\x1c\n\x0fssh_public_keys\x18\x06 \x03(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fhostname_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08hostname\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nprivate_ip\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x17\x64\x61ta_collection_options\x18\n \x01(\x0b\x32=.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x0b \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\x12g\n\x0flifecycle_state\x18\x0c \x01(\x0e\x32I.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleStateB\x03\xe0\x41\x03\x12<\n\x07\x64\x62_home\x18\r \x01(\x0b\x32&.google.cloud.oracledatabase.v1.DbHomeB\x03\xe0\x41\x01\x12\x11\n\x04ocid\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0ememory_size_gb\x18\x0f \x01(\x05\x42\x03\xe0\x41\x01\x12[\n\rcompute_model\x18\x10 \x01(\x0e\x32?.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModelB\x03\xe0\x41\x01\x12!\n\x14\x64\x61ta_storage_size_gb\x18\x11 \x01(\x05\x42\x03\xe0\x41\x01\x12!\n\x14reco_storage_size_gb\x18\x12 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x64omain\x18\x13 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x01\x12O\n\x11\x64\x62_system_options\x18\x15 \x01(\x0b\x32/.google.cloud.oracledatabase.v1.DbSystemOptionsB\x03\xe0\x41\x01\"\x9c\x01\n\x17\x44\x62SystemDatabaseEdition\x12*\n&DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED\x10\x00\x12\x14\n\x10STANDARD_EDITION\x10\x01\x12\x16\n\x12\x45NTERPRISE_EDITION\x10\x02\x12\'\n#ENTERPRISE_EDITION_HIGH_PERFORMANCE\x10\x03\"_\n\x0cLicenseModel\x12\x1d\n\x19LICENSE_MODEL_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\xee\x01\n\x16\x44\x62SystemLifecycleState\x12)\n%DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08MIGRATED\x10\x07\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x08\x12\x13\n\x0fNEEDS_ATTENTION\x10\t\x12\r\n\tUPGRADING\x10\n\"A\n\x0c\x43omputeModel\x12\x1d\n\x19\x43OMPUTE_MODEL_UNSPECIFIED\x10\x00\x12\x08\n\x04\x45\x43PU\x10\x01\x12\x08\n\x04OCPU\x10\x02\"r\n\x1d\x44\x61taCollectionOptionsDbSystem\x12*\n\x1dis_diagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12%\n\x18is_incident_logs_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xc0\x01\n\x0f\x44\x62SystemOptions\x12\x62\n\x12storage_management\x18\x01 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagementB\x03\xe0\x41\x01\"I\n\x11StorageManagement\x12\"\n\x1eSTORAGE_MANAGEMENT_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41SM\x10\x01\x12\x07\n\x03LVM\x10\x02\"\xa7\x01\n\x06\x44\x62Home\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ndb_version\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08\x64\x61tabase\x18\x03 \x01(\x0b\x32(.google.cloud.oracledatabase.v1.DatabaseB\x03\xe0\x41\x02\x12(\n\x1bis_unified_auditing_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xd5\x01\n\x15\x43reateDbSystemRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbSystem\x12\x19\n\x0c\x64\x62_system_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\tdb_system\x18\x03 \x01(\x0b\x32(.google.cloud.oracledatabase.v1.DbSystemB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"v\n\x15\x44\x65leteDbSystemRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&oracledatabase.googleapis.com/DbSystem\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"R\n\x12GetDbSystemRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&oracledatabase.googleapis.com/DbSystem\"\xb3\x01\n\x14ListDbSystemsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbSystem\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x15ListDbSystemsResponse\x12<\n\ndb_systems\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.DbSystem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\tB\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDbSystemProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + DbSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystem").msgclass + DbSystemProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties").msgclass + DbSystemProperties::DbSystemDatabaseEdition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition").enummodule + DbSystemProperties::LicenseModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel").enummodule + DbSystemProperties::DbSystemLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState").enummodule + DbSystemProperties::ComputeModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel").enummodule + DataCollectionOptionsDbSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem").msgclass + DbSystemOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemOptions").msgclass + DbSystemOptions::StorageManagement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement").enummodule + DbHome = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbHome").msgclass + CreateDbSystemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateDbSystemRequest").msgclass + DeleteDbSystemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteDbSystemRequest").msgclass + GetDbSystemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetDbSystemRequest").msgclass + ListDbSystemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemsRequest").msgclass + ListDbSystemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemsResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb new file mode 100644 index 000000000000..a876bf722319 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/db_system_shape.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n4google/cloud/oracledatabase/v1/db_system_shape.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc5\x04\n\rDbSystemShape\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05shape\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0emin_node_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0emax_node_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11min_storage_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11max_storage_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12*\n\x1d\x61vailable_core_count_per_node\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12)\n\x1c\x61vailable_memory_per_node_gb\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19\x61vailable_data_storage_tb\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17min_core_count_per_node\x18\n \x01(\x05\x42\x03\xe0\x41\x01\x12#\n\x16min_memory_per_node_gb\x18\x0b \x01(\x05\x42\x03\xe0\x41\x01\x12,\n\x1fmin_db_node_storage_per_node_gb\x18\x0c \x01(\x05\x42\x03\xe0\x41\x01:\x9a\x01\xea\x41\x96\x01\n+oracledatabase.googleapis.com/DbSystemShape\x12Hprojects/{project}/locations/{location}/dbSystemShapes/{db_system_shape}*\x0e\x64\x62SystemShapes2\rdbSystemShapeB\xec\x01\n\"com.google.cloud.oracledatabase.v1B\x12\x44\x62SystemShapeProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + DbSystemShape = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemShape").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_version_pb.rb new file mode 100644 index 000000000000..52751961ba7a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_version_pb.rb @@ -0,0 +1,27 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/db_version.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n/google/cloud/oracledatabase/v1/db_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf4\x01\n\tDbVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12L\n\nproperties\x18\x02 \x01(\x0b\x32\x33.google.cloud.oracledatabase.v1.DbVersionPropertiesB\x03\xe0\x41\x03:\x85\x01\xea\x41\x81\x01\n\'oracledatabase.googleapis.com/DbVersion\x12?projects/{project}/locations/{location}/dbVersions/{db_version}*\ndbVersions2\tdbVersion\"\xb7\x01\n\x13\x44\x62VersionProperties\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12(\n\x1bis_latest_for_major_version\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x19\n\x0csupports_pdb\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x12\"\n\x15is_preview_db_version\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12!\n\x14is_upgrade_supported\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\"\x9e\x01\n\x15ListDbVersionsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/DbVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"q\n\x16ListDbVersionsResponse\x12>\n\x0b\x64\x62_versions\x18\x01 \x03(\x0b\x32).google.cloud.oracledatabase.v1.DbVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xe8\x01\n\"com.google.cloud.oracledatabase.v1B\x0e\x44\x62VersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + DbVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbVersion").msgclass + DbVersionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbVersionProperties").msgclass + ListDbVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbVersionsRequest").msgclass + ListDbVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbVersionsResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb new file mode 100644 index 000000000000..9a1b39c1f794 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/entitlement.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n0google/cloud/oracledatabase/v1/entitlement.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x86\x04\n\x0b\x45ntitlement\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12R\n\x15\x63loud_account_details\x18\x02 \x01(\x0b\x32\x33.google.cloud.oracledatabase.v1.CloudAccountDetails\x12\x1b\n\x0e\x65ntitlement_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x31.google.cloud.oracledatabase.v1.Entitlement.StateB\x03\xe0\x41\x03\"\x9a\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41\x43\x43OUNT_NOT_LINKED\x10\x01\x12\x16\n\x12\x41\x43\x43OUNT_NOT_ACTIVE\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x15\n\x11\x41\x43\x43OUNT_SUSPENDED\x10\x04\x12\'\n#NOT_APPROVED_IN_PRIVATE_MARKETPLACE\x10\x05:\x8e\x01\xea\x41\x8a\x01\n)oracledatabase.googleapis.com/Entitlement\x12\x42projects/{project}/locations/{location}/entitlements/{entitlement}*\x0c\x65ntitlements2\x0b\x65ntitlement\"\xe5\x01\n\x13\x43loudAccountDetails\x12\x1a\n\rcloud_account\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12&\n\x19\x63loud_account_home_region\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12+\n\x19link_existing_account_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12&\n\x14\x61\x63\x63ount_creation_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x1c\n\x1a_link_existing_account_uriB\x17\n\x15_account_creation_uriB\xea\x01\n\"com.google.cloud.oracledatabase.v1B\x10\x45ntitlementProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + Entitlement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.Entitlement").msgclass + Entitlement::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.Entitlement.State").enummodule + CloudAccountDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudAccountDetails").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb new file mode 100644 index 000000000000..e5f761003eed --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/exadata_infra.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/cloud/oracledatabase/v1/common_pb' +require 'google/protobuf/timestamp_pb' +require 'google/type/dayofweek_pb' +require 'google/type/month_pb' + + +descriptor_data = "\n2google/cloud/oracledatabase/v1/exadata_infra.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x17google/type/month.proto\"\x84\x05\n\x1a\x43loudExadataInfrastructure\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65ntitlement_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12]\n\nproperties\x18\x05 \x01(\x0b\x32\x44.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesB\x03\xe0\x41\x01\x12[\n\x06labels\x18\x06 \x03(\x0b\x32\x46.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xdb\x01\xea\x41\xd7\x01\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x62projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}*\x1b\x63loudExadataInfrastructures2\x1a\x63loudExadataInfrastructure\"\xb5\x0b\n$CloudExadataInfrastructureProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcompute_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1a\n\rstorage_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x15total_storage_size_gb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19\x61vailable_storage_size_gb\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12R\n\x12maintenance_window\x18\x06 \x01(\x0b\x32\x31.google.cloud.oracledatabase.v1.MaintenanceWindowB\x03\xe0\x41\x01\x12^\n\x05state\x18\x07 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.StateB\x03\xe0\x41\x03\x12\x12\n\x05shape\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07oci_url\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tcpu_count\x18\n \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_cpu_count\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12\x1b\n\x0ememory_size_gb\x18\x0c \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_memory_gb\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12$\n\x17\x64\x62_node_storage_size_gb\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12(\n\x1bmax_db_node_storage_size_gb\x18\x0f \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x10 \x01(\x01\x42\x03\xe0\x41\x03\x12 \n\x13max_data_storage_tb\x18\x11 \x01(\x01\x42\x03\xe0\x41\x03\x12$\n\x17\x61\x63tivated_storage_count\x18\x12 \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18\x61\x64\x64itional_storage_count\x18\x13 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1e\n\x11\x64\x62_server_version\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16storage_server_version\x18\x15 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17next_maintenance_run_id\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x19next_maintenance_run_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\"next_security_maintenance_run_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x11\x63ustomer_contacts\x18\x19 \x03(\x0b\x32/.google.cloud.oracledatabase.v1.CustomerContactB\x03\xe0\x41\x01\x12+\n\x1emonthly_storage_server_version\x18\x1a \x01(\tB\x03\xe0\x41\x03\x12&\n\x19monthly_db_server_version\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12H\n\rcompute_model\x18\x1f \x01(\x0e\x32,.google.cloud.oracledatabase.v1.ComputeModelB\x03\xe0\x41\x03\x12!\n\x14\x64\x61tabase_server_type\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12 \n\x13storage_server_type\x18\x1e \x01(\tB\x03\xe0\x41\x03\"\x97\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"\xa5\x05\n\x11MaintenanceWindow\x12\x66\n\npreference\x18\x01 \x01(\x0e\x32M.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreferenceB\x03\xe0\x41\x01\x12\'\n\x06months\x18\x02 \x03(\x0e\x32\x12.google.type.MonthB\x03\xe0\x41\x01\x12\x1b\n\x0eweeks_of_month\x18\x03 \x03(\x05\x42\x03\xe0\x41\x01\x12\x31\n\x0c\x64\x61ys_of_week\x18\x04 \x03(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x12\x19\n\x0chours_of_day\x18\x05 \x03(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0elead_time_week\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12Z\n\rpatching_mode\x18\x07 \x01(\x0e\x32>.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingModeB\x03\xe0\x41\x01\x12\'\n\x1a\x63ustom_action_timeout_mins\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12-\n is_custom_action_timeout_enabled\x18\t \x01(\x08\x42\x03\xe0\x41\x01\"v\n\x1bMaintenanceWindowPreference\x12-\n)MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43USTOM_PREFERENCE\x10\x01\x12\x11\n\rNO_PREFERENCE\x10\x02\"K\n\x0cPatchingMode\x12\x1d\n\x19PATCHING_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07ROLLING\x10\x01\x12\x0f\n\x0bNON_ROLLING\x10\x02\x42\xf9\x01\n\"com.google.cloud.oracledatabase.v1B\x1f\x43loudExadataInfrastructureProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + CloudExadataInfrastructure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudExadataInfrastructure").msgclass + CloudExadataInfrastructureProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties").msgclass + CloudExadataInfrastructureProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State").enummodule + MaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.MaintenanceWindow").msgclass + MaintenanceWindow::MaintenanceWindowPreference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference").enummodule + MaintenanceWindow::PatchingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb new file mode 100644 index 000000000000..357d85708e04 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb @@ -0,0 +1,32 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/cloud/oracledatabase/v1/common_pb' +require 'google/protobuf/timestamp_pb' +require 'google/type/datetime_pb' + + +descriptor_data = "\n5google/cloud/oracledatabase/v1/exadb_vm_cluster.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x8b\x06\n\x0e\x45xadbVmCluster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12Q\n\nproperties\x18\x02 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesB\x03\xe0\x41\x02\x12\x1f\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12O\n\x06labels\x18\x05 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.ExadbVmCluster.LabelsEntryB\x03\xe0\x41\x01\x12H\n\x0bodb_network\x18\x06 \x01(\tB3\xe0\x41\x01\xe0\x41\x05\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x46\n\nodb_subnet\x18\x07 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12M\n\x11\x62\x61\x63kup_odb_subnet\x18\x08 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1c\n\x0c\x64isplay_name\x18\t \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65ntitlement_id\x18\x0b \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x01\xea\x41\x9b\x01\n,oracledatabase.googleapis.com/ExadbVmCluster\x12Jprojects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}*\x0f\x65xadbVmClusters2\x0e\x65xadbVmCluster\"A\n\x1c\x45xadbVmClusterStorageDetails\x12!\n\x14size_in_gbs_per_node\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xc7\x0b\n\x18\x45xadbVmClusterProperties\x12\x1c\n\x0c\x63luster_name\x18\x01 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1d\n\rgrid_image_id\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x17\n\nnode_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12+\n\x1b\x65nabled_ecpu_count_per_node\x18\x14 \x01(\x05\x42\x06\xe0\x41\x02\xe0\x41\x05\x12.\n\x1e\x61\x64\x64itional_ecpu_count_per_node\x18\x15 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x64\n\x16vm_file_system_storage\x18\x06 \x01(\x0b\x32<.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsB\x06\xe0\x41\x02\xe0\x41\x05\x12\x64\n\rlicense_model\x18\x07 \x01(\x0e\x32\x45.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModelB\x06\xe0\x41\x01\xe0\x41\x05\x12\x62\n\x19\x65xascale_db_storage_vault\x18\x08 \x01(\tB?\xe0\x41\x02\xe0\x41\x05\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x1f\n\x0fhostname_prefix\x18\t \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x15\n\x08hostname\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x0fssh_public_keys\x18\x0b \x03(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x64\n\x17\x64\x61ta_collection_options\x18\x0c \x01(\x0b\x32;.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonB\x06\xe0\x41\x01\xe0\x41\x05\x12\x30\n\ttime_zone\x18\r \x01(\x0b\x32\x15.google.type.TimeZoneB\x06\xe0\x41\x01\xe0\x41\x05\x12s\n\x0flifecycle_state\x18\x0e \x01(\x0e\x32U.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleStateB\x03\xe0\x41\x03\x12h\n\x0fshape_attribute\x18\x0f \x01(\x0e\x32G.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttributeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1b\n\x0ememory_size_gb\x18\x10 \x01(\x05\x42\x03\xe0\x41\x03\x12&\n\x16scan_listener_port_tcp\x18\x11 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x14\n\x07oci_uri\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngi_version\x18\x13 \x01(\tB\x03\xe0\x41\x03\"_\n\x0cLicenseModel\x12\x1d\n\x19LICENSE_MODEL_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\xc9\x01\n\x1c\x45xadbVmClusterLifecycleState\x12\x30\n,EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"W\n\x0eShapeAttribute\x12\x1f\n\x1bSHAPE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x11\n\rSMART_STORAGE\x10\x01\x12\x11\n\rBLOCK_STORAGE\x10\x02\x42\xed\x01\n\"com.google.cloud.oracledatabase.v1B\x13\x45xadbVmClusterProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + ExadbVmCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmCluster").msgclass + ExadbVmClusterStorageDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails").msgclass + ExadbVmClusterProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterProperties").msgclass + ExadbVmClusterProperties::LicenseModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel").enummodule + ExadbVmClusterProperties::ExadbVmClusterLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState").enummodule + ExadbVmClusterProperties::ShapeAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute").enummodule + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb new file mode 100644 index 000000000000..928044639293 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb @@ -0,0 +1,36 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' +require 'google/type/datetime_pb' + + +descriptor_data = "\n>google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\xe5\x04\n\x16\x45xascaleDbStorageVault\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Y\n\nproperties\x18\x04 \x01(\x0b\x32@.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65ntitlement_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12W\n\x06labels\x18\x07 \x03(\x0b\x32\x42.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xc8\x01\xea\x41\xc4\x01\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12[projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}*\x17\x65xascaleDbStorageVaults2\x16\x65xascaleDbStorageVault\"\x85\x07\n ExascaleDbStorageVaultProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12-\n\ttime_zone\x18\x02 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x03\x12\x62\n\x1b\x65xascale_db_storage_details\x18\x03 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsB\x03\xe0\x41\x02\x12Z\n\x05state\x18\x04 \x01(\x0e\x32\x46.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.StateB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0evm_cluster_ids\x18\x06 \x03(\tB\x03\xe0\x41\x03\x12\x1d\n\x10vm_cluster_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12+\n\x1e\x61\x64\x64itional_flash_cache_percent\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07oci_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12w\n\x19\x61ttached_shape_attributes\x18\n \x03(\x0e\x32O.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\x03\xe0\x41\x03\x12x\n\x1a\x61vailable_shape_attributes\x18\x0b \x03(\x0e\x32O.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\x03\xe0\x41\x03\"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"W\n\x0eShapeAttribute\x12\x1f\n\x1bSHAPE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x11\n\rSMART_STORAGE\x10\x01\x12\x11\n\rBLOCK_STORAGE\x10\x02\"X\n\x18\x45xascaleDbStorageDetails\x12\x1f\n\x12\x61vailable_size_gbs\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1b\n\x0etotal_size_gbs\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"n\n GetExascaleDbStorageVaultRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\"\xcf\x01\n\"ListExascaleDbStorageVaultsRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xaf\x01\n#ListExascaleDbStorageVaultsResponse\x12Z\n\x1a\x65xascale_db_storage_vaults\x18\x01 \x03(\x0b\x32\x36.google.cloud.oracledatabase.v1.ExascaleDbStorageVault\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x9f\x02\n#CreateExascaleDbStorageVaultRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34oracledatabase.googleapis.com/ExascaleDbStorageVault\x12)\n\x1c\x65xascale_db_storage_vault_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12^\n\x19\x65xascale_db_storage_vault\x18\x03 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x92\x01\n#DeleteExascaleDbStorageVaultRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x42\xf5\x01\n\"com.google.cloud.oracledatabase.v1B\x1b\x45xascaleDbStorageVaultProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + ExascaleDbStorageVault = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageVault").msgclass + ExascaleDbStorageVaultProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties").msgclass + ExascaleDbStorageVaultProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State").enummodule + ExascaleDbStorageVaultProperties::ShapeAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute").enummodule + ExascaleDbStorageDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageDetails").msgclass + GetExascaleDbStorageVaultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest").msgclass + ListExascaleDbStorageVaultsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest").msgclass + ListExascaleDbStorageVaultsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse").msgclass + CreateExascaleDbStorageVaultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest").msgclass + DeleteExascaleDbStorageVaultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb new file mode 100644 index 000000000000..f3647629f1ad --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb @@ -0,0 +1,24 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/gi_version.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n/google/cloud/oracledatabase/v1/gi_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbc\x01\n\tGiVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07version\x18\x02 \x01(\tB\x03\xe0\x41\x01:\x85\x01\xea\x41\x81\x01\n\'oracledatabase.googleapis.com/GiVersion\x12?projects/{project}/locations/{location}/giVersions/{gi_version}*\ngiVersions2\tgiVersionB\xe8\x01\n\"com.google.cloud.oracledatabase.v1B\x0eGiVersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + GiVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GiVersion").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb new file mode 100644 index 000000000000..836a55b672ae --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/goldengate_connection_assignment.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\nEgoogle/cloud/oracledatabase/v1/goldengate_connection_assignment.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x86\x05\n\x1eGoldengateConnectionAssignment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x61\n\nproperties\x18\x02 \x01(\x0b\x32H.google.cloud.oracledatabase.v1.GoldengateConnectionAssignmentPropertiesB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12_\n\x06labels\x18\x04 \x03(\x0b\x32J.google.cloud.oracledatabase.v1.GoldengateConnectionAssignment.LabelsEntryB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65ntitlement_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xef\x01\xea\x41\xeb\x01\n\x12.google.cloud.oracledatabase.v1.GoldengateConnectionAssignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"~\n(GetGoldengateConnectionAssignmentRequest\x12R\n\x04name\x18\x01 \x01(\tBD\xe0\x41\x02\xfa\x41>\n\x12.google.cloud.oracledatabase.v1.GoldengateConnectionAssignmentB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x9a\x02\n)TestGoldengateConnectionAssignmentRequest\x12R\n\x04name\x18\x01 \x01(\tBD\xe0\x41\x02\xfa\x41>\n\n.google.cloud.oracledatabase.v1.GoldengateConnectionPropertiesB\x03\xe0\x41\x02\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12U\n\x06labels\x18\x04 \x03(\x0b\x32@.google.cloud.oracledatabase.v1.GoldengateConnection.LabelsEntryB\x03\xe0\x41\x01\x12\x45\n\x0bodb_network\x18\x05 \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x06 \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1b\n\x0e\x65ntitlement_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\t \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xbc\x01\xea\x41\xb8\x01\n2oracledatabase.googleapis.com/GoldengateConnection\x12Uprojects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}*\x15goldengateConnections2\x14goldengateConnection\"\xef\'\n\x1eGoldengateConnectionProperties\x12l\n\x1coracle_connection_properties\x18\t \x01(\x0b\x32\x44.google.cloud.oracledatabase.v1.GoldengateOracleConnectionPropertiesH\x00\x12t\n goldengate_connection_properties\x18\n \x01(\x0b\x32H.google.cloud.oracledatabase.v1.GoldengateGoldengateConnectionPropertiesH\x00\x12n\n\x1dgeneric_connection_properties\x18\x0b \x01(\x0b\x32\x45.google.cloud.oracledatabase.v1.GoldengateGenericConnectionPropertiesH\x00\x12\x86\x01\n*google_cloud_storage_connection_properties\x18\x0c \x01(\x0b\x32P.google.cloud.oracledatabase.v1.GoldengateGoogleCloudStorageConnectionPropertiesH\x00\x12~\n&google_big_query_connection_properties\x18\r \x01(\x0b\x32L.google.cloud.oracledatabase.v1.GoldengateGoogleBigQueryConnectionPropertiesH\x00\x12j\n\x1bmysql_connection_properties\x18\x0e \x01(\x0b\x32\x43.google.cloud.oracledatabase.v1.GoldengateMysqlConnectionPropertiesH\x00\x12j\n\x1bkafka_connection_properties\x18\x0f \x01(\x0b\x32\x43.google.cloud.oracledatabase.v1.GoldengateKafkaConnectionPropertiesH\x00\x12\x88\x01\n+kafka_schema_registry_connection_properties\x18\x10 \x01(\x0b\x32Q.google.cloud.oracledatabase.v1.GoldengateKafkaSchemaRegistryConnectionPropertiesH\x00\x12\x82\x01\n(oci_object_storage_connection_properties\x18\x11 \x01(\x0b\x32N.google.cloud.oracledatabase.v1.GoldengateOciObjectStorageConnectionPropertiesH\x00\x12\x8b\x01\n-azure_data_lake_storage_connection_properties\x18\x12 \x01(\x0b\x32R.google.cloud.oracledatabase.v1.GoldengateAzureDataLakeStorageConnectionPropertiesH\x00\x12\x8c\x01\n-azure_synapse_analytics_connection_properties\x18\x13 \x01(\x0b\x32S.google.cloud.oracledatabase.v1.GoldengateAzureSynapseAnalyticsConnectionPropertiesH\x00\x12t\n postgresql_connection_properties\x18\x14 \x01(\x0b\x32H.google.cloud.oracledatabase.v1.GoldengatePostgresqlConnectionPropertiesH\x00\x12\x85\x01\n)microsoft_sqlserver_connection_properties\x18\x15 \x01(\x0b\x32P.google.cloud.oracledatabase.v1.GoldengateMicrosoftSqlserverConnectionPropertiesH\x00\x12q\n\x1f\x61mazon_s3_connection_properties\x18\x16 \x01(\x0b\x32\x46.google.cloud.oracledatabase.v1.GoldengateAmazonS3ConnectionPropertiesH\x00\x12h\n\x1ahdfs_connection_properties\x18\x17 \x01(\x0b\x32\x42.google.cloud.oracledatabase.v1.GoldengateHdfsConnectionPropertiesH\x00\x12\x86\x01\n*java_message_service_connection_properties\x18\x18 \x01(\x0b\x32P.google.cloud.oracledatabase.v1.GoldengateJavaMessageServiceConnectionPropertiesH\x00\x12n\n\x1dmongodb_connection_properties\x18\x19 \x01(\x0b\x32\x45.google.cloud.oracledatabase.v1.GoldengateMongodbConnectionPropertiesH\x00\x12w\n\"oracle_nosql_connection_properties\x18\x1a \x01(\x0b\x32I.google.cloud.oracledatabase.v1.GoldengateOracleNosqlConnectionPropertiesH\x00\x12r\n\x1fsnowflake_connection_properties\x18\x1b \x01(\x0b\x32G.google.cloud.oracledatabase.v1.GoldengateSnowflakeConnectionPropertiesH\x00\x12}\n%amazon_redshift_connection_properties\x18\x1c \x01(\x0b\x32L.google.cloud.oracledatabase.v1.GoldengateAmazonRedshiftConnectionPropertiesH\x00\x12z\n#elasticsearch_connection_properties\x18\x1d \x01(\x0b\x32K.google.cloud.oracledatabase.v1.GoldengateElasticsearchConnectionPropertiesH\x00\x12{\n$amazon_kinesis_connection_properties\x18\x1f \x01(\x0b\x32K.google.cloud.oracledatabase.v1.GoldengateAmazonKinesisConnectionPropertiesH\x00\x12\x66\n\x19\x64\x62\x32_connection_properties\x18 \x01(\x0b\x32\x41.google.cloud.oracledatabase.v1.GoldengateDb2ConnectionPropertiesH\x00\x12j\n\x1bredis_connection_properties\x18! \x01(\x0b\x32\x43.google.cloud.oracledatabase.v1.GoldengateRedisConnectionPropertiesH\x00\x12t\n databricks_connection_properties\x18\" \x01(\x0b\x32H.google.cloud.oracledatabase.v1.GoldengateDatabricksConnectionPropertiesH\x00\x12y\n#google_pubsub_connection_properties\x18# \x01(\x0b\x32J.google.cloud.oracledatabase.v1.GoldengateGooglePubsubConnectionPropertiesH\x00\x12\x7f\nµsoft_fabric_connection_properties\x18$ \x01(\x0b\x32M.google.cloud.oracledatabase.v1.GoldengateMicrosoftFabricConnectionPropertiesH\x00\x12\x8b\x01\n-oracle_ai_data_platform_connection_properties\x18% \x01(\x0b\x32R.google.cloud.oracledatabase.v1.GoldengateOracleAIDataPlatformConnectionPropertiesH\x00\x12n\n\x1diceberg_connection_properties\x18& \x01(\x0b\x32\x45.google.cloud.oracledatabase.v1.GoldengateIcebergConnectionPropertiesH\x00\x12u\n\x0f\x63onnection_type\x18\x01 \x01(\x0e\x32W.google.cloud.oracledatabase.v1.GoldengateConnectionProperties.GoldengateConnectionTypeB\x03\xe0\x41\x02\x12\x11\n\x04ocid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x7f\n\x0flifecycle_state\x18\x05 \x01(\x0e\x32\x61.google.cloud.oracledatabase.v1.GoldengateConnectionProperties.GoldengateConnectionLifecycleStateB\x03\xe0\x41\x03\x12\x1e\n\x11lifecycle_details\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12}\n\x0erouting_method\x18\x08 \x01(\x0e\x32`.google.cloud.oracledatabase.v1.GoldengateConnectionProperties.GoldengateConnectionRoutingMethodB\x03\xe0\x41\x01\x12!\n\x14ingress_ip_addresses\x18\' \x03(\tB\x03\xe0\x41\x03\"\xde\x04\n\x18GoldengateConnectionType\x12*\n&GOLDENGATE_CONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nGOLDENGATE\x10\x01\x12\t\n\x05KAFKA\x10\x02\x12\x19\n\x15KAFKA_SCHEMA_REGISTRY\x10\x03\x12\t\n\x05MYSQL\x10\x04\x12\x18\n\x14JAVA_MESSAGE_SERVICE\x10\x05\x12\x17\n\x13MICROSOFT_SQLSERVER\x10\x06\x12\x16\n\x12OCI_OBJECT_STORAGE\x10\x07\x12\n\n\x06ORACLE\x10\x08\x12\x1b\n\x17\x41ZURE_DATA_LAKE_STORAGE\x10\t\x12\x0e\n\nPOSTGRESQL\x10\n\x12\x1b\n\x17\x41ZURE_SYNAPSE_ANALYTICS\x10\x0b\x12\r\n\tSNOWFLAKE\x10\x0c\x12\r\n\tAMAZON_S3\x10\r\x12\x08\n\x04HDFS\x10\x0e\x12\x1b\n\x17ORACLE_AI_DATA_PLATFORM\x10\x0f\x12\x10\n\x0cORACLE_NOSQL\x10\x10\x12\x0b\n\x07MONGODB\x10\x11\x12\x12\n\x0e\x41MAZON_KINESIS\x10\x12\x12\x13\n\x0f\x41MAZON_REDSHIFT\x10\x13\x12\x07\n\x03\x44\x42\x32\x10\x14\x12\t\n\x05REDIS\x10\x15\x12\x11\n\rELASTICSEARCH\x10\x16\x12\x0b\n\x07GENERIC\x10\x17\x12\x18\n\x14GOOGLE_CLOUD_STORAGE\x10\x18\x12\x13\n\x0fGOOGLE_BIGQUERY\x10\x19\x12\x0e\n\nDATABRICKS\x10\x1a\x12\x11\n\rGOOGLE_PUBSUB\x10\x1b\x12\x14\n\x10MICROSOFT_FABRIC\x10\x1c\x12\x0b\n\x07ICEBERG\x10\x1d\"\xaa\x01\n\"GoldengateConnectionLifecycleState\x12\x35\n1GOLDENGATE_CONNECTION_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"\x91\x01\n!GoldengateConnectionRoutingMethod\x12\x34\n0GOLDENGATE_CONNECTION_ROUTING_METHOD_UNSPECIFIED\x10\x00\x12\x1e\n\x1aSHARED_DEPLOYMENT_ENDPOINT\x10\x01\x12\x16\n\x12\x44\x45\x44ICATED_ENDPOINT\x10\x02\x42\x14\n\x12\x63onnection_details\"\xdf\x05\n$GoldengateOracleConnectionProperties\x12\x1a\n\x08password\x18\n \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x0b \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x7f\n\x13\x61uthentication_mode\x18\x03 \x01(\x0e\x32].google.cloud.oracledatabase.v1.GoldengateOracleConnectionProperties.OracleAuthenticationModeB\x03\xe0\x41\x01\x12\x1e\n\x11\x63onnection_string\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12k\n\x0csession_mode\x18\x05 \x01(\x0e\x32P.google.cloud.oracledatabase.v1.GoldengateOracleConnectionProperties.SessionModeB\x03\xe0\x41\x01\x12#\n\x16gcp_oracle_database_id\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bwallet_file\x18\t \x01(\tB\x03\xe0\x41\x01\"Y\n\x18OracleAuthenticationMode\x12*\n&ORACLE_AUTHENTICATION_MODE_UNSPECIFIED\x10\x00\x12\x07\n\x03TLS\x10\x01\x12\x08\n\x04MTLS\x10\x02\"E\n\x0bSessionMode\x12\x1c\n\x18SESSION_MODE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44IRECT\x10\x01\x12\x0c\n\x08REDIRECT\x10\x02\x42\x1d\n\x1b\x63onnection_password_options\"\xf8\x02\n(GoldengateGoldengateConnectionProperties\x12\x1a\n\x08password\x18\x07 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x08 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\\\n\x18goldengate_deployment_id\x18\x02 \x01(\tB:\xe0\x41\x01\xfa\x41\x34\n2oracledatabase.googleapis.com/GoldengateDeployment\x12\x11\n\x04host\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x05 \x01(\tB\x03\xe0\x41\x01\x42\x1d\n\x1b\x63onnection_password_options\"X\n%GoldengateGenericConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04host\x18\x02 \x01(\tB\x03\xe0\x41\x01\"w\n0GoldengateGoogleCloudStorageConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18service_account_key_file\x18\x03 \x01(\tB\x03\xe0\x41\x01\"s\n,GoldengateGoogleBigQueryConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18service_account_key_file\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb9\x07\n#GoldengateMysqlConnectionProperties\x12\x1a\n\x08password\x18\x0f \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x10 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04host\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x15\n\x08\x64\x61tabase\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12y\n\x11security_protocol\x18\x07 \x01(\x0e\x32Y.google.cloud.oracledatabase.v1.GoldengateMysqlConnectionProperties.MysqlSecurityProtocolB\x03\xe0\x41\x01\x12\x62\n\x08ssl_mode\x18\x08 \x01(\x0e\x32K.google.cloud.oracledatabase.v1.GoldengateMysqlConnectionProperties.SSLModeB\x03\xe0\x41\x01\x12\x18\n\x0bssl_ca_file\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cssl_crl_file\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rssl_cert_file\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cssl_key_file\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12Q\n\x15\x61\x64\x64itional_attributes\x18\r \x03(\x0b\x32-.google.cloud.oracledatabase.v1.NameValuePairB\x03\xe0\x41\x01\x12\x19\n\x0c\x64\x62_system_id\x18\x0e \x01(\tB\x03\xe0\x41\x01\"^\n\x15MysqlSecurityProtocol\x12\'\n#MYSQL_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\t\n\x05PLAIN\x10\x01\x12\x07\n\x03TLS\x10\x02\x12\x08\n\x04MTLS\x10\x03\"r\n\x07SSLMode\x12\x18\n\x14SSL_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\r\n\tPREFERRED\x10\x02\x12\x0c\n\x08REQUIRED\x10\x03\x12\r\n\tVERIFY_CA\x10\x04\x12\x13\n\x0fVERIFY_IDENTITY\x10\x05\x42\x1d\n\x1b\x63onnection_password_options\"\x99\n\n#GoldengateKafkaConnectionProperties\x12\x1a\n\x08password\x18\x10 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x14 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12&\n\x14trust_store_password\x18\x11 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x01\x12\x64\n#trust_store_password_secret_version\x18\x15 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x01\x12$\n\x12key_store_password\x18\x12 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x02\x12\x62\n!key_store_password_secret_version\x18\x16 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x02\x12\"\n\x10ssl_key_password\x18\x13 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x03\x12`\n\x1fssl_key_password_secret_version\x18\x17 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x03\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0estream_pool_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ncluster_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12T\n\x11\x62ootstrap_servers\x18\x04 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.KafkaBootstrapServerB\x03\xe0\x41\x01\x12y\n\x11security_protocol\x18\x05 \x01(\x0e\x32Y.google.cloud.oracledatabase.v1.GoldengateKafkaConnectionProperties.KafkaSecurityProtocolB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10trust_store_file\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0ekey_store_file\x18\n \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x63onsumer_properties_file\x18\r \x01(\tB\x03\xe0\x41\x01\x12%\n\x18producer_properties_file\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12#\n\x16use_resource_principal\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\"z\n\x15KafkaSecurityProtocol\x12\'\n#KAFKA_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\x07\n\x03SSL\x10\x01\x12\x0c\n\x08SASL_SSL\x10\x02\x12\r\n\tPLAINTEXT\x10\x03\x12\x12\n\x0eSASL_PLAINTEXT\x10\x04\x42\x1d\n\x1b\x63onnection_password_optionsB\x1e\n\x1ctrust_store_password_optionsB\x1c\n\x1akey_store_password_optionsB\x1a\n\x18ssl_key_password_options\"\xa8\x08\n1GoldengateKafkaSchemaRegistryConnectionProperties\x12\x1a\n\x08password\x18\x0b \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x0f \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12&\n\x14trust_store_password\x18\x0c \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x01\x12\x64\n#trust_store_password_secret_version\x18\x10 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x01\x12$\n\x12key_store_password\x18\r \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x02\x12\x62\n!key_store_password_secret_version\x18\x11 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x02\x12\"\n\x10ssl_key_password\x18\x0e \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x03\x12`\n\x1fssl_key_password_secret_version\x18\x12 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x03\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x03url\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x86\x01\n\x13\x61uthentication_type\x18\x03 \x01(\x0e\x32\x64.google.cloud.oracledatabase.v1.GoldengateKafkaSchemaRegistryConnectionProperties.AuthenticationTypeB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10trust_store_file\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0ekey_store_file\x18\x08 \x01(\tB\x03\xe0\x41\x01\"Z\n\x12\x41uthenticationType\x12#\n\x1f\x41UTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x12\n\n\x06MUTUAL\x10\x03\x42\x1d\n\x1b\x63onnection_password_optionsB\x1e\n\x1ctrust_store_password_optionsB\x1c\n\x1akey_store_password_optionsB\x1a\n\x18ssl_key_password_options\"\xa7\x02\n.GoldengateOciObjectStorageConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ntenancy_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07user_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10private_key_file\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1dprivate_key_passphrase_secret\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16public_key_fingerprint\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16use_resource_principal\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\"\xc3\x04\n2GoldengateAzureDataLakeStorageConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x87\x01\n\x13\x61uthentication_type\x18\x02 \x01(\x0e\x32\x65.google.cloud.oracledatabase.v1.GoldengateAzureDataLakeStorageConnectionProperties.AuthenticationTypeB\x03\xe0\x41\x01\x12\x14\n\x07\x61\x63\x63ount\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x61\x63\x63ount_key_secret\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10sas_token_secret\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x61zure_tenant_id\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tclient_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rclient_secret\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x65ndpoint\x18\t \x01(\tB\x03\xe0\x41\x01\x12!\n\x14\x61zure_authority_host\x18\n \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x12\x41uthenticationType\x12#\n\x1f\x41UTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nSHARED_KEY\x10\x01\x12\x1b\n\x17SHARED_ACCESS_SIGNATURE\x10\x02\x12\x1a\n\x16\x41ZURE_ACTIVE_DIRECTORY\x10\x03\"\x9f\x02\n3GoldengateAzureSynapseAnalyticsConnectionProperties\x12\x1a\n\x08password\x18\x05 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x06 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x63onnection_string\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x03 \x01(\tB\x03\xe0\x41\x01\x42\x1d\n\x1b\x63onnection_password_options\"\xe1\x07\n(GoldengatePostgresqlConnectionProperties\x12\x1a\n\x08password\x18\x0f \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x10 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x64\x61tabase\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04host\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x15\x61\x64\x64itional_attributes\x18\x07 \x03(\x0b\x32-.google.cloud.oracledatabase.v1.NameValuePairB\x03\xe0\x41\x01\x12\x83\x01\n\x11security_protocol\x18\x08 \x01(\x0e\x32\x63.google.cloud.oracledatabase.v1.GoldengatePostgresqlConnectionProperties.PostgresqlSecurityProtocolB\x03\xe0\x41\x01\x12q\n\x08ssl_mode\x18\t \x01(\x0e\x32Z.google.cloud.oracledatabase.v1.GoldengatePostgresqlConnectionProperties.PostgresqlSslModeB\x03\xe0\x41\x01\x12\x18\n\x0bssl_ca_file\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cssl_crl_file\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rssl_cert_file\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cssl_key_file\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64\x62_system_id\x18\x0e \x01(\tB\x03\xe0\x41\x01\"h\n\x1aPostgresqlSecurityProtocol\x12,\n(POSTGRESQL_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\t\n\x05PLAIN\x10\x01\x12\x07\n\x03TLS\x10\x02\x12\x08\n\x04MTLS\x10\x03\"q\n\x11PostgresqlSslMode\x12#\n\x1fPOSTGRESQL_SSL_MODE_UNSPECIFIED\x10\x00\x12\n\n\x06PREFER\x10\x01\x12\x0b\n\x07REQUIRE\x10\x02\x12\r\n\tVERIFY_CA\x10\x03\x12\x0f\n\x0bVERIFY_FULL\x10\x04\x42\x1d\n\x1b\x63onnection_password_options\"\xe2\x05\n0GoldengateMicrosoftSqlserverConnectionProperties\x12\x1a\n\x08password\x18\x0b \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x0c \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x64\x61tabase\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04host\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x15\x61\x64\x64itional_attributes\x18\x07 \x03(\x0b\x32-.google.cloud.oracledatabase.v1.NameValuePairB\x03\xe0\x41\x01\x12\x93\x01\n\x11security_protocol\x18\x08 \x01(\x0e\x32s.google.cloud.oracledatabase.v1.GoldengateMicrosoftSqlserverConnectionProperties.MicrosoftSqlserverSecurityProtocolB\x03\xe0\x41\x01\x12\x18\n\x0bssl_ca_file\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x33\n&server_certificate_validation_required\x18\n \x01(\x08\x42\x03\xe0\x41\x01\"o\n\"MicrosoftSqlserverSecurityProtocol\x12\x35\n1MICROSOFT_SQLSERVER_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\t\n\x05PLAIN\x10\x01\x12\x07\n\x03TLS\x10\x02\x42\x1d\n\x1b\x63onnection_password_options\"\xb5\x01\n&GoldengateAmazonS3ConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\raccess_key_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18secret_access_key_secret\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x65ndpoint\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06region\x18\x05 \x01(\tB\x03\xe0\x41\x01\"^\n\"GoldengateHdfsConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rcore_site_xml\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\x90\x0c\n0GoldengateJavaMessageServiceConnectionProperties\x12\x1a\n\x08password\x18\x13 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x17 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12&\n\x14trust_store_password\x18\x14 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x01\x12\x64\n#trust_store_password_secret_version\x18\x18 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x01\x12$\n\x12key_store_password\x18\x15 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x02\x12\x62\n!key_store_password_secret_version\x18\x19 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x02\x12\"\n\x10ssl_key_password\x18\x16 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x03\x12`\n\x1fssl_key_password_secret_version\x18\x1a \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x03\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08use_jndi\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12$\n\x17jndi_connection_factory\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11jndi_provider_url\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12)\n\x1cjndi_initial_context_factory\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12$\n\x17jndi_security_principal\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12-\n jndi_security_credentials_secret\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63onnection_url\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x63onnection_factory\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x84\x01\n\x11security_protocol\x18\x0c \x01(\x0e\x32\x64.google.cloud.oracledatabase.v1.GoldengateJavaMessageServiceConnectionProperties.JmsSecurityProtocolB\x03\xe0\x41\x01\x12\x88\x01\n\x13\x61uthentication_type\x18\r \x01(\x0e\x32\x66.google.cloud.oracledatabase.v1.GoldengateJavaMessageServiceConnectionProperties.JmsAuthenticationTypeB\x03\xe0\x41\x01\x12\x1d\n\x10trust_store_file\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0ekey_store_file\x18\x10 \x01(\tB\x03\xe0\x41\x01\"Z\n\x13JmsSecurityProtocol\x12%\n!JMS_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\t\n\x05PLAIN\x10\x01\x12\x07\n\x03TLS\x10\x02\x12\x08\n\x04MTLS\x10\x03\"U\n\x15JmsAuthenticationType\x12\'\n#JMS_AUTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x42\x1d\n\x1b\x63onnection_password_optionsB\x1e\n\x1ctrust_store_password_optionsB\x1c\n\x1akey_store_password_optionsB\x1a\n\x18ssl_key_password_options\"\xa4\x06\n%GoldengateMongodbConnectionProperties\x12\x1a\n\x08password\x18\n \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x0c \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x33\n!tls_certificate_key_file_password\x18\x0b \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x01\x12q\n0tls_certificate_key_file_password_secret_version\x18\r \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x01\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11\x63onnection_string\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x61tabase_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12}\n\x11security_protocol\x18\x06 \x01(\x0e\x32].google.cloud.oracledatabase.v1.GoldengateMongodbConnectionProperties.MongodbSecurityProtocolB\x03\xe0\x41\x01\x12\x18\n\x0btls_ca_file\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18tls_certificate_key_file\x18\x08 \x01(\tB\x03\xe0\x41\x01\"b\n\x17MongodbSecurityProtocol\x12)\n%MONGODB_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\t\n\x05PLAIN\x10\x01\x12\x07\n\x03TLS\x10\x02\x12\x08\n\x04MTLS\x10\x03\x42\x1d\n\x1b\x63onnection_password_optionsB+\n)tls_certificate_key_file_password_options\"\xa2\x02\n)GoldengateOracleNosqlConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ntenancy_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07user_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10private_key_file\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1dprivate_key_passphrase_secret\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16public_key_fingerprint\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16use_resource_principal\x18\x08 \x01(\x08\x42\x03\xe0\x41\x01\"\xad\x04\n\'GoldengateSnowflakeConnectionProperties\x12\x1a\n\x08password\x18\x08 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\t \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63onnection_url\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12|\n\x13\x61uthentication_type\x18\x03 \x01(\x0e\x32Z.google.cloud.oracledatabase.v1.GoldengateSnowflakeConnectionProperties.AuthenticationTypeB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10private_key_file\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1dprivate_key_passphrase_secret\x18\x07 \x01(\tB\x03\xe0\x41\x01\"R\n\x12\x41uthenticationType\x12#\n\x1f\x41UTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0c\n\x08KEY_PAIR\x10\x02\x42\x1d\n\x1b\x63onnection_password_options\"\x95\x02\n,GoldengateAmazonRedshiftConnectionProperties\x12\x1a\n\x08password\x18\x05 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x06 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63onnection_url\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x03 \x01(\tB\x03\xe0\x41\x01\x42\x1d\n\x1b\x63onnection_password_options\"\x94\x06\n+GoldengateElasticsearchConnectionProperties\x12\x1a\n\x08password\x18\x08 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\t \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07servers\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x89\x01\n\x11security_protocol\x18\x03 \x01(\x0e\x32i.google.cloud.oracledatabase.v1.GoldengateElasticsearchConnectionProperties.ElasticsearchSecurityProtocolB\x03\xe0\x41\x01\x12\x8d\x01\n\x13\x61uthentication_type\x18\x04 \x01(\x0e\x32k.google.cloud.oracledatabase.v1.GoldengateElasticsearchConnectionProperties.ElasticsearchAuthenticationTypeB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x66ingerprint\x18\x07 \x01(\tB\x03\xe0\x41\x01\"d\n\x1d\x45lasticsearchSecurityProtocol\x12/\n+ELASTICSEARCH_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\t\n\x05PLAIN\x10\x01\x12\x07\n\x03TLS\x10\x02\"i\n\x1f\x45lasticsearchAuthenticationType\x12\x31\n-ELASTICSEARCH_AUTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x42\x1d\n\x1b\x63onnection_password_options\"\xbe\x01\n+GoldengateAmazonKinesisConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\raccess_key_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18secret_access_key_secret\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x65ndpoint\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\naws_region\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xc0\x05\n!GoldengateDb2ConnectionProperties\x12\x1a\n\x08password\x18\x0c \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\r \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04host\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x15\n\x08\x64\x61tabase\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12u\n\x11security_protocol\x18\x06 \x01(\x0e\x32U.google.cloud.oracledatabase.v1.GoldengateDb2ConnectionProperties.Db2SecurityProtocolB\x03\xe0\x41\x01\x12Q\n\x15\x61\x64\x64itional_attributes\x18\x08 \x03(\x0b\x32-.google.cloud.oracledatabase.v1.NameValuePairB\x03\xe0\x41\x01\x12\'\n\x1assl_client_keystoredb_file\x18\t \x01(\tB\x03\xe0\x41\x01\x12%\n\x18ssl_client_keystash_file\x18\n \x01(\tB\x03\xe0\x41\x01\x12(\n\x1bssl_server_certificate_file\x18\x0b \x01(\tB\x03\xe0\x41\x01\"P\n\x13\x44\x62\x32SecurityProtocol\x12%\n!DB2_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\t\n\x05PLAIN\x10\x01\x12\x07\n\x03TLS\x10\x02\x42\x1d\n\x1b\x63onnection_password_options\"\xeb\x08\n#GoldengateRedisConnectionProperties\x12\x1a\n\x08password\x18\x0c \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\x0f \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12&\n\x14trust_store_password\x18\r \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x01\x12\x64\n#trust_store_password_secret_version\x18\x10 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x01\x12$\n\x12key_store_password\x18\x0e \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x02\x12\x62\n!key_store_password_secret_version\x18\x11 \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x02\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07servers\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12y\n\x11security_protocol\x18\x03 \x01(\x0e\x32Y.google.cloud.oracledatabase.v1.GoldengateRedisConnectionProperties.RedisSecurityProtocolB\x03\xe0\x41\x01\x12}\n\x13\x61uthentication_type\x18\x04 \x01(\x0e\x32[.google.cloud.oracledatabase.v1.GoldengateRedisConnectionProperties.RedisAuthenticationTypeB\x03\xe0\x41\x01\x12\x15\n\x08username\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10redis_cluster_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10trust_store_file\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0ekey_store_file\x18\n \x01(\tB\x03\xe0\x41\x01\"^\n\x15RedisSecurityProtocol\x12\'\n#REDIS_SECURITY_PROTOCOL_UNSPECIFIED\x10\x00\x12\t\n\x05PLAIN\x10\x01\x12\x07\n\x03TLS\x10\x02\x12\x08\n\x04MTLS\x10\x03\"Y\n\x17RedisAuthenticationType\x12)\n%REDIS_AUTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\t\n\x05\x42\x41SIC\x10\x02\x42\x1d\n\x1b\x63onnection_password_optionsB\x1e\n\x1ctrust_store_password_optionsB\x1c\n\x1akey_store_password_options\"\xd3\x04\n(GoldengateDatabricksConnectionProperties\x12\x1a\n\x08password\x18\x08 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x04H\x00\x12X\n\x17password_secret_version\x18\t \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x87\x01\n\x13\x61uthentication_type\x18\x02 \x01(\x0e\x32\x65.google.cloud.oracledatabase.v1.GoldengateDatabricksConnectionProperties.DatabricksAuthenticationTypeB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63onnection_url\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tclient_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rclient_secret\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12storage_credential\x18\x07 \x01(\tB\x03\xe0\x41\x01\"x\n\x1c\x44\x61tabricksAuthenticationType\x12.\n*DATABRICKS_AUTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x19\n\x15PERSONAL_ACCESS_TOKEN\x10\x01\x12\r\n\tOAUTH_M2M\x10\x02\x42\x1d\n\x1b\x63onnection_password_options\"q\n*GoldengateGooglePubsubConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18service_account_key_file\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xb0\x01\n-GoldengateMicrosoftFabricConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttenant_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tclient_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rclient_secret\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x65ndpoint\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xc8\x02\n2GoldengateOracleAIDataPlatformConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63onnection_url\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ntenancy_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06region\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07user_id\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10private_key_file\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12*\n\x1dprivate_key_passphrase_secret\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16public_key_fingerprint\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12#\n\x16use_resource_principal\x18\t \x01(\x08\x42\x03\xe0\x41\x01\"*\n\x12GlueIcebergCatalog\x12\x14\n\x07glue_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\"=\n\x14NessieIcebergCatalog\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x62ranch\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x98\x01\n\x15PolarisIcebergCatalog\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fpolaris_catalog\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tclient_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0eprincipal_role\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rclient_secret\x18\x05 \x01(\tB\x03\xe0\x41\x01\"?\n\x12RestIcebergCatalog\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nproperties\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x04\n\x0eIcebergCatalog\x12R\n\x14glue_iceberg_catalog\x18\x01 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.GlueIcebergCatalogH\x00\x12V\n\x16nessie_iceberg_catalog\x18\x03 \x01(\x0b\x32\x34.google.cloud.oracledatabase.v1.NessieIcebergCatalogH\x00\x12X\n\x17polaris_iceberg_catalog\x18\x04 \x01(\x0b\x32\x35.google.cloud.oracledatabase.v1.PolarisIcebergCatalogH\x00\x12R\n\x14rest_iceberg_catalog\x18\x05 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.RestIcebergCatalogH\x00\x12U\n\x0c\x63\x61talog_type\x18\x06 \x01(\x0e\x32:.google.cloud.oracledatabase.v1.IcebergCatalog.CatalogTypeB\x03\xe0\x41\x02\"d\n\x0b\x43\x61talogType\x12\x1c\n\x18\x43\x41TALOG_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04GLUE\x10\x01\x12\n\n\x06HADOOP\x10\x02\x12\n\n\x06NESSIE\x10\x03\x12\x0b\n\x07POLARIS\x10\x04\x12\x08\n\x04REST\x10\x05\x42\x11\n\x0f\x63\x61talog_details\"\xb5\x02\n\x16\x41mazonS3IcebergStorage\x12[\n\x0bscheme_type\x18\x01 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.AmazonS3IcebergStorage.SchemeTypeB\x03\xe0\x41\x02\x12\x1a\n\raccess_key_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06region\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06\x62ucket\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08\x65ndpoint\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18secret_access_key_secret\x18\x06 \x01(\tB\x03\xe0\x41\x01\":\n\nSchemeType\x12\x1b\n\x17SCHEME_TYPE_UNSPECIFIED\x10\x00\x12\x06\n\x02S3\x10\x01\x12\x07\n\x03S3A\x10\x02\"w\n GoogleCloudStorageIcebergStorage\x12\x13\n\x06\x62ucket\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nproject_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12%\n\x18service_account_key_file\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n\"AzureDataLakeStorageIcebergStorage\x12\x1a\n\razure_account\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tcontainer\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12\x61\x63\x63ount_key_secret\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08\x65ndpoint\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xb3\x04\n\x0eIcebergStorage\x12[\n\x19\x61mazon_s3_iceberg_storage\x18\x01 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.AmazonS3IcebergStorageH\x00\x12p\n$google_cloud_storage_iceberg_storage\x18\x02 \x01(\x0b\x32@.google.cloud.oracledatabase.v1.GoogleCloudStorageIcebergStorageH\x00\x12u\n\'azure_data_lake_storage_iceberg_storage\x18\x03 \x01(\x0b\x32\x42.google.cloud.oracledatabase.v1.AzureDataLakeStorageIcebergStorageH\x00\x12U\n\x0cstorage_type\x18\x04 \x01(\x0e\x32:.google.cloud.oracledatabase.v1.IcebergStorage.StorageTypeB\x03\xe0\x41\x02\"q\n\x0bStorageType\x12\x1c\n\x18STORAGE_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tAMAZON_S3\x10\x01\x12\x18\n\x14GOOGLE_CLOUD_STORAGE\x10\x02\x12\x1b\n\x17\x41ZURE_DATA_LAKE_STORAGE\x10\x03\x42\x11\n\x0fstorage_details\"\xd1\x01\n%GoldengateIcebergConnectionProperties\x12\x1c\n\x0ftechnology_type\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x07\x63\x61talog\x18\x02 \x01(\x0b\x32..google.cloud.oracledatabase.v1.IcebergCatalogB\x03\xe0\x41\x02\x12\x44\n\x07storage\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.IcebergStorageB\x03\xe0\x41\x02\"\x91\x02\n!CreateGoldengateConnectionRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32oracledatabase.googleapis.com/GoldengateConnection\x12%\n\x18goldengate_connection_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12X\n\x15goldengate_connection\x18\x03 \x01(\x0b\x32\x34.google.cloud.oracledatabase.v1.GoldengateConnectionB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x8e\x01\n!DeleteGoldengateConnectionRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2oracledatabase.googleapis.com/GoldengateConnection\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"j\n\x1eGetGoldengateConnectionRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2oracledatabase.googleapis.com/GoldengateConnection\"\xcb\x01\n ListGoldengateConnectionsRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32oracledatabase.googleapis.com/GoldengateConnection\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n!ListGoldengateConnectionsResponse\x12T\n\x16goldengate_connections\x18\x01 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.GoldengateConnection\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x01\"5\n\rNameValuePair\x12\x10\n\x03key\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\"e\n\x14KafkaBootstrapServer\x12\x11\n\x04host\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04port\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\'\n\x12private_ip_address\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x04\x42\xf3\x01\n\"com.google.cloud.oracledatabase.v1B\x19GoldengateConnectionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + GoldengateConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateConnection").msgclass + GoldengateConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateConnectionProperties").msgclass + GoldengateConnectionProperties::GoldengateConnectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateConnectionProperties.GoldengateConnectionType").enummodule + GoldengateConnectionProperties::GoldengateConnectionLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateConnectionProperties.GoldengateConnectionLifecycleState").enummodule + GoldengateConnectionProperties::GoldengateConnectionRoutingMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateConnectionProperties.GoldengateConnectionRoutingMethod").enummodule + GoldengateOracleConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateOracleConnectionProperties").msgclass + GoldengateOracleConnectionProperties::OracleAuthenticationMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateOracleConnectionProperties.OracleAuthenticationMode").enummodule + GoldengateOracleConnectionProperties::SessionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateOracleConnectionProperties.SessionMode").enummodule + GoldengateGoldengateConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateGoldengateConnectionProperties").msgclass + GoldengateGenericConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateGenericConnectionProperties").msgclass + GoldengateGoogleCloudStorageConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateGoogleCloudStorageConnectionProperties").msgclass + GoldengateGoogleBigQueryConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateGoogleBigQueryConnectionProperties").msgclass + GoldengateMysqlConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMysqlConnectionProperties").msgclass + GoldengateMysqlConnectionProperties::MysqlSecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMysqlConnectionProperties.MysqlSecurityProtocol").enummodule + GoldengateMysqlConnectionProperties::SSLMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMysqlConnectionProperties.SSLMode").enummodule + GoldengateKafkaConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateKafkaConnectionProperties").msgclass + GoldengateKafkaConnectionProperties::KafkaSecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateKafkaConnectionProperties.KafkaSecurityProtocol").enummodule + GoldengateKafkaSchemaRegistryConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateKafkaSchemaRegistryConnectionProperties").msgclass + GoldengateKafkaSchemaRegistryConnectionProperties::AuthenticationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateKafkaSchemaRegistryConnectionProperties.AuthenticationType").enummodule + GoldengateOciObjectStorageConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateOciObjectStorageConnectionProperties").msgclass + GoldengateAzureDataLakeStorageConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateAzureDataLakeStorageConnectionProperties").msgclass + GoldengateAzureDataLakeStorageConnectionProperties::AuthenticationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateAzureDataLakeStorageConnectionProperties.AuthenticationType").enummodule + GoldengateAzureSynapseAnalyticsConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateAzureSynapseAnalyticsConnectionProperties").msgclass + GoldengatePostgresqlConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengatePostgresqlConnectionProperties").msgclass + GoldengatePostgresqlConnectionProperties::PostgresqlSecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengatePostgresqlConnectionProperties.PostgresqlSecurityProtocol").enummodule + GoldengatePostgresqlConnectionProperties::PostgresqlSslMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengatePostgresqlConnectionProperties.PostgresqlSslMode").enummodule + GoldengateMicrosoftSqlserverConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMicrosoftSqlserverConnectionProperties").msgclass + GoldengateMicrosoftSqlserverConnectionProperties::MicrosoftSqlserverSecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMicrosoftSqlserverConnectionProperties.MicrosoftSqlserverSecurityProtocol").enummodule + GoldengateAmazonS3ConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateAmazonS3ConnectionProperties").msgclass + GoldengateHdfsConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateHdfsConnectionProperties").msgclass + GoldengateJavaMessageServiceConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateJavaMessageServiceConnectionProperties").msgclass + GoldengateJavaMessageServiceConnectionProperties::JmsSecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateJavaMessageServiceConnectionProperties.JmsSecurityProtocol").enummodule + GoldengateJavaMessageServiceConnectionProperties::JmsAuthenticationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateJavaMessageServiceConnectionProperties.JmsAuthenticationType").enummodule + GoldengateMongodbConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMongodbConnectionProperties").msgclass + GoldengateMongodbConnectionProperties::MongodbSecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMongodbConnectionProperties.MongodbSecurityProtocol").enummodule + GoldengateOracleNosqlConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateOracleNosqlConnectionProperties").msgclass + GoldengateSnowflakeConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateSnowflakeConnectionProperties").msgclass + GoldengateSnowflakeConnectionProperties::AuthenticationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateSnowflakeConnectionProperties.AuthenticationType").enummodule + GoldengateAmazonRedshiftConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateAmazonRedshiftConnectionProperties").msgclass + GoldengateElasticsearchConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateElasticsearchConnectionProperties").msgclass + GoldengateElasticsearchConnectionProperties::ElasticsearchSecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateElasticsearchConnectionProperties.ElasticsearchSecurityProtocol").enummodule + GoldengateElasticsearchConnectionProperties::ElasticsearchAuthenticationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateElasticsearchConnectionProperties.ElasticsearchAuthenticationType").enummodule + GoldengateAmazonKinesisConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateAmazonKinesisConnectionProperties").msgclass + GoldengateDb2ConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDb2ConnectionProperties").msgclass + GoldengateDb2ConnectionProperties::Db2SecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDb2ConnectionProperties.Db2SecurityProtocol").enummodule + GoldengateRedisConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateRedisConnectionProperties").msgclass + GoldengateRedisConnectionProperties::RedisSecurityProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateRedisConnectionProperties.RedisSecurityProtocol").enummodule + GoldengateRedisConnectionProperties::RedisAuthenticationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateRedisConnectionProperties.RedisAuthenticationType").enummodule + GoldengateDatabricksConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDatabricksConnectionProperties").msgclass + GoldengateDatabricksConnectionProperties::DatabricksAuthenticationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDatabricksConnectionProperties.DatabricksAuthenticationType").enummodule + GoldengateGooglePubsubConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateGooglePubsubConnectionProperties").msgclass + GoldengateMicrosoftFabricConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMicrosoftFabricConnectionProperties").msgclass + GoldengateOracleAIDataPlatformConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateOracleAIDataPlatformConnectionProperties").msgclass + GlueIcebergCatalog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GlueIcebergCatalog").msgclass + NessieIcebergCatalog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.NessieIcebergCatalog").msgclass + PolarisIcebergCatalog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PolarisIcebergCatalog").msgclass + RestIcebergCatalog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.RestIcebergCatalog").msgclass + IcebergCatalog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IcebergCatalog").msgclass + IcebergCatalog::CatalogType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IcebergCatalog.CatalogType").enummodule + AmazonS3IcebergStorage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AmazonS3IcebergStorage").msgclass + AmazonS3IcebergStorage::SchemeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AmazonS3IcebergStorage.SchemeType").enummodule + GoogleCloudStorageIcebergStorage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoogleCloudStorageIcebergStorage").msgclass + AzureDataLakeStorageIcebergStorage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AzureDataLakeStorageIcebergStorage").msgclass + IcebergStorage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IcebergStorage").msgclass + IcebergStorage::StorageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IcebergStorage.StorageType").enummodule + GoldengateIcebergConnectionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateIcebergConnectionProperties").msgclass + CreateGoldengateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateGoldengateConnectionRequest").msgclass + DeleteGoldengateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteGoldengateConnectionRequest").msgclass + GetGoldengateConnectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetGoldengateConnectionRequest").msgclass + ListGoldengateConnectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateConnectionsRequest").msgclass + ListGoldengateConnectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateConnectionsResponse").msgclass + NameValuePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.NameValuePair").msgclass + KafkaBootstrapServer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.KafkaBootstrapServer").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb new file mode 100644 index 000000000000..21792e2739f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/goldengate_connection_type.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/cloud/oracledatabase/v1/goldengate_connection_type.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xd3\x07\n\x18GoldengateConnectionType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x65\n\x0f\x63onnection_type\x18\x02 \x01(\x0e\x32G.google.cloud.oracledatabase.v1.GoldengateConnectionType.ConnectionTypeB\x03\xe0\x41\x03\x12\x1d\n\x10technology_types\x18\x03 \x03(\tB\x03\xe0\x41\x03\"\xc9\x04\n\x0e\x43onnectionType\x12\x1f\n\x1b\x43ONNECTION_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nGOLDENGATE\x10\x01\x12\t\n\x05KAFKA\x10\x02\x12\x19\n\x15KAFKA_SCHEMA_REGISTRY\x10\x03\x12\t\n\x05MYSQL\x10\x04\x12\x18\n\x14JAVA_MESSAGE_SERVICE\x10\x05\x12\x17\n\x13MICROSOFT_SQLSERVER\x10\x06\x12\x16\n\x12OCI_OBJECT_STORAGE\x10\x07\x12\n\n\x06ORACLE\x10\x08\x12\x1b\n\x17\x41ZURE_DATA_LAKE_STORAGE\x10\t\x12\x0e\n\nPOSTGRESQL\x10\n\x12\x1b\n\x17\x41ZURE_SYNAPSE_ANALYTICS\x10\x0b\x12\r\n\tSNOWFLAKE\x10\x0c\x12\r\n\tAMAZON_S3\x10\r\x12\x08\n\x04HDFS\x10\x0e\x12\x1b\n\x17ORACLE_AI_DATA_PLATFORM\x10\x0f\x12\x10\n\x0cORACLE_NOSQL\x10\x10\x12\x0b\n\x07MONGODB\x10\x11\x12\x12\n\x0e\x41MAZON_KINESIS\x10\x12\x12\x13\n\x0f\x41MAZON_REDSHIFT\x10\x13\x12\x07\n\x03\x44\x42\x32\x10\x14\x12\t\n\x05REDIS\x10\x15\x12\x11\n\rELASTICSEARCH\x10\x16\x12\x0b\n\x07GENERIC\x10\x17\x12\x18\n\x14GOOGLE_CLOUD_STORAGE\x10\x18\x12\x13\n\x0fGOOGLE_BIGQUERY\x10\x19\x12\x0e\n\nDATABRICKS\x10\x1a\x12\x11\n\rGOOGLE_PUBSUB\x10\x1b\x12\x14\n\x10MICROSOFT_FABRIC\x10\x1c\x12\x0b\n\x07ICEBERG\x10\x1d:\xd1\x01\xea\x41\xcd\x01\n6oracledatabase.googleapis.com/GoldengateConnectionType\x12^projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}*\x19goldengateConnectionTypes2\x18goldengateConnectionType\"r\n\"GetGoldengateConnectionTypeRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6oracledatabase.googleapis.com/GoldengateConnectionType\"\xbc\x01\n$ListGoldengateConnectionTypesRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36oracledatabase.googleapis.com/GoldengateConnectionType\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xb9\x01\n%ListGoldengateConnectionTypesResponse\x12]\n\x1bgoldengate_connection_types\x18\x01 \x03(\x0b\x32\x38.google.cloud.oracledatabase.v1.GoldengateConnectionType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\x42\xf7\x01\n\"com.google.cloud.oracledatabase.v1B\x1dGoldengateConnectionTypeProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + GoldengateConnectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateConnectionType").msgclass + GoldengateConnectionType::ConnectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateConnectionType.ConnectionType").enummodule + GetGoldengateConnectionTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest").msgclass + ListGoldengateConnectionTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesRequest").msgclass + ListGoldengateConnectionTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb new file mode 100644 index 000000000000..3a5e19c895b2 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\nFgoogle/cloud/oracledatabase/v1/goldengate_deployment_environment.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xa7\x08\n\x1fGoldengateDeploymentEnvironment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12i\n\x08\x63\x61tegory\x18\x02 \x01(\x0e\x32R.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment.DeploymentCategoryB\x03\xe0\x41\x03\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12#\n\x16\x64\x65\x66\x61ult_cpu_core_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12x\n\x10\x65nvironment_type\x18\x05 \x01(\x0e\x32Y.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment.DeploymentEnvironmentTypeB\x03\xe0\x41\x03\x12!\n\x14\x61uto_scaling_enabled\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1f\n\x12max_cpu_core_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x03\x12#\n\x16memory_gb_per_cpu_core\x18\x08 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1f\n\x12min_cpu_core_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12\x30\n#network_bandwidth_gbps_per_cpu_core\x18\n \x01(\x05\x42\x03\xe0\x41\x03\x12\x30\n#storage_usage_limit_gb_per_cpu_core\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\"v\n\x12\x44\x65ploymentCategory\x12#\n\x1f\x44\x45PLOYMENT_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x44\x41TA_REPLICATION_CATEGORY\x10\x01\x12\x1c\n\x18\x44\x41TA_TRANSFORMS_CATEGORY\x10\x02\"t\n\x19\x44\x65ploymentEnvironmentType\x12+\n\'DEPLOYMENT_ENVIRONMENT_TYPE_UNSPECIFIED\x10\x00\x12\x0e\n\nPRODUCTION\x10\x01\x12\x1a\n\x16\x44\x45VELOPMENT_OR_TESTING\x10\x02:\xf4\x01\xea\x41\xf0\x01\n=oracledatabase.googleapis.com/GoldengateDeploymentEnvironment\x12lprojects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}* goldengateDeploymentEnvironments2\x1fgoldengateDeploymentEnvironment\"\x80\x01\n)GetGoldengateDeploymentEnvironmentRequest\x12S\n\x04name\x18\x01 \x01(\tBE\xe0\x41\x02\xfa\x41?\n=oracledatabase.googleapis.com/GoldengateDeploymentEnvironment\"\xb5\x01\n+ListGoldengateDeploymentEnvironmentsRequest\x12U\n\x06parent\x18\x01 \x01(\tBE\xe0\x41\x02\xfa\x41?\x12=oracledatabase.googleapis.com/GoldengateDeploymentEnvironment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xce\x01\n,ListGoldengateDeploymentEnvironmentsResponse\x12k\n\"goldengate_deployment_environments\x18\x01 \x03(\x0b\x32?.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\x42\xfe\x01\n\"com.google.cloud.oracledatabase.v1B$GoldengateDeploymentEnvironmentProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + GoldengateDeploymentEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment").msgclass + GoldengateDeploymentEnvironment::DeploymentCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment.DeploymentCategory").enummodule + GoldengateDeploymentEnvironment::DeploymentEnvironmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment.DeploymentEnvironmentType").enummodule + GetGoldengateDeploymentEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest").msgclass + ListGoldengateDeploymentEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsRequest").msgclass + ListGoldengateDeploymentEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb new file mode 100644 index 000000000000..642199ef8756 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/goldengate_deployment.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' +require 'google/type/dayofweek_pb' + + +descriptor_data = "\n:google/cloud/oracledatabase/v1/goldengate_deployment.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\"\xf5\x05\n\x14GoldengateDeployment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12W\n\nproperties\x18\x02 \x01(\x0b\x32>.google.cloud.oracledatabase.v1.GoldengateDeploymentPropertiesB\x03\xe0\x41\x02\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12U\n\x06labels\x18\x04 \x03(\x0b\x32@.google.cloud.oracledatabase.v1.GoldengateDeployment.LabelsEntryB\x03\xe0\x41\x01\x12\x45\n\x0bodb_network\x18\x05 \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x06 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1b\n\x0e\x65ntitlement_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xbc\x01\xea\x41\xb8\x01\n2oracledatabase.googleapis.com/GoldengateDeployment\x12Uprojects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}*\x15goldengateDeployments2\x14goldengateDeployment\"\xa9\x1b\n\x1eGoldengateDeploymentProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x7f\n\x0flifecycle_state\x18\x02 \x01(\x0e\x32\x61.google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.GoldengateDeploymentLifecycleStateB\x03\xe0\x41\x03\x12g\n\rlicense_model\x18\x03 \x01(\x0e\x32K.google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.LicenseModelB\x03\xe0\x41\x01\x12\x1d\n\x10\x65nvironment_type\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63pu_core_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17is_auto_scaling_enabled\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x64\x65ployment_type\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12N\n\x08ogg_data\x18\t \x01(\x0b\x32\x37.google.cloud.oracledatabase.v1.GoldengateOggDeploymentB\x03\xe0\x41\x02\x12\\\n\x12maintenance_window\x18\n \x01(\x0b\x32;.google.cloud.oracledatabase.v1.GoldengateMaintenanceWindowB\x03\xe0\x41\x01\x12\\\n\x12maintenance_config\x18\x0b \x01(\x0b\x32;.google.cloud.oracledatabase.v1.GoldengateMaintenanceConfigB\x03\xe0\x41\x01\x12\x11\n\x04\x66qdn\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x86\x01\n\x13lifecycle_sub_state\x18\r \x01(\x0e\x32\x64.google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.GoldengateDeploymentLifecycleSubStateB\x03\xe0\x41\x03\x12r\n\x08\x63\x61tegory\x18\x0e \x01(\x0e\x32[.google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.GoldengateDeploymentCategoryB\x03\xe0\x41\x03\x12!\n\x14\x64\x65ployment_backup_id\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1e\n\x11lifecycle_details\x18\x11 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07healthy\x18\x12 \x01(\x08\x42\x03\xe0\x41\x03\x12$\n\x17load_balancer_subnet_id\x18\x13 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10load_balancer_id\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07nsg_ids\x18\x15 \x03(\tB\x03\xe0\x41\x03\x12\x16\n\tis_public\x18\x16 \x01(\x08\x42\x03\xe0\x41\x03\x12&\n\x11public_ip_address\x18\x17 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x04\x12\'\n\x12private_ip_address\x18\x18 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x04\x12\x1b\n\x0e\x64\x65ployment_url\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11is_latest_version\x18\x1a \x01(\x08\x42\x03\xe0\x41\x03\x12>\n\x15upgrade_required_time\x18\x1b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12&\n\x19storage_utilization_bytes\x18\x1c \x01(\x03\x42\x03\xe0\x41\x03\x12\x32\n%is_storage_utilization_limit_exceeded\x18\x1d \x01(\x08\x42\x03\xe0\x41\x03\x12\x61\n\x1a\x64\x65ployment_diagnostic_data\x18\x1e \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.DeploymentDiagnosticDataB\x03\xe0\x41\x03\x12V\n\x0f\x62\x61\x63kup_schedule\x18\x1f \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.GoldengateBackupScheduleB\x03\xe0\x41\x03\x12>\n\x15next_maintenance_time\x18 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x83\x01\n\x1cnext_maintenance_action_type\x18! \x01(\x0e\x32X.google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.NextMaintenanceActionTypeB\x03\xe0\x41\x03\x12)\n\x1cnext_maintenance_description\x18\" \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x1cogg_version_support_end_time\x18# \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x0bingress_ips\x18$ \x03(\x0b\x32).google.cloud.oracledatabase.v1.IngressIpB\x03\xe0\x41\x03\x12y\n\x0f\x64\x65ployment_role\x18% \x01(\x0e\x32[.google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.GoldengateDeploymentRoleTypeB\x03\xe0\x41\x03\x12\x42\n\x19last_backup_schedule_time\x18& \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x42\n\x19next_backup_schedule_time\x18\' \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x10role_change_time\x18( \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n\x05locks\x18) \x03(\x0b\x32\x38.google.cloud.oracledatabase.v1.GoldengateDeploymentLockB\x03\xe0\x41\x03\x12L\n\nplacements\x18* \x03(\x0b\x32\x33.google.cloud.oracledatabase.v1.GoldengatePlacementB\x03\xe0\x41\x03\"\x99\x02\n\"GoldengateDeploymentLifecycleState\x12\x35\n1GOLDENGATE_DEPLOYMENT_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0c\n\x08UPDATING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x0c\n\x08INACTIVE\x10\x04\x12\x0c\n\x08\x44\x45LETING\x10\x05\x12\x0b\n\x07\x44\x45LETED\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\x13\n\x0fNEEDS_ATTENTION\x10\x08\x12\x0f\n\x0bIN_PROGRESS\x10\t\x12\x0e\n\nCANCELLING\x10\n\x12\r\n\tCANCELLED\x10\x0b\x12\r\n\tSUCCEEDED\x10\x0c\x12\x0b\n\x07WAITING\x10\r\"_\n\x0cLicenseModel\x12\x1d\n\x19LICENSE_MODEL_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\xda\x01\n%GoldengateDeploymentLifecycleSubState\x12\x39\n5GOLDENGATE_DEPLOYMENT_LIFECYCLE_SUB_STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nRECOVERING\x10\x01\x12\x0c\n\x08STARTING\x10\x02\x12\x0c\n\x08STOPPING\x10\x03\x12\n\n\x06MOVING\x10\x04\x12\r\n\tUPGRADING\x10\x05\x12\r\n\tRESTORING\x10\x06\x12\x0e\n\nBACKING_UP\x10\x07\x12\x10\n\x0cROLLING_BACK\x10\x08\"y\n\x1cGoldengateDeploymentCategory\x12.\n*GOLDENGATE_DEPLOYMENT_CATEGORY_UNSPECIFIED\x10\x00\x12\x14\n\x10\x44\x41TA_REPLICATION\x10\x01\x12\x13\n\x0f\x44\x41TA_TRANSFORMS\x10\x02\"V\n\x19NextMaintenanceActionType\x12,\n(NEXT_MAINTENANCE_ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07UPGRADE\x10\x01\"i\n\x1cGoldengateDeploymentRoleType\x12/\n+GOLDENGATE_DEPLOYMENT_ROLE_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\x0b\n\x07STANDBY\x10\x02\"\xfa\x04\n\x17GoldengateOggDeployment\x12\x1d\n\x0e\x61\x64min_password\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12^\n\x1d\x61\x64min_password_secret_version\x18\n \x01(\tB5\xe0\x41\x01\xe0\x41\x04\xfa\x41,\n*secretmanager.googleapis.com/SecretVersionH\x00\x12\x17\n\ndeployment\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1b\n\x0e\x61\x64min_username\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0bogg_version\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x63\x65rtificate\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x66\n\x10\x63redential_store\x18\x06 \x01(\x0e\x32G.google.cloud.oracledatabase.v1.GoldengateOggDeployment.CredentialStoreB\x03\xe0\x41\x03\x12\x1f\n\x12identity_domain_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12password_secret_id\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12_\n\x13group_roles_mapping\x18\t \x01(\x0b\x32=.google.cloud.oracledatabase.v1.GoldengateGroupToRolesMappingB\x03\xe0\x41\x03\"L\n\x0f\x43redentialStore\x12 \n\x1c\x43REDENTIAL_STORE_UNSPECIFIED\x10\x00\x12\x0e\n\nGOLDENGATE\x10\x01\x12\x07\n\x03IAM\x10\x02\x42\x1d\n\x1b\x64\x65ployment_password_options\"`\n\x1bGoldengateMaintenanceWindow\x12(\n\x03\x64\x61y\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x02\x12\x17\n\nstart_hour\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\x97\x02\n\x1bGoldengateMaintenanceConfig\x12\x34\n\'is_interim_release_auto_upgrade_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12\x30\n#interim_release_upgrade_period_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12/\n\"bundle_release_upgrade_period_days\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12.\n!major_release_upgrade_period_days\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12/\n\"security_patch_upgrade_period_days\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\"\xa4\x03\n\x18\x44\x65ploymentDiagnosticData\x12\x16\n\tnamespace\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06\x62ucket\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06object\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12g\n\x10\x64iagnostic_state\x18\x04 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.DeploymentDiagnosticData.DiagnosticStateB\x03\xe0\x41\x03\x12>\n\x15\x64iagnostic_start_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x13\x64iagnostic_end_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"_\n\x0f\x44iagnosticState\x12 \n\x1c\x44IAGNOSTIC_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\"\xa8\x03\n\x18GoldengateBackupSchedule\x12\x13\n\x06\x62ucket\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x63ompartment_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12z\n\x1a\x66requency_backup_scheduled\x18\x03 \x01(\x0e\x32Q.google.cloud.oracledatabase.v1.GoldengateBackupSchedule.FrequencyBackupScheduledB\x03\xe0\x41\x03\x12\x1a\n\rmetadata_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12\x16\n\tnamespace\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12>\n\x15\x62\x61\x63kup_scheduled_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"j\n\x18\x46requencyBackupScheduled\x12*\n&FREQUENCY_BACKUP_SCHEDULED_UNSPECIFIED\x10\x00\x12\t\n\x05\x44\x41ILY\x10\x01\x12\n\n\x06WEEKLY\x10\x02\x12\x0b\n\x07MONTHLY\x10\x03\"4\n\tIngressIp\x12\'\n\x12ingress_ip_address\x18\x01 \x01(\tB\x0b\xe0\x41\x03\xe2\x8c\xcf\xd7\x08\x02\x08\x04\"\xb8\x02\n\x18GoldengateDeploymentLock\x12T\n\x04type\x18\x01 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.GoldengateDeploymentLock.LockTypeB\x03\xe0\x41\x03\x12\x1b\n\x0e\x63ompartment_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13related_resource_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07message\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\";\n\x08LockType\x12\x19\n\x15LOCK_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\"R\n\x13GoldengatePlacement\x12 \n\x13\x61vailability_domain\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61ult_domain\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xa0\x01\n\x1dGoldengateGroupToRolesMapping\x12\x1e\n\x11security_group_id\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16\x61\x64ministrator_group_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11operator_group_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\ruser_group_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\x91\x02\n!CreateGoldengateDeploymentRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32oracledatabase.googleapis.com/GoldengateDeployment\x12%\n\x18goldengate_deployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12X\n\x15goldengate_deployment\x18\x03 \x01(\x0b\x32\x34.google.cloud.oracledatabase.v1.GoldengateDeploymentB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x8e\x01\n!DeleteGoldengateDeploymentRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2oracledatabase.googleapis.com/GoldengateDeployment\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"j\n\x1eGetGoldengateDeploymentRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2oracledatabase.googleapis.com/GoldengateDeployment\"\xcb\x01\n ListGoldengateDeploymentsRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32oracledatabase.googleapis.com/GoldengateDeployment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n!ListGoldengateDeploymentsResponse\x12T\n\x16goldengate_deployments\x18\x01 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.GoldengateDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x01\"k\n\x1fStopGoldengateDeploymentRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2oracledatabase.googleapis.com/GoldengateDeployment\"l\n StartGoldengateDeploymentRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2oracledatabase.googleapis.com/GoldengateDeploymentB\xf3\x01\n\"com.google.cloud.oracledatabase.v1B\x19GoldengateDeploymentProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + GoldengateDeployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeployment").msgclass + GoldengateDeploymentProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentProperties").msgclass + GoldengateDeploymentProperties::GoldengateDeploymentLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.GoldengateDeploymentLifecycleState").enummodule + GoldengateDeploymentProperties::LicenseModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.LicenseModel").enummodule + GoldengateDeploymentProperties::GoldengateDeploymentLifecycleSubState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.GoldengateDeploymentLifecycleSubState").enummodule + GoldengateDeploymentProperties::GoldengateDeploymentCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.GoldengateDeploymentCategory").enummodule + GoldengateDeploymentProperties::NextMaintenanceActionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.NextMaintenanceActionType").enummodule + GoldengateDeploymentProperties::GoldengateDeploymentRoleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentProperties.GoldengateDeploymentRoleType").enummodule + GoldengateOggDeployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateOggDeployment").msgclass + GoldengateOggDeployment::CredentialStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateOggDeployment.CredentialStore").enummodule + GoldengateMaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMaintenanceWindow").msgclass + GoldengateMaintenanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateMaintenanceConfig").msgclass + DeploymentDiagnosticData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeploymentDiagnosticData").msgclass + DeploymentDiagnosticData::DiagnosticState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeploymentDiagnosticData.DiagnosticState").enummodule + GoldengateBackupSchedule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateBackupSchedule").msgclass + GoldengateBackupSchedule::FrequencyBackupScheduled = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateBackupSchedule.FrequencyBackupScheduled").enummodule + IngressIp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IngressIp").msgclass + GoldengateDeploymentLock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentLock").msgclass + GoldengateDeploymentLock::LockType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentLock.LockType").enummodule + GoldengatePlacement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengatePlacement").msgclass + GoldengateGroupToRolesMapping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateGroupToRolesMapping").msgclass + CreateGoldengateDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateGoldengateDeploymentRequest").msgclass + DeleteGoldengateDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteGoldengateDeploymentRequest").msgclass + GetGoldengateDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest").msgclass + ListGoldengateDeploymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateDeploymentsRequest").msgclass + ListGoldengateDeploymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateDeploymentsResponse").msgclass + StopGoldengateDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.StopGoldengateDeploymentRequest").msgclass + StartGoldengateDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.StartGoldengateDeploymentRequest").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb new file mode 100644 index 000000000000..932ec7892064 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb @@ -0,0 +1,29 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/goldengate_deployment_type.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n?google/cloud/oracledatabase/v1/goldengate_deployment_type.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbe\x08\n\x18GoldengateDeploymentType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x65\n\x0f\x64\x65ployment_type\x18\x02 \x01(\x0e\x32G.google.cloud.oracledatabase.v1.GoldengateDeploymentType.DeploymentTypeB\x03\xe0\x41\x03\x12\x62\n\x08\x63\x61tegory\x18\x03 \x01(\x0e\x32K.google.cloud.oracledatabase.v1.GoldengateDeploymentType.DeploymentCategoryB\x03\xe0\x41\x03\x12\x1d\n\x10\x63onnection_types\x18\x04 \x03(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0bogg_version\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13source_technologies\x18\x07 \x03(\tB\x03\xe0\x41\x03\x12#\n\x16supported_capabilities\x18\x08 \x03(\tB\x03\xe0\x41\x03\x12\'\n\x1asupported_technologies_url\x18\t \x01(\tB\x03\xe0\x41\x03\x12 \n\x13target_technologies\x18\n \x03(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x64\x65\x66\x61ult_username\x18\x0b \x01(\tB\x03\xe0\x41\x03\"\xf2\x01\n\x0e\x44\x65ploymentType\x12\x1f\n\x1b\x44\x45PLOYMENT_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03OGG\x10\x01\x12\x13\n\x0f\x44\x41TABASE_ORACLE\x10\x02\x12\x0b\n\x07\x42IGDATA\x10\x03\x12 \n\x1c\x44\x41TABASE_MICROSOFT_SQLSERVER\x10\x04\x12\x12\n\x0e\x44\x41TABASE_MYSQL\x10\x05\x12\x17\n\x13\x44\x41TABASE_POSTGRESQL\x10\x06\x12\x13\n\x0f\x44\x41TABASE_DB2ZOS\x10\x07\x12\x11\n\rDATABASE_DB2I\x10\x08\x12\x08\n\x04GGSA\x10\t\x12\x13\n\x0f\x44\x41TA_TRANSFORMS\x10\n\"v\n\x12\x44\x65ploymentCategory\x12#\n\x1f\x44\x45PLOYMENT_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x44\x41TA_REPLICATION_CATEGORY\x10\x01\x12\x1c\n\x18\x44\x41TA_TRANSFORMS_CATEGORY\x10\x02:\xd1\x01\xea\x41\xcd\x01\n6oracledatabase.googleapis.com/GoldengateDeploymentType\x12^projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}*\x19goldengateDeploymentTypes2\x18goldengateDeploymentType\"r\n\"GetGoldengateDeploymentTypeRequest\x12L\n\x04name\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\n6oracledatabase.googleapis.com/GoldengateDeploymentType\"\xd3\x01\n$ListGoldengateDeploymentTypesRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36oracledatabase.googleapis.com/GoldengateDeploymentType\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xb9\x01\n%ListGoldengateDeploymentTypesResponse\x12]\n\x1bgoldengate_deployment_types\x18\x01 \x03(\x0b\x32\x38.google.cloud.oracledatabase.v1.GoldengateDeploymentType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\x42\xf7\x01\n\"com.google.cloud.oracledatabase.v1B\x1dGoldengateDeploymentTypeProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + GoldengateDeploymentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentType").msgclass + GoldengateDeploymentType::DeploymentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentType.DeploymentType").enummodule + GoldengateDeploymentType::DeploymentCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentType.DeploymentCategory").enummodule + GetGoldengateDeploymentTypeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest").msgclass + ListGoldengateDeploymentTypesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesRequest").msgclass + ListGoldengateDeploymentTypesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb new file mode 100644 index 000000000000..c56e606485cf --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb @@ -0,0 +1,31 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/goldengate_deployment_version.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\nBgoogle/cloud/oracledatabase/v1/goldengate_deployment_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x86\x03\n\x1bGoldengateDeploymentVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x11\n\x04ocid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12^\n\nproperties\x18\x03 \x01(\x0b\x32\x45.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionPropertiesB\x03\xe0\x41\x03:\xe0\x01\xea\x41\xdc\x01\n9oracledatabase.googleapis.com/GoldengateDeploymentVersion\x12\x64projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}*\x1cgoldengateDeploymentVersions2\x1bgoldengateDeploymentVersion\"\x93\x06\n%GoldengateDeploymentVersionProperties\x12r\n\x0f\x64\x65ployment_type\x18\x01 \x01(\x0e\x32T.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProperties.DeploymentTypeB\x03\xe0\x41\x03\x12\x19\n\x0csecurity_fix\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0bogg_version\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12v\n\x0crelease_type\x18\x04 \x01(\x0e\x32[.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProperties.DeploymentReleaseTypeB\x03\xe0\x41\x03\x12\x35\n\x0crelease_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x39\n\x10support_end_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xf2\x01\n\x0e\x44\x65ploymentType\x12\x1f\n\x1b\x44\x45PLOYMENT_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03OGG\x10\x01\x12\x13\n\x0f\x44\x41TABASE_ORACLE\x10\x02\x12\x0b\n\x07\x42IGDATA\x10\x03\x12 \n\x1c\x44\x41TABASE_MICROSOFT_SQLSERVER\x10\x04\x12\x12\n\x0e\x44\x41TABASE_MYSQL\x10\x05\x12\x17\n\x13\x44\x41TABASE_POSTGRESQL\x10\x06\x12\x13\n\x0f\x44\x41TABASE_DB2ZOS\x10\x07\x12\x11\n\rDATABASE_DB2I\x10\x08\x12\x08\n\x04GGSA\x10\t\x12\x13\n\x0f\x44\x41TA_TRANSFORMS\x10\n\"b\n\x15\x44\x65ploymentReleaseType\x12\'\n#DEPLOYMENT_RELEASE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05MAJOR\x10\x01\x12\n\n\x06\x42UNDLE\x10\x02\x12\t\n\x05MINOR\x10\x03\"x\n%GetGoldengateDeploymentVersionRequest\x12O\n\x04name\x18\x01 \x01(\tBA\xe0\x41\x02\xfa\x41;\n9oracledatabase.googleapis.com/GoldengateDeploymentVersion\"\xc2\x01\n\'ListGoldengateDeploymentVersionsRequest\x12Q\n\x06parent\x18\x01 \x01(\tBA\xe0\x41\x02\xfa\x41;\x12\x39oracledatabase.googleapis.com/GoldengateDeploymentVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xc2\x01\n(ListGoldengateDeploymentVersionsResponse\x12\x63\n\x1egoldengate_deployment_versions\x18\x01 \x03(\x0b\x32;.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x06\x42\xfa\x01\n\"com.google.cloud.oracledatabase.v1B GoldengateDeploymentVersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + GoldengateDeploymentVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentVersion").msgclass + GoldengateDeploymentVersionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProperties").msgclass + GoldengateDeploymentVersionProperties::DeploymentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProperties.DeploymentType").enummodule + GoldengateDeploymentVersionProperties::DeploymentReleaseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProperties.DeploymentReleaseType").enummodule + GetGoldengateDeploymentVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest").msgclass + ListGoldengateDeploymentVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsRequest").msgclass + ListGoldengateDeploymentVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb new file mode 100644 index 000000000000..8a64433d0d40 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/location_metadata.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' + + +descriptor_data = "\n6google/cloud/oracledatabase/v1/location_metadata.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\"1\n\x10LocationMetadata\x12\x1d\n\x10gcp_oracle_zones\x18\x02 \x03(\tB\x03\xe0\x41\x03\x42\xef\x01\n\"com.google.cloud.oracledatabase.v1B\x15LocationMetadataProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.LocationMetadata").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb new file mode 100644 index 000000000000..f5e9f9821372 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/minor_version.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' + + +descriptor_data = "\n2google/cloud/oracledatabase/v1/minor_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x02\n\x0cMinorVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgrid_image_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xac\x01\xea\x41\xa8\x01\n*oracledatabase.googleapis.com/MinorVersion\x12]projects/{project}/locations/{location}/giVersions/{gi_version}/minorVersions/{minor_version}*\rminorVersions2\x0cminorVersion\"\xa4\x01\n\x18ListMinorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*oracledatabase.googleapis.com/MinorVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"z\n\x19ListMinorVersionsResponse\x12\x44\n\x0eminor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.oracledatabase.v1.MinorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xeb\x01\n\"com.google.cloud.oracledatabase.v1B\x11MinorVersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + MinorVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.MinorVersion").msgclass + ListMinorVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListMinorVersionsRequest").msgclass + ListMinorVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListMinorVersionsResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb new file mode 100644 index 000000000000..60485d443994 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb @@ -0,0 +1,32 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/odb_network.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n0google/cloud/oracledatabase/v1/odb_network.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf6\x04\n\nOdbNetwork\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x37\n\x07network\x18\x02 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12K\n\x06labels\x18\x03 \x03(\x0b\x32\x36.google.cloud.oracledatabase.v1.OdbNetwork.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\x05state\x18\x05 \x01(\x0e\x32\x30.google.cloud.oracledatabase.v1.OdbNetwork.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65ntitlement_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fgcp_oracle_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\\\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:\x8a\x01\xea\x41\x86\x01\n(oracledatabase.googleapis.com/OdbNetwork\x12\x41projects/{project}/locations/{location}/odbNetworks/{odb_network}*\x0bodbNetworks2\nodbNetwork\"\xdf\x01\n\x17\x43reateOdbNetworkRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(oracledatabase.googleapis.com/OdbNetwork\x12\x1b\n\x0eodb_network_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x0bodb_network\x18\x03 \x01(\x0b\x32*.google.cloud.oracledatabase.v1.OdbNetworkB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"z\n\x17\x44\x65leteOdbNetworkRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xb7\x01\n\x16ListOdbNetworksRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(oracledatabase.googleapis.com/OdbNetwork\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x17ListOdbNetworksResponse\x12@\n\x0codb_networks\x18\x01 \x03(\x0b\x32*.google.cloud.oracledatabase.v1.OdbNetwork\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x14GetOdbNetworkRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetworkB\xe9\x01\n\"com.google.cloud.oracledatabase.v1B\x0fOdbNetworkProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + OdbNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbNetwork").msgclass + OdbNetwork::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbNetwork.State").enummodule + CreateOdbNetworkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateOdbNetworkRequest").msgclass + DeleteOdbNetworkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest").msgclass + ListOdbNetworksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListOdbNetworksRequest").msgclass + ListOdbNetworksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListOdbNetworksResponse").msgclass + GetOdbNetworkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetOdbNetworkRequest").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb new file mode 100644 index 000000000000..37cef6fd8eca --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb @@ -0,0 +1,33 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/odb_subnet.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n/google/cloud/oracledatabase/v1/odb_subnet.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x05\n\tOdbSubnet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\ncidr_range\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12G\n\x07purpose\x18\x03 \x01(\x0e\x32\x31.google.cloud.oracledatabase.v1.OdbSubnet.PurposeB\x03\xe0\x41\x02\x12J\n\x06labels\x18\x04 \x03(\x0b\x32\x35.google.cloud.oracledatabase.v1.OdbSubnet.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\x06 \x01(\x0e\x32/.google.cloud.oracledatabase.v1.OdbSubnet.StateB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"H\n\x07Purpose\x12\x17\n\x13PURPOSE_UNSPECIFIED\x10\x00\x12\x11\n\rCLIENT_SUBNET\x10\x01\x12\x11\n\rBACKUP_SUBNET\x10\x02\"\\\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:\x9f\x01\xea\x41\x9b\x01\n\'oracledatabase.googleapis.com/OdbSubnet\x12Yprojects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}*\nodbSubnets2\todbSubnet\"\xda\x01\n\x16\x43reateOdbSubnetRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/OdbSubnet\x12\x1a\n\rodb_subnet_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\nodb_subnet\x18\x03 \x01(\x0b\x32).google.cloud.oracledatabase.v1.OdbSubnetB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"x\n\x16\x44\x65leteOdbSubnetRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xb5\x01\n\x15ListOdbSubnetsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/OdbSubnet\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x86\x01\n\x16ListOdbSubnetsResponse\x12>\n\x0bodb_subnets\x18\x01 \x03(\x0b\x32).google.cloud.oracledatabase.v1.OdbSubnet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"T\n\x13GetOdbSubnetRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnetB\xe8\x01\n\"com.google.cloud.oracledatabase.v1B\x0eOdbSubnetProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + OdbSubnet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbSubnet").msgclass + OdbSubnet::Purpose = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbSubnet.Purpose").enummodule + OdbSubnet::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbSubnet.State").enummodule + CreateOdbSubnetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateOdbSubnetRequest").msgclass + DeleteOdbSubnetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest").msgclass + ListOdbSubnetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListOdbSubnetsRequest").msgclass + ListOdbSubnetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListOdbSubnetsResponse").msgclass + GetOdbSubnetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetOdbSubnetRequest").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb new file mode 100644 index 000000000000..5b0f9bc4db81 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb @@ -0,0 +1,107 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/oracledatabase.proto + +require 'google/protobuf' + +require 'google/api/annotations_pb' +require 'google/api/client_pb' +require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' +require 'google/api/resource_pb' +require 'google/cloud/oracledatabase/v1/autonomous_database_pb' +require 'google/cloud/oracledatabase/v1/autonomous_database_character_set_pb' +require 'google/cloud/oracledatabase/v1/autonomous_db_backup_pb' +require 'google/cloud/oracledatabase/v1/autonomous_db_version_pb' +require 'google/cloud/oracledatabase/v1/database_pb' +require 'google/cloud/oracledatabase/v1/database_character_set_pb' +require 'google/cloud/oracledatabase/v1/db_node_pb' +require 'google/cloud/oracledatabase/v1/db_server_pb' +require 'google/cloud/oracledatabase/v1/db_system_pb' +require 'google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb' +require 'google/cloud/oracledatabase/v1/db_system_shape_pb' +require 'google/cloud/oracledatabase/v1/db_version_pb' +require 'google/cloud/oracledatabase/v1/entitlement_pb' +require 'google/cloud/oracledatabase/v1/exadata_infra_pb' +require 'google/cloud/oracledatabase/v1/exadb_vm_cluster_pb' +require 'google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb' +require 'google/cloud/oracledatabase/v1/gi_version_pb' +require 'google/cloud/oracledatabase/v1/goldengate_connection_pb' +require 'google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb' +require 'google/cloud/oracledatabase/v1/goldengate_connection_type_pb' +require 'google/cloud/oracledatabase/v1/goldengate_deployment_pb' +require 'google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb' +require 'google/cloud/oracledatabase/v1/goldengate_deployment_type_pb' +require 'google/cloud/oracledatabase/v1/goldengate_deployment_version_pb' +require 'google/cloud/oracledatabase/v1/minor_version_pb' +require 'google/cloud/oracledatabase/v1/odb_network_pb' +require 'google/cloud/oracledatabase/v1/odb_subnet_pb' +require 'google/cloud/oracledatabase/v1/pluggable_database_pb' +require 'google/cloud/oracledatabase/v1/vm_cluster_pb' +require 'google/longrunning/operations_pb' +require 'google/protobuf/empty_pb' +require 'google/protobuf/field_mask_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n3google/cloud/oracledatabase/v1/oracledatabase.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/oracledatabase/v1/autonomous_database.proto\x1a\x46google/cloud/oracledatabase/v1/autonomous_database_character_set.proto\x1a\x39google/cloud/oracledatabase/v1/autonomous_db_backup.proto\x1a:google/cloud/oracledatabase/v1/autonomous_db_version.proto\x1a-google/cloud/oracledatabase/v1/database.proto\x1a;google/cloud/oracledatabase/v1/database_character_set.proto\x1a,google/cloud/oracledatabase/v1/db_node.proto\x1a.google/cloud/oracledatabase/v1/db_server.proto\x1a.google/cloud/oracledatabase/v1/db_system.proto\x1a\x43google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto\x1a\x34google/cloud/oracledatabase/v1/db_system_shape.proto\x1a/google/cloud/oracledatabase/v1/db_version.proto\x1a\x30google/cloud/oracledatabase/v1/entitlement.proto\x1a\x32google/cloud/oracledatabase/v1/exadata_infra.proto\x1a\x35google/cloud/oracledatabase/v1/exadb_vm_cluster.proto\x1a>google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\x1a/google/cloud/oracledatabase/v1/gi_version.proto\x1a:google/cloud/oracledatabase/v1/goldengate_connection.proto\x1a\x45google/cloud/oracledatabase/v1/goldengate_connection_assignment.proto\x1a?google/cloud/oracledatabase/v1/goldengate_connection_type.proto\x1a:google/cloud/oracledatabase/v1/goldengate_deployment.proto\x1a\x46google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto\x1a?google/cloud/oracledatabase/v1/goldengate_deployment_type.proto\x1a\x42google/cloud/oracledatabase/v1/goldengate_deployment_version.proto\x1a\x32google/cloud/oracledatabase/v1/minor_version.proto\x1a\x30google/cloud/oracledatabase/v1/odb_network.proto\x1a/google/cloud/oracledatabase/v1/odb_subnet.proto\x1a\x37google/cloud/oracledatabase/v1/pluggable_database.proto\x1a/google/cloud/oracledatabase/v1/vm_cluster.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd7\x01\n&ListCloudExadataInfrastructuresRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\'ListCloudExadataInfrastructuresResponse\x12\x61\n\x1d\x63loud_exadata_infrastructures\x18\x01 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"v\n$GetCloudExadataInfrastructureRequest\x12N\n\x04name\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\"\xb1\x02\n\'CreateCloudExadataInfrastructureRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/CloudExadataInfrastructure\x12,\n\x1f\x63loud_exadata_infrastructure_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x1c\x63loud_exadata_infrastructure\x18\x03 \x01(\x0b\x32:.google.cloud.oracledatabase.v1.CloudExadataInfrastructureB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xae\x01\n\'DeleteCloudExadataInfrastructureRequest\x12N\n\x04name\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xa8\x01\n\x1aListCloudVmClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/CloudVmCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\x1bListCloudVmClustersResponse\x12I\n\x11\x63loud_vm_clusters\x18\x01 \x03(\x0b\x32..google.cloud.oracledatabase.v1.CloudVmCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x18GetCloudVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/CloudVmCluster\"\xf5\x01\n\x1b\x43reateCloudVmClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/CloudVmCluster\x12 \n\x13\x63loud_vm_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12M\n\x10\x63loud_vm_cluster\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.CloudVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x96\x01\n\x1b\x44\x65leteCloudVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/CloudVmCluster\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x8d\x01\n\x17ListEntitlementsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)oracledatabase.googleapis.com/Entitlement\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"v\n\x18ListEntitlementsResponse\x12\x41\n\x0c\x65ntitlements\x18\x01 \x03(\x0b\x32+.google.cloud.oracledatabase.v1.Entitlement\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x87\x01\n\x14ListDbServersRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbServer\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListDbServersResponse\x12<\n\ndb_servers\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.DbServer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x12ListDbNodesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$oracledatabase.googleapis.com/DbNode\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"h\n\x13ListDbNodesResponse\x12\x38\n\x08\x64\x62_nodes\x18\x01 \x03(\x0b\x32&.google.cloud.oracledatabase.v1.DbNode\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9e\x01\n\x15ListGiVersionsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/GiVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"q\n\x16ListGiVersionsResponse\x12>\n\x0bgi_versions\x18\x01 \x03(\x0b\x32).google.cloud.oracledatabase.v1.GiVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa6\x01\n\x19ListDbSystemShapesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+oracledatabase.googleapis.com/DbSystemShape\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListDbSystemShapesResponse\x12G\n\x10\x64\x62_system_shapes\x18\x01 \x03(\x0b\x32-.google.cloud.oracledatabase.v1.DbSystemShape\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9f\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x08 \x01(\x01\x42\x03\xe0\x41\x03\"\xc7\x01\n\x1eListAutonomousDatabasesRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30oracledatabase.googleapis.com/AutonomousDatabase\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa1\x01\n\x1fListAutonomousDatabasesResponse\x12P\n\x14\x61utonomous_databases\x18\x01 \x03(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"f\n\x1cGetAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\x87\x02\n\x1f\x43reateAutonomousDatabaseRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30oracledatabase.googleapis.com/AutonomousDatabase\x12#\n\x16\x61utonomous_database_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12T\n\x13\x61utonomous_database\x18\x03 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabaseB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xce\x01\n\x1fUpdateAutonomousDatabaseRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12T\n\x13\x61utonomous_database\x18\x02 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabaseB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x8a\x01\n\x1f\x44\x65leteAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa1\x01\n RestoreAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x35\n\x0crestore_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"g\n\x1dStopAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"h\n\x1eStartAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"j\n RestartAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xc9\x01\n#SwitchoverAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Z\n\x18peer_autonomous_database\x18\x02 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xc7\x01\n!FailoverAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Z\n\x18peer_autonomous_database\x18\x02 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xe3\x01\n\'GenerateAutonomousDatabaseWalletRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12?\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.oracledatabase.v1.GenerateTypeB\x03\xe0\x41\x01\x12\x18\n\x0bis_regional\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\"H\n(GenerateAutonomousDatabaseWalletResponse\x12\x1c\n\x0f\x61rchive_content\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x03\"\x9d\x01\n\x1fListAutonomousDbVersionsRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31oracledatabase.googleapis.com/AutonomousDbVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n ListAutonomousDbVersionsResponse\x12S\n\x16\x61utonomous_db_versions\x18\x01 \x03(\x0b\x32\x33.google.cloud.oracledatabase.v1.AutonomousDbVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc8\x01\n*ListAutonomousDatabaseCharacterSetsRequest\x12T\n\x06parent\x18\x01 \x01(\tBD\xe0\x41\x02\xfa\x41>\x12.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbc\x01\n$ListAutonomousDatabaseBackupsRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36oracledatabase.googleapis.com/AutonomousDatabaseBackup\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9f\x01\n%ListAutonomousDatabaseBackupsResponse\x12]\n\x1b\x61utonomous_database_backups\x18\x01 \x03(\x0b\x32\x38.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf5\x01\n\x1b\x43reateExadbVmClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/ExadbVmCluster\x12 \n\x13\x65xadb_vm_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12M\n\x10\x65xadb_vm_cluster\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x82\x01\n\x1b\x44\x65leteExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"^\n\x18GetExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\"\xbf\x01\n\x1aListExadbVmClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/ExadbVmCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\x1bListExadbVmClustersResponse\x12I\n\x11\x65xadb_vm_clusters\x18\x01 \x03(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xc3\x01\n\x1bUpdateExadbVmClusterRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12M\n\x10\x65xadb_vm_cluster\x18\x02 \x01(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa8\x01\n)RemoveVirtualMachineExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x16\n\thostnames\x18\x04 \x03(\tB\x03\xe0\x41\x02\x32\x91\x9d\x01\n\x0eOracleDatabase\x12\x84\x02\n\x1fListCloudExadataInfrastructures\x12\x46.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest\x1aG.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse\"P\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures\x12\xf1\x01\n\x1dGetCloudExadataInfrastructure\x12\x44.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest\x1a:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\x12\xea\x02\n CreateCloudExadataInfrastructure\x12G.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41/\n\x1a\x43loudExadataInfrastructure\x12\x11OperationMetadata\xda\x41\x43parent,cloud_exadata_infrastructure,cloud_exadata_infrastructure_id\x82\xd3\xe4\x93\x02_\"?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures:\x1c\x63loud_exadata_infrastructure\x12\x87\x02\n DeleteCloudExadataInfrastructure\x12G.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41*?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\x12\xd4\x01\n\x13ListCloudVmClusters\x12:.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest\x1a;.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*}/cloudVmClusters\x12\xc1\x01\n\x11GetCloudVmCluster\x12\x38.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest\x1a..google.cloud.oracledatabase.v1.CloudVmCluster\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/cloudVmClusters/*}\x12\x96\x02\n\x14\x43reateCloudVmCluster\x12;.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41#\n\x0e\x43loudVmCluster\x12\x11OperationMetadata\xda\x41+parent,cloud_vm_cluster,cloud_vm_cluster_id\x82\xd3\xe4\x93\x02G\"3/v1/{parent=projects/*/locations/*}/cloudVmClusters:\x10\x63loud_vm_cluster\x12\xe3\x01\n\x14\x44\x65leteCloudVmCluster\x12;.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest\x1a\x1d.google.longrunning.Operation\"o\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/cloudVmClusters/*}\x12\xc8\x01\n\x10ListEntitlements\x12\x37.google.cloud.oracledatabase.v1.ListEntitlementsRequest\x1a\x38.google.cloud.oracledatabase.v1.ListEntitlementsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/entitlements\x12\xda\x01\n\rListDbServers\x12\x34.google.cloud.oracledatabase.v1.ListDbServersRequest\x1a\x35.google.cloud.oracledatabase.v1.ListDbServersResponse\"\\\xda\x41\x06parent\x82\xd3\xe4\x93\x02M\x12K/v1/{parent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers\x12\x89\x02\n\x0bListDbNodes\x12\x32.google.cloud.oracledatabase.v1.ListDbNodesRequest\x1a\x33.google.cloud.oracledatabase.v1.ListDbNodesResponse\"\x90\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x80\x01\x12=/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodesZ?\x12=/v1/{parent=projects/*/locations/*/exadbVmClusters/*}/dbNodes\x12\xc0\x01\n\x0eListGiVersions\x12\x35.google.cloud.oracledatabase.v1.ListGiVersionsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListGiVersionsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/giVersions\x12\xd9\x01\n\x11ListMinorVersions\x12\x38.google.cloud.oracledatabase.v1.ListMinorVersionsRequest\x1a\x39.google.cloud.oracledatabase.v1.ListMinorVersionsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/giVersions/*}/minorVersions\x12\xd0\x01\n\x12ListDbSystemShapes\x12\x39.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest\x1a:.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/dbSystemShapes\x12\xe4\x01\n\x17ListAutonomousDatabases\x12>.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest\x1a?.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}/autonomousDatabases\x12\xd1\x01\n\x15GetAutonomousDatabase\x12<.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest\x1a\x32.google.cloud.oracledatabase.v1.AutonomousDatabase\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/autonomousDatabases/*}\x12\xaf\x02\n\x18\x43reateAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x31parent,autonomous_database,autonomous_database_id\x82\xd3\xe4\x93\x02N\"7/v1/{parent=projects/*/locations/*}/autonomousDatabases:\x13\x61utonomous_database\x12\xb1\x02\n\x18UpdateAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1f\x61utonomous_database,update_mask\x82\xd3\xe4\x93\x02\x62\x32K/v1/{autonomous_database.name=projects/*/locations/*/autonomousDatabases/*}:\x13\x61utonomous_database\x12\xef\x01\n\x18\x44\x65leteAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1/{name=projects/*/locations/*/autonomousDatabases/*}\x12\x87\x02\n\x19RestoreAutonomousDatabase\x12@.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x11name,restore_time\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore:\x01*\x12\xa9\x02\n GenerateAutonomousDatabaseWallet\x12G.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest\x1aH.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse\"r\xda\x41\x1ename,type,is_regional,password\x82\xd3\xe4\x93\x02K\"F/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet:\x01*\x12\xe8\x01\n\x18ListAutonomousDbVersions\x12?.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest\x1a@.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*}/autonomousDbVersions\x12\x94\x02\n#ListAutonomousDatabaseCharacterSets\x12J.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest\x1aK.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSets\x12\xfc\x01\n\x1dListAutonomousDatabaseBackups\x12\x44.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest\x1a\x45.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackups\x12\xf0\x01\n\x16StopAutonomousDatabase\x12=.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\".google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/autonomousDatabases/*}:start:\x01*\x12\xf9\x01\n\x19RestartAutonomousDatabase\x12@.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restart:\x01*\x12\x9c\x02\n\x1cSwitchoverAutonomousDatabase\x12\x43.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1dname,peer_autonomous_database\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/autonomousDatabases/*}:switchover:\x01*\x12\x96\x02\n\x1a\x46\x61iloverAutonomousDatabase\x12\x41.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1dname,peer_autonomous_database\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*/autonomousDatabases/*}:failover:\x01*\x12\xc4\x01\n\x0fListOdbNetworks\x12\x36.google.cloud.oracledatabase.v1.ListOdbNetworksRequest\x1a\x37.google.cloud.oracledatabase.v1.ListOdbNetworksResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/odbNetworks\x12\xb1\x01\n\rGetOdbNetwork\x12\x34.google.cloud.oracledatabase.v1.GetOdbNetworkRequest\x1a*.google.cloud.oracledatabase.v1.OdbNetwork\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/odbNetworks/*}\x12\xf7\x01\n\x10\x43reateOdbNetwork\x12\x37.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest\x1a\x1d.google.longrunning.Operation\"\x8a\x01\xca\x41\x1f\n\nOdbNetwork\x12\x11OperationMetadata\xda\x41!parent,odb_network,odb_network_id\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/odbNetworks:\x0bodb_network\x12\xd7\x01\n\x10\x44\x65leteOdbNetwork\x12\x37.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest\x1a\x1d.google.longrunning.Operation\"k\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/odbNetworks/*}\x12\xce\x01\n\x0eListOdbSubnets\x12\x35.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12\x12*\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/databases\x12\xa9\x01\n\x0bGetDatabase\x12\x32.google.cloud.oracledatabase.v1.GetDatabaseRequest\x1a(.google.cloud.oracledatabase.v1.Database\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/databases/*}\x12\xe0\x01\n\x16ListPluggableDatabases\x12=.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest\x1a>.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*}/pluggableDatabases\x12\xcd\x01\n\x14GetPluggableDatabase\x12;.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest\x1a\x31.google.cloud.oracledatabase.v1.PluggableDatabase\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/pluggableDatabases/*}\x12\xbc\x01\n\rListDbSystems\x12\x34.google.cloud.oracledatabase.v1.ListDbSystemsRequest\x1a\x35.google.cloud.oracledatabase.v1.ListDbSystemsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dbSystems\x12\xa9\x01\n\x0bGetDbSystem\x12\x32.google.cloud.oracledatabase.v1.GetDbSystemRequest\x1a(.google.cloud.oracledatabase.v1.DbSystem\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/dbSystems/*}\x12\xe9\x01\n\x0e\x43reateDbSystem\x12\x35.google.cloud.oracledatabase.v1.CreateDbSystemRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\xca\x41\x1d\n\x08\x44\x62System\x12\x11OperationMetadata\xda\x41\x1dparent,db_system,db_system_id\x82\xd3\xe4\x93\x02:\"-/v1/{parent=projects/*/locations/*}/dbSystems:\tdb_system\x12\xd1\x01\n\x0e\x44\x65leteDbSystem\x12\x35.google.cloud.oracledatabase.v1.DeleteDbSystemRequest\x1a\x1d.google.longrunning.Operation\"i\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/dbSystems/*}\x12\xec\x01\n\x19ListGoldengateDeployments\x12@.google.cloud.oracledatabase.v1.ListGoldengateDeploymentsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListGoldengateDeploymentsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/goldengateDeployments\x12\xd9\x01\n\x17GetGoldengateDeployment\x12>.google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest\x1a\x34.google.cloud.oracledatabase.v1.GoldengateDeployment\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/goldengateDeployments/*}\x12\xbd\x02\n\x1a\x43reateGoldengateDeployment\x12\x41.google.cloud.oracledatabase.v1.CreateGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xbc\x01\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x35parent,goldengate_deployment,goldengate_deployment_id\x82\xd3\xe4\x93\x02R\"9/v1/{parent=projects/*/locations/*}/goldengateDeployments:\x15goldengate_deployment\x12\xf5\x01\n\x1a\x44\x65leteGoldengateDeployment\x12\x41.google.cloud.oracledatabase.v1.DeleteGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/goldengateDeployments/*}\x12\xf8\x01\n\x18StopGoldengateDeployment\x12?.google.cloud.oracledatabase.v1.StopGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\">/v1/{name=projects/*/locations/*/goldengateDeployments/*}:stop:\x01*\x12\xfb\x01\n\x19StartGoldengateDeployment\x12@.google.cloud.oracledatabase.v1.StartGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/goldengateDeployments/*}:start:\x01*\x12\xec\x01\n\x19ListGoldengateConnections\x12@.google.cloud.oracledatabase.v1.ListGoldengateConnectionsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListGoldengateConnectionsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/goldengateConnections\x12\xd9\x01\n\x17GetGoldengateConnection\x12>.google.cloud.oracledatabase.v1.GetGoldengateConnectionRequest\x1a\x34.google.cloud.oracledatabase.v1.GoldengateConnection\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/goldengateConnections/*}\x12\xbd\x02\n\x1a\x43reateGoldengateConnection\x12\x41.google.cloud.oracledatabase.v1.CreateGoldengateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\xbc\x01\xca\x41)\n\x14GoldengateConnection\x12\x11OperationMetadata\xda\x41\x35parent,goldengate_connection,goldengate_connection_id\x82\xd3\xe4\x93\x02R\"9/v1/{parent=projects/*/locations/*}/goldengateConnections:\x15goldengate_connection\x12\xf5\x01\n\x1a\x44\x65leteGoldengateConnection\x12\x41.google.cloud.oracledatabase.v1.DeleteGoldengateConnectionRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/goldengateConnections/*}\x12\xf5\x01\n\x1eGetGoldengateDeploymentVersion\x12\x45.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest\x1a;.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*/goldengateDeploymentVersions/*}\x12\x88\x02\n ListGoldengateDeploymentVersions\x12G.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsRequest\x1aH.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1/{parent=projects/*/locations/*}/goldengateDeploymentVersions\x12\xe9\x01\n\x1bGetGoldengateDeploymentType\x12\x42.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest\x1a\x38.google.cloud.oracledatabase.v1.GoldengateDeploymentType\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/goldengateDeploymentTypes/*}\x12\xfc\x01\n\x1dListGoldengateDeploymentTypes\x12\x44.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesRequest\x1a\x45.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/goldengateDeploymentTypes\x12\x85\x02\n\"GetGoldengateDeploymentEnvironment\x12I.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest\x1a?.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/goldengateDeploymentEnvironments/*}\x12\x98\x02\n$ListGoldengateDeploymentEnvironments\x12K.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsRequest\x1aL.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsResponse\"U\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{parent=projects/*/locations/*}/goldengateDeploymentEnvironments\x12\xe9\x01\n\x1bGetGoldengateConnectionType\x12\x42.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest\x1a\x38.google.cloud.oracledatabase.v1.GoldengateConnectionType\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/goldengateConnectionTypes/*}\x12\xfc\x01\n\x1dListGoldengateConnectionTypes\x12\x44.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesRequest\x1a\x45.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/goldengateConnectionTypes\x12\xc0\x01\n\x0eListDbVersions\x12\x35.google.cloud.oracledatabase.v1.ListDbVersionsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListDbVersionsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/dbVersions\x12\xec\x01\n\x19ListDatabaseCharacterSets\x12@.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/databaseCharacterSets\x12\x94\x02\n#ListGoldengateConnectionAssignments\x12J.google.cloud.oracledatabase.v1.ListGoldengateConnectionAssignmentsRequest\x1aK.google.cloud.oracledatabase.v1.ListGoldengateConnectionAssignmentsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*}/goldengateConnectionAssignments\x12\x81\x02\n!GetGoldengateConnectionAssignment\x12H.google.cloud.oracledatabase.v1.GetGoldengateConnectionAssignmentRequest\x1a>.google.cloud.oracledatabase.v1.GoldengateConnectionAssignment\"R\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}\x12\x86\x03\n$CreateGoldengateConnectionAssignment\x12K.google.cloud.oracledatabase.v1.CreateGoldengateConnectionAssignmentRequest\x1a\x1d.google.longrunning.Operation\"\xf1\x01\xca\x41\x33\n\x1eGoldengateConnectionAssignment\x12\x11OperationMetadata\xda\x41Kparent,goldengate_connection_assignment,goldengate_connection_assignment_id\x82\xd3\xe4\x93\x02g\"C/v1/{parent=projects/*/locations/*}/goldengateConnectionAssignments: goldengate_connection_assignment\x12\x93\x02\n$DeleteGoldengateConnectionAssignment\x12K.google.cloud.oracledatabase.v1.DeleteGoldengateConnectionAssignmentRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45*C/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}\x12\x97\x02\n\"TestGoldengateConnectionAssignment\x12I.google.cloud.oracledatabase.v1.TestGoldengateConnectionAssignmentRequest\x1aJ.google.cloud.oracledatabase.v1.TestGoldengateConnectionAssignmentResponse\"Z\xda\x41\x04name\x82\xd3\xe4\x93\x02M\"H/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}:test:\x01*\x1aQ\xca\x41\x1doracledatabase.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9f\x04\n\"com.google.cloud.oracledatabase.v1B\x0bV1mainProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41k\n*secretmanager.googleapis.com/SecretVersion\x12=projects/{project}/secrets/{secret}/versions/{secret_version}b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + ListCloudExadataInfrastructuresRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest").msgclass + ListCloudExadataInfrastructuresResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse").msgclass + GetCloudExadataInfrastructureRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest").msgclass + CreateCloudExadataInfrastructureRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest").msgclass + DeleteCloudExadataInfrastructureRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest").msgclass + ListCloudVmClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListCloudVmClustersRequest").msgclass + ListCloudVmClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListCloudVmClustersResponse").msgclass + GetCloudVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetCloudVmClusterRequest").msgclass + CreateCloudVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest").msgclass + DeleteCloudVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest").msgclass + ListEntitlementsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListEntitlementsRequest").msgclass + ListEntitlementsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListEntitlementsResponse").msgclass + ListDbServersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbServersRequest").msgclass + ListDbServersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbServersResponse").msgclass + ListDbNodesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbNodesRequest").msgclass + ListDbNodesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbNodesResponse").msgclass + ListGiVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGiVersionsRequest").msgclass + ListGiVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGiVersionsResponse").msgclass + ListDbSystemShapesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemShapesRequest").msgclass + ListDbSystemShapesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemShapesResponse").msgclass + OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OperationMetadata").msgclass + ListAutonomousDatabasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest").msgclass + ListAutonomousDatabasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse").msgclass + GetAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest").msgclass + CreateAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest").msgclass + UpdateAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest").msgclass + DeleteAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest").msgclass + RestoreAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest").msgclass + StopAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest").msgclass + StartAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest").msgclass + RestartAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest").msgclass + SwitchoverAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest").msgclass + FailoverAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest").msgclass + GenerateAutonomousDatabaseWalletRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest").msgclass + GenerateAutonomousDatabaseWalletResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse").msgclass + ListAutonomousDbVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest").msgclass + ListAutonomousDbVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse").msgclass + ListAutonomousDatabaseCharacterSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest").msgclass + ListAutonomousDatabaseCharacterSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse").msgclass + ListAutonomousDatabaseBackupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest").msgclass + ListAutonomousDatabaseBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse").msgclass + CreateExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest").msgclass + DeleteExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest").msgclass + GetExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetExadbVmClusterRequest").msgclass + ListExadbVmClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListExadbVmClustersRequest").msgclass + ListExadbVmClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListExadbVmClustersResponse").msgclass + UpdateExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest").msgclass + RemoveVirtualMachineExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb new file mode 100644 index 000000000000..1ea79052e9f6 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb @@ -0,0 +1,216 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# Source: google/cloud/oracledatabase/v1/oracledatabase.proto for package 'Google.Cloud.OracleDatabase.V1' +# Original file comments: +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +require 'grpc' +require 'google/cloud/oracledatabase/v1/oracledatabase_pb' + +module Google + module Cloud + module OracleDatabase + module V1 + module OracleDatabase + # Service describing handlers for resources + class Service + + include ::GRPC::GenericService + + self.marshal_class_method = :encode + self.unmarshal_class_method = :decode + self.service_name = 'google.cloud.oracledatabase.v1.OracleDatabase' + + # Lists Exadata Infrastructures in a given project and location. + rpc :ListCloudExadataInfrastructures, ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse + # Gets details of a single Exadata Infrastructure. + rpc :GetCloudExadataInfrastructure, ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure + # Creates a new Exadata Infrastructure in a given project and location. + rpc :CreateCloudExadataInfrastructure, ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, ::Google::Longrunning::Operation + # Deletes a single Exadata Infrastructure. + rpc :DeleteCloudExadataInfrastructure, ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, ::Google::Longrunning::Operation + # Lists the VM Clusters in a given project and location. + rpc :ListCloudVmClusters, ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse + # Gets details of a single VM Cluster. + rpc :GetCloudVmCluster, ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, ::Google::Cloud::OracleDatabase::V1::CloudVmCluster + # Creates a new VM Cluster in a given project and location. + rpc :CreateCloudVmCluster, ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, ::Google::Longrunning::Operation + # Deletes a single VM Cluster. + rpc :DeleteCloudVmCluster, ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, ::Google::Longrunning::Operation + # Lists the entitlements in a given project. + rpc :ListEntitlements, ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse + # Lists the database servers of an Exadata Infrastructure instance. + rpc :ListDbServers, ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse + # Lists the database nodes of a VM Cluster. + rpc :ListDbNodes, ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse + # Lists all the valid Oracle Grid Infrastructure (GI) versions for the given + # project and location. + rpc :ListGiVersions, ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse + # Lists all the valid minor versions for the given + # project, location, gi version and shape family. + rpc :ListMinorVersions, ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse + # Lists the database system shapes available for the project and location. + rpc :ListDbSystemShapes, ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse + # Lists the Autonomous Databases in a given project and location. + rpc :ListAutonomousDatabases, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse + # Gets the details of a single Autonomous Database. + rpc :GetAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase + # Creates a new Autonomous Database in a given project and location. + rpc :CreateAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Updates the parameters of a single Autonomous Database. + rpc :UpdateAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Deletes a single Autonomous Database. + rpc :DeleteAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Restores a single Autonomous Database. + rpc :RestoreAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Generates a wallet for an Autonomous Database. + rpc :GenerateAutonomousDatabaseWallet, ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse + # Lists all the available Autonomous Database versions for a project and + # location. + rpc :ListAutonomousDbVersions, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse + # Lists Autonomous Database Character Sets in a given project and location. + rpc :ListAutonomousDatabaseCharacterSets, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse + # Lists the long-term and automatic backups of an Autonomous Database. + rpc :ListAutonomousDatabaseBackups, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse + # Stops an Autonomous Database. + rpc :StopAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Starts an Autonomous Database. + rpc :StartAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Restarts an Autonomous Database. + rpc :RestartAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Initiates a switchover of specified autonomous database to the associated + # peer database. + rpc :SwitchoverAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Initiates a failover to target autonomous database from the associated + # primary database. + rpc :FailoverAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, ::Google::Longrunning::Operation + # Lists the ODB Networks in a given project and location. + rpc :ListOdbNetworks, ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse + # Gets details of a single ODB Network. + rpc :GetOdbNetwork, ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, ::Google::Cloud::OracleDatabase::V1::OdbNetwork + # Creates a new ODB Network in a given project and location. + rpc :CreateOdbNetwork, ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, ::Google::Longrunning::Operation + # Deletes a single ODB Network. + rpc :DeleteOdbNetwork, ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, ::Google::Longrunning::Operation + # Lists all the ODB Subnets in a given ODB Network. + rpc :ListOdbSubnets, ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse + # Gets details of a single ODB Subnet. + rpc :GetOdbSubnet, ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, ::Google::Cloud::OracleDatabase::V1::OdbSubnet + # Creates a new ODB Subnet in a given ODB Network. + rpc :CreateOdbSubnet, ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, ::Google::Longrunning::Operation + # Deletes a single ODB Subnet. + rpc :DeleteOdbSubnet, ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, ::Google::Longrunning::Operation + # Lists all the Exadb (Exascale) VM Clusters for the given project and + # location. + rpc :ListExadbVmClusters, ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse + # Gets details of a single Exadb (Exascale) VM Cluster. + rpc :GetExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster + # Creates a new Exadb (Exascale) VM Cluster resource. + rpc :CreateExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, ::Google::Longrunning::Operation + # Deletes a single Exadb (Exascale) VM Cluster. + rpc :DeleteExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, ::Google::Longrunning::Operation + # Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to + # existing exadb vm cluster, only pass the node count. + rpc :UpdateExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, ::Google::Longrunning::Operation + # Removes virtual machines from an existing exadb vm cluster. + rpc :RemoveVirtualMachineExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, ::Google::Longrunning::Operation + # Lists all the ExascaleDB Storage Vaults for the given project and + # location. + rpc :ListExascaleDbStorageVaults, ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse + # Gets details of a single ExascaleDB Storage Vault. + rpc :GetExascaleDbStorageVault, ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault + # Creates a new ExascaleDB Storage Vault resource. + rpc :CreateExascaleDbStorageVault, ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, ::Google::Longrunning::Operation + # Deletes a single ExascaleDB Storage Vault. + rpc :DeleteExascaleDbStorageVault, ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, ::Google::Longrunning::Operation + # Lists all the DbSystemInitialStorageSizes for the given project and + # location. + rpc :ListDbSystemInitialStorageSizes, ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse + # Lists all the Databases for the given project, location and DbSystem. + rpc :ListDatabases, ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, ::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse + # Gets details of a single Database. + rpc :GetDatabase, ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, ::Google::Cloud::OracleDatabase::V1::Database + # Lists all the PluggableDatabases for the given project, location and + # Container Database. + rpc :ListPluggableDatabases, ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse + # Gets details of a single PluggableDatabase. + rpc :GetPluggableDatabase, ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, ::Google::Cloud::OracleDatabase::V1::PluggableDatabase + # Lists all the DbSystems for the given project and location. + rpc :ListDbSystems, ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, ::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse + # Gets details of a single DbSystem. + rpc :GetDbSystem, ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, ::Google::Cloud::OracleDatabase::V1::DbSystem + # Creates a new DbSystem in a given project and location. + rpc :CreateDbSystem, ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Google::Longrunning::Operation + # Deletes a single DbSystem. + rpc :DeleteDbSystem, ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Google::Longrunning::Operation + # Lists all the GoldengateDeployments for the given project and location. + rpc :ListGoldengateDeployments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse + # Gets details of a single GoldengateDeployment. + rpc :GetGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment + # Creates a new GoldengateDeployment in a given project and location. + rpc :CreateGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Google::Longrunning::Operation + # Deletes a single GoldengateDeployment. + rpc :DeleteGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Google::Longrunning::Operation + # Stops a single GoldengateDeployment. + rpc :StopGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Google::Longrunning::Operation + # Starts a single GoldengateDeployment. + rpc :StartGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Google::Longrunning::Operation + # Lists all the GoldengateConnections for the given project and location. + rpc :ListGoldengateConnections, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse + # Gets details of a single GoldengateConnection. + rpc :GetGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnection + # Creates a new GoldengateConnection in a given project and location. + rpc :CreateGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Google::Longrunning::Operation + # Deletes a single GoldengateConnection. + rpc :DeleteGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Google::Longrunning::Operation + # Gets details of a single GoldengateDeploymentVersion. + rpc :GetGoldengateDeploymentVersion, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion + # Lists GoldengateDeploymentVersions in a given project and location. + rpc :ListGoldengateDeploymentVersions, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse + # Gets details of a single GoldenGateDeploymentType. + rpc :GetGoldengateDeploymentType, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType + # Lists GoldenGateDeploymentTypes in a given project and location. + rpc :ListGoldengateDeploymentTypes, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse + # Gets details of a single GoldengateDeploymentEnvironment. + rpc :GetGoldengateDeploymentEnvironment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment + # Lists GoldengateDeploymentEnvironments in a given project and location. + rpc :ListGoldengateDeploymentEnvironments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse + # Gets details of a single GoldengateConnectionType. + rpc :GetGoldengateConnectionType, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType + # Lists GoldengateConnectionTypes in a given project and location. + rpc :ListGoldengateConnectionTypes, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse + # List DbVersions for the given project and location. + rpc :ListDbVersions, ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse + # List DatabaseCharacterSets for the given project and location. + rpc :ListDatabaseCharacterSets, ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse + # Lists GoldengateConnectionAssignments in a given project and location. + rpc :ListGoldengateConnectionAssignments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse + # Gets details of a single GoldengateConnectionAssignment. + rpc :GetGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment + # Creates a new GoldengateConnectionAssignment in a given project and + # location. + rpc :CreateGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Google::Longrunning::Operation + # Deletes a single GoldengateConnectionAssignment. + rpc :DeleteGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Google::Longrunning::Operation + # Tests a single GoldengateConnectionAssignment. + rpc :TestGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse + end + + Stub = Service.rpc_stub_class + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb new file mode 100644 index 000000000000..a34c1af13fc1 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/pluggable_database.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/protobuf/timestamp_pb' + + +descriptor_data = "\n7google/cloud/oracledatabase/v1/pluggable_database.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf8\x02\n\x11PluggableDatabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12T\n\nproperties\x18\x02 \x01(\x0b\x32;.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesB\x03\xe0\x41\x01\x12\x14\n\x07oci_url\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\xad\x01\xea\x41\xa9\x01\n/oracledatabase.googleapis.com/PluggableDatabase\x12Oprojects/{project}/locations/{location}/pluggableDatabases/{pluggable_database}*\x12pluggableDatabases2\x11pluggableDatabase\"\x81\x0e\n\x1bPluggableDatabaseProperties\x12\x1b\n\x0e\x63ompartment_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x12\x63onnection_strings\x18\x02 \x01(\x0b\x32\x42.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsB\x03\xe0\x41\x01\x12$\n\x17\x63ontainer_database_ocid\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12g\n\x0c\x64\x65\x66ined_tags\x18\x04 \x03(\x0b\x32L.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagsEntryB\x03\xe0\x41\x01\x12i\n\rfreeform_tags\x18\x05 \x03(\x0b\x32M.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.FreeformTagsEntryB\x03\xe0\x41\x01\x12\x11\n\x04ocid\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\ris_restricted\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11lifecycle_details\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12y\n\x0flifecycle_state\x18\t \x01(\x0e\x32[.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleStateB\x03\xe0\x41\x03\x12\x15\n\x08pdb_name\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x66\n\x16pdb_node_level_details\x18\x0b \x03(\x0b\x32\x41.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsB\x03\xe0\x41\x01\x12\x61\n\x1a\x64\x61tabase_management_config\x18\r \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.DatabaseManagementConfigB\x03\xe0\x41\x03\x12{\n\x19operations_insights_state\x18\x0e \x01(\x0e\x32S.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsStateB\x03\xe0\x41\x03\x1a\xa3\x01\n\x0f\x44\x65\x66inedTagValue\x12\x63\n\x04tags\x18\x01 \x03(\x0b\x32U.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x7f\n\x10\x44\x65\x66inedTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12Z\n\x05value\x18\x02 \x01(\x0b\x32K.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue:\x02\x38\x01\x1a\x33\n\x11\x46reeformTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb3\x02\n\x1fPluggableDatabaseLifecycleState\x12\x32\n.PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0e\n\nRELOCATING\x10\x07\x12\r\n\tRELOCATED\x10\x08\x12\x0e\n\nREFRESHING\x10\t\x12\x17\n\x13RESTORE_IN_PROGRESS\x10\n\x12\x12\n\x0eRESTORE_FAILED\x10\x0b\x12\x16\n\x12\x42\x41\x43KUP_IN_PROGRESS\x10\x0c\x12\x0c\n\x08\x44ISABLED\x10\r\"\xaa\x01\n\x17OperationsInsightsState\x12)\n%OPERATIONS_INSIGHTS_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06\"\x9c\x02\n\"PluggableDatabaseConnectionStrings\x12\x81\x01\n\x16\x61ll_connection_strings\x18\x01 \x03(\x0b\x32\\.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.AllConnectionStringsEntryB\x03\xe0\x41\x01\x12\x18\n\x0bpdb_default\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0epdb_ip_default\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41llConnectionStringsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd9\x02\n!PluggableDatabaseNodeLevelDetails\x12\x16\n\tnode_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12s\n\topen_mode\x18\x02 \x01(\x0e\x32[.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenModeB\x03\xe0\x41\x02\x12\"\n\x15pluggable_database_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x82\x01\n\x19PluggableDatabaseOpenMode\x12,\n(PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\x12\x0b\n\x07MOUNTED\x10\x03\x12\x0b\n\x07MIGRATE\x10\x04\"\xf2\x03\n\x18\x44\x61tabaseManagementConfig\x12g\n\x10management_state\x18\x01 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementStateB\x03\xe0\x41\x03\x12\x65\n\x0fmanagement_type\x18\x02 \x01(\x0e\x32G.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementTypeB\x03\xe0\x41\x03\"\xb9\x01\n\x0fManagementState\x12 \n\x1cMANAGEMENT_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x06\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x07\x12\x13\n\x0f\x46\x41ILED_UPDATING\x10\x08\"J\n\x0eManagementType\x12\x1f\n\x1bMANAGEMENT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0c\n\x08\x41\x44VANCED\x10\x02\"d\n\x1bGetPluggableDatabaseRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/oracledatabase.googleapis.com/PluggableDatabase\"\xae\x01\n\x1dListPluggableDatabasesRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\x12/oracledatabase.googleapis.com/PluggableDatabase\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x1eListPluggableDatabasesResponse\x12N\n\x13pluggable_databases\x18\x01 \x03(\x0b\x32\x31.google.cloud.oracledatabase.v1.PluggableDatabase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xf0\x01\n\"com.google.cloud.oracledatabase.v1B\x16PluggableDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + PluggableDatabase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabase").msgclass + PluggableDatabaseProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseProperties").msgclass + PluggableDatabaseProperties::DefinedTagValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue").msgclass + PluggableDatabaseProperties::PluggableDatabaseLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState").enummodule + PluggableDatabaseProperties::OperationsInsightsState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState").enummodule + PluggableDatabaseConnectionStrings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings").msgclass + PluggableDatabaseNodeLevelDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails").msgclass + PluggableDatabaseNodeLevelDetails::PluggableDatabaseOpenMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode").enummodule + DatabaseManagementConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseManagementConfig").msgclass + DatabaseManagementConfig::ManagementState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState").enummodule + DatabaseManagementConfig::ManagementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType").enummodule + GetPluggableDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest").msgclass + ListPluggableDatabasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest").msgclass + ListPluggableDatabasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb new file mode 100644 index 000000000000..47130b36fd86 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb @@ -0,0 +1,32 @@ +# frozen_string_literal: true +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/oracledatabase/v1/vm_cluster.proto + +require 'google/protobuf' + +require 'google/api/field_behavior_pb' +require 'google/api/resource_pb' +require 'google/cloud/oracledatabase/v1/common_pb' +require 'google/protobuf/timestamp_pb' +require 'google/type/datetime_pb' + + +descriptor_data = "\n/google/cloud/oracledatabase/v1/vm_cluster.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x82\x08\n\x0e\x43loudVmCluster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12`\n\x16\x65xadata_infrastructure\x18\x02 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\nproperties\x18\x06 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesB\x03\xe0\x41\x01\x12O\n\x06labels\x18\x07 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.CloudVmCluster.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x63idr\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x62\x61\x63kup_subnet_cidr\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\x0b \x01(\tB&\xe0\x41\x01\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x1c\n\x0fgcp_oracle_zone\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x0bodb_network\x18\r \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x0e \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12J\n\x11\x62\x61\x63kup_odb_subnet\x18\x0f \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12R\n\x12identity_connector\x18\x10 \x01(\x0b\x32\x31.google.cloud.oracledatabase.v1.IdentityConnectorB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x01\xea\x41\x9b\x01\n,oracledatabase.googleapis.com/CloudVmCluster\x12Jprojects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}*\x0f\x63loudVmClusters2\x0e\x63loudVmCluster\"\xe6\x0c\n\x18\x43loudVmClusterProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12_\n\x0clicense_type\x18\x02 \x01(\x0e\x32\x44.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseTypeB\x03\xe0\x41\x02\x12\x17\n\ngi_version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x04 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\x12\x1c\n\x0fssh_public_keys\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\x05shape\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nocpu_count\x18\x08 \x01(\x02\x42\x03\xe0\x41\x01\x12\x1b\n\x0ememory_size_gb\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17\x64\x62_node_storage_size_gb\x18\n \x01(\x05\x42\x03\xe0\x41\x01\x12\x1c\n\x0fstorage_size_gb\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x0c \x01(\x01\x42\x03\xe0\x41\x01\x12\x65\n\x0f\x64isk_redundancy\x18\r \x01(\x0e\x32G.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancyB\x03\xe0\x41\x01\x12%\n\x18sparse_diskgroup_enabled\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12!\n\x14local_backup_enabled\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fhostname_prefix\x18\x10 \x01(\tB\x03\xe0\x41\x01\x12g\n#diagnostics_data_collection_options\x18\x13 \x01(\x0b\x32\x35.google.cloud.oracledatabase.v1.DataCollectionOptionsB\x03\xe0\x41\x01\x12R\n\x05state\x18\x14 \x01(\x0e\x32>.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StateB\x03\xe0\x41\x03\x12#\n\x16scan_listener_port_tcp\x18\x15 \x01(\x05\x42\x03\xe0\x41\x01\x12\'\n\x1ascan_listener_port_tcp_ssl\x18\x16 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x64omain\x18\x17 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08scan_dns\x18\x18 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08hostname\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x63pu_core_count\x18\x1a \x01(\x05\x42\x03\xe0\x41\x02\x12\x1b\n\x0esystem_version\x18\x1b \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bscan_ip_ids\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x1f\n\x12scan_dns_record_id\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\x1e \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x62_server_ocids\x18\x1f \x03(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63ompartment_id\x18 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64ns_listener_ip\x18# \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_name\x18$ \x01(\tB\x03\xe0\x41\x01\x12H\n\rcompute_model\x18% \x01(\x0e\x32,.google.cloud.oracledatabase.v1.ComputeModelB\x03\xe0\x41\x03\"]\n\x0bLicenseType\x12\x1c\n\x18LICENSE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"G\n\x0e\x44iskRedundancy\x12\x1f\n\x1b\x44ISK_REDUNDANCY_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06NORMAL\x10\x02\"\x97\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"\x8c\x01\n\x15\x44\x61taCollectionOptions\x12\'\n\x1a\x64iagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12&\n\x19health_monitoring_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\"\n\x15incident_logs_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x42\xed\x01\n\"com.google.cloud.oracledatabase.v1B\x13\x43loudVmClusterProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" + +pool = ::Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) + +module Google + module Cloud + module OracleDatabase + module V1 + CloudVmCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmCluster").msgclass + CloudVmClusterProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmClusterProperties").msgclass + CloudVmClusterProperties::LicenseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType").enummodule + CloudVmClusterProperties::DiskRedundancy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy").enummodule + CloudVmClusterProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmClusterProperties.State").enummodule + DataCollectionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DataCollectionOptions").msgclass + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/README.md b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/README.md new file mode 100644 index 000000000000..8039fb55e54d --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/README.md @@ -0,0 +1,4 @@ +# Oracle Database@Google Cloud V1 Protocol Buffer Documentation + +These files are for the YARD documentation of the generated protobuf files. +They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb new file mode 100644 index 000000000000..3ab0b096d445 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb @@ -0,0 +1,593 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Required information for every language. + # @!attribute [rw] reference_docs_uri + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::String] + # Link to automatically generated reference documentation. Example: + # https://cloud.google.com/nodejs/docs/reference/asset/latest + # @!attribute [rw] destinations + # @return [::Array<::Google::Api::ClientLibraryDestination>] + # The destination where API teams want this client library to be published. + # @!attribute [rw] selective_gapic_generation + # @return [::Google::Api::SelectiveGapicGeneration] + # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. + class CommonLanguageSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details about how and where to publish client libraries. + # @!attribute [rw] version + # @return [::String] + # Version of the API to apply these settings to. This is the full protobuf + # package for the API, ending in the version element. + # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". + # @!attribute [rw] launch_stage + # @return [::Google::Api::LaunchStage] + # Launch stage of this version of the API. + # @!attribute [rw] rest_numeric_enums + # @return [::Boolean] + # When using transport=rest, the client request will encode enums as + # numbers rather than strings. + # @!attribute [rw] java_settings + # @return [::Google::Api::JavaSettings] + # Settings for legacy Java features, supported in the Service YAML. + # @!attribute [rw] cpp_settings + # @return [::Google::Api::CppSettings] + # Settings for C++ client libraries. + # @!attribute [rw] php_settings + # @return [::Google::Api::PhpSettings] + # Settings for PHP client libraries. + # @!attribute [rw] python_settings + # @return [::Google::Api::PythonSettings] + # Settings for Python client libraries. + # @!attribute [rw] node_settings + # @return [::Google::Api::NodeSettings] + # Settings for Node client libraries. + # @!attribute [rw] dotnet_settings + # @return [::Google::Api::DotnetSettings] + # Settings for .NET client libraries. + # @!attribute [rw] ruby_settings + # @return [::Google::Api::RubySettings] + # Settings for Ruby client libraries. + # @!attribute [rw] go_settings + # @return [::Google::Api::GoSettings] + # Settings for Go client libraries. + class ClientLibrarySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # This message configures the settings for publishing [Google Cloud Client + # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) + # generated from the service config. + # @!attribute [rw] method_settings + # @return [::Array<::Google::Api::MethodSettings>] + # A list of API method settings, e.g. the behavior for methods that use the + # long-running operation pattern. + # @!attribute [rw] new_issue_uri + # @return [::String] + # Link to a *public* URI where users can report issues. Example: + # https://issuetracker.google.com/issues/new?component=190865&template=1161103 + # @!attribute [rw] documentation_uri + # @return [::String] + # Link to product home page. Example: + # https://cloud.google.com/asset-inventory/docs/overview + # @!attribute [rw] api_short_name + # @return [::String] + # Used as a tracking tag when collecting data about the APIs developer + # relations artifacts like docs, packages delivered to package managers, + # etc. Example: "speech". + # @!attribute [rw] github_label + # @return [::String] + # GitHub label to apply to issues and pull requests opened for this API. + # @!attribute [rw] codeowner_github_teams + # @return [::Array<::String>] + # GitHub teams to be added to CODEOWNERS in the directory in GitHub + # containing source code for the client libraries for this API. + # @!attribute [rw] doc_tag_prefix + # @return [::String] + # A prefix used in sample code when demarking regions to be included in + # documentation. + # @!attribute [rw] organization + # @return [::Google::Api::ClientLibraryOrganization] + # For whom the client library is being published. + # @!attribute [rw] library_settings + # @return [::Array<::Google::Api::ClientLibrarySettings>] + # Client library settings. If the same version string appears multiple + # times in this list, then the last one wins. Settings from earlier + # settings with the same version string are discarded. + # @!attribute [rw] proto_reference_documentation_uri + # @return [::String] + # Optional link to proto reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rpc + # @!attribute [rw] rest_reference_documentation_uri + # @return [::String] + # Optional link to REST reference documentation. Example: + # https://cloud.google.com/pubsub/lite/docs/reference/rest + class Publishing + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Java client libraries. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Java. Clobbers the java_package option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.java.package_name" field + # in gapic.yaml. API teams should use the protobuf java_package option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # java_settings: + # library_package: com.google.cloud.pubsub.v1 + # @!attribute [rw] service_class_names + # @return [::Google::Protobuf::Map{::String => ::String}] + # Configure the Java class name to use instead of the service's for its + # corresponding generated GAPIC client. Keys are fully-qualified + # service names as they appear in the protobuf (including the full + # the language_settings.java.interface_names" field in gapic.yaml. API + # teams should otherwise use the service name as it appears in the + # protobuf. + # + # Example of a YAML configuration:: + # + # publishing: + # java_settings: + # service_class_names: + # - google.pubsub.v1.Publisher: TopicAdmin + # - google.pubsub.v1.Subscriber: SubscriptionAdmin + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class JavaSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class ServiceClassNamesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for C++ client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class CppSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Php client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] library_package + # @return [::String] + # The package name to use in Php. Clobbers the php_namespace option + # set in the protobuf. This should be used **only** by APIs + # who have already set the language_settings.php.package_name" field + # in gapic.yaml. API teams should use the protobuf php_namespace option + # where possible. + # + # Example of a YAML configuration:: + # + # publishing: + # library_settings: + # php_settings: + # library_package: Google\Cloud\PubSub\V1 + class PhpSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Python client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] experimental_features + # @return [::Google::Api::PythonSettings::ExperimentalFeatures] + # Experimental features to be included during client library generation. + class PythonSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Experimental features to be included during client library generation. + # These fields will be deprecated once the feature graduates and is enabled + # by default. + # @!attribute [rw] rest_async_io_enabled + # @return [::Boolean] + # Enables generation of asynchronous REST clients if `rest` transport is + # enabled. By default, asynchronous REST clients will not be generated. + # This feature will be enabled by default 1 month after launching the + # feature in preview packages. + # @!attribute [rw] protobuf_pythonic_types_enabled + # @return [::Boolean] + # Enables generation of protobuf code using new types that are more + # Pythonic which are included in `protobuf>=5.29.x`. This feature will be + # enabled by default 1 month after launching the feature in preview + # packages. + # @!attribute [rw] unversioned_package_disabled + # @return [::Boolean] + # Disables generation of an unversioned Python package for this client + # library. This means that the module names will need to be versioned in + # import statements. For example `import google.cloud.library_v2` instead + # of `import google.cloud.library`. + class ExperimentalFeatures + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Node client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class NodeSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Dotnet client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from original service names to renamed versions. + # This is used when the default generated types + # would cause a naming conflict. (Neither name is + # fully-qualified.) + # Example: Subscriber to SubscriberServiceApi. + # @!attribute [rw] renamed_resources + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map from full resource types to the effective short name + # for the resource. This is used when otherwise resource + # named from different services would cause naming collisions. + # Example entry: + # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" + # @!attribute [rw] ignored_resources + # @return [::Array<::String>] + # List of full resource types to ignore during generation. + # This is typically used for API-specific Location resources, + # which should be handled by the generator as if they were actually + # the common Location resources. + # Example entry: "documentai.googleapis.com/Location" + # @!attribute [rw] forced_namespace_aliases + # @return [::Array<::String>] + # Namespaces which must be aliased in snippets due to + # a known (but non-generator-predictable) naming collision + # @!attribute [rw] handwritten_signatures + # @return [::Array<::String>] + # Method signatures (in the form "service.method(signature)") + # which are provided separately, so shouldn't be generated. + # Snippets *calling* these methods are still generated, however. + class DotnetSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedResourcesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Settings for Ruby client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + class RubySettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Settings for Go client libraries. + # @!attribute [rw] common + # @return [::Google::Api::CommonLanguageSettings] + # Some settings. + # @!attribute [rw] renamed_services + # @return [::Google::Protobuf::Map{::String => ::String}] + # Map of service names to renamed services. Keys are the package relative + # service names and values are the name to be used for the service client + # and call options. + # + # Example: + # + # publishing: + # go_settings: + # renamed_services: + # Publisher: TopicAdmin + class GoSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class RenamedServicesEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Describes the generator configuration for a method. + # @!attribute [rw] selector + # @return [::String] + # The fully qualified name of the method, for which the options below apply. + # This is used to find the method to apply the options. + # + # Example: + # + # publishing: + # method_settings: + # - selector: google.storage.control.v2.StorageControl.CreateFolder + # # method settings for CreateFolder... + # @!attribute [rw] long_running + # @return [::Google::Api::MethodSettings::LongRunning] + # Describes settings to use for long-running operations when generating + # API methods for RPCs. Complements RPCs that use the annotations in + # google/longrunning/operations.proto. + # + # Example of a YAML configuration:: + # + # publishing: + # method_settings: + # - selector: google.cloud.speech.v2.Speech.BatchRecognize + # long_running: + # initial_poll_delay: 60s # 1 minute + # poll_delay_multiplier: 1.5 + # max_poll_delay: 360s # 6 minutes + # total_poll_timeout: 54000s # 90 minutes + # @!attribute [rw] auto_populated_fields + # @return [::Array<::String>] + # List of top-level fields of the request message, that should be + # automatically populated by the client libraries based on their + # (google.api.field_info).format. Currently supported format: UUID4. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.CreateExample + # auto_populated_fields: + # - request_id + # @!attribute [rw] batching + # @return [::Google::Api::BatchingConfigProto] + # Batching configuration for an API method in client libraries. + # + # Example of a YAML configuration: + # + # publishing: + # method_settings: + # - selector: google.example.v1.ExampleService.BatchCreateExample + # batching: + # element_count_threshold: 1000 + # request_byte_threshold: 100000000 + # delay_threshold_millis: 10 + class MethodSettings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Describes settings to use when generating API methods that use the + # long-running operation pattern. + # All default values below are from those used in the client library + # generators (e.g. + # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). + # @!attribute [rw] initial_poll_delay + # @return [::Google::Protobuf::Duration] + # Initial delay after which the first poll request will be made. + # Default value: 5 seconds. + # @!attribute [rw] poll_delay_multiplier + # @return [::Float] + # Multiplier to gradually increase delay between subsequent polls until it + # reaches max_poll_delay. + # Default value: 1.5. + # @!attribute [rw] max_poll_delay + # @return [::Google::Protobuf::Duration] + # Maximum time between two subsequent poll requests. + # Default value: 45 seconds. + # @!attribute [rw] total_poll_timeout + # @return [::Google::Protobuf::Duration] + # Total polling timeout. + # Default value: 5 minutes. + class LongRunning + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # This message is used to configure the generation of a subset of the RPCs in + # a service for client libraries. + # + # Note: This feature should not be used in most cases. + # @!attribute [rw] methods + # @return [::Array<::String>] + # An allowlist of the fully qualified names of RPCs that should be included + # on public client surfaces. + # @!attribute [rw] generate_omitted_as_internal + # @return [::Boolean] + # Setting this to true indicates to the client generators that methods + # that would be excluded from the generation should instead be generated + # in a way that indicates these methods should not be consumed by + # end users. How this is expressed is up to individual language + # implementations to decide. Some examples may be: added annotations, + # obfuscated identifiers, or other language idiomatic patterns. + class SelectiveGapicGeneration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingConfigProto` defines the batching configuration for an API method. + # @!attribute [rw] thresholds + # @return [::Google::Api::BatchingSettingsProto] + # The thresholds which trigger a batched request to be sent. + # @!attribute [rw] batch_descriptor + # @return [::Google::Api::BatchingDescriptorProto] + # The request and response fields used in batching. + class BatchingConfigProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingSettingsProto` specifies a set of batching thresholds, each of + # which acts as a trigger to send a batch of messages as a request. At least + # one threshold must be positive nonzero. + # @!attribute [rw] element_count_threshold + # @return [::Integer] + # The number of elements of a field collected into a batch which, if + # exceeded, causes the batch to be sent. + # @!attribute [rw] request_byte_threshold + # @return [::Integer] + # The aggregated size of the batched field which, if exceeded, causes the + # batch to be sent. This size is computed by aggregating the sizes of the + # request field to be batched, not of the entire request message. + # @!attribute [rw] delay_threshold + # @return [::Google::Protobuf::Duration] + # The duration after which a batch should be sent, starting from the addition + # of the first message to that batch. + # @!attribute [rw] element_count_limit + # @return [::Integer] + # The maximum number of elements collected in a batch that could be accepted + # by server. + # @!attribute [rw] request_byte_limit + # @return [::Integer] + # The maximum size of the request that could be accepted by server. + # @!attribute [rw] flow_control_element_limit + # @return [::Integer] + # The maximum number of elements allowed by flow control. + # @!attribute [rw] flow_control_byte_limit + # @return [::Integer] + # The maximum size of data allowed by flow control. + # @!attribute [rw] flow_control_limit_exceeded_behavior + # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] + # The behavior to take when the flow control limit is exceeded. + class BatchingSettingsProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # `BatchingDescriptorProto` specifies the fields of the request message to be + # used for batching, and, optionally, the fields of the response message to be + # used for demultiplexing. + # @!attribute [rw] batched_field + # @return [::String] + # The repeated field in the request message to be aggregated by batching. + # @!attribute [rw] discriminator_fields + # @return [::Array<::String>] + # A list of the fields in the request message. Two requests will be batched + # together only if the values of every field specified in + # `request_discriminator_fields` is equal between the two requests. + # @!attribute [rw] subresponse_field + # @return [::String] + # Optional. When present, indicates the field in the response message to be + # used to demultiplex the response into multiple response messages, in + # correspondence with the multiple request messages originally batched + # together. + class BatchingDescriptorProto + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The organization for which the client libraries are being published. + # Affects the url where generated docs are published, etc. + module ClientLibraryOrganization + # Not useful. + CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 + + # Google Cloud Platform Org. + CLOUD = 1 + + # Ads (Advertising) Org. + ADS = 2 + + # Photos Org. + PHOTOS = 3 + + # Street View Org. + STREET_VIEW = 4 + + # Shopping Org. + SHOPPING = 5 + + # Geo Org. + GEO = 6 + + # Generative AI - https://developers.generativeai.google + GENERATIVE_AI = 7 + end + + # To where should client libraries be published? + module ClientLibraryDestination + # Client libraries will neither be generated nor published to package + # managers. + CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 + + # Generate the client library in a repo under github.com/googleapis, + # but don't publish it to package managers. + GITHUB = 10 + + # Publish the library to package managers like nuget.org and npmjs.com. + PACKAGE_MANAGER = 20 + end + + # The behavior to take when the flow control limit is exceeded. + module FlowControlLimitExceededBehaviorProto + # Default behavior, system-defined. + UNSET_BEHAVIOR = 0 + + # Stop operation, raise error. + THROW_EXCEPTION = 1 + + # Pause operation until limit clears. + BLOCK = 2 + + # Continue operation, disregard limit. + IGNORE = 3 + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_behavior.rb new file mode 100644 index 000000000000..582be187d115 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_behavior.rb @@ -0,0 +1,85 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # An indicator of the behavior of a given field (for example, that a field + # is required in requests, or given as output but ignored as input). + # This **does not** change the behavior in protocol buffers itself; it only + # denotes the behavior and may affect how API tooling handles the field. + # + # Note: This enum **may** receive new values in the future. + module FieldBehavior + # Conventional default for enums. Do not use this. + FIELD_BEHAVIOR_UNSPECIFIED = 0 + + # Specifically denotes a field as optional. + # While all fields in protocol buffers are optional, this may be specified + # for emphasis if appropriate. + OPTIONAL = 1 + + # Denotes a field as required. + # This indicates that the field **must** be provided as part of the request, + # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). + REQUIRED = 2 + + # Denotes a field as output only. + # This indicates that the field is provided in responses, but including the + # field in a request does nothing (the server *must* ignore it and + # *must not* throw an error as a result of the field's presence). + OUTPUT_ONLY = 3 + + # Denotes a field as input only. + # This indicates that the field is provided in requests, and the + # corresponding field is not included in output. + INPUT_ONLY = 4 + + # Denotes a field as immutable. + # This indicates that the field may be set once in a request to create a + # resource, but may not be changed thereafter. + IMMUTABLE = 5 + + # Denotes that a (repeated) field is an unordered list. + # This indicates that the service may provide the elements of the list + # in any arbitrary order, rather than the order the user originally + # provided. Additionally, the list's order may or may not be stable. + UNORDERED_LIST = 6 + + # Denotes that this field returns a non-empty default value if not set. + # This indicates that if the user provides the empty value in a request, + # a non-empty value will be returned. The user will not be aware of what + # non-empty value to expect. + NON_EMPTY_DEFAULT = 7 + + # Denotes that the field in a resource (a message annotated with + # google.api.resource) is used in the resource name to uniquely identify the + # resource. For AIP-compliant APIs, this should only be applied to the + # `name` field on the resource. + # + # This behavior should not be applied to references to other resources within + # the message. + # + # The identifier field of resources often have different field behavior + # depending on the request it is embedded in (e.g. for Create methods name + # is optional and unused, while for Update methods it is required). Instead + # of method-specific annotations, only `IDENTIFIER` is required. + IDENTIFIER = 8 + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_info.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_info.rb new file mode 100644 index 000000000000..0f5acf0a5538 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_info.rb @@ -0,0 +1,88 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # Rich semantic information of an API field beyond basic typing. + # @!attribute [rw] format + # @return [::Google::Api::FieldInfo::Format] + # The standard format of a field value. This does not explicitly configure + # any API consumer, just documents the API's format for the field it is + # applied to. + # @!attribute [rw] referenced_types + # @return [::Array<::Google::Api::TypeReference>] + # The type(s) that the annotated, generic field may represent. + # + # Currently, this must only be used on fields of type `google.protobuf.Any`. + # Supporting other generic types may be considered in the future. + class FieldInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The standard format of a field value. The supported formats are all backed + # by either an RFC defined by the IETF or a Google-defined AIP. + module Format + # Default, unspecified value. + FORMAT_UNSPECIFIED = 0 + + # Universally Unique Identifier, version 4, value as defined by + # https://datatracker.ietf.org/doc/html/rfc4122. The value may be + # normalized to entirely lowercase letters. For example, the value + # `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to + # `f47ac10b-58cc-0372-8567-0e02b2c3d479`. + UUID4 = 1 + + # Internet Protocol v4 value as defined by [RFC + # 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be + # condensed, with leading zeros in each octet stripped. For example, + # `001.022.233.040` would be condensed to `1.22.233.40`. + IPV4 = 2 + + # Internet Protocol v6 value as defined by [RFC + # 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be + # normalized to entirely lowercase letters with zeros compressed, following + # [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, + # the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. + IPV6 = 3 + + # An IP address in either v4 or v6 format as described by the individual + # values defined herein. See the comments on the IPV4 and IPV6 types for + # allowed normalizations of each. + IPV4_OR_IPV6 = 4 + end + end + + # A reference to a message type, for use in {::Google::Api::FieldInfo FieldInfo}. + # @!attribute [rw] type_name + # @return [::String] + # The name of the type that the annotated, generic field may represent. + # If the type is in the same protobuf package, the value can be the simple + # message name e.g., `"MyMessage"`. Otherwise, the value must be the + # fully-qualified message name e.g., `"google.library.v1.Book"`. + # + # If the type(s) are unknown to the service (e.g. the field accepts generic + # user input), use the wildcard `"*"` to denote this behavior. + # + # See [AIP-202](https://google.aip.dev/202#type-references) for more details. + class TypeReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/launch_stage.rb new file mode 100644 index 000000000000..9392a413fb1b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/launch_stage.rb @@ -0,0 +1,71 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # The launch stage as defined by [Google Cloud Platform + # Launch Stages](https://cloud.google.com/terms/launch-stages). + module LaunchStage + # Do not use this default value. + LAUNCH_STAGE_UNSPECIFIED = 0 + + # The feature is not yet implemented. Users can not use it. + UNIMPLEMENTED = 6 + + # Prelaunch features are hidden from users and are only visible internally. + PRELAUNCH = 7 + + # Early Access features are limited to a closed group of testers. To use + # these features, you must sign up in advance and sign a Trusted Tester + # agreement (which includes confidentiality provisions). These features may + # be unstable, changed in backward-incompatible ways, and are not + # guaranteed to be released. + EARLY_ACCESS = 1 + + # Alpha is a limited availability test for releases before they are cleared + # for widespread use. By Alpha, all significant design issues are resolved + # and we are in the process of verifying functionality. Alpha customers + # need to apply for access, agree to applicable terms, and have their + # projects allowlisted. Alpha releases don't have to be feature complete, + # no SLAs are provided, and there are no technical support obligations, but + # they will be far enough along that customers can actually use them in + # test environments or for limited-use tests -- just like they would in + # normal production cases. + ALPHA = 2 + + # Beta is the point at which we are ready to open a release for any + # customer to use. There are no SLA or technical support obligations in a + # Beta release. Products will be complete from a feature perspective, but + # may have some open outstanding issues. Beta releases are suitable for + # limited production use cases. + BETA = 3 + + # GA features are open to all developers and are considered stable and + # fully qualified for production use. + GA = 4 + + # Deprecated features are scheduled to be shut down and removed. For more + # information, see the "Deprecation Policy" section of our [Terms of + # Service](https://cloud.google.com/terms/) + # and the [Google Cloud Platform Subject to the Deprecation + # Policy](https://cloud.google.com/terms/deprecation) documentation. + DEPRECATED = 5 + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/resource.rb new file mode 100644 index 000000000000..25dec4847ac1 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/resource.rb @@ -0,0 +1,227 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Api + # A simple descriptor of a resource type. + # + # ResourceDescriptor annotates a resource message (either by means of a + # protobuf annotation or use in the service config), and associates the + # resource's schema, the resource type, and the pattern of the resource name. + # + # Example: + # + # message Topic { + # // Indicates this message defines a resource schema. + # // Declares the resource type in the format of {service}/{kind}. + # // For Kubernetes resources, the format is {api group}/{kind}. + # option (google.api.resource) = { + # type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: "pubsub.googleapis.com/Topic" + # pattern: "projects/{project}/topics/{topic}" + # + # Sometimes, resources have multiple patterns, typically because they can + # live under multiple parents. + # + # Example: + # + # message LogEntry { + # option (google.api.resource) = { + # type: "logging.googleapis.com/LogEntry" + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # }; + # } + # + # The ResourceDescriptor Yaml config will look like: + # + # resources: + # - type: 'logging.googleapis.com/LogEntry' + # pattern: "projects/{project}/logs/{log}" + # pattern: "folders/{folder}/logs/{log}" + # pattern: "organizations/{organization}/logs/{log}" + # pattern: "billingAccounts/{billing_account}/logs/{log}" + # @!attribute [rw] type + # @return [::String] + # The resource type. It must be in the format of + # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be + # singular and must not include version numbers. + # + # Example: `storage.googleapis.com/Bucket` + # + # The value of the resource_type_kind must follow the regular expression + # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and + # should use PascalCase (UpperCamelCase). The maximum number of + # characters allowed for the `resource_type_kind` is 100. + # @!attribute [rw] pattern + # @return [::Array<::String>] + # Optional. The relative resource name pattern associated with this resource + # type. The DNS prefix of the full resource name shouldn't be specified here. + # + # The path pattern must follow the syntax, which aligns with HTTP binding + # syntax: + # + # Template = Segment { "/" Segment } ; + # Segment = LITERAL | Variable ; + # Variable = "{" LITERAL "}" ; + # + # Examples: + # + # - "projects/\\{project}/topics/\\{topic}" + # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" + # + # The components in braces correspond to the IDs for each resource in the + # hierarchy. It is expected that, if multiple patterns are provided, + # the same component name (e.g. "project") refers to IDs of the same + # type of resource. + # @!attribute [rw] name_field + # @return [::String] + # Optional. The field on the resource that designates the resource name + # field. If omitted, this is assumed to be "name". + # @!attribute [rw] history + # @return [::Google::Api::ResourceDescriptor::History] + # Optional. The historical or future-looking state of the resource pattern. + # + # Example: + # + # // The InspectTemplate message originally only supported resource + # // names with organization, and project was added later. + # message InspectTemplate { + # option (google.api.resource) = { + # type: "dlp.googleapis.com/InspectTemplate" + # pattern: + # "organizations/{organization}/inspectTemplates/{inspect_template}" + # pattern: "projects/{project}/inspectTemplates/{inspect_template}" + # history: ORIGINALLY_SINGLE_PATTERN + # }; + # } + # @!attribute [rw] plural + # @return [::String] + # The plural name used in the resource name and permission names, such as + # 'projects' for the resource name of 'projects/\\{project}' and the permission + # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception + # to this is for Nested Collections that have stuttering names, as defined + # in [AIP-122](https://google.aip.dev/122#nested-collections), where the + # collection ID in the resource name pattern does not necessarily directly + # match the `plural` value. + # + # It is the same concept of the `plural` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # + # Note: The plural form is required even for singleton resources. See + # https://aip.dev/156 + # @!attribute [rw] singular + # @return [::String] + # The same concept of the `singular` field in k8s CRD spec + # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ + # Such as "project" for the `resourcemanager.googleapis.com/Project` type. + # @!attribute [rw] style + # @return [::Array<::Google::Api::ResourceDescriptor::Style>] + # Style flag(s) for this resource. + # These indicate that a resource is expected to conform to a given + # style. See the specific style flags for additional information. + class ResourceDescriptor + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # A description of the historical or future-looking state of the + # resource pattern. + module History + # The "unset" value. + HISTORY_UNSPECIFIED = 0 + + # The resource originally had one pattern and launched as such, and + # additional patterns were added later. + ORIGINALLY_SINGLE_PATTERN = 1 + + # The resource has one pattern, but the API owner expects to add more + # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents + # that from being necessary once there are multiple patterns.) + FUTURE_MULTI_PATTERN = 2 + end + + # A flag representing a specific style that a resource claims to conform to. + module Style + # The unspecified value. Do not use. + STYLE_UNSPECIFIED = 0 + + # This resource is intended to be "declarative-friendly". + # + # Declarative-friendly resources must be more strictly consistent, and + # setting this to true communicates to tools that this resource should + # adhere to declarative-friendly expectations. + # + # Note: This is used by the API linter (linter.aip.dev) to enable + # additional checks. + DECLARATIVE_FRIENDLY = 1 + end + end + + # Defines a proto annotation that describes a string field that refers to + # an API resource. + # @!attribute [rw] type + # @return [::String] + # The resource type that the annotated field references. + # + # Example: + # + # message Subscription { + # string topic = 2 [(google.api.resource_reference) = { + # type: "pubsub.googleapis.com/Topic" + # }]; + # } + # + # Occasionally, a field may reference an arbitrary resource. In this case, + # APIs use the special value * in their resource reference. + # + # Example: + # + # message GetIamPolicyRequest { + # string resource = 2 [(google.api.resource_reference) = { + # type: "*" + # }]; + # } + # @!attribute [rw] child_type + # @return [::String] + # The resource type of a child collection that the annotated field + # references. This is useful for annotating the `parent` field that + # doesn't have a fixed resource type. + # + # Example: + # + # message ListLogEntriesRequest { + # string parent = 1 [(google.api.resource_reference) = { + # child_type: "logging.googleapis.com/LogEntry" + # }; + # } + class ResourceReference + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb new file mode 100644 index 000000000000..0047531880bc --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb @@ -0,0 +1,983 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Autonomous Database resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Autonomous Database resource in the following + # format: + # projects/\\{project}/locations/\\{region}/autonomousDatabases/\\{autonomous_database} + # @!attribute [rw] database + # @return [::String] + # Optional. Immutable. The name of the Autonomous Database. The database name + # must be unique in the project. The name must begin with a letter and can + # contain a maximum of 30 alphanumeric characters. + # @!attribute [rw] display_name + # @return [::String] + # Optional. Immutable. The display name for the Autonomous Database. The name + # does not have to be unique within your project. + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. The ID of the subscription entitlement associated with the + # Autonomous Database. + # @!attribute [rw] admin_password + # @return [::String] + # Optional. Immutable. The password for the default ADMIN user. + # Note: Only one of `admin_password_secret_version` or `admin_password` can + # be populated. + # @!attribute [rw] admin_password_secret_version + # @return [::String] + # Optional. Immutable. The resource name of a secret version in Secret + # Manager which contains the database admin user's password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of + # `admin_password_secret_version` or `admin_password` can be populated. + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties] + # Optional. The properties of the Autonomous Database. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels or tags associated with the Autonomous Database. + # @!attribute [rw] network + # @return [::String] + # Optional. Immutable. The name of the VPC network used by the Autonomous + # Database in the following format: + # projects/\\{project}/global/networks/\\{network} + # @!attribute [rw] cidr + # @return [::String] + # Optional. Immutable. The subnet CIDR range for the Autonomous Database. + # @!attribute [rw] odb_network + # @return [::String] + # Optional. Immutable. The name of the OdbNetwork associated with the + # Autonomous Database. Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} It is + # optional but if specified, this should match the parent ODBNetwork of the + # OdbSubnet. + # @!attribute [rw] odb_subnet + # @return [::String] + # Optional. Immutable. The name of the OdbSubnet associated with the + # Autonomous Database. Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} + # @!attribute [rw] source_config + # @return [::Google::Cloud::OracleDatabase::V1::SourceConfig] + # Optional. Immutable. The source Autonomous Database configuration for the + # standby Autonomous Database. The source Autonomous Database is configured + # while creating the Peer Autonomous Database and can't be updated after + # creation. + # @!attribute [r] peer_autonomous_databases + # @return [::Array<::String>] + # Output only. The peer Autonomous Database names of the given Autonomous + # Database. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the Autonomous Database was created. + # @!attribute [r] disaster_recovery_supported_locations + # @return [::Array<::String>] + # Output only. List of supported GCP region to clone the Autonomous Database + # for disaster recovery. Format: `project/{project}/locations/{location}`. + class AutonomousDatabase + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The source configuration for the standby Autonomous Database. + # @!attribute [rw] autonomous_database + # @return [::String] + # Optional. The name of the primary Autonomous Database that is used to + # create a Peer Autonomous Database from a source. + # @!attribute [rw] automatic_backups_replication_enabled + # @return [::Boolean] + # Optional. This field specifies if the replication of automatic backups is + # enabled when creating a Data Guard. + class SourceConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of an Autonomous Database. + # @!attribute [r] ocid + # @return [::String] + # Output only. OCID of the Autonomous Database. + # https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + # @!attribute [rw] compute_count + # @return [::Float] + # Optional. Immutable. The number of compute servers for the Autonomous + # Database. + # @!attribute [rw] cpu_core_count + # @return [::Integer] + # Optional. Immutable. The number of CPU cores to be made available to the + # database. + # @!attribute [rw] data_storage_size_tb + # @return [::Integer] + # Optional. Immutable. The size of the data stored in the database, in + # terabytes. + # @!attribute [rw] data_storage_size_gb + # @return [::Integer] + # Optional. Immutable. The size of the data stored in the database, in + # gigabytes. + # @!attribute [rw] db_workload + # @return [::Google::Cloud::OracleDatabase::V1::DBWorkload] + # Required. Immutable. The workload type of the Autonomous Database. + # @!attribute [rw] db_edition + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::DatabaseEdition] + # Optional. Immutable. The edition of the Autonomous Databases. + # @!attribute [rw] character_set + # @return [::String] + # Optional. Immutable. The character set for the Autonomous Database. The + # default is AL32UTF8. + # @!attribute [rw] n_character_set + # @return [::String] + # Optional. Immutable. The national character set for the Autonomous + # Database. The default is AL16UTF16. + # @!attribute [rw] private_endpoint_ip + # @return [::String] + # Optional. Immutable. The private endpoint IP address for the Autonomous + # Database. + # @!attribute [rw] private_endpoint_label + # @return [::String] + # Optional. Immutable. The private endpoint label for the Autonomous + # Database. + # @!attribute [rw] db_version + # @return [::String] + # Optional. Immutable. The Oracle Database version for the Autonomous + # Database. + # @!attribute [rw] is_auto_scaling_enabled + # @return [::Boolean] + # Optional. Immutable. This field indicates if auto scaling is enabled for + # the Autonomous Database CPU core count. + # @!attribute [rw] is_storage_auto_scaling_enabled + # @return [::Boolean] + # Optional. Immutable. This field indicates if auto scaling is enabled for + # the Autonomous Database storage. + # @!attribute [rw] license_type + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::LicenseType] + # Required. Immutable. The license type used for the Autonomous Database. + # @!attribute [rw] customer_contacts + # @return [::Array<::Google::Cloud::OracleDatabase::V1::CustomerContact>] + # Optional. Immutable. The list of customer contacts. + # @!attribute [rw] secret_id + # @return [::String] + # Optional. Immutable. The ID of the Oracle Cloud Infrastructure vault + # secret. + # @!attribute [rw] vault_id + # @return [::String] + # Optional. Immutable. The ID of the Oracle Cloud Infrastructure vault. + # @!attribute [rw] maintenance_schedule_type + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::MaintenanceScheduleType] + # Optional. Immutable. The maintenance schedule of the Autonomous Database. + # @!attribute [rw] mtls_connection_required + # @return [::Boolean] + # Optional. Immutable. This field specifies if the Autonomous Database + # requires mTLS connections. + # @!attribute [rw] backup_retention_period_days + # @return [::Integer] + # Optional. Immutable. The retention period for the Autonomous Database. This + # field is specified in days, can range from 1 day to 60 days, and has a + # default value of 60 days. + # @!attribute [r] actual_used_data_storage_size_tb + # @return [::Float] + # Output only. The amount of storage currently being used for user and system + # data, in terabytes. + # @!attribute [r] allocated_storage_size_tb + # @return [::Float] + # Output only. The amount of storage currently allocated for the database + # tables and billed for, rounded up in terabytes. + # @!attribute [r] apex_details + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseApex] + # Output only. The details for the Oracle APEX Application Development. + # @!attribute [r] are_primary_allowlisted_ips_used + # @return [::Boolean] + # Output only. This field indicates the status of Data Guard and Access + # control for the Autonomous Database. The field's value is null if Data + # Guard is disabled or Access Control is disabled. The field's value is TRUE + # if both Data Guard and Access Control are enabled, and the Autonomous + # Database is using primary IP access control list (ACL) for standby. The + # field's value is FALSE if both Data Guard and Access Control are enabled, + # and the Autonomous Database is using a different IP access control list + # (ACL) for standby compared to primary. + # @!attribute [r] lifecycle_details + # @return [::String] + # Output only. The details of the current lifestyle state of the Autonomous + # Database. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::State] + # Output only. The current lifecycle state of the Autonomous Database. + # @!attribute [r] autonomous_container_database_id + # @return [::String] + # Output only. The Autonomous Container Database OCID. + # @!attribute [r] available_upgrade_versions + # @return [::Array<::String>] + # Output only. The list of available Oracle Database upgrade versions for an + # Autonomous Database. + # @!attribute [r] connection_strings + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseConnectionStrings] + # Output only. The connection strings used to connect to an Autonomous + # Database. + # @!attribute [r] connection_urls + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseConnectionUrls] + # Output only. The Oracle Connection URLs for an Autonomous Database. + # @!attribute [r] failed_data_recovery_duration + # @return [::Google::Protobuf::Duration] + # Output only. This field indicates the number of seconds of data loss during + # a Data Guard failover. + # @!attribute [r] memory_table_gbs + # @return [::Integer] + # Output only. The memory assigned to in-memory tables in an Autonomous + # Database. + # @!attribute [r] is_local_data_guard_enabled + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Boolean] + # Output only. Deprecated: Please use `local_data_guard_enabled` instead. + # This field indicates whether the Autonomous Database has local (in-region) + # Data Guard enabled. + # @!attribute [r] local_adg_auto_failover_max_data_loss_limit + # @deprecated This field is deprecated and may be removed in the next major version update. + # @return [::Integer] + # Output only. Deprecated: Please use + # `local_adg_auto_failover_max_data_loss_limit_duration` instead. + # This field indicates the maximum data loss limit for an Autonomous + # Database, in seconds. + # @!attribute [r] local_standby_db + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseStandbySummary] + # Output only. The details of the Autonomous Data Guard standby database. + # @!attribute [r] memory_per_oracle_compute_unit_gbs + # @return [::Integer] + # Output only. The amount of memory enabled per ECPU, in gigabytes. + # @!attribute [r] local_disaster_recovery_type + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::LocalDisasterRecoveryType] + # Output only. This field indicates the local disaster recovery (DR) type of + # an Autonomous Database. + # @!attribute [r] data_safe_state + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::DataSafeState] + # Output only. The current state of the Data Safe registration for the + # Autonomous Database. + # @!attribute [r] database_management_state + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::DatabaseManagementState] + # Output only. The current state of database management for the Autonomous + # Database. + # @!attribute [r] open_mode + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::OpenMode] + # Output only. This field indicates the current mode of the Autonomous + # Database. + # @!attribute [r] operations_insights_state + # @return [::Google::Cloud::OracleDatabase::V1::OperationsInsightsState] + # Output only. This field indicates the state of Operations Insights for the + # Autonomous Database. + # @!attribute [r] peer_db_ids + # @return [::Array<::String>] + # Output only. The list of OCIDs of standby databases located in Autonomous + # Data Guard remote regions that are associated with the source database. + # @!attribute [r] permission_level + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::PermissionLevel] + # Output only. The permission level of the Autonomous Database. + # @!attribute [r] private_endpoint + # @return [::String] + # Output only. The private endpoint for the Autonomous Database. + # @!attribute [r] refreshable_mode + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::RefreshableMode] + # Output only. The refresh mode of the cloned Autonomous Database. + # @!attribute [r] refreshable_state + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::RefreshableState] + # Output only. The refresh State of the clone. + # @!attribute [r] role + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::Role] + # Output only. The Data Guard role of the Autonomous Database. + # @!attribute [r] scheduled_operation_details + # @return [::Array<::Google::Cloud::OracleDatabase::V1::ScheduledOperationDetails>] + # Output only. The list and details of the scheduled operations of the + # Autonomous Database. + # @!attribute [r] sql_web_developer_url + # @return [::String] + # Output only. The SQL Web Developer URL for the Autonomous Database. + # @!attribute [r] supported_clone_regions + # @return [::Array<::String>] + # Output only. The list of available regions that can be used to create a + # clone for the Autonomous Database. + # @!attribute [r] used_data_storage_size_tbs + # @return [::Integer] + # Output only. The storage space used by Autonomous Database, in gigabytes. + # @!attribute [r] oci_url + # @return [::String] + # Output only. The Oracle Cloud Infrastructure link for the Autonomous + # Database. + # @!attribute [r] total_auto_backup_storage_size_gbs + # @return [::Float] + # Output only. The storage space used by automatic backups of Autonomous + # Database, in gigabytes. + # @!attribute [r] next_long_term_backup_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The long term backup schedule of the Autonomous Database. + # @!attribute [r] data_guard_role_changed_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time the Autonomous Data Guard role was changed + # for the standby Autonomous Database. + # @!attribute [r] disaster_recovery_role_changed_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time the Disaster Recovery role was changed for + # the standby Autonomous Database. + # @!attribute [r] maintenance_begin_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time when maintenance will begin. + # @!attribute [r] maintenance_end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time when maintenance will end. + # @!attribute [rw] allowlisted_ips + # @return [::Array<::String>] + # Optional. Immutable. The list of allowlisted IP addresses for the + # Autonomous Database. + # @!attribute [rw] encryption_key + # @return [::Google::Cloud::OracleDatabase::V1::EncryptionKey] + # Optional. The encryption key used to encrypt the Autonomous Database. + # Updating this field will add a new entry in the + # `encryption_key_history_entries` field with the former version. + # @!attribute [r] encryption_key_history_entries + # @return [::Array<::Google::Cloud::OracleDatabase::V1::EncryptionKeyHistoryEntry>] + # Output only. The history of the encryption keys used to encrypt the + # Autonomous Database. + # @!attribute [r] service_agent_email + # @return [::String] + # Output only. An Oracle-managed Google Cloud service account on which + # customers can grant roles to access resources in the customer project. + # @!attribute [rw] local_data_guard_enabled + # @return [::Boolean] + # Optional. Indicates whether the Autonomous Database has a local (in-region) + # standby database. Not applicable to cross-region Data Guard or dedicated + # Exadata infrastructure. + # @!attribute [rw] local_adg_auto_failover_max_data_loss_limit_duration + # @return [::Integer] + # Optional. This field indicates the maximum data loss limit for an + # Autonomous Database, in seconds. + class AutonomousDatabaseProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The editions available for the Autonomous Database. + module DatabaseEdition + # Default unspecified value. + DATABASE_EDITION_UNSPECIFIED = 0 + + # Standard Database Edition + STANDARD_EDITION = 1 + + # Enterprise Database Edition + ENTERPRISE_EDITION = 2 + end + + # The license types available for the Autonomous Database. + module LicenseType + # Unspecified + LICENSE_TYPE_UNSPECIFIED = 0 + + # License included part of offer + LICENSE_INCLUDED = 1 + + # Bring your own license + BRING_YOUR_OWN_LICENSE = 2 + end + + # The available maintenance schedules for the Autonomous Database. + module MaintenanceScheduleType + # Default unspecified value. + MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED = 0 + + # An EARLY maintenance schedule patches the database before + # the regular scheduled maintenance. + EARLY = 1 + + # A REGULAR maintenance schedule follows the normal maintenance cycle. + REGULAR = 2 + end + + # The types of local disaster recovery available for an Autonomous Database. + module LocalDisasterRecoveryType + # Default unspecified value. + LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED = 0 + + # Autonomous Data Guard recovery. + ADG = 1 + + # Backup based recovery. + BACKUP_BASED = 2 + + # Local disaster recovery is not available. + NOT_AVAILABLE = 3 + end + + # Varies states of the Data Safe registration for the Autonomous Database. + module DataSafeState + # Default unspecified value. + DATA_SAFE_STATE_UNSPECIFIED = 0 + + # Registering data safe state. + REGISTERING = 1 + + # Registered data safe state. + REGISTERED = 2 + + # Deregistering data safe state. + DEREGISTERING = 3 + + # Not registered data safe state. + NOT_REGISTERED = 4 + + # Failed data safe state. + FAILED = 5 + end + + # The different states of database management for an Autonomous Database. + module DatabaseManagementState + # Default unspecified value. + DATABASE_MANAGEMENT_STATE_UNSPECIFIED = 0 + + # Enabling Database Management state + ENABLING = 1 + + # Enabled Database Management state + ENABLED = 2 + + # Disabling Database Management state + DISABLING = 3 + + # Not Enabled Database Management state + NOT_ENABLED = 4 + + # Failed enabling Database Management state + FAILED_ENABLING = 5 + + # Failed disabling Database Management state + FAILED_DISABLING = 6 + end + + # This field indicates the modes of an Autonomous Database. + module OpenMode + # Default unspecified value. + OPEN_MODE_UNSPECIFIED = 0 + + # Read Only Mode + READ_ONLY = 1 + + # Read Write Mode + READ_WRITE = 2 + end + + # The types of permission levels for an Autonomous Database. + module PermissionLevel + # Default unspecified value. + PERMISSION_LEVEL_UNSPECIFIED = 0 + + # Restricted mode allows access only by admin users. + RESTRICTED = 1 + + # Normal access. + UNRESTRICTED = 2 + end + + # The refresh mode of the cloned Autonomous Database. + module RefreshableMode + # The default unspecified value. + REFRESHABLE_MODE_UNSPECIFIED = 0 + + # AUTOMATIC indicates that the cloned database is automatically + # refreshed with data from the source Autonomous Database. + AUTOMATIC = 1 + + # MANUAL indicates that the cloned database is manually refreshed with + # data from the source Autonomous Database. + MANUAL = 2 + end + + # The refresh state of the cloned Autonomous Database. + module RefreshableState + # Default unspecified value. + REFRESHABLE_STATE_UNSPECIFIED = 0 + + # Refreshing + REFRESHING = 1 + + # Not refreshed + NOT_REFRESHING = 2 + end + + # The Data Guard role of the Autonomous Database. + module Role + # Default unspecified value. + ROLE_UNSPECIFIED = 0 + + # Primary role + PRIMARY = 1 + + # Standby role + STANDBY = 2 + + # Disabled standby role + DISABLED_STANDBY = 3 + + # Backup copy role + BACKUP_COPY = 4 + + # Snapshot standby role + SNAPSHOT_STANDBY = 5 + end + end + + # The history of the encryption keys used to encrypt the Autonomous Database. + # @!attribute [r] encryption_key + # @return [::Google::Cloud::OracleDatabase::V1::EncryptionKey] + # Output only. The encryption key used to encrypt the Autonomous Database. + # @!attribute [r] activation_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time when the encryption key was activated on the + # Autonomous Database.. + class EncryptionKeyHistoryEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The encryption key used to encrypt the Autonomous Database. + # @!attribute [rw] provider + # @return [::Google::Cloud::OracleDatabase::V1::EncryptionKey::Provider] + # Optional. The provider of the encryption key. + # @!attribute [rw] kms_key + # @return [::String] + # Optional. The KMS key used to encrypt the Autonomous Database. + # This field is required if the provider is GOOGLE_MANAGED. + # The name of the KMS key resource in the following format: + # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. + class EncryptionKey + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The provider of the encryption key. + module Provider + # Default unspecified value. + PROVIDER_UNSPECIFIED = 0 + + # Google Managed KMS key, if selected, please provide the KMS key name. + GOOGLE_MANAGED = 1 + + # Oracle Managed. + ORACLE_MANAGED = 2 + end + end + + # Oracle APEX Application Development. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex + # @!attribute [r] apex_version + # @return [::String] + # Output only. The Oracle APEX Application Development version. + # @!attribute [r] ords_version + # @return [::String] + # Output only. The Oracle REST Data Services (ORDS) version. + class AutonomousDatabaseApex + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The connection string used to connect to the Autonomous Database. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings + # @!attribute [r] all_connection_strings + # @return [::Google::Cloud::OracleDatabase::V1::AllConnectionStrings] + # Output only. Returns all connection strings that can be used to connect to + # the Autonomous Database. + # @!attribute [r] dedicated + # @return [::String] + # Output only. The database service provides the least level of resources to + # each SQL statement, but supports the most number of concurrent SQL + # statements. + # @!attribute [r] high + # @return [::String] + # Output only. The database service provides the highest level of resources + # to each SQL statement. + # @!attribute [r] low + # @return [::String] + # Output only. The database service provides the least level of resources to + # each SQL statement. + # @!attribute [r] medium + # @return [::String] + # Output only. The database service provides a lower level of resources to + # each SQL statement. + # @!attribute [r] profiles + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile>] + # Output only. A list of connection string profiles to allow clients to + # group, filter, and select values based on the structured metadata. + class AutonomousDatabaseConnectionStrings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The connection string profile to allow clients to group. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile + # @!attribute [r] consumer_group + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::ConsumerGroup] + # Output only. The current consumer group being used by the connection. + # @!attribute [r] display_name + # @return [::String] + # Output only. The display name for the database connection. + # @!attribute [r] host_format + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::HostFormat] + # Output only. The host name format being currently used in connection + # string. + # @!attribute [r] is_regional + # @return [::Boolean] + # Output only. This field indicates if the connection string is regional and + # is only applicable for cross-region Data Guard. + # @!attribute [r] protocol + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::Protocol] + # Output only. The protocol being used by the connection. + # @!attribute [r] session_mode + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::SessionMode] + # Output only. The current session mode of the connection. + # @!attribute [r] syntax_format + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::SyntaxFormat] + # Output only. The syntax of the connection string. + # @!attribute [r] tls_authentication + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::TLSAuthentication] + # Output only. This field indicates the TLS authentication type of the + # connection. + # @!attribute [r] value + # @return [::String] + # Output only. The value of the connection string. + class DatabaseConnectionStringProfile + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various consumer groups available in the connection string profile. + module ConsumerGroup + # Default unspecified value. + CONSUMER_GROUP_UNSPECIFIED = 0 + + # High consumer group. + HIGH = 1 + + # Medium consumer group. + MEDIUM = 2 + + # Low consumer group. + LOW = 3 + + # TP consumer group. + TP = 4 + + # TPURGENT consumer group. + TPURGENT = 5 + end + + # The host name format being used in the connection string. + module HostFormat + # Default unspecified value. + HOST_FORMAT_UNSPECIFIED = 0 + + # FQDN + FQDN = 1 + + # IP + IP = 2 + end + + # The protocol being used by the connection. + module Protocol + # Default unspecified value. + PROTOCOL_UNSPECIFIED = 0 + + # Tcp + TCP = 1 + + # Tcps + TCPS = 2 + end + + # The session mode of the connection. + module SessionMode + # Default unspecified value. + SESSION_MODE_UNSPECIFIED = 0 + + # Direct + DIRECT = 1 + + # Indirect + INDIRECT = 2 + end + + # Specifies syntax of the connection string. + module SyntaxFormat + # Default unspecified value. + SYNTAX_FORMAT_UNSPECIFIED = 0 + + # Long + LONG = 1 + + # Ezconnect + EZCONNECT = 2 + + # Ezconnectplus + EZCONNECTPLUS = 3 + end + + # This field indicates the TLS authentication type of the connection. + module TLSAuthentication + # Default unspecified value. + TLS_AUTHENTICATION_UNSPECIFIED = 0 + + # Server + SERVER = 1 + + # Mutual + MUTUAL = 2 + end + end + + # A list of all connection strings that can be used to connect to the + # Autonomous Database. + # @!attribute [r] high + # @return [::String] + # Output only. The database service provides the highest level of resources + # to each SQL statement. + # @!attribute [r] low + # @return [::String] + # Output only. The database service provides the least level of resources to + # each SQL statement. + # @!attribute [r] medium + # @return [::String] + # Output only. The database service provides a lower level of resources to + # each SQL statement. + class AllConnectionStrings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The URLs for accessing Oracle Application Express (APEX) and SQL Developer + # Web with a browser from a Compute instance. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls + # @!attribute [r] apex_uri + # @return [::String] + # Output only. Oracle Application Express (APEX) URL. + # @!attribute [r] database_transforms_uri + # @return [::String] + # Output only. The URL of the Database Transforms for the Autonomous + # Database. + # @!attribute [r] graph_studio_uri + # @return [::String] + # Output only. The URL of the Graph Studio for the Autonomous Database. + # @!attribute [r] machine_learning_notebook_uri + # @return [::String] + # Output only. The URL of the Oracle Machine Learning (OML) Notebook for the + # Autonomous Database. + # @!attribute [r] machine_learning_user_management_uri + # @return [::String] + # Output only. The URL of Machine Learning user management the Autonomous + # Database. + # @!attribute [r] mongo_db_uri + # @return [::String] + # Output only. The URL of the MongoDB API for the Autonomous Database. + # @!attribute [r] ords_uri + # @return [::String] + # Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for + # the Autonomous Database. + # @!attribute [r] sql_dev_web_uri + # @return [::String] + # Output only. The URL of the Oracle SQL Developer Web for the Autonomous + # Database. + class AutonomousDatabaseConnectionUrls + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Autonomous Data Guard standby database details. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary + # @!attribute [r] lag_time_duration + # @return [::Google::Protobuf::Duration] + # Output only. The amount of time, in seconds, that the data of the standby + # database lags in comparison to the data of the primary database. + # @!attribute [r] lifecycle_details + # @return [::String] + # Output only. The additional details about the current lifecycle state of + # the Autonomous Database. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::State] + # Output only. The current lifecycle state of the Autonomous Database. + # @!attribute [r] data_guard_role_changed_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time the Autonomous Data Guard role was switched + # for the standby Autonomous Database. + # @!attribute [r] disaster_recovery_role_changed_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time the Disaster Recovery role was switched for + # the standby Autonomous Database. + class AutonomousDatabaseStandbySummary + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details of scheduled operation. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/ScheduledOperationDetails + # @!attribute [r] day_of_week + # @return [::Google::Type::DayOfWeek] + # Output only. Day of week. + # @!attribute [r] start_time + # @return [::Google::Type::TimeOfDay] + # Output only. Auto start time. + # @!attribute [r] stop_time + # @return [::Google::Type::TimeOfDay] + # Output only. Auto stop time. + class ScheduledOperationDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The type of wallet generation. + module GenerateType + # Default unspecified value. + GENERATE_TYPE_UNSPECIFIED = 0 + + # Used to generate wallet for all databases in the region. + ALL = 1 + + # Used to generate wallet for a single database. + SINGLE = 2 + end + + # The various lifecycle states of the Autonomous Database. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # Indicates that the Autonomous Database is in provisioning state. + PROVISIONING = 1 + + # Indicates that the Autonomous Database is in available state. + AVAILABLE = 2 + + # Indicates that the Autonomous Database is in stopping state. + STOPPING = 3 + + # Indicates that the Autonomous Database is in stopped state. + STOPPED = 4 + + # Indicates that the Autonomous Database is in starting state. + STARTING = 5 + + # Indicates that the Autonomous Database is in terminating state. + TERMINATING = 6 + + # Indicates that the Autonomous Database is in terminated state. + TERMINATED = 7 + + # Indicates that the Autonomous Database is in unavailable state. + UNAVAILABLE = 8 + + # Indicates that the Autonomous Database restore is in progress. + RESTORE_IN_PROGRESS = 9 + + # Indicates that the Autonomous Database failed to restore. + RESTORE_FAILED = 10 + + # Indicates that the Autonomous Database backup is in progress. + BACKUP_IN_PROGRESS = 11 + + # Indicates that the Autonomous Database scale is in progress. + SCALE_IN_PROGRESS = 12 + + # Indicates that the Autonomous Database is available but needs attention + # state. + AVAILABLE_NEEDS_ATTENTION = 13 + + # Indicates that the Autonomous Database is in updating state. + UPDATING = 14 + + # Indicates that the Autonomous Database's maintenance is in progress state. + MAINTENANCE_IN_PROGRESS = 15 + + # Indicates that the Autonomous Database is in restarting state. + RESTARTING = 16 + + # Indicates that the Autonomous Database is in recreating state. + RECREATING = 17 + + # Indicates that the Autonomous Database's role change is in progress state. + ROLE_CHANGE_IN_PROGRESS = 18 + + # Indicates that the Autonomous Database is in upgrading state. + UPGRADING = 19 + + # Indicates that the Autonomous Database is in inaccessible state. + INACCESSIBLE = 20 + + # Indicates that the Autonomous Database is in standby state. + STANDBY = 21 + end + + # The state of the Operations Insights for this Autonomous Database. + module OperationsInsightsState + # Default unspecified value. + OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0 + + # Enabling status for operation insights. + ENABLING = 1 + + # Enabled status for operation insights. + ENABLED = 2 + + # Disabling status for operation insights. + DISABLING = 3 + + # Not Enabled status for operation insights. + NOT_ENABLED = 4 + + # Failed enabling status for operation insights. + FAILED_ENABLING = 5 + + # Failed disabling status for operation insights. + FAILED_DISABLING = 6 + end + + # The various states available for the Autonomous Database workload type. + module DBWorkload + # Default unspecified value. + DB_WORKLOAD_UNSPECIFIED = 0 + + # Autonomous Transaction Processing database. + OLTP = 1 + + # Autonomous Data Warehouse database. + DW = 2 + + # Autonomous JSON Database. + AJD = 3 + + # Autonomous Database with the Oracle APEX Application Development workload + # type. + APEX = 4 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb new file mode 100644 index 000000000000..191149d3f77f --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Autonomous Database character set resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Autonomous Database Character Set resource in + # the following format: + # projects/\\{project}/locations/\\{region}/autonomousDatabaseCharacterSets/\\{autonomous_database_character_set} + # @!attribute [r] character_set_type + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet::CharacterSetType] + # Output only. The character set type for the Autonomous Database. + # @!attribute [r] character_set + # @return [::String] + # Output only. The character set name for the Autonomous Database which is + # the ID in the resource name. + class AutonomousDatabaseCharacterSet + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of character set an Autonomous Database can have. + module CharacterSetType + # Character set type is not specified. + CHARACTER_SET_TYPE_UNSPECIFIED = 0 + + # Character set type is set to database. + DATABASE = 1 + + # Character set type is set to national. + NATIONAL = 2 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb new file mode 100644 index 000000000000..a8945bcaa9f1 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb @@ -0,0 +1,175 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Autonomous Database Backup resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Autonomous Database Backup resource with the + # format: + # projects/\\{project}/locations/\\{region}/autonomousDatabaseBackups/\\{autonomous_database_backup} + # @!attribute [rw] autonomous_database + # @return [::String] + # Required. The name of the Autonomous Database resource for which the backup + # is being created. Format: + # projects/\\{project}/locations/\\{region}/autonomousDatabases/\\{autonomous_database} + # @!attribute [rw] display_name + # @return [::String] + # Optional. User friendly name for the Backup. The name does not have to be + # unique. + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackupProperties] + # Optional. Various properties of the backup. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. labels or tags associated with the resource. + class AutonomousDatabaseBackup + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Properties of the Autonomous Database Backup resource. + # @!attribute [r] ocid + # @return [::String] + # Output only. OCID of the Autonomous Database backup. + # https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + # @!attribute [rw] retention_period_days + # @return [::Integer] + # Optional. Retention period in days for the backup. + # @!attribute [r] compartment_id + # @return [::String] + # Output only. The OCID of the compartment. + # @!attribute [r] database_size_tb + # @return [::Float] + # Output only. The quantity of data in the database, in terabytes. + # @!attribute [r] db_version + # @return [::String] + # Output only. A valid Oracle Database version for Autonomous Database. + # @!attribute [r] is_long_term_backup + # @return [::Boolean] + # Output only. Indicates if the backup is long term backup. + # @!attribute [r] is_automatic_backup + # @return [::Boolean] + # Output only. Indicates if the backup is automatic or user initiated. + # @!attribute [r] is_restorable + # @return [::Boolean] + # Output only. Indicates if the backup can be used to restore the Autonomous + # Database. + # @!attribute [rw] key_store_id + # @return [::String] + # Optional. The OCID of the key store of Oracle Vault. + # @!attribute [rw] key_store_wallet + # @return [::String] + # Optional. The wallet name for Oracle Key Vault. + # @!attribute [rw] kms_key_id + # @return [::String] + # Optional. The OCID of the key container that is used as the master + # encryption key in database transparent data encryption (TDE) operations. + # @!attribute [rw] kms_key_version_id + # @return [::String] + # Optional. The OCID of the key container version that is used in database + # transparent data encryption (TDE) operations KMS Key can have multiple key + # versions. If none is specified, the current key version (latest) of the Key + # Id is used for the operation. Autonomous Database Serverless does not use + # key versions, hence is not applicable for Autonomous Database Serverless + # instances. + # @!attribute [r] lifecycle_details + # @return [::String] + # Output only. Additional information about the current lifecycle state. + # @!attribute [r] lifecycle_state + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackupProperties::State] + # Output only. The lifecycle state of the backup. + # @!attribute [r] size_tb + # @return [::Float] + # Output only. The backup size in terabytes. + # @!attribute [r] available_till_time + # @return [::Google::Protobuf::Timestamp] + # Output only. Timestamp until when the backup will be available. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time the backup completed. + # @!attribute [r] start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time the backup started. + # @!attribute [r] type + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackupProperties::Type] + # Output only. The type of the backup. + # @!attribute [rw] vault_id + # @return [::String] + # Optional. The OCID of the vault. + class AutonomousDatabaseBackupProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # // The various lifecycle states of the Autonomous Database Backup. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in creating state. + CREATING = 1 + + # Indicates that the resource is in active state. + ACTIVE = 2 + + # Indicates that the resource is in deleting state. + DELETING = 3 + + # Indicates that the resource is in deleted state. + DELETED = 4 + + # Indicates that the resource is in failed state. + FAILED = 6 + + # Indicates that the resource is in updating state. + UPDATING = 7 + end + + # The type of the backup. + module Type + # Default unspecified value. + TYPE_UNSPECIFIED = 0 + + # Incremental backups. + INCREMENTAL = 1 + + # Full backups. + FULL = 2 + + # Long term backups. + LONG_TERM = 3 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb new file mode 100644 index 000000000000..46e97664892a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Autonomous Database version. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Autonomous Database Version resource with the + # format: + # projects/\\{project}/locations/\\{region}/autonomousDbVersions/\\{autonomous_db_version} + # @!attribute [r] version + # @return [::String] + # Output only. An Oracle Database version for Autonomous Database. + # @!attribute [r] db_workload + # @return [::Google::Cloud::OracleDatabase::V1::DBWorkload] + # Output only. The Autonomous Database workload type. + # @!attribute [r] workload_uri + # @return [::String] + # Output only. A URL that points to a detailed description of the Autonomous + # Database version. + class AutonomousDbVersion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/common.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/common.rb new file mode 100644 index 000000000000..d71a8647e850 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/common.rb @@ -0,0 +1,101 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # The CustomerContact reference as defined by Oracle. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact + # @!attribute [rw] email + # @return [::String] + # Required. The email address used by Oracle to send notifications regarding + # databases and infrastructure. + class CustomerContact + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The identity connector details which will allow OCI to securely access + # the resources in the customer project. + # @!attribute [r] service_agent_email + # @return [::String] + # Output only. A google managed service account on which customers can grant + # roles to access resources in the customer project. Example: + # `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com` + # @!attribute [r] connection_state + # @return [::Google::Cloud::OracleDatabase::V1::IdentityConnector::ConnectionState] + # Output only. The connection state of the identity connector. + class IdentityConnector + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various connection states of the WorkloadIdentityPoolConnection. + module ConnectionState + # Default unspecified value. + CONNECTION_STATE_UNSPECIFIED = 0 + + # The identity pool connection is connected. + CONNECTED = 1 + + # The identity pool connection is partially connected. + PARTIALLY_CONNECTED = 2 + + # The identity pool connection is disconnected. + DISCONNECTED = 3 + + # The identity pool connection is in an unknown state. + UNKNOWN = 4 + end + end + + # Data collection options for diagnostics. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DataCollectionOptions + # @!attribute [rw] is_diagnostics_events_enabled + # @return [::Boolean] + # Optional. Indicates whether to enable data collection for diagnostics. + # @!attribute [rw] is_health_monitoring_enabled + # @return [::Boolean] + # Optional. Indicates whether to enable health monitoring. + # @!attribute [rw] is_incident_logs_enabled + # @return [::Boolean] + # Optional. Indicates whether to enable incident logs and trace collection. + class DataCollectionOptionsCommon + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The compute model of the Exadata Infrastructure, VM Cluster and Autonomous + # Database. + module ComputeModel + # Unspecified compute model. + COMPUTE_MODEL_UNSPECIFIED = 0 + + # Abstract measure of compute resources. ECPUs are based on the number of + # cores elastically allocated from a pool of compute and storage servers. + COMPUTE_MODEL_ECPU = 1 + + # Physical measure of compute resources. OCPUs are based on the physical + # core of a processor. + COMPUTE_MODEL_OCPU = 2 + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb new file mode 100644 index 000000000000..2cd30dc40bd4 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb @@ -0,0 +1,352 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Database resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Database resource in the following format: + # projects/\\{project}/locations/\\{region}/databases/\\{database} + # @!attribute [rw] db_name + # @return [::String] + # Optional. The database name. The name must begin with an alphabetic + # character and can contain a maximum of eight alphanumeric characters. + # Special characters are not permitted. + # @!attribute [rw] db_unique_name + # @return [::String] + # Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up. + # @!attribute [rw] admin_password + # @return [::String] + # Optional. The password for the default ADMIN user. + # Note: Only one of `admin_password_secret_version` or `admin_password` can + # be populated. + # @!attribute [rw] admin_password_secret_version + # @return [::String] + # Optional. The resource name of a secret version in Secret Manager which + # contains the database admin user's password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of + # `admin_password_secret_version` or `admin_password` can be populated. + # @!attribute [rw] tde_wallet_password + # @return [::String] + # Optional. The TDE wallet password for the database. + # Note: Only one of `tde_wallet_password_secret_version` or + # `tde_wallet_password` can be populated. + # @!attribute [rw] tde_wallet_password_secret_version + # @return [::String] + # Optional. The resource name of a secret version in Secret Manager which + # contains the TDE wallet password for the database. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of + # `tde_wallet_password_secret_version` or `tde_wallet_password` can be + # populated. + # @!attribute [rw] character_set + # @return [::String] + # Optional. The character set for the database. The default is AL32UTF8. + # @!attribute [rw] ncharacter_set + # @return [::String] + # Optional. The national character set for the database. The default is + # AL16UTF16. + # @!attribute [r] oci_url + # @return [::String] + # Output only. HTTPS link to OCI resources exposed to Customer via UI + # Interface. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the Database was created. + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseProperties] + # Optional. The properties of the Database. + # @!attribute [rw] database_id + # @return [::String] + # Optional. The database ID of the Database. + # @!attribute [rw] db_home_name + # @return [::String] + # Optional. The name of the DbHome resource associated with the Database. + # @!attribute [r] gcp_oracle_zone + # @return [::String] + # Output only. The GCP Oracle zone where the Database is created. + # @!attribute [r] ops_insights_status + # @return [::Google::Cloud::OracleDatabase::V1::Database::OperationsInsightsStatus] + # Output only. The Status of Operations Insights for this Database. + # @!attribute [rw] pluggable_database_id + # @return [::String] + # Optional. The ID of the pluggable database associated with the Database. + # The ID must be unique within the project and location. + # @!attribute [rw] pluggable_database_name + # @return [::String] + # Optional. The pluggable database associated with the Database. The name + # must begin with an alphabetic character and can contain a maximum of thirty + # alphanumeric characters. + class Database + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The Status of Operations Insights for this Database. + module OperationsInsightsStatus + # Default unspecified value. + OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED = 0 + + # Indicates that the operations insights are being enabled. + ENABLING = 1 + + # Indicates that the operations insights are enabled. + ENABLED = 2 + + # Indicates that the operations insights are being disabled. + DISABLING = 3 + + # Indicates that the operations insights are not enabled. + NOT_ENABLED = 4 + + # Indicates that the operations insights failed to enable. + FAILED_ENABLING = 5 + + # Indicates that the operations insights failed to disable. + FAILED_DISABLING = 6 + end + end + + # The properties of a Database. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseProperties::DatabaseLifecycleState] + # Output only. State of the Database. + # @!attribute [rw] db_version + # @return [::String] + # Required. The Oracle Database version. + # @!attribute [rw] db_backup_config + # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig] + # Optional. Backup options for the Database. + # @!attribute [r] database_management_config + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseManagementConfig] + # Output only. The Database Management config. + class DatabaseProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various lifecycle states of the Database. + module DatabaseLifecycleState + # Default unspecified value. + DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in provisioning state. + PROVISIONING = 1 + + # Indicates that the resource is in available state. + AVAILABLE = 2 + + # Indicates that the resource is in updating state. + UPDATING = 3 + + # Indicates that the resource is in backup in progress state. + BACKUP_IN_PROGRESS = 4 + + # Indicates that the resource is in upgrading state. + UPGRADING = 5 + + # Indicates that the resource is in converting state. + CONVERTING = 6 + + # Indicates that the resource is in terminating state. + TERMINATING = 7 + + # Indicates that the resource is in terminated state. + TERMINATED = 8 + + # Indicates that the resource is in restore failed state. + RESTORE_FAILED = 9 + + # Indicates that the resource is in failed state. + FAILED = 10 + end + end + + # Backup Options for the Database. + # @!attribute [rw] auto_backup_enabled + # @return [::Boolean] + # Optional. If set to true, enables automatic backups on the database. + # @!attribute [rw] backup_destination_details + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupDestinationDetails>] + # Optional. Details of the database backup destinations. + # @!attribute [rw] retention_period_days + # @return [::Integer] + # Optional. The number of days an automatic backup is retained before being + # automatically deleted. This value determines the earliest point in time to + # which a database can be restored. Min: 1, Max: 60. + # @!attribute [rw] backup_deletion_policy + # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupDeletionPolicy] + # Optional. This defines when the backups will be deleted after Database + # termination. + # @!attribute [rw] auto_full_backup_day + # @return [::Google::Type::DayOfWeek] + # Optional. The day of the week on which the full backup should be performed + # on the database. If no value is provided, it will default to Sunday. + # @!attribute [rw] auto_full_backup_window + # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupWindow] + # Optional. The window in which the full backup should be performed on the + # database. If no value is provided, the default is anytime. + # @!attribute [rw] auto_incremental_backup_window + # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupWindow] + # Optional. The window in which the incremental backup should be performed on + # the database. If no value is provided, the default is anytime except the + # auto full backup day. + class DbBackupConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The details of the database backup destination. + # @!attribute [rw] type + # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupDestinationType] + # Optional. The type of the database backup destination. + class BackupDestinationDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The type of the database backup destination. + module BackupDestinationType + # Default unspecified value. + BACKUP_DESTINATION_TYPE_UNSPECIFIED = 0 + + # Backup destination type is NFS. + NFS = 1 + + # Backup destination type is Recovery Appliance. + RECOVERY_APPLIANCE = 2 + + # Backup destination type is Object Store. + OBJECT_STORE = 3 + + # Backup destination type is Local. + LOCAL = 4 + + # Backup destination type is DBRS. + DBRS = 5 + end + + # The 2 hour window in which the backup should be performed on the database. + module BackupWindow + # Default unspecified value. + BACKUP_WINDOW_UNSPECIFIED = 0 + + # 12:00 AM - 2:00 AM + SLOT_ONE = 1 + + # 2:00 AM - 4:00 AM + SLOT_TWO = 2 + + # 4:00 AM - 6:00 AM + SLOT_THREE = 3 + + # 6:00 AM - 8:00 AM + SLOT_FOUR = 4 + + # 8:00 AM - 10:00 AM + SLOT_FIVE = 5 + + # 10:00 AM - 12:00 PM + SLOT_SIX = 6 + + # 12:00 PM - 2:00 PM + SLOT_SEVEN = 7 + + # 2:00 PM - 4:00 PM + SLOT_EIGHT = 8 + + # 4:00 PM - 6:00 PM + SLOT_NINE = 9 + + # 6:00 PM - 8:00 PM + SLOT_TEN = 10 + + # 8:00 PM - 10:00 PM + SLOT_ELEVEN = 11 + + # 10:00 PM - 12:00 AM + SLOT_TWELVE = 12 + end + + # This defines when the backups will be deleted after Database termination. + module BackupDeletionPolicy + # Default unspecified value. + BACKUP_DELETION_POLICY_UNSPECIFIED = 0 + + # Keeps the backup for predefined time + # i.e. 72 hours and then delete permanently. + DELETE_IMMEDIATELY = 1 + + # Keeps the backups as per the policy defined + # for database backups. + DELETE_AFTER_RETENTION_PERIOD = 2 + end + end + + # The request for `Database.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Database resource in the following format: + # projects/\\{project}/locations/\\{region}/databases/\\{database} + class GetDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `Database.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource name in the following format: + # projects/\\{project}/locations/\\{region} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 Databases will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. list for + # container databases is supported only with a valid dbSystem (full resource + # name) filter in this format: + # `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"` + class ListDatabasesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `Database.List`. + # @!attribute [rw] databases + # @return [::Array<::Google::Cloud::OracleDatabase::V1::Database>] + # The list of Databases. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListDatabasesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb new file mode 100644 index 000000000000..d0195f87c09c --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb @@ -0,0 +1,99 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Database character set resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Database Character Set resource in the + # following format: + # projects/\\{project}/locations/\\{region}/databaseCharacterSets/\\{database_character_set} + # @!attribute [r] character_set_type + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet::CharacterSetType] + # Output only. The character set type for the Database. + # @!attribute [r] character_set + # @return [::String] + # Output only. The character set name for the Database which is the ID in the + # resource name. + class DatabaseCharacterSet + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of character set a Database can have. + module CharacterSetType + # Character set type is not specified. + CHARACTER_SET_TYPE_UNSPECIFIED = 0 + + # Character set type is set to database. + DATABASE = 1 + + # Character set type is set to national. + NATIONAL = 2 + end + end + + # The request for `DatabaseCharacterSet.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for DatabaseCharacterSets in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of DatabaseCharacterSets to return. The + # service may return fewer than this value. If unspecified, at most 50 + # DatabaseCharacterSets will be returned. The maximum value is 1000; values + # above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # `ListDatabaseCharacterSets` must match the call that provided the page + # token. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. Only the + # **character_set_type** field is supported in the following format: + # `character_set_type="{characterSetType}"`. Accepted values include + # `DATABASE` and `NATIONAL`. + class ListDatabaseCharacterSetsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `DatabaseCharacterSet.List`. + # @!attribute [rw] database_character_sets + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # The list of DatabaseCharacterSets. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListDatabaseCharacterSetsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_node.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_node.rb new file mode 100644 index 000000000000..703377ae9c08 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_node.rb @@ -0,0 +1,106 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the database node resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the database node resource in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}/dbNodes/\\{db_node} + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::DbNodeProperties] + # Optional. Various properties of the database node. + class DbNode + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Various properties and settings associated with Db node. + # @!attribute [r] ocid + # @return [::String] + # Output only. OCID of database node. + # @!attribute [rw] ocpu_count + # @return [::Integer] + # Optional. OCPU count per database node. + # @!attribute [rw] memory_size_gb + # @return [::Integer] + # Memory allocated in GBs. + # @!attribute [rw] db_node_storage_size_gb + # @return [::Integer] + # Optional. Local storage per database node. + # @!attribute [rw] db_server_ocid + # @return [::String] + # Optional. Database server OCID. + # @!attribute [rw] hostname + # @return [::String] + # Optional. DNS + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::DbNodeProperties::State] + # Output only. State of the database node. + # @!attribute [rw] total_cpu_core_count + # @return [::Integer] + # Total CPU core count of the database node. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the database node was created. + class DbNodeProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various lifecycle states of the database node. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in provisioning state. + PROVISIONING = 1 + + # Indicates that the resource is in available state. + AVAILABLE = 2 + + # Indicates that the resource is in updating state. + UPDATING = 3 + + # Indicates that the resource is in stopping state. + STOPPING = 4 + + # Indicates that the resource is in stopped state. + STOPPED = 5 + + # Indicates that the resource is in starting state. + STARTING = 6 + + # Indicates that the resource is in terminating state. + TERMINATING = 7 + + # Indicates that the resource is in terminated state. + TERMINATED = 8 + + # Indicates that the resource is in failed state. + FAILED = 9 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_server.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_server.rb new file mode 100644 index 000000000000..6a2d10c0e8c4 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_server.rb @@ -0,0 +1,100 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the database server resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the database server resource with the format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}/dbServers/\\{db_server} + # @!attribute [rw] display_name + # @return [::String] + # Optional. User friendly name for this resource. + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::DbServerProperties] + # Optional. Various properties of the database server. + class DbServer + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Various properties and settings associated with Exadata database server. + # @!attribute [r] ocid + # @return [::String] + # Output only. OCID of database server. + # @!attribute [rw] ocpu_count + # @return [::Integer] + # Optional. OCPU count per database. + # @!attribute [rw] max_ocpu_count + # @return [::Integer] + # Optional. Maximum OCPU count per database. + # @!attribute [rw] memory_size_gb + # @return [::Integer] + # Optional. Memory allocated in GBs. + # @!attribute [rw] max_memory_size_gb + # @return [::Integer] + # Optional. Maximum memory allocated in GBs. + # @!attribute [rw] db_node_storage_size_gb + # @return [::Integer] + # Optional. Local storage per VM. + # @!attribute [rw] max_db_node_storage_size_gb + # @return [::Integer] + # Optional. Maximum local storage per VM. + # @!attribute [rw] vm_count + # @return [::Integer] + # Optional. Vm count per database. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::DbServerProperties::State] + # Output only. State of the database server. + # @!attribute [r] db_node_ids + # @return [::Array<::String>] + # Output only. OCID of database nodes associated with the database server. + class DbServerProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various lifecycle states of the database server. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in creating state. + CREATING = 1 + + # Indicates that the resource is in available state. + AVAILABLE = 2 + + # Indicates that the resource is in unavailable state. + UNAVAILABLE = 3 + + # Indicates that the resource is in deleting state. + DELETING = 4 + + # Indicates that the resource is in deleted state. + DELETED = 5 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb new file mode 100644 index 000000000000..9b7d961a3237 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb @@ -0,0 +1,386 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the DbSystem (BaseDB) resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the DbSystem resource in the following format: + # projects/\\{project}/locations/\\{region}/dbSystems/\\{db_system} + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties] + # Optional. The properties of the DbSystem. + # @!attribute [rw] gcp_oracle_zone + # @return [::String] + # Optional. The GCP Oracle zone where Oracle DbSystem is hosted. + # Example: us-east4-b-r2. + # If not specified, the system will pick a zone based on availability. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels or tags associated with the DbSystem. + # @!attribute [rw] odb_network + # @return [::String] + # Optional. The name of the OdbNetwork associated with the DbSystem. + # Format: projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} + # It is optional but if specified, this should match the parent ODBNetwork of + # the OdbSubnet. + # @!attribute [rw] odb_subnet + # @return [::String] + # Required. The name of the OdbSubnet associated with the DbSystem for IP + # allocation. Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. The ID of the subscription entitlement associated with the + # DbSystem + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name for the System db. The name does not have to + # be unique within your project. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the DbSystem was created. + # @!attribute [r] oci_url + # @return [::String] + # Output only. HTTPS link to OCI resources exposed to Customer via UI + # Interface. + class DbSystem + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The properties of a DbSystem. + # @!attribute [rw] shape + # @return [::String] + # Required. Shape of DB System. + # @!attribute [rw] compute_count + # @return [::Integer] + # Required. The number of CPU cores to enable for the DbSystem. + # @!attribute [rw] initial_data_storage_size_gb + # @return [::Integer] + # Required. The initial data storage size in GB. + # @!attribute [rw] database_edition + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties::DbSystemDatabaseEdition] + # Required. The database edition of the DbSystem. + # @!attribute [rw] license_model + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties::LicenseModel] + # Required. The license model of the DbSystem. + # @!attribute [rw] ssh_public_keys + # @return [::Array<::String>] + # Required. SSH public keys to be stored with the DbSystem. + # @!attribute [rw] hostname_prefix + # @return [::String] + # Optional. Prefix for DB System host names. + # @!attribute [r] hostname + # @return [::String] + # Output only. The hostname of the DbSystem. + # @!attribute [rw] private_ip + # @return [::String] + # Optional. The private IP address of the DbSystem. + # @!attribute [rw] data_collection_options + # @return [::Google::Cloud::OracleDatabase::V1::DataCollectionOptionsDbSystem] + # Optional. Data collection options for diagnostics. + # @!attribute [rw] time_zone + # @return [::Google::Type::TimeZone] + # Optional. Time zone of the DbSystem. + # @!attribute [r] lifecycle_state + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties::DbSystemLifecycleState] + # Output only. State of the DbSystem. + # @!attribute [rw] db_home + # @return [::Google::Cloud::OracleDatabase::V1::DbHome] + # Optional. Details for creating a Database Home. + # @!attribute [r] ocid + # @return [::String] + # Output only. OCID of the DbSystem. + # @!attribute [rw] memory_size_gb + # @return [::Integer] + # Optional. The memory size in GB. + # @!attribute [rw] compute_model + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties::ComputeModel] + # Optional. The compute model of the DbSystem. + # @!attribute [rw] data_storage_size_gb + # @return [::Integer] + # Optional. The data storage size in GB that is currently available to + # DbSystems. + # @!attribute [rw] reco_storage_size_gb + # @return [::Integer] + # Optional. The reco/redo storage size in GB. + # @!attribute [rw] domain + # @return [::String] + # Optional. The host domain name of the DbSystem. + # @!attribute [rw] node_count + # @return [::Integer] + # Optional. The number of nodes in the DbSystem. + # @!attribute [rw] db_system_options + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemOptions] + # Optional. The options for the DbSystem. + class DbSystemProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The editions available for DbSystem. + module DbSystemDatabaseEdition + # The database edition is unspecified. + DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED = 0 + + # The database edition is Standard. + STANDARD_EDITION = 1 + + # The database edition is Enterprise. + ENTERPRISE_EDITION = 2 + + # The database edition is Enterprise Edition. + ENTERPRISE_EDITION_HIGH_PERFORMANCE = 3 + end + + # The license model of the DbSystem. + module LicenseModel + # The license model is unspecified. + LICENSE_MODEL_UNSPECIFIED = 0 + + # The license model is included. + LICENSE_INCLUDED = 1 + + # The license model is bring your own license. + BRING_YOUR_OWN_LICENSE = 2 + end + + # The various lifecycle states of the DbSystem. + module DbSystemLifecycleState + # Default unspecified value. + DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in provisioning state. + PROVISIONING = 1 + + # Indicates that the resource is in available state. + AVAILABLE = 2 + + # Indicates that the resource is in updating state. + UPDATING = 3 + + # Indicates that the resource is in terminating state. + TERMINATING = 4 + + # Indicates that the resource is in terminated state. + TERMINATED = 5 + + # Indicates that the resource is in failed state. + FAILED = 6 + + # Indicates that the resource has been migrated. + MIGRATED = 7 + + # Indicates that the resource is in maintenance in progress state. + MAINTENANCE_IN_PROGRESS = 8 + + # Indicates that the resource needs attention. + NEEDS_ATTENTION = 9 + + # Indicates that the resource is upgrading. + UPGRADING = 10 + end + + # The compute model of the DbSystem. + module ComputeModel + # The compute model is unspecified. + COMPUTE_MODEL_UNSPECIFIED = 0 + + # The compute model is virtual. + ECPU = 1 + + # The compute model is physical. + OCPU = 2 + end + end + + # Data collection options for DbSystem. + # @!attribute [rw] is_diagnostics_events_enabled + # @return [::Boolean] + # Optional. Indicates whether to enable data collection for diagnostics. + # @!attribute [rw] is_incident_logs_enabled + # @return [::Boolean] + # Optional. Indicates whether to enable incident logs and trace collection. + class DataCollectionOptionsDbSystem + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Details of the DbSystem Options. + # @!attribute [rw] storage_management + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemOptions::StorageManagement] + # Optional. The storage option used in DB system. + class DbSystemOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The storage option used in DB system. + module StorageManagement + # The storage management is unspecified. + STORAGE_MANAGEMENT_UNSPECIFIED = 0 + + # Automatic storage management. This option is not supported. Only LVM is + # supported. + ASM = 1 + + # Logical Volume management. + LVM = 2 + end + end + + # Details of the Database Home resource. + # @!attribute [rw] display_name + # @return [::String] + # Optional. The display name for the Database Home. The name does not have to + # be unique within your project. + # @!attribute [rw] db_version + # @return [::String] + # Required. A valid Oracle Database version. For a list of supported + # versions, use the ListDbVersions operation. + # @!attribute [rw] database + # @return [::Google::Cloud::OracleDatabase::V1::Database] + # Required. The Database resource. + # @!attribute [rw] is_unified_auditing_enabled + # @return [::Boolean] + # Optional. Whether unified auditing is enabled for the Database Home. + class DbHome + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbSystem.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The value for parent of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] db_system_id + # @return [::String] + # Required. The ID of the DbSystem to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @!attribute [rw] db_system + # @return [::Google::Cloud::OracleDatabase::V1::DbSystem] + # Required. The resource being created. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateDbSystemRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbSystem.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteDbSystemRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbSystem.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the DbSystem in the following format: + # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. + class GetDbSystemRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbSystem.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for DbSystems in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 DbSystems will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. + class ListDbSystemsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `DbSystem.List`. + # @!attribute [rw] db_systems + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbSystem>] + # The list of DbSystems. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListDbSystemsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb new file mode 100644 index 000000000000..657094ae508b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb @@ -0,0 +1,126 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Summary of the DbSystem initial storage size. + # @!attribute [r] name + # @return [::String] + # Output only. The name of the resource. + # @!attribute [r] properties + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSizeProperties] + # Output only. The properties of the DbSystem initial storage size summary. + class DbSystemInitialStorageSize + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of a DbSystem initial storage size summary. + # @!attribute [r] storage_management + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSizeProperties::StorageManagement] + # Output only. The storage option used in DB system. + # @!attribute [r] shape_type + # @return [::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSizeProperties::ShapeType] + # Output only. VM shape platform type + # @!attribute [r] storage_size_details + # @return [::Array<::Google::Cloud::OracleDatabase::V1::StorageSizeDetails>] + # Output only. List of storage disk details. + # @!attribute [r] launch_from_backup_storage_size_details + # @return [::Array<::Google::Cloud::OracleDatabase::V1::StorageSizeDetails>] + # Output only. List of storage disk details available for launches from + # backup. + class DbSystemInitialStorageSizeProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The storage option used in the DB system. + module StorageManagement + # Unspecified storage management. + STORAGE_MANAGEMENT_UNSPECIFIED = 0 + + # Automatic Storage Management. + ASM = 1 + + # Logical Volume Management. + LVM = 2 + end + + # The shape type of the DB system. + module ShapeType + # Unspecified shape type. + SHAPE_TYPE_UNSPECIFIED = 0 + + # Standard X86. + STANDARD_X86 = 1 + end + end + + # The initial storage size, in gigabytes, that is applicable for virtual + # machine DBSystem. + # @!attribute [r] data_storage_size_in_gbs + # @return [::Integer] + # Output only. The data storage size, in gigabytes, that is applicable for + # virtual machine DBSystem. + # @!attribute [r] reco_storage_size_in_gbs + # @return [::Integer] + # Output only. The RECO/REDO storage size, in gigabytes, that is applicable + # for virtual machine DBSystem. + class StorageSizeDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbSystemInitialStorageSizes.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the DbSystemInitialStorageSize resource with + # the format: projects/\\{project}/locations/\\{location} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be + # returned. The maximum value is 1000; values above 1000 will be reset to + # 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + class ListDbSystemInitialStorageSizesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `DbSystemInitialStorageSizes.List`. + # @!attribute [rw] db_system_initial_storage_sizes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] + # The list of DbSystemInitialStorageSizes. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListDbSystemInitialStorageSizesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb new file mode 100644 index 000000000000..b40bb777ec36 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb @@ -0,0 +1,70 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Database System Shapes resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Database System Shape resource with the format: + # projects/\\{project}/locations/\\{region}/dbSystemShapes/\\{db_system_shape} + # @!attribute [rw] shape + # @return [::String] + # Optional. shape + # @!attribute [rw] min_node_count + # @return [::Integer] + # Optional. Minimum number of database servers. + # @!attribute [rw] max_node_count + # @return [::Integer] + # Optional. Maximum number of database servers. + # @!attribute [rw] min_storage_count + # @return [::Integer] + # Optional. Minimum number of storage servers. + # @!attribute [rw] max_storage_count + # @return [::Integer] + # Optional. Maximum number of storage servers. + # @!attribute [rw] available_core_count_per_node + # @return [::Integer] + # Optional. Number of cores per node. + # @!attribute [rw] available_memory_per_node_gb + # @return [::Integer] + # Optional. Memory per database server node in gigabytes. + # @!attribute [rw] available_data_storage_tb + # @return [::Integer] + # Optional. Storage per storage server in terabytes. + # @!attribute [rw] min_core_count_per_node + # @return [::Integer] + # Optional. Minimum core count per node. + # @!attribute [rw] min_memory_per_node_gb + # @return [::Integer] + # Optional. Minimum memory per node in gigabytes. + # @!attribute [rw] min_db_node_storage_per_node_gb + # @return [::Integer] + # Optional. Minimum node storage per database server in gigabytes. + class DbSystemShape + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_version.rb new file mode 100644 index 000000000000..f01deb18387c --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_version.rb @@ -0,0 +1,102 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # A valid Oracle Database version. + # @!attribute [r] name + # @return [::String] + # Output only. The name of the DbVersion resource in the following format: + # projects/\\{project}/locations/\\{region}/dbVersions/\\{db_version} + # @!attribute [r] properties + # @return [::Google::Cloud::OracleDatabase::V1::DbVersionProperties] + # Output only. The properties of the DbVersion. + class DbVersion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of a DbVersion. + # @!attribute [r] version + # @return [::String] + # Output only. A valid Oracle Database version. + # @!attribute [r] is_latest_for_major_version + # @return [::Boolean] + # Output only. True if this version of the Oracle Database software is the + # latest version for a release. + # @!attribute [r] supports_pdb + # @return [::Boolean] + # Output only. True if this version of the Oracle Database software supports + # pluggable databases. + # @!attribute [r] is_preview_db_version + # @return [::Boolean] + # Output only. True if this version of the Oracle Database software is the + # preview version. + # @!attribute [r] is_upgrade_supported + # @return [::Boolean] + # Output only. True if this version of the Oracle Database software is + # supported for Upgrade. + class DbVersionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbVersions.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the DbVersion resource with the + # format: projects/\\{project}/locations/\\{location} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 DbVersions will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. Filter expression that matches a subset of the DbVersions to + # show. The supported filter for dbSystem creation is `db_system_shape = + # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no + # filter is provided, all DbVersions will be returned. + class ListDbVersionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `DbVersions.List`. + # @!attribute [rw] db_versions + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # The list of DbVersions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListDbVersionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb new file mode 100644 index 000000000000..ef95f7d5aaf8 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb @@ -0,0 +1,84 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Entitlement resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Entitlement resource with the format: + # projects/\\{project}/locations/\\{region}/entitlements/\\{entitlement} + # @!attribute [rw] cloud_account_details + # @return [::Google::Cloud::OracleDatabase::V1::CloudAccountDetails] + # Details of the OCI Cloud Account. + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. Google Cloud Marketplace order ID (aka entitlement ID) + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::Entitlement::State] + # Output only. Entitlement State. + class Entitlement + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various lifecycle states of the subscription. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # Account not linked. + ACCOUNT_NOT_LINKED = 1 + + # Account is linked but not active. + ACCOUNT_NOT_ACTIVE = 2 + + # Entitlement and Account are active. + ACTIVE = 3 + + # Account is suspended. + ACCOUNT_SUSPENDED = 4 + + # Entitlement is not approved in private marketplace. + NOT_APPROVED_IN_PRIVATE_MARKETPLACE = 5 + end + end + + # Details of the OCI Cloud Account. + # @!attribute [r] cloud_account + # @return [::String] + # Output only. OCI account name. + # @!attribute [r] cloud_account_home_region + # @return [::String] + # Output only. OCI account home region. + # @!attribute [r] link_existing_account_uri + # @return [::String] + # Output only. URL to link an existing account. + # @!attribute [r] account_creation_uri + # @return [::String] + # Output only. URL to create a new account and link. + class CloudAccountDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb new file mode 100644 index 000000000000..d63ae632986e --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb @@ -0,0 +1,276 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Represents CloudExadataInfrastructure resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Exadata Infrastructure resource with the + # format: + # projects/\\{project}/locations/\\{region}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure} + # @!attribute [rw] display_name + # @return [::String] + # Optional. User friendly name for this resource. + # @!attribute [rw] gcp_oracle_zone + # @return [::String] + # Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is + # hosted. Example: us-east4-b-r2. If not specified, the system will pick a + # zone based on availability. + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. Entitlement ID of the private offer against which this + # infrastructure resource is provisioned. + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructureProperties] + # Optional. Various properties of the infra. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Labels or tags associated with the resource. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the Exadata Infrastructure was created. + class CloudExadataInfrastructure + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Various properties of Exadata Infrastructure. + # @!attribute [r] ocid + # @return [::String] + # Output only. OCID of created infra. + # https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + # @!attribute [rw] compute_count + # @return [::Integer] + # Optional. The number of compute servers for the Exadata Infrastructure. + # @!attribute [rw] storage_count + # @return [::Integer] + # Optional. The number of Cloud Exadata storage servers for the Exadata + # Infrastructure. + # @!attribute [rw] total_storage_size_gb + # @return [::Integer] + # Optional. The total storage allocated to the Exadata Infrastructure + # resource, in gigabytes (GB). + # @!attribute [r] available_storage_size_gb + # @return [::Integer] + # Output only. The available storage can be allocated to the Exadata + # Infrastructure resource, in gigabytes (GB). + # @!attribute [rw] maintenance_window + # @return [::Google::Cloud::OracleDatabase::V1::MaintenanceWindow] + # Optional. Maintenance window for repair. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructureProperties::State] + # Output only. The current lifecycle state of the Exadata Infrastructure. + # @!attribute [rw] shape + # @return [::String] + # Required. The shape of the Exadata Infrastructure. The shape determines the + # amount of CPU, storage, and memory resources allocated to the instance. + # @!attribute [r] oci_url + # @return [::String] + # Output only. Deep link to the OCI console to view this resource. + # @!attribute [r] cpu_count + # @return [::Integer] + # Output only. The number of enabled CPU cores. + # @!attribute [r] max_cpu_count + # @return [::Integer] + # Output only. The total number of CPU cores available. + # @!attribute [r] memory_size_gb + # @return [::Integer] + # Output only. The memory allocated in GBs. + # @!attribute [r] max_memory_gb + # @return [::Integer] + # Output only. The total memory available in GBs. + # @!attribute [r] db_node_storage_size_gb + # @return [::Integer] + # Output only. The local node storage allocated in GBs. + # @!attribute [r] max_db_node_storage_size_gb + # @return [::Integer] + # Output only. The total local node storage available in GBs. + # @!attribute [r] data_storage_size_tb + # @return [::Float] + # Output only. Size, in terabytes, of the DATA disk group. + # @!attribute [r] max_data_storage_tb + # @return [::Float] + # Output only. The total available DATA disk group size. + # @!attribute [r] activated_storage_count + # @return [::Integer] + # Output only. The requested number of additional storage servers activated + # for the Exadata Infrastructure. + # @!attribute [r] additional_storage_count + # @return [::Integer] + # Output only. The requested number of additional storage servers for the + # Exadata Infrastructure. + # @!attribute [r] db_server_version + # @return [::String] + # Output only. The software version of the database servers (dom0) in the + # Exadata Infrastructure. + # @!attribute [r] storage_server_version + # @return [::String] + # Output only. The software version of the storage servers (cells) in the + # Exadata Infrastructure. + # @!attribute [r] next_maintenance_run_id + # @return [::String] + # Output only. The OCID of the next maintenance run. + # @!attribute [r] next_maintenance_run_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time when the next maintenance run will occur. + # @!attribute [r] next_security_maintenance_run_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time when the next security maintenance run will occur. + # @!attribute [rw] customer_contacts + # @return [::Array<::Google::Cloud::OracleDatabase::V1::CustomerContact>] + # Optional. The list of customer contacts. + # @!attribute [r] monthly_storage_server_version + # @return [::String] + # Output only. The monthly software version of the storage servers (cells) + # in the Exadata Infrastructure. Example: 20.1.15 + # @!attribute [r] monthly_db_server_version + # @return [::String] + # Output only. The monthly software version of the database servers (dom0) + # in the Exadata Infrastructure. Example: 20.1.15 + # @!attribute [r] compute_model + # @return [::Google::Cloud::OracleDatabase::V1::ComputeModel] + # Output only. The compute model of the Exadata Infrastructure. + # @!attribute [r] database_server_type + # @return [::String] + # Output only. The database server type of the Exadata Infrastructure. + # @!attribute [r] storage_server_type + # @return [::String] + # Output only. The storage server type of the Exadata Infrastructure. + class CloudExadataInfrastructureProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various lifecycle states of the Exadata Infrastructure. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # The Exadata Infrastructure is being provisioned. + PROVISIONING = 1 + + # The Exadata Infrastructure is available for use. + AVAILABLE = 2 + + # The Exadata Infrastructure is being updated. + UPDATING = 3 + + # The Exadata Infrastructure is being terminated. + TERMINATING = 4 + + # The Exadata Infrastructure is terminated. + TERMINATED = 5 + + # The Exadata Infrastructure is in failed state. + FAILED = 6 + + # The Exadata Infrastructure is in maintenance. + MAINTENANCE_IN_PROGRESS = 7 + end + end + + # Maintenance window as defined by Oracle. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow + # @!attribute [rw] preference + # @return [::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::MaintenanceWindowPreference] + # Optional. The maintenance window scheduling preference. + # @!attribute [rw] months + # @return [::Array<::Google::Type::Month>] + # Optional. Months during the year when maintenance should be performed. + # @!attribute [rw] weeks_of_month + # @return [::Array<::Integer>] + # Optional. Weeks during the month when maintenance should be performed. + # Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a + # duration of 7 days. Weeks start and end based on calendar dates, not days + # of the week. + # @!attribute [rw] days_of_week + # @return [::Array<::Google::Type::DayOfWeek>] + # Optional. Days during the week when maintenance should be performed. + # @!attribute [rw] hours_of_day + # @return [::Array<::Integer>] + # Optional. The window of hours during the day when maintenance should be + # performed. The window is a 4 hour slot. Valid values are: + # 0 - represents time slot 0:00 - 3:59 UTC + # 4 - represents time slot 4:00 - 7:59 UTC + # 8 - represents time slot 8:00 - 11:59 UTC + # 12 - represents time slot 12:00 - 15:59 UTC + # 16 - represents time slot 16:00 - 19:59 UTC + # 20 - represents time slot 20:00 - 23:59 UTC + # @!attribute [rw] lead_time_week + # @return [::Integer] + # Optional. Lead time window allows user to set a lead time to prepare for a + # down time. The lead time is in weeks and valid value is between 1 to 4. + # @!attribute [rw] patching_mode + # @return [::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::PatchingMode] + # Optional. Cloud CloudExadataInfrastructure node patching method, either + # "ROLLING" or "NONROLLING". Default value is ROLLING. + # @!attribute [rw] custom_action_timeout_mins + # @return [::Integer] + # Optional. Determines the amount of time the system will wait before the + # start of each database server patching operation. Custom action timeout is + # in minutes and valid value is between 15 to 120 (inclusive). + # @!attribute [rw] is_custom_action_timeout_enabled + # @return [::Boolean] + # Optional. If true, enables the configuration of a custom action timeout + # (waiting period) between database server patching operations. + class MaintenanceWindow + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Maintenance window preference. + module MaintenanceWindowPreference + # Default unspecified value. + MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED = 0 + + # Custom preference. + CUSTOM_PREFERENCE = 1 + + # No preference. + NO_PREFERENCE = 2 + end + + # Patching mode. + module PatchingMode + # Default unspecified value. + PATCHING_MODE_UNSPECIFIED = 0 + + # Updates the Cloud Exadata database server hosts in a rolling fashion. + ROLLING = 1 + + # The non-rolling maintenance method first updates your storage servers at + # the same time, then your database servers at the same time. + NON_ROLLING = 2 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb new file mode 100644 index 000000000000..d928f23f2e96 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # 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/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the ExadbVmCluster resource in the following + # format: + # projects/\\{project}/locations/\\{region}/exadbVmClusters/\\{exadb_vm_cluster} + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterProperties] + # Required. The properties of the ExadbVmCluster. + # @!attribute [r] gcp_oracle_zone + # @return [::String] + # Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is + # hosted. Example: us-east4-b-r2. During creation, the system will pick the + # zone assigned to the ExascaleDbStorageVault. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels or tags associated with the ExadbVmCluster. + # @!attribute [rw] odb_network + # @return [::String] + # Optional. Immutable. The name of the OdbNetwork associated with the + # ExadbVmCluster. Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} It is + # optional but if specified, this should match the parent ODBNetwork of the + # OdbSubnet. + # @!attribute [rw] odb_subnet + # @return [::String] + # Required. Immutable. The name of the OdbSubnet associated with the + # ExadbVmCluster for IP allocation. Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} + # @!attribute [rw] backup_odb_subnet + # @return [::String] + # Required. Immutable. The name of the backup OdbSubnet associated with the + # ExadbVmCluster. Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} + # @!attribute [rw] display_name + # @return [::String] + # Required. Immutable. The display name for the ExadbVmCluster. The name does + # not have to be unique within your project. The name must be 1-255 + # characters long and can only contain alphanumeric characters. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the ExadbVmCluster was created. + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. The ID of the subscription entitlement associated with the + # ExadbVmCluster. + class ExadbVmCluster + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The storage allocation for the exadbvmcluster, in gigabytes (GB). + # @!attribute [rw] size_in_gbs_per_node + # @return [::Integer] + # Required. The storage allocation for the exadbvmcluster per node, in + # gigabytes (GB). This field is used to calculate the total storage + # allocation for the exadbvmcluster. + class ExadbVmClusterStorageDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of an ExadbVmCluster. + # @!attribute [rw] cluster_name + # @return [::String] + # Optional. Immutable. The cluster name for Exascale vm cluster. The cluster + # name must begin with an alphabetic character and may contain hyphens(-) but + # can not contain underscores(_). It should be not more than 11 characters + # and is not case sensitive. OCI Cluster name. + # @!attribute [rw] grid_image_id + # @return [::String] + # Required. Immutable. Grid Infrastructure Version. + # @!attribute [rw] node_count + # @return [::Integer] + # Required. The number of nodes/VMs in the ExadbVmCluster. + # @!attribute [rw] enabled_ecpu_count_per_node + # @return [::Integer] + # Required. Immutable. The number of ECPUs enabled per node for an exadata vm + # cluster on exascale infrastructure. + # @!attribute [rw] additional_ecpu_count_per_node + # @return [::Integer] + # Optional. Immutable. The number of additional ECPUs per node for an Exadata + # VM cluster on exascale infrastructure. + # @!attribute [rw] vm_file_system_storage + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterStorageDetails] + # Required. Immutable. Total storage details for the ExadbVmCluster. + # @!attribute [rw] license_model + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterProperties::LicenseModel] + # Optional. Immutable. The license type of the ExadbVmCluster. + # @!attribute [rw] exascale_db_storage_vault + # @return [::String] + # Required. Immutable. The name of ExascaleDbStorageVault associated with the + # ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a + # new one can be created during the ExadbVmCluster creation (requires + # storage_vault_properties to be set). + # Format: + # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault} + # @!attribute [rw] hostname_prefix + # @return [::String] + # Required. Immutable. Prefix for VM cluster host names. + # @!attribute [r] hostname + # @return [::String] + # Output only. The hostname of the ExadbVmCluster. + # @!attribute [rw] ssh_public_keys + # @return [::Array<::String>] + # Required. Immutable. The SSH public keys for the ExadbVmCluster. + # @!attribute [rw] data_collection_options + # @return [::Google::Cloud::OracleDatabase::V1::DataCollectionOptionsCommon] + # Optional. Immutable. Indicates user preference for data collection options. + # @!attribute [rw] time_zone + # @return [::Google::Type::TimeZone] + # Optional. Immutable. The time zone of the ExadbVmCluster. + # @!attribute [r] lifecycle_state + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterProperties::ExadbVmClusterLifecycleState] + # Output only. State of the cluster. + # @!attribute [rw] shape_attribute + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterProperties::ShapeAttribute] + # Required. Immutable. The shape attribute of the VM cluster. The type of + # Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE + # which supports Oracle Database 23ai and later + # @!attribute [r] memory_size_gb + # @return [::Integer] + # Output only. Memory per VM (GB) (Read-only): Shows the amount of memory + # allocated to each VM. Memory is calculated based on 2.75 GB per Total + # ECPUs. + # @!attribute [rw] scan_listener_port_tcp + # @return [::Integer] + # Optional. Immutable. SCAN listener port - TCP + # @!attribute [r] oci_uri + # @return [::String] + # Output only. Deep link to the OCI console to view this resource. + # @!attribute [r] gi_version + # @return [::String] + # Output only. The Oracle Grid Infrastructure (GI) software version. + class ExadbVmClusterProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The Oracle license model that applies to the ExaScale VM cluster + module LicenseModel + # Unspecified. + LICENSE_MODEL_UNSPECIFIED = 0 + + # Default is license included. + LICENSE_INCLUDED = 1 + + # Bring your own license. + BRING_YOUR_OWN_LICENSE = 2 + end + + # The various lifecycle states of the VM cluster. + module ExadbVmClusterLifecycleState + # Default unspecified value. + EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in provisioning state. + PROVISIONING = 1 + + # Indicates that the resource is in available state. + AVAILABLE = 2 + + # Indicates that the resource is in updating state. + UPDATING = 3 + + # Indicates that the resource is in terminating state. + TERMINATING = 4 + + # Indicates that the resource is in terminated state. + TERMINATED = 5 + + # Indicates that the resource is in failed state. + FAILED = 6 + + # Indicates that the resource is in maintenance in progress state. + MAINTENANCE_IN_PROGRESS = 7 + end + + # The shape attribute of the VM cluster. The type of Exascale storage used + # for Exadata VM cluster. The default is SMART_STORAGE which supports Oracle + # Database 23ai and later + module ShapeAttribute + # Default unspecified value. + SHAPE_ATTRIBUTE_UNSPECIFIED = 0 + + # Indicates that the resource is in smart storage. + SMART_STORAGE = 1 + + # Indicates that the resource is in block storage. + BLOCK_STORAGE = 2 + end + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb new file mode 100644 index 000000000000..53e236eb9690 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb @@ -0,0 +1,275 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # ExascaleDbStorageVault represents a storage vault exadb vm cluster resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The resource name of the ExascaleDbStorageVault. + # Format: + # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault} + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name for the ExascaleDbStorageVault. The name does + # not have to be unique within your project. The name must be 1-255 + # characters long and can only contain alphanumeric characters. + # @!attribute [rw] gcp_oracle_zone + # @return [::String] + # Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is + # hosted. Example: us-east4-b-r2. If not specified, the system will pick a + # zone based on availability. + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVaultProperties] + # Required. The properties of the ExascaleDbStorageVault. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time when the ExascaleDbStorageVault was created. + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. The ID of the subscription entitlement associated with the + # ExascaleDbStorageVault. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels or tags associated with the ExascaleDbStorageVault. + class ExascaleDbStorageVault + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The properties of the ExascaleDbStorageVault. + # next ID: 12 + # @!attribute [r] ocid + # @return [::String] + # Output only. The OCID for the ExascaleDbStorageVault. + # @!attribute [r] time_zone + # @return [::Google::Type::TimeZone] + # Output only. The time zone of the ExascaleDbStorageVault. + # @!attribute [rw] exascale_db_storage_details + # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageDetails] + # Required. The storage details of the ExascaleDbStorageVault. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVaultProperties::State] + # Output only. The state of the ExascaleDbStorageVault. + # @!attribute [rw] description + # @return [::String] + # Optional. The description of the ExascaleDbStorageVault. + # @!attribute [r] vm_cluster_ids + # @return [::Array<::String>] + # Output only. The list of VM cluster OCIDs associated with the + # ExascaleDbStorageVault. + # @!attribute [r] vm_cluster_count + # @return [::Integer] + # Output only. The number of VM clusters associated with the + # ExascaleDbStorageVault. + # @!attribute [rw] additional_flash_cache_percent + # @return [::Integer] + # Optional. The size of additional flash cache in percentage of high capacity + # database storage. + # @!attribute [r] oci_uri + # @return [::String] + # Output only. Deep link to the OCI console to view this resource. + # @!attribute [r] attached_shape_attributes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVaultProperties::ShapeAttribute>] + # Output only. The shape attributes of the VM clusters attached to the + # ExascaleDbStorageVault. + # @!attribute [r] available_shape_attributes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVaultProperties::ShapeAttribute>] + # Output only. The shape attributes available for the VM clusters to be + # attached to the ExascaleDbStorageVault. + class ExascaleDbStorageVaultProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The state of the ExascaleDbStorageVault. + module State + # The state of the ExascaleDbStorageVault is unspecified. + STATE_UNSPECIFIED = 0 + + # The ExascaleDbStorageVault is being provisioned. + PROVISIONING = 1 + + # The ExascaleDbStorageVault is available. + AVAILABLE = 2 + + # The ExascaleDbStorageVault is being updated. + UPDATING = 3 + + # The ExascaleDbStorageVault is being deleted. + TERMINATING = 4 + + # The ExascaleDbStorageVault has been deleted. + TERMINATED = 5 + + # The ExascaleDbStorageVault has failed. + FAILED = 6 + end + + # The shape attribute of the VM clusters attached to the + # ExascaleDbStorageVault. + module ShapeAttribute + # Default unspecified value. + SHAPE_ATTRIBUTE_UNSPECIFIED = 0 + + # Indicates that the resource is in smart storage. + SMART_STORAGE = 1 + + # Indicates that the resource is in block storage. + BLOCK_STORAGE = 2 + end + end + + # The storage details of the ExascaleDbStorageVault. + # @!attribute [r] available_size_gbs + # @return [::Integer] + # Output only. The available storage capacity for the ExascaleDbStorageVault, + # in gigabytes (GB). + # @!attribute [rw] total_size_gbs + # @return [::Integer] + # Required. The total storage allocation for the ExascaleDbStorageVault, in + # gigabytes (GB). + class ExascaleDbStorageDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExascaleDbStorageVault.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the ExascaleDbStorageVault in the following format: + # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. + class GetExascaleDbStorageVaultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExascaleDbStorageVault.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for ExascaleDbStorageVault in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ExascaleDbStorageVaults will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. Filter + # the list as specified in https://google.aip.dev/160. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. Order + # results as specified in https://google.aip.dev/132. + class ListExascaleDbStorageVaultsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `ExascaleDbStorageVault.List`. + # @!attribute [rw] exascale_db_storage_vaults + # @return [::Array<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] + # The ExascaleDbStorageVaults. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. If present, + # the next page token can be provided to a subsequent + # ListExascaleDbStorageVaults call to list the next page. + # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListExascaleDbStorageVaultsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExascaleDbStorageVault.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The value for parent of the ExascaleDbStorageVault in the + # following format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] exascale_db_storage_vault_id + # @return [::String] + # Required. The ID of the ExascaleDbStorageVault to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @!attribute [rw] exascale_db_storage_vault + # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] + # Required. The resource being created. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateExascaleDbStorageVaultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for `ExascaleDbStorageVault.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the ExascaleDbStorageVault in the following format: + # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteExascaleDbStorageVaultRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb new file mode 100644 index 000000000000..692e15bb45ef --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb @@ -0,0 +1,41 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Oracle Grid Infrastructure (GI) version resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiVersionSummary/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Oracle Grid Infrastructure (GI) version + # resource with the format: + # projects/\\{project}/locations/\\{region}/giVersions/\\{gi_versions} + # @!attribute [rw] version + # @return [::String] + # Optional. version + class GiVersion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb new file mode 100644 index 000000000000..656cd88eafb7 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb @@ -0,0 +1,2238 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the GoldengateConnection resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the GoldengateConnection resource in the following + # format: + # projects/\\{project}/locations/\\{region}/goldengateConnections/\\{goldengate_connection} + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionProperties] + # Required. The properties of the GoldengateConnection. + # @!attribute [rw] gcp_oracle_zone + # @return [::String] + # Optional. The GCP Oracle zone where Oracle GoldengateConnection is hosted. + # Example: us-east4-b-r2. + # If not specified, the system will pick a zone based on availability. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels or tags associated with the GoldengateConnection. + # @!attribute [rw] odb_network + # @return [::String] + # Optional. The name of the OdbNetwork associated with the + # GoldengateConnection. The format is + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # It is optional but if specified, this should match the parent ODBNetwork + # of the OdbSubnet. + # @!attribute [rw] odb_subnet + # @return [::String] + # Optional. The name of the OdbSubnet associated with the + # GoldengateConnection for IP allocation. Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. The ID of the subscription entitlement associated with the + # GoldengateConnection. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the GoldengateConnection was created. + # @!attribute [r] oci_url + # @return [::String] + # Output only. HTTPS link to OCI resources exposed to Customer via UI + # Interface. + class GoldengateConnection + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The properties of a GoldengateConnection. + # @!attribute [rw] oracle_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateOracleConnectionProperties] + # Properties for an Oracle Database Connection. + # + # Note: The following fields are mutually exclusive: `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] goldengate_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateGoldengateConnectionProperties] + # Properties for a Goldengate Connection. + # + # Note: The following fields are mutually exclusive: `goldengate_connection_properties`, `oracle_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] generic_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateGenericConnectionProperties] + # Properties for a Generic Connection. + # + # Note: The following fields are mutually exclusive: `generic_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] google_cloud_storage_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateGoogleCloudStorageConnectionProperties] + # Properties for a Google Cloud Storage Connection. + # + # Note: The following fields are mutually exclusive: `google_cloud_storage_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] google_big_query_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateGoogleBigQueryConnectionProperties] + # Properties for a Google BigQuery Connection. + # + # Note: The following fields are mutually exclusive: `google_big_query_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] mysql_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMysqlConnectionProperties] + # Properties for a Mysql Connection. + # + # Note: The following fields are mutually exclusive: `mysql_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] kafka_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateKafkaConnectionProperties] + # Properties for a Kafka Connection. + # + # Note: The following fields are mutually exclusive: `kafka_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] kafka_schema_registry_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateKafkaSchemaRegistryConnectionProperties] + # Properties for a Kafka Schema Registry Connection. + # + # Note: The following fields are mutually exclusive: `kafka_schema_registry_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] oci_object_storage_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateOciObjectStorageConnectionProperties] + # Properties for an OCI Object Storage Connection. + # + # Note: The following fields are mutually exclusive: `oci_object_storage_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] azure_data_lake_storage_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateAzureDataLakeStorageConnectionProperties] + # Properties for an Azure Data Lake Storage Connection. + # + # Note: The following fields are mutually exclusive: `azure_data_lake_storage_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] azure_synapse_analytics_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateAzureSynapseAnalyticsConnectionProperties] + # Properties for an Azure Synapse Analytics connection. + # + # Note: The following fields are mutually exclusive: `azure_synapse_analytics_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] postgresql_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengatePostgresqlConnectionProperties] + # Properties for a PostgreSQL connection. + # + # Note: The following fields are mutually exclusive: `postgresql_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] microsoft_sqlserver_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMicrosoftSqlserverConnectionProperties] + # Properties for a Microsoft SQL Server connection. + # + # Note: The following fields are mutually exclusive: `microsoft_sqlserver_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] amazon_s3_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateAmazonS3ConnectionProperties] + # Properties for an Amazon S3 connection. + # + # Note: The following fields are mutually exclusive: `amazon_s3_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] hdfs_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateHdfsConnectionProperties] + # Properties for an HDFS connection. + # + # Note: The following fields are mutually exclusive: `hdfs_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] java_message_service_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateJavaMessageServiceConnectionProperties] + # Properties for a Java Message Service connection. + # + # Note: The following fields are mutually exclusive: `java_message_service_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] mongodb_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMongodbConnectionProperties] + # Properties for a MongoDB connection. + # + # Note: The following fields are mutually exclusive: `mongodb_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] oracle_nosql_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateOracleNosqlConnectionProperties] + # Properties for an Oracle NoSQL connection. + # + # Note: The following fields are mutually exclusive: `oracle_nosql_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] snowflake_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateSnowflakeConnectionProperties] + # Properties for a Snowflake connection. + # + # Note: The following fields are mutually exclusive: `snowflake_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] amazon_redshift_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateAmazonRedshiftConnectionProperties] + # Properties for an Amazon Redshift connection. + # + # Note: The following fields are mutually exclusive: `amazon_redshift_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] elasticsearch_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateElasticsearchConnectionProperties] + # Properties for an Elasticsearch connection. + # + # Note: The following fields are mutually exclusive: `elasticsearch_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] amazon_kinesis_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateAmazonKinesisConnectionProperties] + # Properties for an Amazon Kinesis connection. + # + # Note: The following fields are mutually exclusive: `amazon_kinesis_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] db2_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDb2ConnectionProperties] + # Properties for a DB2 connection. + # + # Note: The following fields are mutually exclusive: `db2_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] redis_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateRedisConnectionProperties] + # Properties for a Redis connection. + # + # Note: The following fields are mutually exclusive: `redis_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] databricks_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDatabricksConnectionProperties] + # Properties for a Databricks connection. + # + # Note: The following fields are mutually exclusive: `databricks_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] google_pubsub_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateGooglePubsubConnectionProperties] + # Properties for a Google Pub/Sub connection. + # + # Note: The following fields are mutually exclusive: `google_pubsub_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] microsoft_fabric_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMicrosoftFabricConnectionProperties] + # Properties for a Microsoft Fabric connection. + # + # Note: The following fields are mutually exclusive: `microsoft_fabric_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `oracle_ai_data_platform_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] oracle_ai_data_platform_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateOracleAIDataPlatformConnectionProperties] + # Properties for an Oracle AI Data Platform connection. + # + # Note: The following fields are mutually exclusive: `oracle_ai_data_platform_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `iceberg_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] iceberg_connection_properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateIcebergConnectionProperties] + # Properties for an Iceberg connection. + # + # Note: The following fields are mutually exclusive: `iceberg_connection_properties`, `oracle_connection_properties`, `goldengate_connection_properties`, `generic_connection_properties`, `google_cloud_storage_connection_properties`, `google_big_query_connection_properties`, `mysql_connection_properties`, `kafka_connection_properties`, `kafka_schema_registry_connection_properties`, `oci_object_storage_connection_properties`, `azure_data_lake_storage_connection_properties`, `azure_synapse_analytics_connection_properties`, `postgresql_connection_properties`, `microsoft_sqlserver_connection_properties`, `amazon_s3_connection_properties`, `hdfs_connection_properties`, `java_message_service_connection_properties`, `mongodb_connection_properties`, `oracle_nosql_connection_properties`, `snowflake_connection_properties`, `amazon_redshift_connection_properties`, `elasticsearch_connection_properties`, `amazon_kinesis_connection_properties`, `db2_connection_properties`, `redis_connection_properties`, `databricks_connection_properties`, `google_pubsub_connection_properties`, `microsoft_fabric_connection_properties`, `oracle_ai_data_platform_connection_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] connection_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionProperties::GoldengateConnectionType] + # Required. The connection type. + # @!attribute [r] ocid + # @return [::String] + # Output only. The [OCID] of the connection being + # referenced. + # @!attribute [rw] display_name + # @return [::String] + # Required. An object's Display Name. + # @!attribute [rw] description + # @return [::String] + # Optional. Metadata about this specific object. + # @!attribute [r] lifecycle_state + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionProperties::GoldengateConnectionLifecycleState] + # Output only. The lifecycle state of the connection. + # @!attribute [r] lifecycle_details + # @return [::String] + # Output only. Describes the object's current state in detail. For example, + # it can be used to provide actionable information for a resource in a Failed + # state. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the resource was last updated. + # @!attribute [rw] routing_method + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionProperties::GoldengateConnectionRoutingMethod] + # Optional. The routing method for the GoldengateConnection. + # @!attribute [r] ingress_ip_addresses + # @return [::Array<::String>] + # Output only. The Ingress IPs of the GoldengateConnection. + class GoldengateConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Connection type. + module GoldengateConnectionType + # Connection type unspecified. + GOLDENGATE_CONNECTION_TYPE_UNSPECIFIED = 0 + + # Goldengate connection type. + GOLDENGATE = 1 + + # Kafka connection type. + KAFKA = 2 + + # Kafka schema registry connection type. + KAFKA_SCHEMA_REGISTRY = 3 + + # MySQL connection type. + MYSQL = 4 + + # Java message service connection type. + JAVA_MESSAGE_SERVICE = 5 + + # Microsoft SQL Server connection type. + MICROSOFT_SQLSERVER = 6 + + # OCI object storage connection type. + OCI_OBJECT_STORAGE = 7 + + # Oracle connection type. + ORACLE = 8 + + # Azure data lake storage connection type. + AZURE_DATA_LAKE_STORAGE = 9 + + # PostgreSQL connection type. + POSTGRESQL = 10 + + # Azure synapse analytics connection type. + AZURE_SYNAPSE_ANALYTICS = 11 + + # Snowflake connection type. + SNOWFLAKE = 12 + + # Amazon S3 connection type. + AMAZON_S3 = 13 + + # HDFS connection type. + HDFS = 14 + + # Oracle AI data platform connection type. + ORACLE_AI_DATA_PLATFORM = 15 + + # Oracle NoSQL connection type. + ORACLE_NOSQL = 16 + + # MongoDB connection type. + MONGODB = 17 + + # Amazon Kinesis connection type. + AMAZON_KINESIS = 18 + + # Amazon Redshift connection type. + AMAZON_REDSHIFT = 19 + + # DB2 connection type. + DB2 = 20 + + # Redis connection type. + REDIS = 21 + + # Elasticsearch connection type. + ELASTICSEARCH = 22 + + # Generic connection type. + GENERIC = 23 + + # Google Cloud Storage connection type. + GOOGLE_CLOUD_STORAGE = 24 + + # Google BigQuery connection type. + GOOGLE_BIGQUERY = 25 + + # Databricks connection type. + DATABRICKS = 26 + + # Google Pub/Sub connection type. + GOOGLE_PUBSUB = 27 + + # Microsoft Fabric connection type. + MICROSOFT_FABRIC = 28 + + # Iceberg connection type. + ICEBERG = 29 + end + + # Possible lifecycle states for connection. + module GoldengateConnectionLifecycleState + # Default unspecified value. + GOLDENGATE_CONNECTION_LIFECYCLE_STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in provisioning state. + CREATING = 1 + + # Indicates that the resource is in active state. + ACTIVE = 2 + + # Indicates that the resource is in updating state. + UPDATING = 3 + + # Indicates that the resource is in deleting state. + DELETING = 4 + + # Indicates that the resource is in deleted state. + DELETED = 5 + + # Indicates that the resource is in failed state. + FAILED = 6 + end + + # The various routing methods of the GoldengateConnection. + module GoldengateConnectionRoutingMethod + # Default unspecified value. + GOLDENGATE_CONNECTION_ROUTING_METHOD_UNSPECIFIED = 0 + + # Network traffic flows from the assigned deployment's private endpoint + # through the deployment's subnet. + SHARED_DEPLOYMENT_ENDPOINT = 1 + + # A dedicated private endpoint is created in the target VCN subnet for + # the connection. + DEDICATED_ENDPOINT = 2 + end + end + + # The properties of Goldengate Oracle Database Connection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect. + # @!attribute [rw] authentication_mode + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateOracleConnectionProperties::OracleAuthenticationMode] + # Optional. Authentication mode. + # @!attribute [rw] connection_string + # @return [::String] + # Optional. Connect descriptor or Easy Connect Naming method used to connect + # to a database. + # @!attribute [rw] session_mode + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateOracleConnectionProperties::SessionMode] + # Optional. The mode of the database connection session to be established by + # the data client. + # @!attribute [rw] gcp_oracle_database_id + # @return [::String] + # Optional. Autonomous AI Database instance id of database in Oracle Database + # @ Google Cloud. If gcp_oracle_database_id is provided, connection_string + # must be empty. Format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database} + # @!attribute [rw] wallet_file + # @return [::String] + # Optional. The wallet contents Oracle Goldengate uses to make connections to + # a database. This attribute is expected to be base64 encoded. + class GoldengateOracleConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Authentication mode. + module OracleAuthenticationMode + # Authentication mode not specified. + ORACLE_AUTHENTICATION_MODE_UNSPECIFIED = 0 + + # TLS authentication mode. + TLS = 1 + + # MTLS authentication mode. + MTLS = 2 + end + + # The various session modes of the GoldengateConnection. + module SessionMode + # Default unspecified value. + SESSION_MODE_UNSPECIFIED = 0 + + # Indicates that the resource is using direct session mode. + DIRECT = 1 + + # Indicates that the resource is using redirect session mode. + REDIRECT = 2 + end + end + + # The properties of GoldengateGoldengateConnectionProperties. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password used to connect to the Oracle + # Goldengate in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password used to connect to the Oracle + # Goldengate. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type. + # @!attribute [rw] goldengate_deployment_id + # @return [::String] + # Optional. The name of the GoldengateDeployment associated with the + # GoldengateConnection. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment} + # @!attribute [rw] host + # @return [::String] + # Optional. The host of the GoldengateConnection. + # @!attribute [rw] port + # @return [::Integer] + # Optional. The port of the GoldengateConnection. + # @!attribute [rw] username + # @return [::String] + # Optional. The username credential. + class GoldengateGoldengateConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateGenericConnectionProperties. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type. + # @!attribute [rw] host + # @return [::String] + # Optional. The host of the GenericConnection. + class GoldengateGenericConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateGoogleCloudStorageConnectionProperties. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type. + # @!attribute [rw] service_account_key_file + # @return [::String] + # Optional. The base64 encoded content of the service account key file + # containing the credentials required to use Google Cloud Storage. + class GoldengateGoogleCloudStorageConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateGoogleBigQueryConnectionProperties. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type. + # @!attribute [rw] service_account_key_file + # @return [::String] + # Optional. The base64 encoded content of the service account key file + # containing the credentials required to use Google BigQuery. + class GoldengateGoogleBigQueryConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Properties of GoldengateMysqlConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses to connect to + # MySQL in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses to connect to + # MySQL. Format: projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of MysqlConnection. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect the associated + # system of the given technology. + # @!attribute [rw] host + # @return [::String] + # Optional. The name or address of a host. + # @!attribute [rw] port + # @return [::Integer] + # Optional. The port of an endpoint usually specified for a connection. + # @!attribute [rw] database + # @return [::String] + # Optional. The name of the database. + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMysqlConnectionProperties::MysqlSecurityProtocol] + # Optional. Security Type for MySQL. + # @!attribute [rw] ssl_mode + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMysqlConnectionProperties::SSLMode] + # Optional. SSL modes for MySQL. + # @!attribute [rw] ssl_ca_file + # @return [::String] + # Optional. Database Certificate - The base64 encoded content of a .pem or + # .crt file containing the server public key (for 1 and 2-way SSL). + # @!attribute [rw] ssl_crl_file + # @return [::String] + # Optional. The base64 encoded list of certificates revoked by the trusted + # certificate authorities (Trusted CA). + # @!attribute [rw] ssl_cert_file + # @return [::String] + # Optional. Client Certificate - The base64 encoded content of a .pem or .crt + # file containing the client public key (for 2-way SSL). + # @!attribute [rw] ssl_key_file + # @return [::String] + # Optional. Client Key - The base64 encoded content of a .pem or .crt file + # containing the client private key (for 2-way SSL). + # @!attribute [rw] additional_attributes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::NameValuePair>] + # Optional. An array of name-value pair attribute entries. + # Used as additional parameters in connection string. + # @!attribute [rw] db_system_id + # @return [::String] + # Optional. The OCID of the database system being referenced. + class GoldengateMysqlConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security Type for MySQL. + module MysqlSecurityProtocol + # Security type not specified. + MYSQL_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # Plain text communication. + PLAIN = 1 + + # Transport Layer Security. + TLS = 2 + + # Mutual Transport Layer Security. + MTLS = 3 + end + + # Enum for SSL modes for MySQL. + module SSLMode + # SSL mode not specified. + SSL_MODE_UNSPECIFIED = 0 + + # SSL is disabled. + DISABLED = 1 + + # SSL is preferred. + PREFERRED = 2 + + # SSL is required. + REQUIRED = 3 + + # SSL is required and certificate is verified. + VERIFY_CA = 4 + + # SSL is required and certificate and hostname are verified. + VERIFY_IDENTITY = 5 + end + end + + # The properties of GoldengateKafkaConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password for Kafka basic/SASL auth in plain + # text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password for Kafka basic/SASL auth. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] trust_store_password + # @return [::String] + # Optional. Input only. The TrustStore password in plain text. + # + # Note: The following fields are mutually exclusive: `trust_store_password`, `trust_store_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] trust_store_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the TrustStore password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `trust_store_password_secret_version`, `trust_store_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_store_password + # @return [::String] + # Optional. Input only. The KeyStore password in plain text. + # + # Note: The following fields are mutually exclusive: `key_store_password`, `key_store_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_store_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the KeyStore password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `key_store_password_secret_version`, `key_store_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ssl_key_password + # @return [::String] + # Optional. Input only. The password for the cert inside of the KeyStore in + # plain text. + # + # Note: The following fields are mutually exclusive: `ssl_key_password`, `ssl_key_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ssl_key_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password for the cert inside of the KeyStore. + # Format: projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `ssl_key_password_secret_version`, `ssl_key_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of KafkaConnection. + # @!attribute [rw] stream_pool_id + # @return [::String] + # Optional. The OCID of the stream pool being referenced. + # @!attribute [rw] cluster_id + # @return [::String] + # Optional. The OCID of the Kafka cluster being referenced from OCI Streaming + # with Apache Kafka. + # @!attribute [rw] bootstrap_servers + # @return [::Array<::Google::Cloud::OracleDatabase::V1::KafkaBootstrapServer>] + # Optional. Kafka bootstrap. Equivalent of bootstrap.servers configuration + # property in Kafka: list of KafkaBootstrapServer objects specified by + # host/port. Used for establishing the initial connection to the Kafka + # cluster. Example: "server1.example.com:9092,server2.example.com:9092" + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateKafkaConnectionProperties::KafkaSecurityProtocol] + # Optional. Security Type for Kafka. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect the associated + # system of the given technology. + # @!attribute [rw] trust_store_file + # @return [::String] + # Optional. The base64 encoded content of the TrustStore file. + # @!attribute [rw] key_store_file + # @return [::String] + # Optional. The base64 encoded content of the KeyStore file. + # @!attribute [rw] consumer_properties_file + # @return [::String] + # Optional. The base64 encoded content of the consumer.properties file. + # @!attribute [rw] producer_properties_file + # @return [::String] + # Optional. The base64 encoded content of the producer.properties file. + # @!attribute [rw] use_resource_principal + # @return [::Boolean] + # Optional. Specifies that the user intends to authenticate to the instance + # using a resource principal. Applicable only for OCI Streaming connections. + class GoldengateKafkaConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security Type for Kafka. + module KafkaSecurityProtocol + # Security type not specified. + KAFKA_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # SSL security protocol. + SSL = 1 + + # SASL SSL security protocol. + SASL_SSL = 2 + + # Plaintext security protocol. + PLAINTEXT = 3 + + # SASL Plaintext security protocol. + SASL_PLAINTEXT = 4 + end + end + + # The properties of GoldengateKafkaSchemaRegistryConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password to access Schema Registry in plain + # text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password to access Schema Registry using basic + # authentication. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] trust_store_password + # @return [::String] + # Optional. Input only. The TrustStore password in plain text. + # + # Note: The following fields are mutually exclusive: `trust_store_password`, `trust_store_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] trust_store_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the TrustStore password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `trust_store_password_secret_version`, `trust_store_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_store_password + # @return [::String] + # Optional. Input only. The KeyStore password in plain text. + # + # Note: The following fields are mutually exclusive: `key_store_password`, `key_store_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_store_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the KeyStore password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `key_store_password_secret_version`, `key_store_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ssl_key_password + # @return [::String] + # Optional. Input only. The password for the cert inside the KeyStore in + # plain text. + # + # Note: The following fields are mutually exclusive: `ssl_key_password`, `ssl_key_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ssl_key_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password for the cert inside the KeyStore. + # Format: projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `ssl_key_password_secret_version`, `ssl_key_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of KafkaSchemaRegistryConnection. + # @!attribute [rw] url + # @return [::String] + # Optional. Kafka Schema Registry URL. + # e.g.: 'https://server1.us.oracle.com:8081' + # @!attribute [rw] authentication_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateKafkaSchemaRegistryConnectionProperties::AuthenticationType] + # Optional. Used authentication mechanism to access Schema Registry. + # @!attribute [rw] username + # @return [::String] + # Optional. The username to access Schema Registry using basic + # authentication. This value is injected into + # 'schema.registry.basic.auth.user.info=user:password' configuration + # property. + # @!attribute [rw] trust_store_file + # @return [::String] + # Optional. The base64 encoded content of the TrustStore file. + # @!attribute [rw] key_store_file + # @return [::String] + # Optional. The base64 encoded content of the KeyStore file. + class GoldengateKafkaSchemaRegistryConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for authentication mechanism to access Schema Registry. + module AuthenticationType + # Authentication type not specified. + AUTHENTICATION_TYPE_UNSPECIFIED = 0 + + # No authentication. + NONE = 1 + + # Basic authentication. + BASIC = 2 + + # Mutual authentication. + MUTUAL = 3 + end + end + + # The properties of GoldengateOciObjectStorageConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of OciObjectStorageConnection. + # @!attribute [rw] tenancy_id + # @return [::String] + # Optional. The OCID of the related OCI tenancy. + # @!attribute [rw] region + # @return [::String] + # Optional. The name of the region of OCI Object Storage. e.g.: us-ashburn-1 + # If the region is not provided, backend will default to the default region. + # @!attribute [rw] user_id + # @return [::String] + # Optional. The OCID of the OCI user who will access the Object Storage. + # The user must have write access to the bucket they want to connect to. + # @!attribute [rw] private_key_file + # @return [::String] + # Optional. The content of the private key file (PEM file) + # corresponding to the API key of the fingerprint. + # @!attribute [rw] private_key_passphrase_secret + # @return [::String] + # Optional. The passphrase of the private key. + # @!attribute [rw] public_key_fingerprint + # @return [::String] + # Optional. The fingerprint of the API Key of the user specified by the + # userId. + # @!attribute [rw] use_resource_principal + # @return [::Boolean] + # Optional. Specifies that the user intends to authenticate to the instance + # using a resource principal. + class GoldengateOciObjectStorageConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateAzureDataLakeStorageConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of AzureDataLakeStorageConnection. + # @!attribute [rw] authentication_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateAzureDataLakeStorageConnectionProperties::AuthenticationType] + # Optional. Authentication mechanism to access Azure Data Lake Storage. + # @!attribute [rw] account + # @return [::String] + # Optional. Sets the Azure storage account name. + # @!attribute [rw] account_key_secret + # @return [::String] + # Optional. Azure storage account key. This property is required when + # 'authentication_type' is set to 'SHARED_KEY'. + # @!attribute [rw] sas_token_secret + # @return [::String] + # Optional. Credential that uses a shared access signature (SAS) to + # authenticate to an Azure Service. + # @!attribute [rw] azure_tenant_id + # @return [::String] + # Optional. Azure tenant ID of the application. This property is required + # when 'authentication_type' is set to 'AZURE_ACTIVE_DIRECTORY'. + # @!attribute [rw] client_id + # @return [::String] + # Optional. Azure client ID of the application. This property is required + # when 'authentication_type' is set to 'AZURE_ACTIVE_DIRECTORY'. + # @!attribute [rw] client_secret + # @return [::String] + # Optional. Azure client secret (aka application password) for + # authentication. + # @!attribute [rw] endpoint + # @return [::String] + # Optional. Azure Storage service endpoint. + # e.g: https://test.blob.core.windows.net + # @!attribute [rw] azure_authority_host + # @return [::String] + # Optional. The endpoint used for authentication with Microsoft Entra ID + # (formerly Azure Active Directory). Default value: + # https://login.microsoftonline.com + class GoldengateAzureDataLakeStorageConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for authentication mechanism to access Azure Data Lake Storage. + module AuthenticationType + # Authentication type not specified. + AUTHENTICATION_TYPE_UNSPECIFIED = 0 + + # Shared key authentication. + SHARED_KEY = 1 + + # Shared access signature authentication. + SHARED_ACCESS_SIGNATURE = 2 + + # Azure active directory authentication. + AZURE_ACTIVE_DIRECTORY = 3 + end + end + + # The properties of GoldengateAzureSynapseAnalyticsConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses for Azure + # Synapse Analytics connection in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses for Azure + # Synapse Analytics connection. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of AzureSynapseAnalyticsConnection. + # @!attribute [rw] connection_string + # @return [::String] + # Optional. JDBC connection string. + # e.g.: + # 'jdbc:sqlserver://.sql.azuresynapse.net:1433;database=;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.sql.azuresynapse.net;loginTimeout=300;' + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect the associated + # system of the given technology. + class GoldengateAzureSynapseAnalyticsConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengatePostgresqlConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses for PostgreSQL + # connection in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses for PostgreSQL + # connection. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of PostgresqlConnection. + # @!attribute [rw] database + # @return [::String] + # Optional. The name of the database. + # @!attribute [rw] host + # @return [::String] + # Optional. The name or address of a host. + # @!attribute [rw] port + # @return [::Integer] + # Optional. The port of an endpoint usually specified for a connection. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect the associated + # system of the given technology. + # @!attribute [rw] additional_attributes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::NameValuePair>] + # Optional. An array of name-value pair attribute entries. + # Used as additional parameters in connection string. + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengatePostgresqlConnectionProperties::PostgresqlSecurityProtocol] + # Optional. Security protocol for PostgreSQL. + # @!attribute [rw] ssl_mode + # @return [::Google::Cloud::OracleDatabase::V1::GoldengatePostgresqlConnectionProperties::PostgresqlSslMode] + # Optional. SSL modes for PostgreSQL. + # @!attribute [rw] ssl_ca_file + # @return [::String] + # Optional. The base64 encoded certificate of the trusted certificate + # authorities (Trusted CA) for PostgreSQL. + # @!attribute [rw] ssl_crl_file + # @return [::String] + # Optional. The base64 encoded list of certificates revoked by the trusted + # certificate authorities (Trusted CA). + # @!attribute [rw] ssl_cert_file + # @return [::String] + # Optional. The base64 encoded certificate of the PostgreSQL server. + # @!attribute [rw] ssl_key_file + # @return [::String] + # Optional. The base64 encoded private key of the PostgreSQL server. + # @!attribute [rw] db_system_id + # @return [::String] + # Optional. The OCID of the database system being referenced. + class GoldengatePostgresqlConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security protocol for PostgreSQL. + module PostgresqlSecurityProtocol + # Security protocol not specified. + POSTGRESQL_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # Plain text communication. + PLAIN = 1 + + # Transport Layer Security. + TLS = 2 + + # Mutual Transport Layer Security. + MTLS = 3 + end + + # Enum for SSL modes for PostgreSQL. + module PostgresqlSslMode + # SSL mode not specified. + POSTGRESQL_SSL_MODE_UNSPECIFIED = 0 + + # Prefer SSL. + PREFER = 1 + + # Require SSL. + REQUIRE = 2 + + # Verify Certificate Authority. + VERIFY_CA = 3 + + # Verify Full. + VERIFY_FULL = 4 + end + end + + # The properties of GoldengateMicrosoftSqlserverConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses for Microsoft + # SQL Server connection in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses for Microsoft + # SQL Server connection. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of MicrosoftSqlserverConnection. + # @!attribute [rw] database + # @return [::String] + # Optional. The name of the database. + # @!attribute [rw] host + # @return [::String] + # Optional. The name or address of a host. + # @!attribute [rw] port + # @return [::Integer] + # Optional. The port of an endpoint usually specified for a connection. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect to the Microsoft + # SQL Server. + # @!attribute [rw] additional_attributes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::NameValuePair>] + # Optional. An array of name-value pair attribute entries. + # Used as additional parameters in connection string. + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMicrosoftSqlserverConnectionProperties::MicrosoftSqlserverSecurityProtocol] + # Optional. Security Type for Microsoft SQL Server. + # @!attribute [rw] ssl_ca_file + # @return [::String] + # Optional. Database Certificate - The base64 encoded content of a .pem or + # .crt file containing the server public key (for 1-way SSL). + # @!attribute [rw] server_certificate_validation_required + # @return [::Boolean] + # Optional. If set to true, the driver validates the certificate that is sent + # by the database server. + class GoldengateMicrosoftSqlserverConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security Type for Microsoft SQL Server. + module MicrosoftSqlserverSecurityProtocol + # Security type not specified. + MICROSOFT_SQLSERVER_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # Plain text communication. + PLAIN = 1 + + # Transport Layer Security. + TLS = 2 + end + end + + # The properties of GoldengateAmazonS3Connection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of AmazonS3Connection. + # @!attribute [rw] access_key_id + # @return [::String] + # Optional. Access key ID to access the Amazon S3 bucket. + # @!attribute [rw] secret_access_key_secret + # @return [::String] + # Optional. Secret access key to access the Amazon S3 bucket. + # @!attribute [rw] endpoint + # @return [::String] + # Optional. The Amazon Endpoint for S3. + # @!attribute [rw] region + # @return [::String] + # Optional. The name of the AWS region where the bucket is created. + class GoldengateAmazonS3ConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateHdfsConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of HdfsConnection. + # @!attribute [rw] core_site_xml + # @return [::String] + # Optional. The content of the Hadoop Distributed File System + # configuration file (core-site.xml). + class GoldengateHdfsConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateJavaMessageServiceConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses to connect the + # Java Message Service in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses to connect the + # associated Java Message Service. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] trust_store_password + # @return [::String] + # Optional. Input only. The TrustStore password in plain text. + # + # Note: The following fields are mutually exclusive: `trust_store_password`, `trust_store_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] trust_store_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the TrustStore password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `trust_store_password_secret_version`, `trust_store_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_store_password + # @return [::String] + # Optional. Input only. The KeyStore password in plain text. + # + # Note: The following fields are mutually exclusive: `key_store_password`, `key_store_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_store_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the KeyStore password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `key_store_password_secret_version`, `key_store_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ssl_key_password + # @return [::String] + # Optional. Input only. The password for the cert inside of the KeyStore in + # plain text. + # + # Note: The following fields are mutually exclusive: `ssl_key_password`, `ssl_key_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] ssl_key_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password for the cert inside of the KeyStore. + # Format: projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `ssl_key_password_secret_version`, `ssl_key_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of JavaMessageServiceConnection. + # @!attribute [rw] use_jndi + # @return [::Boolean] + # Optional. If set to true, Java Naming and Directory Interface (JNDI) + # properties should be provided. + # @!attribute [rw] jndi_connection_factory + # @return [::String] + # Optional. The Connection Factory can be looked up using this name. + # e.g.: 'ConnectionFactory' + # @!attribute [rw] jndi_provider_url + # @return [::String] + # Optional. The URL that Java Message Service will use to contact the JNDI + # provider. e.g.: 'tcp://myjms.host.domain:61616?jms.prefetchPolicy.all=1000' + # @!attribute [rw] jndi_initial_context_factory + # @return [::String] + # Optional. The implementation of javax.naming.spi.InitialContextFactory + # interface used to obtain initial naming context. + # @!attribute [rw] jndi_security_principal + # @return [::String] + # Optional. Specifies the identity of the principal (user) to be + # authenticated. + # @!attribute [rw] jndi_security_credentials_secret + # @return [::String] + # Optional. The password associated to the principal. + # @!attribute [rw] connection_url + # @return [::String] + # Optional. Connection URL of the Java Message Service, specifying the + # protocol, host, and port. e.g.: 'mq://myjms.host.domain:7676' + # @!attribute [rw] connection_factory + # @return [::String] + # Optional. The Java class implementing javax.jms.ConnectionFactory interface + # supplied by the JMS provider. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect to the Java + # Message Service. + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateJavaMessageServiceConnectionProperties::JmsSecurityProtocol] + # Optional. Security protocol for Java Message Service. + # @!attribute [rw] authentication_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateJavaMessageServiceConnectionProperties::JmsAuthenticationType] + # Optional. Authentication type for Java Message Service. + # @!attribute [rw] trust_store_file + # @return [::String] + # Optional. The base64 encoded content of the TrustStore file. + # @!attribute [rw] key_store_file + # @return [::String] + # Optional. The base64 encoded content of the KeyStore file. + class GoldengateJavaMessageServiceConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security protocol for Java Message Service. + module JmsSecurityProtocol + # Security protocol not specified. + JMS_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # Plain text communication. + PLAIN = 1 + + # Transport Layer Security. + TLS = 2 + + # Mutual Transport Layer Security. + MTLS = 3 + end + + # Enum for Authentication type for Java Message Service. + module JmsAuthenticationType + # Authentication type not specified. + JMS_AUTHENTICATION_TYPE_UNSPECIFIED = 0 + + # No authentication. + NONE = 1 + + # Basic authentication. + BASIC = 2 + end + end + + # The properties of GoldengateMongodbConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses to connect the + # Mongodb connection in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses to connect the + # Mongodb connection. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] tls_certificate_key_file_password + # @return [::String] + # Optional. Input only. The Client Certificate key file password in plain + # text. + # + # Note: The following fields are mutually exclusive: `tls_certificate_key_file_password`, `tls_certificate_key_file_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] tls_certificate_key_file_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the Client Certificate key file password in Secret + # Manager. Format: projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `tls_certificate_key_file_password_secret_version`, `tls_certificate_key_file_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of MongodbConnection. + # @!attribute [rw] connection_string + # @return [::String] + # Optional. MongoDB connection string. + # e.g.: 'mongodb://mongodb0.example.com:27017/recordsrecords' + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect to the database. + # @!attribute [rw] database_id + # @return [::String] + # Optional. The OCID of the Oracle Autonomous Json Database. + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMongodbConnectionProperties::MongodbSecurityProtocol] + # Optional. Security Type for MongoDB. + # @!attribute [rw] tls_ca_file + # @return [::String] + # Optional. Database Certificate - The base64 encoded content of a .pem file, + # containing the server public key (for 1 and 2-way SSL). + # @!attribute [rw] tls_certificate_key_file + # @return [::String] + # Optional. Client Certificate - The base64 encoded content of a .pem file, + # containing the client public key (for 2-way SSL). + class GoldengateMongodbConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security Type for MongoDB. + module MongodbSecurityProtocol + # Security type not specified. + MONGODB_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # Plain text communication. + PLAIN = 1 + + # Transport Layer Security. + TLS = 2 + + # Mutual Transport Layer Security. + MTLS = 3 + end + end + + # The properties of GoldengateOracleNosqlConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of OracleNosqlConnection. + # @!attribute [rw] tenancy_id + # @return [::String] + # Optional. The OCID of the OCI tenancy. + # @!attribute [rw] region + # @return [::String] + # Optional. The name of the region. e.g.: us-ashburn-1 + # @!attribute [rw] user_id + # @return [::String] + # Optional. The OCID of the OCI user who will access the Oracle NoSQL + # database. + # @!attribute [rw] private_key_file + # @return [::String] + # Optional. The content of the private key file (PEM file) + # corresponding to the API key of the fingerprint. + # @!attribute [rw] private_key_passphrase_secret + # @return [::String] + # Optional. The passphrase of the private key. + # @!attribute [rw] public_key_fingerprint + # @return [::String] + # Optional. The fingerprint of the API Key of the user specified by the + # userId. + # @!attribute [rw] use_resource_principal + # @return [::Boolean] + # Optional. Specifies that the user intends to authenticate to the instance + # using a resource principal. + class GoldengateOracleNosqlConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateSnowflakeConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses to connect to + # Snowflake platform in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses to connect to + # Snowflake platform. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of SnowflakeConnection. + # @!attribute [rw] connection_url + # @return [::String] + # Optional. JDBC connection URL. + # e.g.: + # 'jdbc:snowflake://.snowflakecomputing.com/?warehouse=&db=' + # @!attribute [rw] authentication_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateSnowflakeConnectionProperties::AuthenticationType] + # Optional. Used authentication mechanism to access Snowflake. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect to Snowflake. + # @!attribute [rw] private_key_file + # @return [::String] + # Optional. The content of private key file in PEM format. + # @!attribute [rw] private_key_passphrase_secret + # @return [::String] + # Optional. Password if the private key file is encrypted. + class GoldengateSnowflakeConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for authentication mechanism to access Snowflake. + module AuthenticationType + # Authentication type not specified. + AUTHENTICATION_TYPE_UNSPECIFIED = 0 + + # Basic authentication. + BASIC = 1 + + # Key pair authentication. + KEY_PAIR = 2 + end + end + + # The properties of GoldengateAmazonRedshiftConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses for Amazon + # Redshift connection in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses for Amazon + # Redshift connection. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of AmazonRedshiftConnection. + # @!attribute [rw] connection_url + # @return [::String] + # Optional. Connection URL. + # e.g.: + # 'jdbc:redshift://aws-redshift-instance.aaaaaaaaaaaa.us-east-2.redshift.amazonaws.com:5439/mydb' + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect the associated + # system of the given technology. + class GoldengateAmazonRedshiftConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateElasticsearchConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses for Elastic + # Search connection in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses for Elastic + # Search connection. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of ElasticsearchConnection. + # @!attribute [rw] servers + # @return [::String] + # Optional. Comma separated list of Elasticsearch server addresses, specified + # as host:port entries, where :port is optional. If port is not specified, it + # defaults to 9200. Example: + # "server1.example.com:4000,server2.example.com:4000" + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateElasticsearchConnectionProperties::ElasticsearchSecurityProtocol] + # Optional. Security protocol for Elasticsearch. + # @!attribute [rw] authentication_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateElasticsearchConnectionProperties::ElasticsearchAuthenticationType] + # Optional. Authentication type for Elasticsearch. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect the associated + # system of the given technology. + # @!attribute [rw] fingerprint + # @return [::String] + # Optional. Fingerprint required by TLS security protocol. + # Eg.: '6152b2dfbff200f973c5074a5b91d06ab3b472c07c09a1ea57bb7fd406cdce9c' + class GoldengateElasticsearchConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security protocol for Elasticsearch. + module ElasticsearchSecurityProtocol + # Security protocol not specified. + ELASTICSEARCH_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # Plain text communication. + PLAIN = 1 + + # Transport Layer Security. + TLS = 2 + end + + # Enum for Authentication type for Elasticsearch. + module ElasticsearchAuthenticationType + # Authentication type not specified. + ELASTICSEARCH_AUTHENTICATION_TYPE_UNSPECIFIED = 0 + + # No authentication. + NONE = 1 + + # Basic authentication. + BASIC = 2 + end + end + + # The properties of GoldengateAmazonKinesisConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of AmazonKinesisConnection. + # @!attribute [rw] access_key_id + # @return [::String] + # Optional. Access key ID to access the Amazon Kinesis. + # @!attribute [rw] secret_access_key_secret + # @return [::String] + # Optional. Secret access key to access the Amazon Kinesis. + # @!attribute [rw] endpoint + # @return [::String] + # Optional. The endpoint URL of the Amazon Kinesis service. + # e.g.: 'https://kinesis.us-east-1.amazonaws.com' + # If not provided, Goldengate will default to + # 'https://kinesis..amazonaws.com'. + # @!attribute [rw] aws_region + # @return [::String] + # Optional. The name of the AWS region. + # If not provided, Goldengate will default to 'us-west-1'. + class GoldengateAmazonKinesisConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateDb2Connection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses for Db2 + # connection in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses for Db2 + # connection. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of Db2Connection. + # @!attribute [rw] host + # @return [::String] + # Optional. The name or address of a host. + # @!attribute [rw] port + # @return [::Integer] + # Optional. The port of an endpoint usually specified for a connection. + # @!attribute [rw] database + # @return [::String] + # Optional. The name of the database. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect to the DB2 + # database. + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDb2ConnectionProperties::Db2SecurityProtocol] + # Optional. Security protocol for the DB2 database. + # @!attribute [rw] additional_attributes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::NameValuePair>] + # Optional. An array of name-value pair attribute entries. + # Used as additional parameters in connection string. + # @!attribute [rw] ssl_client_keystoredb_file + # @return [::String] + # Optional. The keystore file created at the client containing the + # server certificate / CA root certificate. Not supported for IBM Db2 for i. + # @!attribute [rw] ssl_client_keystash_file + # @return [::String] + # Optional. The keystash file which contains the encrypted password to + # the key database file. Not supported for IBM Db2 for i. + # @!attribute [rw] ssl_server_certificate_file + # @return [::String] + # Optional. The file which contains the self-signed server certificate + # / Certificate Authority (CA) certificate. + class GoldengateDb2ConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security protocol for the DB2 database. + module Db2SecurityProtocol + # Security protocol not specified. + DB2_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # Plain text communication. + PLAIN = 1 + + # Transport Layer Security. + TLS = 2 + end + end + + # The properties of GoldengateRedisConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password Oracle Goldengate uses for Redis + # connection in plain text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password Oracle Goldengate uses for Redis + # connection. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] trust_store_password + # @return [::String] + # Optional. Input only. The TrustStore password in plain text. + # + # Note: The following fields are mutually exclusive: `trust_store_password`, `trust_store_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] trust_store_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the TrustStore password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `trust_store_password_secret_version`, `trust_store_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_store_password + # @return [::String] + # Optional. Input only. The KeyStore password in plain text. + # + # Note: The following fields are mutually exclusive: `key_store_password`, `key_store_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] key_store_password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the KeyStore password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `key_store_password_secret_version`, `key_store_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of RedisConnection. + # @!attribute [rw] servers + # @return [::String] + # Optional. Comma separated list of Redis server addresses, specified as + # host:port entries, where :port is optional. If port is not specified, it + # defaults to 6379. Example: + # "server1.example.com:6379,server2.example.com:6379" + # @!attribute [rw] security_protocol + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateRedisConnectionProperties::RedisSecurityProtocol] + # Optional. Security protocol for Redis. + # @!attribute [rw] authentication_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateRedisConnectionProperties::RedisAuthenticationType] + # Optional. Authentication type for Redis. + # @!attribute [rw] username + # @return [::String] + # Optional. The username Oracle Goldengate uses to connect the associated + # system of the given technology. + # @!attribute [rw] redis_cluster_id + # @return [::String] + # Optional. The OCID of the Redis cluster. + # @!attribute [rw] trust_store_file + # @return [::String] + # Optional. The base64 encoded content of the TrustStore file. + # @!attribute [rw] key_store_file + # @return [::String] + # Optional. The base64 encoded content of the KeyStore file. + class GoldengateRedisConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for Security protocol for Redis. + module RedisSecurityProtocol + # Security protocol not specified. + REDIS_SECURITY_PROTOCOL_UNSPECIFIED = 0 + + # Plain text communication. + PLAIN = 1 + + # Transport Layer Security. + TLS = 2 + + # Mutual Transport Layer Security. + MTLS = 3 + end + + # Enum for Authentication type for Redis. + module RedisAuthenticationType + # Authentication type not specified. + REDIS_AUTHENTICATION_TYPE_UNSPECIFIED = 0 + + # No authentication. + NONE = 1 + + # Basic authentication. + BASIC = 2 + end + end + + # The properties of GoldengateDatabricksConnection. + # @!attribute [rw] password + # @return [::String] + # Optional. Input only. The password used to connect to Databricks in plain + # text. + # + # Note: The following fields are mutually exclusive: `password`, `password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] password_secret_version + # @return [::String] + # Optional. Input only. The resource name of a secret version in Secret + # Manager which contains the password used to connect to Databricks. + # Format: projects/\\{project}/secrets/\\{secret}/versions/\\{version}. + # + # Note: The following fields are mutually exclusive: `password_secret_version`, `password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of DatabricksConnection. + # @!attribute [rw] authentication_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDatabricksConnectionProperties::DatabricksAuthenticationType] + # Optional. Authentication type for Databricks. + # @!attribute [rw] connection_url + # @return [::String] + # Optional. Connection URL. + # e.g.: + # 'jdbc:databricks://adb-33934.4.azuredatabricks.net:443/default;transportMode=http;ssl=1;httpPath=sql/protocolv1/o/3393########44/0##3-7-hlrb' + # @!attribute [rw] client_id + # @return [::String] + # Optional. OAuth client id, only applicable for authentication_type == + # OAUTH_M2M + # @!attribute [rw] client_secret + # @return [::String] + # Optional. OAuth client secret, only applicable for authentication_type == + # OAUTH_M2M + # @!attribute [rw] storage_credential + # @return [::String] + # Optional. External storage credential name to access files on object + # storage such as ADLS Gen2, S3 or Cloud Storage. + class GoldengateDatabricksConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for authentication type for Databricks. + module DatabricksAuthenticationType + # Authentication type not specified. + DATABRICKS_AUTHENTICATION_TYPE_UNSPECIFIED = 0 + + # Personal access token authentication. + PERSONAL_ACCESS_TOKEN = 1 + + # OAuth M2M authentication. + OAUTH_M2M = 2 + end + end + + # The properties of GoldengateGooglePubsubConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of GooglePubsubConnection. + # @!attribute [rw] service_account_key_file + # @return [::String] + # Optional. The base64 encoded content of the service account key file + # containing the credentials required to use Google Pub/Sub. + class GoldengateGooglePubsubConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateMicrosoftFabricConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of MicrosoftFabricConnection. + # @!attribute [rw] tenant_id + # @return [::String] + # Optional. Azure tenant ID of the application. + # @!attribute [rw] client_id + # @return [::String] + # Optional. Azure client ID of the application. + # @!attribute [rw] client_secret + # @return [::String] + # Optional. Client secret associated with the client id. + # @!attribute [rw] endpoint + # @return [::String] + # Optional. Optional Microsoft Fabric service endpoint. + # Default value: https://onelake.dfs.fabric.microsoft.com + class GoldengateMicrosoftFabricConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of GoldengateOracleAIDataPlatformConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Optional. The technology type of OracleAiDataPlatformConnection. + # @!attribute [rw] connection_url + # @return [::String] + # Optional. Connection URL. It must start with 'jdbc:spark://' + # @!attribute [rw] tenancy_id + # @return [::String] + # Optional. The OCID of the related OCI tenancy. + # @!attribute [rw] region + # @return [::String] + # Optional. The name of the region. e.g.: us-ashburn-1 + # @!attribute [rw] user_id + # @return [::String] + # Optional. The OCID of the OCI user who will access. + # @!attribute [rw] private_key_file + # @return [::String] + # Optional. The content of the private key file (PEM file) + # corresponding to the API key of the fingerprint. + # @!attribute [rw] private_key_passphrase_secret + # @return [::String] + # Optional. The passphrase of the private key. + # @!attribute [rw] public_key_fingerprint + # @return [::String] + # Optional. The fingerprint of the API Key of the user specified by the + # user_id. + # @!attribute [rw] use_resource_principal + # @return [::Boolean] + # Optional. Specifies that the user intends to authenticate to the instance + # using a resource principal. + class GoldengateOracleAIDataPlatformConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The Glue Iceberg catalog. + # @!attribute [rw] glue_id + # @return [::String] + # Required. The catalog ID of Glue. + class GlueIcebergCatalog + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The Nessie Iceberg catalog. + # @!attribute [rw] uri + # @return [::String] + # Required. The Nessie uri. + # @!attribute [rw] branch + # @return [::String] + # Required. The Nessie branch. + class NessieIcebergCatalog + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The Polaris Iceberg catalog. + # @!attribute [rw] uri + # @return [::String] + # Required. The Polaris uri. + # @!attribute [rw] polaris_catalog + # @return [::String] + # Required. The catalog name within Polaris. + # @!attribute [rw] client_id + # @return [::String] + # Required. The Polaris client ID. + # @!attribute [rw] principal_role + # @return [::String] + # Required. The Polaris principal role. + # @!attribute [rw] client_secret + # @return [::String] + # Optional. The Polaris client secret. + class PolarisIcebergCatalog + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The REST Iceberg catalog. + # @!attribute [rw] uri + # @return [::String] + # Required. The REST uri. + # @!attribute [rw] properties + # @return [::String] + # Optional. The base64 encoded content of the configuration file containing + # additional properties for the REST catalog. + class RestIcebergCatalog + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The Iceberg catalog details. + # @!attribute [rw] glue_iceberg_catalog + # @return [::Google::Cloud::OracleDatabase::V1::GlueIcebergCatalog] + # The Glue Iceberg catalog. + # + # Note: The following fields are mutually exclusive: `glue_iceberg_catalog`, `nessie_iceberg_catalog`, `polaris_iceberg_catalog`, `rest_iceberg_catalog`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] nessie_iceberg_catalog + # @return [::Google::Cloud::OracleDatabase::V1::NessieIcebergCatalog] + # The Nessie Iceberg catalog. + # + # Note: The following fields are mutually exclusive: `nessie_iceberg_catalog`, `glue_iceberg_catalog`, `polaris_iceberg_catalog`, `rest_iceberg_catalog`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] polaris_iceberg_catalog + # @return [::Google::Cloud::OracleDatabase::V1::PolarisIcebergCatalog] + # The Polaris Iceberg catalog. + # + # Note: The following fields are mutually exclusive: `polaris_iceberg_catalog`, `glue_iceberg_catalog`, `nessie_iceberg_catalog`, `rest_iceberg_catalog`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] rest_iceberg_catalog + # @return [::Google::Cloud::OracleDatabase::V1::RestIcebergCatalog] + # The REST Iceberg catalog. + # + # Note: The following fields are mutually exclusive: `rest_iceberg_catalog`, `glue_iceberg_catalog`, `nessie_iceberg_catalog`, `polaris_iceberg_catalog`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] catalog_type + # @return [::Google::Cloud::OracleDatabase::V1::IcebergCatalog::CatalogType] + # Required. The type of Iceberg catalog. + class IcebergCatalog + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of Iceberg catalog. + module CatalogType + # Catalog type not specified. + CATALOG_TYPE_UNSPECIFIED = 0 + + # Glue catalog. + GLUE = 1 + + # Hadoop catalog. + HADOOP = 2 + + # Nessie catalog. + NESSIE = 3 + + # Polaris catalog. + POLARIS = 4 + + # REST catalog. + REST = 5 + end + end + + # The Amazon S3 Iceberg storage. + # @!attribute [rw] scheme_type + # @return [::Google::Cloud::OracleDatabase::V1::AmazonS3IcebergStorage::SchemeType] + # Required. The scheme type of Amazon S3. + # @!attribute [rw] access_key_id + # @return [::String] + # Required. The access key ID of Amazon S3. + # @!attribute [rw] region + # @return [::String] + # Required. The region of Amazon S3. + # @!attribute [rw] bucket + # @return [::String] + # Required. The bucket of Amazon S3. + # @!attribute [rw] endpoint + # @return [::String] + # Optional. The endpoint of Amazon S3. + # @!attribute [rw] secret_access_key_secret + # @return [::String] + # Optional. The secret access key of Amazon S3. + class AmazonS3IcebergStorage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for scheme type of Amazon S3. + module SchemeType + # Scheme type not specified. + SCHEME_TYPE_UNSPECIFIED = 0 + + # S3 scheme. + S3 = 1 + + # S3A scheme. + S3A = 2 + end + end + + # The Google Cloud Storage Iceberg storage. + # @!attribute [rw] bucket + # @return [::String] + # Required. The bucket of Google Cloud Storage. + # @!attribute [rw] project_id + # @return [::String] + # Required. The project ID of Google Cloud Storage. + # @!attribute [rw] service_account_key_file + # @return [::String] + # Optional. The base64 encoded content of the service account key file of + # Google Cloud Storage. + class GoogleCloudStorageIcebergStorage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The Azure Data Lake Storage Iceberg storage. + # @!attribute [rw] azure_account + # @return [::String] + # Required. The account of Azure Data Lake Storage. + # @!attribute [rw] container + # @return [::String] + # Required. The container of Azure Data Lake Storage. + # @!attribute [rw] account_key_secret + # @return [::String] + # Optional. The account key of Azure Data Lake Storage. + # @!attribute [rw] endpoint + # @return [::String] + # Optional. The endpoint of Azure Data Lake Storage. + class AzureDataLakeStorageIcebergStorage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The Iceberg storage details. + # @!attribute [rw] amazon_s3_iceberg_storage + # @return [::Google::Cloud::OracleDatabase::V1::AmazonS3IcebergStorage] + # The Amazon S3 Iceberg storage. + # + # Note: The following fields are mutually exclusive: `amazon_s3_iceberg_storage`, `google_cloud_storage_iceberg_storage`, `azure_data_lake_storage_iceberg_storage`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] google_cloud_storage_iceberg_storage + # @return [::Google::Cloud::OracleDatabase::V1::GoogleCloudStorageIcebergStorage] + # The Google Cloud Storage Iceberg storage. + # + # Note: The following fields are mutually exclusive: `google_cloud_storage_iceberg_storage`, `amazon_s3_iceberg_storage`, `azure_data_lake_storage_iceberg_storage`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] azure_data_lake_storage_iceberg_storage + # @return [::Google::Cloud::OracleDatabase::V1::AzureDataLakeStorageIcebergStorage] + # The Azure Data Lake Storage Iceberg storage. + # + # Note: The following fields are mutually exclusive: `azure_data_lake_storage_iceberg_storage`, `amazon_s3_iceberg_storage`, `google_cloud_storage_iceberg_storage`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] storage_type + # @return [::Google::Cloud::OracleDatabase::V1::IcebergStorage::StorageType] + # Required. The type of Iceberg storage. + class IcebergStorage + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of Iceberg storage. + module StorageType + # Storage type not specified. + STORAGE_TYPE_UNSPECIFIED = 0 + + # Amazon S3 storage. + AMAZON_S3 = 1 + + # Google Cloud Storage storage. + GOOGLE_CLOUD_STORAGE = 2 + + # Azure Data Lake Storage storage. + AZURE_DATA_LAKE_STORAGE = 3 + end + end + + # The properties of GoldengateIcebergConnection. + # @!attribute [rw] technology_type + # @return [::String] + # Required. The technology type of Iceberg connection. + # @!attribute [rw] catalog + # @return [::Google::Cloud::OracleDatabase::V1::IcebergCatalog] + # Required. The Iceberg catalog. + # @!attribute [rw] storage + # @return [::Google::Cloud::OracleDatabase::V1::IcebergStorage] + # Required. The Iceberg storage. + class GoldengateIcebergConnectionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateConnection.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The value for parent of the GoldengateConnection in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] goldengate_connection_id + # @return [::String] + # Required. The ID of the GoldengateConnection to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @!attribute [rw] goldengate_connection + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # Required. The resource being created. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateGoldengateConnectionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateConnection.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteGoldengateConnectionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateConnection.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + class GetGoldengateConnectionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateConnection.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for GoldengateConnections in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 GoldengateConnections will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous ListGoldengateConnections + # call. Provide this to retrieve the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. + class ListGoldengateConnectionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `GoldengateConnection.List`. + # @!attribute [rw] goldengate_connections + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # The list of GoldengateConnections. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Optional. Locations that could not be reached. + class ListGoldengateConnectionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A name-value pair representing an attribute entry usable in a list of + # attributes. + # @!attribute [rw] key + # @return [::String] + # Required. The name of the property entry. + # @!attribute [rw] value + # @return [::String] + # Required. The value of the property entry. + class NameValuePair + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a Kafka bootstrap server with host name, optional port defaults to + # 9092, and an optional private ip. + # @!attribute [rw] host + # @return [::String] + # Required. The name or address of a host. + # @!attribute [rw] port + # @return [::Integer] + # Optional. The port of an endpoint usually specified for a connection. + # @!attribute [rw] private_ip_address + # @return [::String] + # Optional. The private IP address of the connection's endpoint in the + # customer's VCN, typically a database endpoint or a big data endpoint (e.g. + # Kafka bootstrap server). In case the privateIp is provided, the subnetId + # must also be provided. In case the privateIp (and the subnetId) is not + # provided it is assumed the datasource is publicly accessible. In case the + # connection is accessible only privately, the lack of privateIp will result + # in not being able to access the connection. + class KafkaBootstrapServer + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb new file mode 100644 index 000000000000..9a726625ab06 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb @@ -0,0 +1,300 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Represents the metadata of a Goldengate Connection Assignment. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the GoldengateConnectionAssignment resource in the + # following format: + # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignmentProperties] + # Required. The properties of the GoldengateConnectionAssignment. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time when the connection assignment was created. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels or tags associated with the + # GoldengateConnectionAssignment. + # @!attribute [rw] display_name + # @return [::String] + # Optional. The display name for the GoldengateConnectionAssignment. + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. The OCID of the entitlement linked to this resource. + class GoldengateConnectionAssignment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The properties of a GoldengateConnectionAssignment. + # @!attribute [r] ocid + # @return [::String] + # Output only. The + # [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) + # of the connection assignment being referenced. + # @!attribute [rw] goldengate_connection + # @return [::String] + # Required. The GoldengateConnection resource to be assigned. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection} + # @!attribute [rw] goldengate_deployment + # @return [::String] + # Required. The GoldenGateDeployment to assign the connection to. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment} + # @!attribute [r] alias + # @return [::String] + # Output only. Credential store alias. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignmentProperties::State] + # Output only. The lifecycle state of the connection assignment. + class GoldengateConnectionAssignmentProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Possible lifecycle states for connection assignments. + module State + # Lifecycle state is unspecified. + STATE_UNSPECIFIED = 0 + + # Connection assignment is being created. + CREATING = 1 + + # Connection assignment is active. + ACTIVE = 2 + + # Connection assignment failed. + FAILED = 3 + + # Connection assignment is being updated. + UPDATING = 4 + + # Connection assignment is being deleted. + DELETING = 5 + end + end + + # Request message for listing GoldengateConnectionAssignments. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the GoldengateConnectionAssignments. + # Format: projects/\\{project}/locations/\\{location} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of GoldengateConnectionAssignments to return. + # The service may return fewer than this value. If unspecified, at most 50 + # GoldengateConnectionAssignments will be returned. The maximum value is + # 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous + # `ListGoldengateConnectionAssignments` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `ListGoldengateConnectionAssignments` must match the call that provided + # the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. A filter expression that filters GoldengateConnectionAssignments + # listed in the response. + # @!attribute [rw] order_by + # @return [::String] + # Optional. A comma-separated list of fields to order by, sorted in ascending + # order. Use "DESC" after a field name for descending. + class ListGoldengateConnectionAssignmentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Response message for listing GoldengateConnectionAssignments. + # @!attribute [rw] goldengate_connection_assignments + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # The list of GoldengateConnectionAssignments. + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListGoldengateConnectionAssignmentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for getting a GoldengateConnectionAssignment. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the GoldengateConnectionAssignment to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + class GetGoldengateConnectionAssignmentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for creating a GoldengateConnectionAssignment. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource where this GoldengateConnectionAssignment + # will be created. Format: projects/\\{project}/locations/\\{location} + # @!attribute [rw] goldengate_connection_assignment_id + # @return [::String] + # Required. The ID of the GoldengateConnectionAssignment to create. + # @!attribute [rw] goldengate_connection_assignment + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # Required. The GoldengateConnectionAssignment to create. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateGoldengateConnectionAssignmentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Request message for TestGoldengateConnectionAssignment. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the connection assignment for which to test connection. + # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @!attribute [rw] type + # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest::TestType] + # Optional. The type of the test of the assigned connection. + # The only type actually supported is DEFAULT. + class TestGoldengateConnectionAssignmentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of test to perform. + module TestType + # The default value. This value is unused. + TEST_TYPE_UNSPECIFIED = 0 + + # The default connection test. + DEFAULT = 1 + end + end + + # Error details for TestGoldengateConnectionAssignment. + # @!attribute [rw] code + # @return [::String] + # A short error code that defines the error, meant for programmatic parsing. + # @!attribute [rw] message + # @return [::String] + # A human-readable error message. + # @!attribute [rw] action + # @return [::String] + # The text describing the action required to fix the issue. + # @!attribute [rw] issue + # @return [::String] + # The text describing the root cause of the reported issue. + class TestConnectionAssignmentError + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The result of the connectivity test performed between the Goldengate + # deployment and the associated database / service. + # @!attribute [rw] result_type + # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse::ResultType] + # Type of the result i.e. Success, Failure or Timeout. + # @!attribute [rw] error + # @return [::Google::Cloud::OracleDatabase::V1::TestConnectionAssignmentError] + # Error details if test connection failed. + # @!attribute [rw] errors + # @return [::Array<::Google::Cloud::OracleDatabase::V1::TestConnectionAssignmentError>] + # List of test connection assignment error objects. + class TestGoldengateConnectionAssignmentResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Type of the result. + module ResultType + # Result type is unspecified. + RESULT_TYPE_UNSPECIFIED = 0 + + # Test connection succeeded. + SUCCEEDED = 1 + + # Test connection failed. + FAILED = 2 + + # Test connection timed out. + TIMED_OUT = 3 + end + end + + # Request message for deleting a GoldengateConnectionAssignment. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the GoldengateConnectionAssignment to delete. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes after the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteGoldengateConnectionAssignmentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb new file mode 100644 index 000000000000..767ede5c1a73 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb @@ -0,0 +1,186 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Goldengate Connection Type resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Goldengate Connection Type resource with the + # format: + # projects/\\{project}/locations/\\{region}/goldengateConnectionTypes/\\{goldengate_connection_type} + # @!attribute [r] connection_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType::ConnectionType] + # Output only. The connection type of the Goldengate Connection Type + # resource. + # @!attribute [r] technology_types + # @return [::Array<::String>] + # Output only. The technology type of the Goldengate Connection Type + # resource. + class GoldengateConnectionType + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The connection type of the Goldengate Connection Type resource. + module ConnectionType + # Default unspecified value. + CONNECTION_TYPE_UNSPECIFIED = 0 + + # Goldengate Connection Type category is GOLDENGATE. + GOLDENGATE = 1 + + # Goldengate Connection Type category is KAFKA. + KAFKA = 2 + + # Goldengate Connection Type category is KAFKA_SCHEMA_REGISTRY. + KAFKA_SCHEMA_REGISTRY = 3 + + # Goldengate Connection Type category is MYSQL. + MYSQL = 4 + + # Goldengate Connection Type category is JAVA_MESSAGE_SERVICE. + JAVA_MESSAGE_SERVICE = 5 + + # Goldengate Connection Type category is MICROSOFT_SQLSERVER. + MICROSOFT_SQLSERVER = 6 + + # Goldengate Connection Type category is OCI_OBJECT_STORAGE. + OCI_OBJECT_STORAGE = 7 + + # Goldengate Connection Type category is ORACLE. + ORACLE = 8 + + # Goldengate Connection Type category is AZURE_DATA_LAKE_STORAGE. + AZURE_DATA_LAKE_STORAGE = 9 + + # Goldengate Connection Type category is POSTGRESQL. + POSTGRESQL = 10 + + # Goldengate Connection Type category is AZURE_SYNAPSE_ANALYTICS. + AZURE_SYNAPSE_ANALYTICS = 11 + + # Goldengate Connection Type category is SNOWFLAKE. + SNOWFLAKE = 12 + + # Goldengate Connection Type category is AMAZON_S3. + AMAZON_S3 = 13 + + # Goldengate Connection Type category is HDFS. + HDFS = 14 + + # Goldengate Connection Type category is ORACLE_AI_DATA_PLATFORM. + ORACLE_AI_DATA_PLATFORM = 15 + + # Goldengate Connection Type category is ORACLE_NOSQL. + ORACLE_NOSQL = 16 + + # Goldengate Connection Type category is MONGODB. + MONGODB = 17 + + # Goldengate Connection Type category is AMAZON_KINESIS. + AMAZON_KINESIS = 18 + + # Goldengate Connection Type category is AMAZON_REDSHIFT. + AMAZON_REDSHIFT = 19 + + # Goldengate Connection Type category is DB2. + DB2 = 20 + + # Goldengate Connection Type category is REDIS. + REDIS = 21 + + # Goldengate Connection Type category is ELASTICSEARCH. + ELASTICSEARCH = 22 + + # Goldengate Connection Type category is GENERIC. + GENERIC = 23 + + # Goldengate Connection Type category is GOOGLE_CLOUD_STORAGE. + GOOGLE_CLOUD_STORAGE = 24 + + # Goldengate Connection Type category is GOOGLE_BIGQUERY. + GOOGLE_BIGQUERY = 25 + + # Goldengate Connection Type category is DATABRICKS. + DATABRICKS = 26 + + # Goldengate Connection Type category is GOOGLE_PUBSUB. + GOOGLE_PUBSUB = 27 + + # Goldengate Connection Type category is MICROSOFT_FABRIC. + MICROSOFT_FABRIC = 28 + + # Goldengate Connection Type category is ICEBERG. + ICEBERG = 29 + end + end + + # Message for getting a GoldengateConnectionType. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the resource in the format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionTypes/\\{goldengate_connection_type} + class GetGoldengateConnectionTypeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for listing GoldengateConnectionTypes. + # @!attribute [rw] parent + # @return [::String] + # Required. Parent value for ListGoldengateConnectionTypesRequest + # Format: projects/\\{project}/locations/\\{location} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. The + # connection_type field must be specified in the format: + # `connection_type="ORACLE"`. + class ListGoldengateConnectionTypesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for response to listing GoldengateConnectionTypes + # @!attribute [rw] goldengate_connection_types + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # The list of GoldengateConnectionType + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Locations that could not be reached. + class ListGoldengateConnectionTypesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb new file mode 100644 index 000000000000..8a5e6d795789 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb @@ -0,0 +1,712 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # GoldengateDeployment Goldengate Deployment resource model. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the GoldengateDeployment resource in the following + # format: + # projects/\\{project}/locations/\\{region}/goldengateDeployments/\\{goldengate_deployment} + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentProperties] + # Required. The properties of the GoldengateDeployment. + # @!attribute [rw] gcp_oracle_zone + # @return [::String] + # Optional. The GCP Oracle zone where Oracle GoldengateDeployment is hosted. + # Example: us-east4-b-r2. + # If not specified, the system will pick a zone based on availability. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. The labels or tags associated with the GoldengateDeployment. + # @!attribute [rw] odb_network + # @return [::String] + # Optional. The name of the OdbNetwork associated with the + # GoldengateDeployment. + # @!attribute [rw] odb_subnet + # @return [::String] + # Required. The name of the OdbSubnet associated with the + # GoldengateDeployment for IP allocation. + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. The ID of the subscription entitlement associated with the + # GoldengateDeployment + # @!attribute [rw] display_name + # @return [::String] + # Required. The display name for the GoldengateDeployment. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the GoldengateDeployment was created. + # @!attribute [r] oci_url + # @return [::String] + # Output only. HTTPS link to OCI resources exposed to Customer via UI + # Interface. + class GoldengateDeployment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Properties of GoldengateDeployment. + # @!attribute [r] ocid + # @return [::String] + # Output only. OCID of the GoldengateDeployment. + # @!attribute [r] lifecycle_state + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentProperties::GoldengateDeploymentLifecycleState] + # Output only. State of the GoldengateDeployment. + # @!attribute [rw] license_model + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentProperties::LicenseModel] + # Optional. The Oracle license model that applies to a Deployment. + # @!attribute [rw] environment_type + # @return [::String] + # Optional. The environment type of the GoldengateDeployment. + # @!attribute [rw] cpu_core_count + # @return [::Integer] + # Optional. The Minimum number of OCPUs to be made available for this + # Deployment. + # @!attribute [rw] is_auto_scaling_enabled + # @return [::Boolean] + # Optional. Indicates if auto scaling is enabled for the Deployment's CPU + # core count. + # @!attribute [rw] description + # @return [::String] + # Optional. The description of the GoldengateDeployment. + # @!attribute [rw] deployment_type + # @return [::String] + # Required. A valid Goldengate Deployment type. For a list of supported + # types, use the `ListGoldengateDeploymentTypes` operation. + # @!attribute [rw] ogg_data + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateOggDeployment] + # Required. The ogg data of the GoldengateDeployment. + # @!attribute [rw] maintenance_window + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMaintenanceWindow] + # Optional. The maintenance window of the GoldengateDeployment. + # @!attribute [rw] maintenance_config + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateMaintenanceConfig] + # Optional. The maintenance configuration of the GoldengateDeployment. + # @!attribute [r] fqdn + # @return [::String] + # Output only. The Fully Qualified Domain Name of the GoldengateDeployment. + # @!attribute [r] lifecycle_sub_state + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentProperties::GoldengateDeploymentLifecycleSubState] + # Output only. The lifecycle sub-state of the GoldengateDeployment. + # @!attribute [r] category + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentProperties::GoldengateDeploymentCategory] + # Output only. The category of the GoldengateDeployment. + # @!attribute [r] deployment_backup_id + # @return [::String] + # Output only. The deployment backup id of the GoldengateDeployment. + # @!attribute [r] update_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the GoldengateDeployment was updated. + # @!attribute [r] lifecycle_details + # @return [::String] + # Output only. The lifecycle details of the GoldengateDeployment. + # @!attribute [r] healthy + # @return [::Boolean] + # Output only. Whether the GoldengateDeployment is healthy. + # @!attribute [r] load_balancer_subnet_id + # @return [::String] + # Output only. The load balancer subnet id of the GoldengateDeployment. + # @!attribute [r] load_balancer_id + # @return [::String] + # Output only. The load balancer id of the GoldengateDeployment. + # @!attribute [r] nsg_ids + # @return [::Array<::String>] + # Output only. The nsg ids of the GoldengateDeployment. + # @!attribute [r] is_public + # @return [::Boolean] + # Output only. Whether the GoldengateDeployment is public. + # @!attribute [r] public_ip_address + # @return [::String] + # Output only. The public ip address of the GoldengateDeployment. + # @!attribute [r] private_ip_address + # @return [::String] + # Output only. The private ip address of the GoldengateDeployment. + # @!attribute [r] deployment_url + # @return [::String] + # Output only. The deployment url of the GoldengateDeployment. + # @!attribute [r] is_latest_version + # @return [::Boolean] + # Output only. Whether the GoldengateDeployment is of the latest version. + # @!attribute [r] upgrade_required_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time upgrade required of the GoldengateDeployment. + # @!attribute [r] storage_utilization_bytes + # @return [::Integer] + # Output only. The storage utilization in bytes of the GoldengateDeployment. + # @!attribute [r] is_storage_utilization_limit_exceeded + # @return [::Boolean] + # Output only. Whether storage utilization limit is exceeded of the + # GoldengateDeployment. + # @!attribute [r] deployment_diagnostic_data + # @return [::Google::Cloud::OracleDatabase::V1::DeploymentDiagnosticData] + # Output only. The deployment diagnostic data of the GoldengateDeployment. + # @!attribute [r] backup_schedule + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateBackupSchedule] + # Output only. The backup schedule of the GoldengateDeployment. + # @!attribute [r] next_maintenance_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time of next maintenance of the GoldengateDeployment. + # @!attribute [r] next_maintenance_action_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentProperties::NextMaintenanceActionType] + # Output only. The next maintenance action type of the GoldengateDeployment. + # @!attribute [r] next_maintenance_description + # @return [::String] + # Output only. The next maintenance description of the GoldengateDeployment. + # @!attribute [r] ogg_version_support_end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time ogg version supported until of the + # GoldengateDeployment. + # @!attribute [r] ingress_ips + # @return [::Array<::Google::Cloud::OracleDatabase::V1::IngressIp>] + # Output only. The ingress ips of the GoldengateDeployment. + # @!attribute [r] deployment_role + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentProperties::GoldengateDeploymentRoleType] + # Output only. The deployment role of the GoldengateDeployment. + # @!attribute [r] last_backup_schedule_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time last backup scheduled of the GoldengateDeployment. + # @!attribute [r] next_backup_schedule_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time next backup scheduled of the GoldengateDeployment. + # @!attribute [r] role_change_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time when the role of the GoldengateDeployment was + # changed. + # @!attribute [r] locks + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentLock>] + # Output only. The locks of the GoldengateDeployment. + # @!attribute [r] placements + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengatePlacement>] + # Output only. The placements of the GoldengateDeployment. + class GoldengateDeploymentProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The various lifecycle states of the GoldengateDeployment. + module GoldengateDeploymentLifecycleState + # Default unspecified value. + GOLDENGATE_DEPLOYMENT_LIFECYCLE_STATE_UNSPECIFIED = 0 + + # The deployment is being created. + CREATING = 1 + + # The deployment is being updated. + UPDATING = 2 + + # The deployment is active. + ACTIVE = 3 + + # The deployment is inactive. + INACTIVE = 4 + + # The deployment is being deleted. + DELETING = 5 + + # The deployment is deleted. + DELETED = 6 + + # The deployment failed. + FAILED = 7 + + # The deployment needs attention. + NEEDS_ATTENTION = 8 + + # The deployment is in progress. + IN_PROGRESS = 9 + + # The deployment is canceling. + CANCELLING = 10 + + # The deployment is canceled. + CANCELLED = 11 + + # The deployment succeeded. + SUCCEEDED = 12 + + # The deployment is waiting. + WAITING = 13 + end + + # The license model of the GoldengateDeployment. + module LicenseModel + # The license model is unspecified. + LICENSE_MODEL_UNSPECIFIED = 0 + + # The license model is included. + LICENSE_INCLUDED = 1 + + # The license model is bring your own license. + BRING_YOUR_OWN_LICENSE = 2 + end + + # The various lifecycle sub-states of the GoldengateDeployment. + module GoldengateDeploymentLifecycleSubState + # The lifecycle sub-state is unspecified. + GOLDENGATE_DEPLOYMENT_LIFECYCLE_SUB_STATE_UNSPECIFIED = 0 + + # The deployment is recovering. + RECOVERING = 1 + + # The deployment is starting. + STARTING = 2 + + # The deployment is stopping. + STOPPING = 3 + + # The deployment is moving. + MOVING = 4 + + # The deployment is upgrading. + UPGRADING = 5 + + # The deployment is restoring. + RESTORING = 6 + + # The deployment is backing up. + BACKING_UP = 7 + + # The deployment is rolling back. + ROLLING_BACK = 8 + end + + # The category of the GoldengateDeployment. + module GoldengateDeploymentCategory + # The category is unspecified. + GOLDENGATE_DEPLOYMENT_CATEGORY_UNSPECIFIED = 0 + + # The deployment is data replication. + DATA_REPLICATION = 1 + + # The deployment is data transforms. + DATA_TRANSFORMS = 2 + end + + # The various next maintenance action types of the GoldengateDeployment. + module NextMaintenanceActionType + # The next maintenance action type is unspecified. + NEXT_MAINTENANCE_ACTION_TYPE_UNSPECIFIED = 0 + + # The next maintenance action type is upgrade. + UPGRADE = 1 + end + + # The deployment role type of the GoldengateDeployment. + module GoldengateDeploymentRoleType + # The deployment role type is unspecified. + GOLDENGATE_DEPLOYMENT_ROLE_TYPE_UNSPECIFIED = 0 + + # The deployment role type is primary. + PRIMARY = 1 + + # The deployment role type is standby. + STANDBY = 2 + end + end + + # The Ogg data of the GoldengateDeployment. + # @!attribute [rw] admin_password + # @return [::String] + # Optional. The Goldengate deployment console password in plain text. + # + # Note: The following fields are mutually exclusive: `admin_password`, `admin_password_secret_version`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] admin_password_secret_version + # @return [::String] + # Optional. Input only. The Goldengate deployment console password secret + # version. + # + # Note: The following fields are mutually exclusive: `admin_password_secret_version`, `admin_password`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] deployment + # @return [::String] + # Required. The name given to the Goldengate service deployment. The name + # must be 1 to 32 characters long, must contain only alphanumeric characters + # and must start with a letter. + # @!attribute [rw] admin_username + # @return [::String] + # Required. The Goldengate deployment console username. + # @!attribute [rw] ogg_version + # @return [::String] + # Optional. Version of OGG + # @!attribute [r] certificate + # @return [::String] + # Output only. The certificate of the GoldengateDeployment. + # @!attribute [r] credential_store + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateOggDeployment::CredentialStore] + # Output only. The credential store of the GoldengateDeployment. + # @!attribute [r] identity_domain_id + # @return [::String] + # Output only. The identity domain id of the GoldengateDeployment. + # @!attribute [r] password_secret_id + # @return [::String] + # Output only. The password secret id of the GoldengateDeployment. + # @!attribute [r] group_roles_mapping + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateGroupToRolesMapping] + # Output only. The group to roles mapping of the GoldengateDeployment. + class GoldengateOggDeployment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The credential store of the GoldengateDeployment. + module CredentialStore + # The credential store is unspecified. + CREDENTIAL_STORE_UNSPECIFIED = 0 + + # The credential store is Goldengate. + GOLDENGATE = 1 + + # The credential store is IAM. + IAM = 2 + end + end + + # The maintenance window of the GoldengateDeployment. + # @!attribute [rw] day + # @return [::Google::Type::DayOfWeek] + # Required. Days of the week. + # @!attribute [rw] start_hour + # @return [::Integer] + # Required. Start hour for maintenance period. Hour is in UTC. + class GoldengateMaintenanceWindow + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The maintenance configuration of the GoldengateDeployment. + # @!attribute [rw] is_interim_release_auto_upgrade_enabled + # @return [::Boolean] + # Optional. By default auto upgrade for interim releases are not enabled. If + # auto-upgrade is enabled for interim release, you have to specify + # interim_release_upgrade_period_days too. + # @!attribute [rw] interim_release_upgrade_period_days + # @return [::Integer] + # Optional. Defines auto upgrade period for interim releases. This period + # must be shorter or equal to bundle release upgrade period. + # @!attribute [rw] bundle_release_upgrade_period_days + # @return [::Integer] + # Optional. Defines auto upgrade period for bundle releases. Manually + # configured period cannot be longer than service defined period for bundle + # releases. This period must be shorter or equal to major release upgrade + # period. Not passing this field during create will equate to using the + # service default. + # @!attribute [rw] major_release_upgrade_period_days + # @return [::Integer] + # Optional. Defines auto upgrade period for major releases. Manually + # configured period cannot be longer than service defined period for major + # releases. Not passing this field during create will equate to using the + # service default. + # @!attribute [rw] security_patch_upgrade_period_days + # @return [::Integer] + # Optional. Defines auto upgrade period for releases with security fix. + # Manually configured period cannot be longer than service defined period for + # security releases. Not passing this field during create will equate to + # using the service default. + class GoldengateMaintenanceConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The deployment diagnostic data. + # @!attribute [r] namespace + # @return [::String] + # Output only. The namespace name. + # @!attribute [r] bucket + # @return [::String] + # Output only. The bucket name. + # @!attribute [r] object + # @return [::String] + # Output only. The object name. + # @!attribute [r] diagnostic_state + # @return [::Google::Cloud::OracleDatabase::V1::DeploymentDiagnosticData::DiagnosticState] + # Output only. The diagnostic state. + # @!attribute [r] diagnostic_start_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time diagnostic start. + # @!attribute [r] diagnostic_end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time diagnostic end. + class DeploymentDiagnosticData + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The possible states of the diagnostic data. + module DiagnosticState + # The diagnostic state is unspecified. + DIAGNOSTIC_STATE_UNSPECIFIED = 0 + + # The diagnostic is in progress. + IN_PROGRESS = 1 + + # The diagnostic completed successfully. + SUCCEEDED = 2 + + # The diagnostic failed. + FAILED = 3 + end + end + + # The backup schedule of the GoldengateDeployment. + # @!attribute [r] bucket + # @return [::String] + # Output only. The bucket name. + # @!attribute [r] compartment_id + # @return [::String] + # Output only. The compartment id. + # @!attribute [r] frequency_backup_scheduled + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateBackupSchedule::FrequencyBackupScheduled] + # Output only. The frequency backup scheduled. + # @!attribute [r] metadata_only + # @return [::Boolean] + # Output only. If metadata only. + # @!attribute [r] namespace + # @return [::String] + # Output only. The namespace name. + # @!attribute [r] backup_scheduled_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The timestamp of when the backup was scheduled. + class GoldengateBackupSchedule + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Enum for frequency backup scheduled. + module FrequencyBackupScheduled + # The frequency backup scheduled is unspecified. + FREQUENCY_BACKUP_SCHEDULED_UNSPECIFIED = 0 + + # The frequency backup scheduled is daily. + DAILY = 1 + + # The frequency backup scheduled is weekly. + WEEKLY = 2 + + # The frequency backup scheduled is monthly. + MONTHLY = 3 + end + end + + # The ingress IPs of the GoldengateDeployment. + # @!attribute [r] ingress_ip_address + # @return [::String] + # Output only. The ingress IP. + class IngressIp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The lock of the GoldengateDeployment. + # @!attribute [r] type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentLock::LockType] + # Output only. The type of lock. + # @!attribute [r] compartment_id + # @return [::String] + # Output only. The compartment id. + # @!attribute [r] related_resource_id + # @return [::String] + # Output only. The related resource id. + # @!attribute [r] message + # @return [::String] + # Output only. The message. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time created. + class GoldengateDeploymentLock + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The type of lock. + module LockType + # The lock type is unspecified. + LOCK_TYPE_UNSPECIFIED = 0 + + # The lock type is full. + FULL = 1 + + # The lock type is delete. + DELETE = 2 + end + end + + # The placement of the GoldengateDeployment. + # @!attribute [r] availability_domain + # @return [::String] + # Output only. The availability domain. + # @!attribute [r] fault_domain + # @return [::String] + # Output only. The fault domain. + class GoldengatePlacement + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The group to roles mapping of the GoldengateDeployment. + # @!attribute [r] security_group_id + # @return [::String] + # Output only. The security group id. + # @!attribute [r] administrator_group_id + # @return [::String] + # Output only. The administrator group id. + # @!attribute [r] operator_group_id + # @return [::String] + # Output only. The operator group id. + # @!attribute [r] user_group_id + # @return [::String] + # Output only. The user group id. + class GoldengateGroupToRolesMapping + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateDeployment.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The value for parent of the GoldengateDeployment in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] goldengate_deployment_id + # @return [::String] + # Required. The ID of the GoldengateDeployment to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @!attribute [rw] goldengate_deployment + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # Required. The resource being created. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateGoldengateDeploymentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateDeployment.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteGoldengateDeploymentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateDeployment.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + class GetGoldengateDeploymentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateDeployment.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for GoldengateDeployments in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 GoldengateDeployments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous ListGoldengateDeployments + # call. Provide this to retrieve the subsequent page. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. + class ListGoldengateDeploymentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `GoldengateDeployment.List`. + # @!attribute [rw] goldengate_deployments + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] + # The list of GoldengateDeployments. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Optional. Locations that could not be reached. + class ListGoldengateDeploymentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateDeployment.Stop`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + class StopGoldengateDeploymentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GoldengateDeployment.Start`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + class StartGoldengateDeploymentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb new file mode 100644 index 000000000000..b5929ddf5253 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Goldengate Deployment Environment resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Goldengate Deployment Environment resource with + # the format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment} + # @!attribute [r] category + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment::DeploymentCategory] + # Output only. The category of the Goldengate Deployment Environment + # resource. + # @!attribute [rw] display_name + # @return [::String] + # The display name of the Goldengate Deployment Environment resource. + # @!attribute [r] default_cpu_core_count + # @return [::Integer] + # Output only. The default CPU core count of the Goldengate Deployment + # Environment resource. + # @!attribute [r] environment_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment::DeploymentEnvironmentType] + # Output only. The environment type of the Goldengate Deployment Environment + # resource. + # @!attribute [r] auto_scaling_enabled + # @return [::Boolean] + # Output only. Whether auto scaling is enabled by default for the Goldengate + # Deployment Environment resource. + # @!attribute [r] max_cpu_core_count + # @return [::Integer] + # Output only. The max CPU core count of the Goldengate Deployment + # Environment resource. + # @!attribute [r] memory_gb_per_cpu_core + # @return [::Integer] + # Output only. The memory per CPU core in GBs of the Goldengate Deployment + # Environment resource. + # @!attribute [r] min_cpu_core_count + # @return [::Integer] + # Output only. The min CPU core count of the Goldengate Deployment + # Environment resource. + # @!attribute [r] network_bandwidth_gbps_per_cpu_core + # @return [::Integer] + # Output only. The network bandwidth per CPU core in Gbps of the Goldengate + # Deployment Environment resource. + # @!attribute [r] storage_usage_limit_gb_per_cpu_core + # @return [::Integer] + # Output only. The storage usage limit per CPU core in GBs of the Goldengate + # Deployment Environment resource. + class GoldengateDeploymentEnvironment + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Deployment category of the Goldengate Deployment resource. + module DeploymentCategory + # Default unspecified value. + DEPLOYMENT_CATEGORY_UNSPECIFIED = 0 + + # Goldengate Deployment Environment category is DATA_REPLICATION_CATEGORY. + DATA_REPLICATION_CATEGORY = 1 + + # Goldengate Deployment Environment category is DATA_TRANSFORMS_CATEGORY. + DATA_TRANSFORMS_CATEGORY = 2 + end + + # The environment type of the Goldengate Deployment Environment resource. + module DeploymentEnvironmentType + # Default unspecified value. + DEPLOYMENT_ENVIRONMENT_TYPE_UNSPECIFIED = 0 + + # Goldengate Deployment Environment type is PRODUCTION. + PRODUCTION = 1 + + # Goldengate Deployment Environment type is DEVELOPMENT_OR_TESTING. + DEVELOPMENT_OR_TESTING = 2 + end + end + + # Message for getting a GoldengateDeploymentEnvironment. + # @!attribute [rw] name + # @return [::String] + # Required. Name of the resource with the format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment} + class GetGoldengateDeploymentEnvironmentRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for listing GoldengateDeploymentEnvironments. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of + # GoldengateDeploymentEnvironments. Format: + # projects/\\{project}/locations/\\{location} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 deployment environments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + class ListGoldengateDeploymentEnvironmentsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for response to listing GoldengateDeploymentEnvironments + # @!attribute [rw] goldengate_deployment_environments + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # The list of GoldengateDeploymentEnvironment + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + # If this field is empty, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Locations that could not be reached. + class ListGoldengateDeploymentEnvironmentsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb new file mode 100644 index 000000000000..4faa09e065dd --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb @@ -0,0 +1,177 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Goldengate Deployment Type resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Goldengate Deployment Type resource with the + # format: + # projects/\\{project}/locations/\\{region}/goldengateDeploymentTypes/\\{goldengate_deployment_type} + # @!attribute [r] deployment_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType::DeploymentType] + # Output only. The deployment type of the Goldengate Deployment Type + # resource. + # @!attribute [r] category + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType::DeploymentCategory] + # Output only. The category of the Goldengate Deployment Type resource. + # @!attribute [r] connection_types + # @return [::Array<::String>] + # Output only. The connection types of the Goldengate Deployment Type + # resource. + # @!attribute [r] display_name + # @return [::String] + # Output only. The display name of the Goldengate Deployment Type resource. + # @!attribute [r] ogg_version + # @return [::String] + # Output only. The Ogg version of the Goldengate Deployment Type resource. + # @!attribute [r] source_technologies + # @return [::Array<::String>] + # Output only. The source technologies of the Goldengate Deployment Type + # resource. + # @!attribute [r] supported_capabilities + # @return [::Array<::String>] + # Output only. The supported capabilities of the Goldengate Deployment Type + # resource. + # @!attribute [r] supported_technologies_url + # @return [::String] + # Output only. The supported technologies URL of the Goldengate Deployment + # Type resource. + # @!attribute [r] target_technologies + # @return [::Array<::String>] + # Output only. The target technologies of the Goldengate Deployment Type + # resource. + # @!attribute [r] default_username + # @return [::String] + # Output only. The default username of the Goldengate Deployment Type + # resource. + class GoldengateDeploymentType + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The deployment type of the Goldengate Deployment Type resource. + module DeploymentType + # Default unspecified value. + DEPLOYMENT_TYPE_UNSPECIFIED = 0 + + # Goldengate Deployment Type category is OGG. + OGG = 1 + + # Goldengate Deployment Type category is DATABASE_ORACLE. + DATABASE_ORACLE = 2 + + # Goldengate Deployment Type category is BIGDATA. + BIGDATA = 3 + + # Goldengate Deployment Type category is DATABASE_MICROSOFT_SQLSERVER. + DATABASE_MICROSOFT_SQLSERVER = 4 + + # Goldengate Deployment Type category is DATABASE_MYSQL. + DATABASE_MYSQL = 5 + + # Goldengate Deployment Type category is DATABASE_POSTGRESQL. + DATABASE_POSTGRESQL = 6 + + # Goldengate Deployment Type category is DATABASE_DB2ZOS. + DATABASE_DB2ZOS = 7 + + # Goldengate Deployment Type category is DATABASE_DB2I. + DATABASE_DB2I = 8 + + # Goldengate Deployment Type category is GGSA. + GGSA = 9 + + # Goldengate Deployment Type category is DATA_TRANSFORMS. + DATA_TRANSFORMS = 10 + end + + # The category of the Goldengate Deployment Type resource. + module DeploymentCategory + # Default unspecified value. + DEPLOYMENT_CATEGORY_UNSPECIFIED = 0 + + # Goldengate Deployment Type category is DATA_REPLICATION_CATEGORY. + DATA_REPLICATION_CATEGORY = 1 + + # Goldengate Deployment Type category is DATA_TRANSFORMS_CATEGORY. + DATA_TRANSFORMS_CATEGORY = 2 + end + end + + # Message for getting a GoldengateDeploymentType. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the GoldengateDeploymentType to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentTypes/\\{goldengate_deployment_type} + class GetGoldengateDeploymentTypeRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for listing GoldengateDeploymentTypes. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent resource. + # Format: projects/\\{project}/locations/\\{location} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_type and ogg_version fields must be specified in the format: + # `deployment_type="DATABASE_ORACLE"` or `ogg_version="version"`. + # Allowed values for deployment_type are: `DATABASE_ORACLE`, `BIGDATA`, + # `DATABASE_MICROSOFT_SQLSERVER`, `DATABASE_MYSQL`, `DATABASE_POSTGRESQL`, + # `DATABASE_DB2ZOS`, `DATABASE_DB2I`, `GGSA`, `DATA_TRANSFORMS`. + # @!attribute [rw] order_by + # @return [::String] + # Optional. Hint for how to order the results + class ListGoldengateDeploymentTypesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for response to listing GoldengateDeploymentTypes + # @!attribute [rw] goldengate_deployment_types + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # The list of GoldengateDeploymentType + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. The resource names of locations that could not be reached. + class ListGoldengateDeploymentTypesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb new file mode 100644 index 000000000000..2df1aac0ac04 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb @@ -0,0 +1,175 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Goldengate Deployment Version resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the Goldengate Deployment Version resource with the + # format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version} + # @!attribute [r] ocid + # @return [::String] + # Output only. The deployment version ocid of the Goldengate Deployment + # Version resource. + # @!attribute [r] properties + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersionProperties] + # Output only. The technology type of the Goldengate Deployment Version + # resource. + class GoldengateDeploymentVersion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Properties of GoldengateDeploymentVersion. + # @!attribute [r] deployment_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersionProperties::DeploymentType] + # Output only. The deployment type of the Goldengate Deployment Version + # resource. + # @!attribute [rw] security_fix + # @return [::Boolean] + # Optional. Whether the Goldengate Deployment Version resource is a security + # fix. + # @!attribute [r] ogg_version + # @return [::String] + # Output only. The OGG version of the Goldengate Deployment Version resource. + # @!attribute [r] release_type + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersionProperties::DeploymentReleaseType] + # Output only. The release type of the Goldengate Deployment Version + # resource. + # @!attribute [r] release_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The release time of the Goldengate Deployment Version + # resource. + # @!attribute [r] support_end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The support end time of the Goldengate Deployment Version + # resource. + class GoldengateDeploymentVersionProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The deployment type of the Goldengate Deployment Version resource. + module DeploymentType + # Default unspecified value. + DEPLOYMENT_TYPE_UNSPECIFIED = 0 + + # Goldengate Deployment Type category is OGG. + OGG = 1 + + # Goldengate Deployment Type category is DATABASE_ORACLE. + DATABASE_ORACLE = 2 + + # Goldengate Deployment Type category is BIGDATA. + BIGDATA = 3 + + # Goldengate Deployment Type category is DATABASE_MICROSOFT_SQLSERVER. + DATABASE_MICROSOFT_SQLSERVER = 4 + + # Goldengate Deployment Type category is DATABASE_MYSQL. + DATABASE_MYSQL = 5 + + # Goldengate Deployment Type category is DATABASE_POSTGRESQL. + DATABASE_POSTGRESQL = 6 + + # Goldengate Deployment Type category is DATABASE_DB2ZOS. + DATABASE_DB2ZOS = 7 + + # Goldengate Deployment Type category is DATABASE_DB2I. + DATABASE_DB2I = 8 + + # Goldengate Deployment Type category is GGSA. + GGSA = 9 + + # Goldengate Deployment Type category is DATA_TRANSFORMS. + DATA_TRANSFORMS = 10 + end + + # The release type of the Goldengate Deployment Version resource. + module DeploymentReleaseType + # Default unspecified value. + DEPLOYMENT_RELEASE_TYPE_UNSPECIFIED = 0 + + # Goldengate Deployment Version release type is MAJOR. + MAJOR = 1 + + # Goldengate Deployment Version release type is BUNDLE. + BUNDLE = 2 + + # Goldengate Deployment Version release type is MINOR. + MINOR = 3 + end + end + + # Message for getting a GoldengateDeploymentVersion. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the GoldengateDeploymentVersion to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version} + class GetGoldengateDeploymentVersionRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for listing GoldengateDeploymentVersions. + # @!attribute [rw] parent + # @return [::String] + # Required. Parent value for ListGoldengateDeploymentVersionsRequest + # Format: projects/\\{project}/locations/\\{location} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_id and deployment_type fields must be specified in the + # format: `deployment_id="id"` or `deployment_type="DATABASE_ORACLE"`. + class ListGoldengateDeploymentVersionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Message for response to listing GoldengateDeploymentVersions + # @!attribute [rw] goldengate_deployment_versions + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # The list of GoldengateDeploymentVersion + # @!attribute [rw] next_page_token + # @return [::String] + # A token, which can be sent as `page_token` to retrieve the next page. + # If this field is omitted, there are no subsequent pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Locations that could not be reached. + class ListGoldengateDeploymentVersionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb new file mode 100644 index 000000000000..ea17728bee62 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Metadata for a given [Location][google.cloud.location.Location]. + # @!attribute [r] gcp_oracle_zones + # @return [::Array<::String>] + # Output only. Google Cloud Platform Oracle zones in a location. + class LocationMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb new file mode 100644 index 000000000000..4f6119dbb636 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb @@ -0,0 +1,81 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # MinorVersion represents a minor version of a GI. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiMinorVersionSummary/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the MinorVersion resource with the format: + # projects/\\{project}/locations/\\{region}/giVersions/\\{gi_version}/minorVersions/\\{minor_version} + # @!attribute [rw] grid_image_id + # @return [::String] + # Optional. The ID of the Grid Image. + # @!attribute [rw] version + # @return [::String] + # Optional. The valid Oracle grid infrastructure software version. + class MinorVersion + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `MinorVersion.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the MinorVersion resource with the format: + # projects/\\{project}/locations/\\{location}/giVersions/\\{gi_version} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 System Versions will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # Only shapeFamily and gcp_oracle_zone_id are supported in this format: + # `shape_family="{shapeFamily}" AND + # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`. + class ListMinorVersionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `MinorVersion.List`. + # @!attribute [rw] minor_versions + # @return [::Array<::Google::Cloud::OracleDatabase::V1::MinorVersion>] + # The list of MinorVersions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListMinorVersionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb new file mode 100644 index 000000000000..7d7b04ca8bc4 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb @@ -0,0 +1,184 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Represents OdbNetwork resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the OdbNetwork resource in the following format: + # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network} + # @!attribute [rw] network + # @return [::String] + # Required. The name of the VPC network in the following format: + # projects/\\{project}/global/networks/\\{network} + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Labels or tags associated with the resource. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the OdbNetwork was created. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork::State] + # Output only. State of the ODB Network. + # @!attribute [r] entitlement_id + # @return [::String] + # Output only. The ID of the subscription entitlement associated with the + # OdbNetwork. + # @!attribute [rw] gcp_oracle_zone + # @return [::String] + # Optional. The GCP Oracle zone where OdbNetwork is hosted. + # Example: us-east4-b-r2. + # If not specified, the system will pick a zone based on availability. + class OdbNetwork + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The various lifecycle states of the ODB Network. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in provisioning state. + PROVISIONING = 1 + + # Indicates that the resource is in available state. + AVAILABLE = 2 + + # Indicates that the resource is in terminating state. + TERMINATING = 3 + + # Indicates that the resource is in failed state. + FAILED = 4 + end + end + + # The request for `OdbNetwork.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the OdbNetwork in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] odb_network_id + # @return [::String] + # Required. The ID of the OdbNetwork to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @!attribute [rw] odb_network + # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork] + # Required. Details of the OdbNetwork instance to create. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateOdbNetworkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `OdbNetwork.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteOdbNetworkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `OdbNetwork.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the ODB Network in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ODB Networks will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. + class ListOdbNetworksRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `OdbNetwork.List`. + # @!attribute [rw] odb_networks + # @return [::Array<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] + # The list of ODB Networks. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListOdbNetworksResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `OdbNetwork.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the OdbNetwork in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + class GetOdbNetworkRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb new file mode 100644 index 000000000000..9465fe25e139 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb @@ -0,0 +1,189 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Represents OdbSubnet resource. + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the OdbSubnet resource in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} + # @!attribute [rw] cidr_range + # @return [::String] + # Required. The CIDR range of the subnet. + # @!attribute [rw] purpose + # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet::Purpose] + # Required. Purpose of the subnet. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Labels or tags associated with the resource. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the OdbNetwork was created. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet::State] + # Output only. State of the ODB Subnet. + class OdbSubnet + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Purpose available for the subnet. + module Purpose + # Default unspecified value. + PURPOSE_UNSPECIFIED = 0 + + # Subnet to be used for client connections. + CLIENT_SUBNET = 1 + + # Subnet to be used for backup. + BACKUP_SUBNET = 2 + end + + # The various lifecycle states of the ODB Subnet. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in provisioning state. + PROVISIONING = 1 + + # Indicates that the resource is in available state. + AVAILABLE = 2 + + # Indicates that the resource is in terminating state. + TERMINATING = 3 + + # Indicates that the resource is in failed state. + FAILED = 4 + end + end + + # The request for `OdbSubnet.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @!attribute [rw] odb_subnet_id + # @return [::String] + # Required. The ID of the OdbSubnet to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @!attribute [rw] odb_subnet + # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet] + # Required. Details of the OdbSubnet instance to create. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateOdbSubnetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `OdbSubnet.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteOdbSubnetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `OdbSubnet.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ODB Networks will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. + class ListOdbSubnetsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `OdbSubnet.List`. + # @!attribute [rw] odb_subnets + # @return [::Array<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] + # The list of ODB Subnets. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListOdbSubnetsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `OdbSubnet.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the OdbSubnet in the following format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. + class GetOdbSubnetRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb new file mode 100644 index 000000000000..e110fd8e81d1 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb @@ -0,0 +1,916 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # The request for `CloudExadataInfrastructures.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for CloudExadataInfrastructure in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Exadata infrastructures will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. + class ListCloudExadataInfrastructuresRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `CloudExadataInfrastructures.list`. + # @!attribute [rw] cloud_exadata_infrastructures + # @return [::Array<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] + # The list of Exadata Infrastructures. + # @!attribute [rw] next_page_token + # @return [::String] + # A token for fetching next page of response. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListCloudExadataInfrastructuresResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `CloudExadataInfrastructure.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Cloud Exadata Infrastructure in the following + # format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. + class GetCloudExadataInfrastructureRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `CloudExadataInfrastructure.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for CloudExadataInfrastructure in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] cloud_exadata_infrastructure_id + # @return [::String] + # Required. The ID of the Exadata Infrastructure to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @!attribute [rw] cloud_exadata_infrastructure + # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] + # Required. Details of the Exadata Infrastructure instance to create. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateCloudExadataInfrastructureRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `CloudExadataInfrastructure.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Cloud Exadata Infrastructure in the following + # format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If set to true, all VM clusters for this Exadata Infrastructure + # will be deleted. An Exadata Infrastructure can only be deleted once all its + # VM clusters have been deleted. + class DeleteCloudExadataInfrastructureRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `CloudVmCluster.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The number of VM clusters to return. + # If unspecified, at most 50 VM clusters will be returned. + # The maximum value is 1,000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying the page of results the server returns. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + class ListCloudVmClustersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `CloudVmCluster.List`. + # @!attribute [rw] cloud_vm_clusters + # @return [::Array<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] + # The list of VM Clusters. + # @!attribute [rw] next_page_token + # @return [::String] + # A token to fetch the next page of results. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListCloudVmClustersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `CloudVmCluster.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Cloud VM Cluster in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. + class GetCloudVmClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `CloudVmCluster.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] cloud_vm_cluster_id + # @return [::String] + # Required. The ID of the VM Cluster to create. This value is restricted + # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 + # characters in length. The value must start with a letter and end with + # a letter or a number. + # @!attribute [rw] cloud_vm_cluster + # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] + # Required. The resource being created + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateCloudVmClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `CloudVmCluster.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Cloud VM Cluster in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @!attribute [rw] force + # @return [::Boolean] + # Optional. If set to true, all child resources for the VM Cluster will be + # deleted. A VM Cluster can only be deleted once all its child resources have + # been deleted. + class DeleteCloudVmClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `Entitlement.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the entitlement in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 entitlements will be returned. + # The maximum value is 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + class ListEntitlementsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `Entitlement.List`. + # @!attribute [rw] entitlements + # @return [::Array<::Google::Cloud::OracleDatabase::V1::Entitlement>] + # The list of Entitlements + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListEntitlementsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbServer.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for database server in the following format: + # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloudExadataInfrastructure}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 db servers will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + class ListDbServersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `DbServer.List`. + # @!attribute [rw] db_servers + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbServer>] + # The list of database servers. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListDbServersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbNode.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for database node in the following format: + # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}. + # . + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 db nodes will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the node should return. + class ListDbNodesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `DbNode.List`. + # @!attribute [rw] db_nodes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbNode>] + # The list of DB Nodes + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the node should return. + class ListDbNodesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `GiVersion.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for Grid Infrastructure Version in the following + # format: Format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions + # will be returned. The maximum value is 1000; values above 1000 will be + # reset to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. Only the + # shape, gcp_oracle_zone and gi_version fields are supported in this format: + # `shape="{shape}"`. + class ListGiVersionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `GiVersion.List`. + # @!attribute [rw] gi_versions + # @return [::Array<::Google::Cloud::OracleDatabase::V1::GiVersion>] + # The list of Oracle Grid Infrastructure (GI) versions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListGiVersionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `DbSystemShape.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for Database System Shapes in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 database system shapes will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. Only the + # gcp_oracle_zone_id field is supported in this format: + # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. + class ListDbSystemShapesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `DbSystemShape.List`. + # @!attribute [rw] db_system_shapes + # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] + # The list of Database System shapes. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListDbSystemShapesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents the metadata of the long-running operation. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation was created. + # @!attribute [r] end_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The time the operation finished running. + # @!attribute [r] target + # @return [::String] + # Output only. Server-defined resource path for the target of the operation. + # @!attribute [r] verb + # @return [::String] + # Output only. Name of the verb executed by the operation. + # @!attribute [r] status_message + # @return [::String] + # Output only. The status of the operation. + # @!attribute [r] requested_cancellation + # @return [::Boolean] + # Output only. Identifies whether the user has requested cancellation + # of the operation. Operations that have been cancelled successfully + # have [Operation.error][] value with a + # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to + # `Code.CANCELLED`. + # @!attribute [r] api_version + # @return [::String] + # Output only. API version used to start the operation. + # @!attribute [r] percent_complete + # @return [::Float] + # Output only. An estimated percentage of the operation that has been + # completed at a given moment of time, between 0 and 100. + class OperationMetadata + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous Database will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. + class ListAutonomousDatabasesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `AutonomousDatabase.List`. + # @!attribute [rw] autonomous_databases + # @return [::Array<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] + # The list of Autonomous Databases. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListAutonomousDatabasesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + class GetAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The name of the parent in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] autonomous_database_id + # @return [::String] + # Required. The ID of the Autonomous Database to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @!attribute [rw] autonomous_database + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] + # Required. The Autonomous Database being created. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.Update`. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::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. + # @!attribute [rw] autonomous_database + # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] + # Required. The resource being updated + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class UpdateAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the resource in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.Restore`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @!attribute [rw] restore_time + # @return [::Google::Protobuf::Timestamp] + # Required. The time and date to restore the database to. + class RestoreAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.Stop`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + class StopAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.Start`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + class StartAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.Restart`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + class RestartAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `OracleDatabase.SwitchoverAutonomousDatabase`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @!attribute [rw] peer_autonomous_database + # @return [::String] + # Optional. The peer database name to switch over to. Required for + # cross-region standby, and must be omitted for in-region Data Guard. + class SwitchoverAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `OracleDatabase.FailoverAutonomousDatabase`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @!attribute [rw] peer_autonomous_database + # @return [::String] + # Optional. The peer database name to fail over to. Required for cross-region + # standby, and must be omitted for in-region Data Guard. + class FailoverAutonomousDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabase.GenerateWallet`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the Autonomous Database in the following format: + # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. + # @!attribute [rw] type + # @return [::Google::Cloud::OracleDatabase::V1::GenerateType] + # Optional. The type of wallet generation for the Autonomous Database. The + # default value is SINGLE. + # @!attribute [rw] is_regional + # @return [::Boolean] + # Optional. True when requesting regional connection strings in PDB connect + # info, applicable to cross-region Data Guard only. + # @!attribute [rw] password + # @return [::String] + # Required. The password used to encrypt the keys inside the wallet. The + # password must be a minimum of 8 characters. + class GenerateAutonomousDatabaseWalletRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `AutonomousDatabase.GenerateWallet`. + # @!attribute [r] archive_content + # @return [::String] + # Output only. The base64 encoded wallet files. + class GenerateAutonomousDatabaseWalletResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDbVersion.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Versions will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + class ListAutonomousDbVersionsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `AutonomousDbVersion.List`. + # @!attribute [rw] autonomous_db_versions + # @return [::Array<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] + # The list of Autonomous Database versions. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListAutonomousDbVersionsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabaseCharacterSet.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for the Autonomous Database in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Character Sets will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. Only the + # **character_set_type** field is supported in the following format: + # `character_set_type="{characterSetType}"`. Accepted values include + # `DATABASE` and `NATIONAL`. + class ListAutonomousDatabaseCharacterSetsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `AutonomousDatabaseCharacterSet.List`. + # @!attribute [rw] autonomous_database_character_sets + # @return [::Array<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] + # The list of Autonomous Database Character Sets. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListAutonomousDatabaseCharacterSetsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `AutonomousDatabaseBackup.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for ListAutonomousDatabaseBackups in the + # following format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. Only the + # **autonomous_database_id** field is supported in the following format: + # `autonomous_database_id="{autonomous_database_id}"`. The accepted values + # must be a valid Autonomous Database ID, limited to the naming + # restrictions of the ID: ^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$). + # The ID must start with a letter, end with a letter or a number, and be + # a maximum of 63 characters. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 Autonomous DB Backups will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + class ListAutonomousDatabaseBackupsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `AutonomousDatabaseBackup.List`. + # @!attribute [rw] autonomous_database_backups + # @return [::Array<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] + # The list of Autonomous Database Backups. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListAutonomousDatabaseBackupsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExadbVmCluster.Create`. + # @!attribute [rw] parent + # @return [::String] + # Required. The value for parent of the ExadbVmCluster in the following + # format: projects/\\{project}/locations/\\{location}. + # @!attribute [rw] exadb_vm_cluster_id + # @return [::String] + # Required. The ID of the ExadbVmCluster to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @!attribute [rw] exadb_vm_cluster + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] + # Required. The resource being created. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class CreateExadbVmClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExadbVmCluster.Delete`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class DeleteExadbVmClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExadbVmCluster.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + class GetExadbVmClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExadbVmCluster.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent value for ExadbVmClusters in the following format: + # projects/\\{project}/locations/\\{location}. + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 ExadbVmClusters will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A token identifying a page of results the server should return. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. + # @!attribute [rw] order_by + # @return [::String] + # Optional. An expression for ordering the results of the request. + class ListExadbVmClustersRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `ExadbVmCluster.List`. + # @!attribute [rw] exadb_vm_clusters + # @return [::Array<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] + # The list of ExadbVmClusters. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. + class ListExadbVmClustersResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExadbVmCluster.Update`. We only support adding the + # Virtual Machine to the ExadbVmCluster. Rest of the fields in ExadbVmCluster + # are immutable. + # @!attribute [rw] update_mask + # @return [::Google::Protobuf::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. + # @!attribute [rw] exadb_vm_cluster + # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] + # Required. The resource being updated. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + class UpdateExadbVmClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `ExadbVmCluster.RemoveVirtualMachine`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the ExadbVmCluster in the following format: + # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. + # @!attribute [rw] request_id + # @return [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @!attribute [rw] hostnames + # @return [::Array<::String>] + # Required. The list of host names of db nodes to be removed from the + # ExadbVmCluster. + class RemoveVirtualMachineExadbVmClusterRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb new file mode 100644 index 000000000000..5cae527ea1ff --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb @@ -0,0 +1,366 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # The PluggableDatabase resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the PluggableDatabase resource in the following + # format: + # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database} + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties] + # Optional. The properties of the PluggableDatabase. + # @!attribute [r] oci_url + # @return [::String] + # Output only. HTTPS link to OCI resources exposed to Customer via UI + # Interface. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the PluggableDatabase was created. + class PluggableDatabase + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The properties of a PluggableDatabase. + # @!attribute [rw] compartment_id + # @return [::String] + # Required. The OCID of the compartment. + # @!attribute [rw] connection_strings + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseConnectionStrings] + # Optional. The Connection strings used to connect to the Oracle Database. + # @!attribute [rw] container_database_ocid + # @return [::String] + # Required. The OCID of the CDB. + # @!attribute [rw] defined_tags + # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties::DefinedTagValue}] + # Optional. Defined tags for this resource. Each key is predefined and scoped + # to a namespace. + # @!attribute [rw] freeform_tags + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Free-form tags for this resource. Each tag is a simple key-value + # pair with no predefined name, type, or namespace. + # @!attribute [r] ocid + # @return [::String] + # Output only. The OCID of the pluggable database. + # @!attribute [rw] is_restricted + # @return [::Boolean] + # Optional. The restricted mode of the pluggable database. If a pluggable + # database is opened in restricted mode, the user needs both create a session + # and have restricted session privileges to connect to it. + # @!attribute [r] lifecycle_details + # @return [::String] + # Output only. Additional information about the current lifecycle state. + # @!attribute [r] lifecycle_state + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties::PluggableDatabaseLifecycleState] + # Output only. The current state of the pluggable database. + # @!attribute [rw] pdb_name + # @return [::String] + # Required. The database name. + # @!attribute [rw] pdb_node_level_details + # @return [::Array<::Google::Cloud::OracleDatabase::V1::PluggableDatabaseNodeLevelDetails>] + # Optional. Pluggable Database Node Level Details + # @!attribute [r] database_management_config + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseManagementConfig] + # Output only. The configuration of the Database Management service. + # @!attribute [r] operations_insights_state + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties::OperationsInsightsState] + # Output only. The status of Operations Insights for this Database. + class PluggableDatabaseProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Wrapper message for the value of a defined tag. + # @!attribute [rw] tags + # @return [::Google::Protobuf::Map{::String => ::String}] + # The tags within the namespace. + class DefinedTagValue + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class TagsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties::DefinedTagValue] + class DefinedTagsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class FreeformTagsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The various lifecycle states of the PluggableDatabase. + module PluggableDatabaseLifecycleState + # The lifecycle state is unspecified. + PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0 + + # The pluggable database is provisioning. + PROVISIONING = 1 + + # The pluggable database is available. + AVAILABLE = 2 + + # The pluggable database is terminating. + TERMINATING = 3 + + # The pluggable database is terminated. + TERMINATED = 4 + + # The pluggable database is updating. + UPDATING = 5 + + # The pluggable database is in a failed state. + FAILED = 6 + + # The pluggable database is relocating. + RELOCATING = 7 + + # The pluggable database is relocated. + RELOCATED = 8 + + # The pluggable database is refreshing. + REFRESHING = 9 + + # The pluggable database is restoring. + RESTORE_IN_PROGRESS = 10 + + # The pluggable database restore failed. + RESTORE_FAILED = 11 + + # The pluggable database is backing up. + BACKUP_IN_PROGRESS = 12 + + # The pluggable database is disabled. + DISABLED = 13 + end + + # The status of Operations Insights for this Database. + module OperationsInsightsState + # The status is not specified. + OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0 + + # Operations Insights is enabling. + ENABLING = 1 + + # Operations Insights is enabled. + ENABLED = 2 + + # Operations Insights is disabling. + DISABLING = 3 + + # Operations Insights is not enabled. + NOT_ENABLED = 4 + + # Operations Insights failed to enable. + FAILED_ENABLING = 5 + + # Operations Insights failed to disable. + FAILED_DISABLING = 6 + end + end + + # The connection strings used to connect to the Oracle Database. + # @!attribute [rw] all_connection_strings + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. All connection strings to use to connect to the pluggable + # database. + # @!attribute [rw] pdb_default + # @return [::String] + # Optional. The default connection string to use to connect to the pluggable + # database. + # @!attribute [rw] pdb_ip_default + # @return [::String] + # Optional. The default connection string to use to connect to the pluggable + # database using IP. + class PluggableDatabaseConnectionStrings + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class AllConnectionStringsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # The Pluggable Database Node Level Details. + # @!attribute [rw] node_name + # @return [::String] + # Required. The Node name of the Database home. + # @!attribute [rw] open_mode + # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseNodeLevelDetails::PluggableDatabaseOpenMode] + # Required. The mode that the pluggable database is in to open it. + # @!attribute [rw] pluggable_database_id + # @return [::String] + # Required. The OCID of the Pluggable Database. + class PluggableDatabaseNodeLevelDetails + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The mode that the pluggable database is in to open it. + module PluggableDatabaseOpenMode + # The open mode is unspecified. + PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED = 0 + + # The pluggable database is opened in read-only mode. + READ_ONLY = 1 + + # The pluggable database is opened in read-write mode. + READ_WRITE = 2 + + # The pluggable database is mounted. + MOUNTED = 3 + + # The pluggable database is migrated. + MIGRATE = 4 + end + end + + # The configuration of the Database Management service. + # @!attribute [r] management_state + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseManagementConfig::ManagementState] + # Output only. The status of the Database Management service. + # @!attribute [r] management_type + # @return [::Google::Cloud::OracleDatabase::V1::DatabaseManagementConfig::ManagementType] + # Output only. The Database Management type. + class DatabaseManagementConfig + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The status of the Database Management service. + module ManagementState + # The status is not specified. + MANAGEMENT_STATE_UNSPECIFIED = 0 + + # The Database Management service is enabling. + ENABLING = 1 + + # The Database Management service is enabled. + ENABLED = 2 + + # The Database Management service is disabling. + DISABLING = 3 + + # The Database Management service is disabled. + DISABLED = 4 + + # The Database Management service is updating. + UPDATING = 5 + + # The Database Management service failed to enable. + FAILED_ENABLING = 6 + + # The Database Management service failed to disable. + FAILED_DISABLING = 7 + + # The Database Management service failed to update. + FAILED_UPDATING = 8 + end + + # The Database Management type. + module ManagementType + # The type is not specified. + MANAGEMENT_TYPE_UNSPECIFIED = 0 + + # Basic Database Management. + BASIC = 1 + + # Advanced Database Management. + ADVANCED = 2 + end + end + + # The request for `PluggableDatabase.Get`. + # @!attribute [rw] name + # @return [::String] + # Required. The name of the PluggableDatabase resource in the following + # format: + # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database} + class GetPluggableDatabaseRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request for `PluggableDatabase.List`. + # @!attribute [rw] parent + # @return [::String] + # Required. The parent, which owns this collection of PluggableDatabases. + # Format: projects/\\{project}/locations/\\{location} + # @!attribute [rw] page_size + # @return [::Integer] + # Optional. The maximum number of PluggableDatabases to return. The service + # may return fewer than this value. + # @!attribute [rw] page_token + # @return [::String] + # Optional. A page token, received from a previous `ListPluggableDatabases` + # call. Provide this to retrieve the subsequent page. + # + # When paginating, all other parameters provided to `ListPluggableDatabases` + # must match the call that provided the page token. + # @!attribute [rw] filter + # @return [::String] + # Optional. An expression for filtering the results of the request. List for + # pluggable databases is supported only with a valid container database (full + # resource name) filter in this format: + # `database="projects/{project}/locations/{location}/databases/{database}"` + class ListPluggableDatabasesRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response for `PluggableDatabase.List`. + # @!attribute [rw] pluggable_databases + # @return [::Array<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] + # The list of PluggableDatabases. + # @!attribute [rw] next_page_token + # @return [::String] + # A token identifying a page of results the server should return. + class ListPluggableDatabasesResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb new file mode 100644 index 000000000000..fcc6eeff932e --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb @@ -0,0 +1,276 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Cloud + module OracleDatabase + module V1 + # Details of the Cloud VM Cluster resource. + # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ + # @!attribute [rw] name + # @return [::String] + # Identifier. The name of the VM Cluster resource with the format: + # projects/\\{project}/locations/\\{region}/cloudVmClusters/\\{cloud_vm_cluster} + # @!attribute [rw] exadata_infrastructure + # @return [::String] + # Required. The name of the Exadata Infrastructure resource on which VM + # cluster resource is created, in the following format: + # projects/\\{project}/locations/\\{region}/cloudExadataInfrastuctures/\\{cloud_extradata_infrastructure} + # @!attribute [rw] display_name + # @return [::String] + # Optional. User friendly name for this resource. + # @!attribute [rw] properties + # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties] + # Optional. Various properties of the VM Cluster. + # @!attribute [rw] labels + # @return [::Google::Protobuf::Map{::String => ::String}] + # Optional. Labels or tags associated with the VM Cluster. + # @!attribute [r] create_time + # @return [::Google::Protobuf::Timestamp] + # Output only. The date and time that the VM cluster was created. + # @!attribute [rw] cidr + # @return [::String] + # Optional. Network settings. CIDR to use for cluster IP allocation. + # @!attribute [rw] backup_subnet_cidr + # @return [::String] + # Optional. CIDR range of the backup subnet. + # @!attribute [rw] network + # @return [::String] + # Optional. The name of the VPC network. + # Format: projects/\\{project}/global/networks/\\{network} + # @!attribute [r] gcp_oracle_zone + # @return [::String] + # Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted. + # This will be the same as the gcp_oracle_zone of the + # CloudExadataInfrastructure. Example: us-east4-b-r2. + # @!attribute [rw] odb_network + # @return [::String] + # Optional. The name of the OdbNetwork associated with the VM Cluster. + # Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} + # It is optional but if specified, this should match the parent ODBNetwork of + # the odb_subnet and backup_odb_subnet. + # @!attribute [rw] odb_subnet + # @return [::String] + # Optional. The name of the OdbSubnet associated with the VM Cluster for + # IP allocation. Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} + # @!attribute [rw] backup_odb_subnet + # @return [::String] + # Optional. The name of the backup OdbSubnet associated with the VM Cluster. + # Format: + # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} + # @!attribute [r] identity_connector + # @return [::Google::Cloud::OracleDatabase::V1::IdentityConnector] + # Output only. The identity connector details which will allow OCI to + # securely access the resources in the customer project. + class CloudVmCluster + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # @!attribute [rw] key + # @return [::String] + # @!attribute [rw] value + # @return [::String] + class LabelsEntry + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + + # Various properties and settings associated with Exadata VM cluster. + # @!attribute [r] ocid + # @return [::String] + # Output only. Oracle Cloud Infrastructure ID of VM Cluster. + # @!attribute [rw] license_type + # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties::LicenseType] + # Required. License type of VM Cluster. + # @!attribute [rw] gi_version + # @return [::String] + # Optional. Grid Infrastructure Version. + # @!attribute [rw] time_zone + # @return [::Google::Type::TimeZone] + # Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified. + # @!attribute [rw] ssh_public_keys + # @return [::Array<::String>] + # Optional. SSH public keys to be stored with cluster. + # @!attribute [rw] node_count + # @return [::Integer] + # Optional. Number of database servers. + # @!attribute [r] shape + # @return [::String] + # Output only. Shape of VM Cluster. + # @!attribute [rw] ocpu_count + # @return [::Float] + # Optional. OCPU count per VM. Minimum is 0.1. + # @!attribute [rw] memory_size_gb + # @return [::Integer] + # Optional. Memory allocated in GBs. + # @!attribute [rw] db_node_storage_size_gb + # @return [::Integer] + # Optional. Local storage per VM. + # @!attribute [r] storage_size_gb + # @return [::Integer] + # Output only. The storage allocation for the disk group, in gigabytes (GB). + # @!attribute [rw] data_storage_size_tb + # @return [::Float] + # Optional. The data disk group size to be allocated in TBs. + # @!attribute [rw] disk_redundancy + # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties::DiskRedundancy] + # Optional. The type of redundancy. + # @!attribute [rw] sparse_diskgroup_enabled + # @return [::Boolean] + # Optional. Use exadata sparse snapshots. + # @!attribute [rw] local_backup_enabled + # @return [::Boolean] + # Optional. Use local backup. + # @!attribute [rw] hostname_prefix + # @return [::String] + # Optional. Prefix for VM cluster host names. + # @!attribute [rw] diagnostics_data_collection_options + # @return [::Google::Cloud::OracleDatabase::V1::DataCollectionOptions] + # Optional. Data collection options for diagnostics. + # @!attribute [r] state + # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties::State] + # Output only. State of the cluster. + # @!attribute [rw] scan_listener_port_tcp + # @return [::Integer] + # Optional. SCAN listener port - TCP + # @!attribute [rw] scan_listener_port_tcp_ssl + # @return [::Integer] + # Optional. SCAN listener port - TLS + # @!attribute [r] domain + # @return [::String] + # Output only. Parent DNS domain where SCAN DNS and hosts names are + # qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com + # @!attribute [r] scan_dns + # @return [::String] + # Output only. SCAN DNS name. + # ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com + # @!attribute [r] hostname + # @return [::String] + # Output only. host name without domain. + # format: "-" with some suffix. + # ex: sp2-yi0xq where "sp2" is the hostname_prefix. + # @!attribute [rw] cpu_core_count + # @return [::Integer] + # Required. Number of enabled CPU cores. + # @!attribute [rw] system_version + # @return [::String] + # Optional. Operating system version of the image. + # @!attribute [r] scan_ip_ids + # @return [::Array<::String>] + # Output only. OCIDs of scan IPs. + # @!attribute [r] scan_dns_record_id + # @return [::String] + # Output only. OCID of scan DNS record. + # @!attribute [r] oci_url + # @return [::String] + # Output only. Deep link to the OCI console to view this resource. + # @!attribute [rw] db_server_ocids + # @return [::Array<::String>] + # Optional. OCID of database servers. + # @!attribute [r] compartment_id + # @return [::String] + # Output only. Compartment ID of cluster. + # @!attribute [r] dns_listener_ip + # @return [::String] + # Output only. DNS listener IP. + # @!attribute [rw] cluster_name + # @return [::String] + # Optional. OCI Cluster name. + # @!attribute [r] compute_model + # @return [::Google::Cloud::OracleDatabase::V1::ComputeModel] + # Output only. The compute model of the VM Cluster. + class CloudVmClusterProperties + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # Different licenses supported. + module LicenseType + # Unspecified + LICENSE_TYPE_UNSPECIFIED = 0 + + # License included part of offer + LICENSE_INCLUDED = 1 + + # Bring your own license + BRING_YOUR_OWN_LICENSE = 2 + end + + # Types of disk redundancy provided by Oracle. + module DiskRedundancy + # Unspecified. + DISK_REDUNDANCY_UNSPECIFIED = 0 + + # High - 3 way mirror. + HIGH = 1 + + # Normal - 2 way mirror. + NORMAL = 2 + end + + # The various lifecycle states of the VM cluster. + module State + # Default unspecified value. + STATE_UNSPECIFIED = 0 + + # Indicates that the resource is in provisioning state. + PROVISIONING = 1 + + # Indicates that the resource is in available state. + AVAILABLE = 2 + + # Indicates that the resource is in updating state. + UPDATING = 3 + + # Indicates that the resource is in terminating state. + TERMINATING = 4 + + # Indicates that the resource is in terminated state. + TERMINATED = 5 + + # Indicates that the resource is in failed state. + FAILED = 6 + + # Indicates that the resource is in maintenance in progress state. + MAINTENANCE_IN_PROGRESS = 7 + end + end + + # Data collection options for diagnostics. + # @!attribute [rw] diagnostics_events_enabled + # @return [::Boolean] + # Optional. Indicates whether diagnostic collection is enabled for the VM + # cluster + # @!attribute [rw] health_monitoring_enabled + # @return [::Boolean] + # Optional. Indicates whether health monitoring is enabled for the VM cluster + # @!attribute [rw] incident_logs_enabled + # @return [::Boolean] + # Optional. Indicates whether incident logs and trace collection are enabled + # for the VM cluster + class DataCollectionOptions + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/longrunning/operations.rb new file mode 100644 index 000000000000..7a757f512165 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/longrunning/operations.rb @@ -0,0 +1,191 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Longrunning + # This resource represents a long-running operation that is the result of a + # network API call. + # @!attribute [rw] name + # @return [::String] + # The server-assigned name, which is only unique within the same service that + # originally returns it. If you use the default HTTP mapping, the + # `name` should be a resource name ending with `operations/{unique_id}`. + # @!attribute [rw] metadata + # @return [::Google::Protobuf::Any] + # Service-specific metadata associated with the operation. It typically + # contains progress information and common metadata such as create time. + # Some services might not provide such metadata. Any method that returns a + # long-running operation should document the metadata type, if any. + # @!attribute [rw] done + # @return [::Boolean] + # If the value is `false`, it means the operation is still in progress. + # If `true`, the operation is completed, and either `error` or `response` is + # available. + # @!attribute [rw] error + # @return [::Google::Rpc::Status] + # The error result of the operation in case of failure or cancellation. + # + # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] response + # @return [::Google::Protobuf::Any] + # The normal, successful response of the operation. If the original + # method returns no data on success, such as `Delete`, the response is + # `google.protobuf.Empty`. If the original method is standard + # `Get`/`Create`/`Update`, the response should be the resource. For other + # methods, the response should have the type `XxxResponse`, where `Xxx` + # is the original method name. For example, if the original method name + # is `TakeSnapshot()`, the inferred response type is + # `TakeSnapshotResponse`. + # + # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class Operation + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.GetOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource. + class GetOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.ListOperations. + # @!attribute [rw] name + # @return [::String] + # The name of the operation's parent resource. + # @!attribute [rw] filter + # @return [::String] + # The standard list filter. + # @!attribute [rw] page_size + # @return [::Integer] + # The standard list page size. + # @!attribute [rw] page_token + # @return [::String] + # The standard list page token. + # @!attribute [rw] return_partial_success + # @return [::Boolean] + # When set to `true`, operations that are reachable are returned as normal, + # and those that are unreachable are returned in the + # [ListOperationsResponse.unreachable] field. + # + # This can only be `true` when reading across collections e.g. when `parent` + # is set to `"projects/example/locations/-"`. + # + # This field is not by default supported and will result in an + # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + # service or product specific documentation. + class ListOperationsRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The response message for + # Operations.ListOperations. + # @!attribute [rw] operations + # @return [::Array<::Google::Longrunning::Operation>] + # A list of operations that matches the specified filter in the request. + # @!attribute [rw] next_page_token + # @return [::String] + # The standard List next-page token. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unordered list. Unreachable resources. Populated when the request sets + # `ListOperationsRequest.return_partial_success` and reads across + # collections e.g. when attempting to list all resources across all supported + # locations. + class ListOperationsResponse + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.CancelOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be cancelled. + class CancelOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.DeleteOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to be deleted. + class DeleteOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # The request message for + # Operations.WaitOperation. + # @!attribute [rw] name + # @return [::String] + # The name of the operation resource to wait on. + # @!attribute [rw] timeout + # @return [::Google::Protobuf::Duration] + # The maximum duration to wait before timing out. If left blank, the wait + # will be at most the time permitted by the underlying HTTP/RPC protocol. + # If RPC context deadline is also specified, the shorter one will be used. + class WaitOperationRequest + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # A message representing the message types used by a long-running operation. + # + # Example: + # + # rpc Export(ExportRequest) returns (google.longrunning.Operation) { + # option (google.longrunning.operation_info) = { + # response_type: "ExportResponse" + # metadata_type: "ExportMetadata" + # }; + # } + # @!attribute [rw] response_type + # @return [::String] + # Required. The message name of the primary return type for this + # long-running operation. + # This type will be used to deserialize the LRO's response. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + # @!attribute [rw] metadata_type + # @return [::String] + # Required. The message name of the metadata type for this long-running + # operation. + # + # If the response is in a different package from the rpc, a fully-qualified + # message name must be used (e.g. `google.protobuf.Struct`). + # + # Note: Altering this value constitutes a breaking change. + class OperationInfo + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/any.rb new file mode 100644 index 000000000000..58691995f02e --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/any.rb @@ -0,0 +1,145 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `Any` contains an arbitrary serialized protocol buffer message along with a + # URL that describes the type of the serialized message. + # + # Protobuf library provides support to pack/unpack Any values in the form + # of utility functions or additional generated methods of the Any type. + # + # Example 1: Pack and unpack a message in C++. + # + # Foo foo = ...; + # Any any; + # any.PackFrom(foo); + # ... + # if (any.UnpackTo(&foo)) { + # ... + # } + # + # Example 2: Pack and unpack a message in Java. + # + # Foo foo = ...; + # Any any = Any.pack(foo); + # ... + # if (any.is(Foo.class)) { + # foo = any.unpack(Foo.class); + # } + # // or ... + # if (any.isSameTypeAs(Foo.getDefaultInstance())) { + # foo = any.unpack(Foo.getDefaultInstance()); + # } + # + # Example 3: Pack and unpack a message in Python. + # + # foo = Foo(...) + # any = Any() + # any.Pack(foo) + # ... + # if any.Is(Foo.DESCRIPTOR): + # any.Unpack(foo) + # ... + # + # Example 4: Pack and unpack a message in Go + # + # foo := &pb.Foo{...} + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } + # ... + # foo := &pb.Foo{} + # if err := any.UnmarshalTo(foo); err != nil { + # ... + # } + # + # The pack methods provided by protobuf library will by default use + # 'type.googleapis.com/full.type.name' as the type URL and the unpack + # methods only use the fully qualified type name after the last '/' + # in the type URL, for example "foo.bar.com/x/y.z" will yield type + # name "y.z". + # + # JSON + # ==== + # The JSON representation of an `Any` value uses the regular + # representation of the deserialized, embedded message, with an + # additional field `@type` which contains the type URL. Example: + # + # package google.profile; + # message Person { + # string first_name = 1; + # string last_name = 2; + # } + # + # { + # "@type": "type.googleapis.com/google.profile.Person", + # "firstName": , + # "lastName": + # } + # + # If the embedded message type is well-known and has a custom JSON + # representation, that representation will be embedded adding a field + # `value` which holds the custom JSON in addition to the `@type` + # field. Example (for message [google.protobuf.Duration][]): + # + # { + # "@type": "type.googleapis.com/google.protobuf.Duration", + # "value": "1.212s" + # } + # @!attribute [rw] type_url + # @return [::String] + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. As of May 2023, there are no widely used type server + # implementations and no plans to implement one. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + # @!attribute [rw] value + # @return [::String] + # Must be a valid serialized protocol buffer of the above specified type. + class Any + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/duration.rb new file mode 100644 index 000000000000..ea59f1f91daf --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/duration.rb @@ -0,0 +1,98 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Duration represents a signed, fixed-length span of time represented + # as a count of seconds and fractions of seconds at nanosecond + # resolution. It is independent of any calendar and concepts like "day" + # or "month". It is related to Timestamp in that the difference between + # two Timestamp values is a Duration and it can be added or subtracted + # from a Timestamp. Range is approximately +-10,000 years. + # + # # Examples + # + # Example 1: Compute Duration from two Timestamps in pseudo code. + # + # Timestamp start = ...; + # Timestamp end = ...; + # Duration duration = ...; + # + # duration.seconds = end.seconds - start.seconds; + # duration.nanos = end.nanos - start.nanos; + # + # if (duration.seconds < 0 && duration.nanos > 0) { + # duration.seconds += 1; + # duration.nanos -= 1000000000; + # } else if (duration.seconds > 0 && duration.nanos < 0) { + # duration.seconds -= 1; + # duration.nanos += 1000000000; + # } + # + # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. + # + # Timestamp start = ...; + # Duration duration = ...; + # Timestamp end = ...; + # + # end.seconds = start.seconds + duration.seconds; + # end.nanos = start.nanos + duration.nanos; + # + # if (end.nanos < 0) { + # end.seconds -= 1; + # end.nanos += 1000000000; + # } else if (end.nanos >= 1000000000) { + # end.seconds += 1; + # end.nanos -= 1000000000; + # } + # + # Example 3: Compute Duration from datetime.timedelta in Python. + # + # td = datetime.timedelta(days=3, minutes=10) + # duration = Duration() + # duration.FromTimedelta(td) + # + # # JSON Mapping + # + # In JSON format, the Duration type is encoded as a string rather than an + # object, where the string ends in the suffix "s" (indicating seconds) and + # is preceded by the number of seconds, with nanoseconds expressed as + # fractional seconds. For example, 3 seconds with 0 nanoseconds should be + # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should + # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 + # microsecond should be expressed in JSON format as "3.000001s". + # @!attribute [rw] seconds + # @return [::Integer] + # Signed seconds of the span of time. Must be from -315,576,000,000 + # to +315,576,000,000 inclusive. Note: these bounds are computed from: + # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years + # @!attribute [rw] nanos + # @return [::Integer] + # Signed fractions of a second at nanosecond resolution of the span + # of time. Durations less than one second are represented with a 0 + # `seconds` field and a positive or negative `nanos` field. For durations + # of one second or more, a non-zero value for the `nanos` field must be + # of the same sign as the `seconds` field. Must be from -999,999,999 + # to +999,999,999 inclusive. + class Duration + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/empty.rb new file mode 100644 index 000000000000..83e4481834a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/empty.rb @@ -0,0 +1,34 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # 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); + # } + class Empty + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/field_mask.rb new file mode 100644 index 000000000000..7f3ffc78601a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/field_mask.rb @@ -0,0 +1,229 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # `FieldMask` represents a set of symbolic field paths, for example: + # + # paths: "f.a" + # paths: "f.b.d" + # + # Here `f` represents a field in some root message, `a` and `b` + # fields in the message found in `f`, and `d` a field found in the + # message in `f.b`. + # + # Field masks are used to specify a subset of fields that should be + # returned by a get operation or modified by an update operation. + # Field masks also have a custom JSON encoding (see below). + # + # # Field Masks in Projections + # + # When used in the context of a projection, a response message or + # sub-message is filtered by the API to only contain those fields as + # specified in the mask. For example, if the mask in the previous + # example is applied to a response message as follows: + # + # f { + # a : 22 + # b { + # d : 1 + # x : 2 + # } + # y : 13 + # } + # z: 8 + # + # The result will not contain specific values for fields x,y and z + # (their value will be set to the default, and omitted in proto text + # output): + # + # + # f { + # a : 22 + # b { + # d : 1 + # } + # } + # + # A repeated field is not allowed except at the last position of a + # paths string. + # + # If a FieldMask object is not present in a get operation, the + # operation applies to all fields (as if a FieldMask of all fields + # had been specified). + # + # Note that a field mask does not necessarily apply to the + # top-level response message. In case of a REST get operation, the + # field mask applies directly to the response, but in case of a REST + # list operation, the mask instead applies to each individual message + # in the returned resource list. In case of a REST custom method, + # other definitions may be used. Where the mask applies will be + # clearly documented together with its declaration in the API. In + # any case, the effect on the returned resource/resources is required + # behavior for APIs. + # + # # Field Masks in Update Operations + # + # A field mask in update operations specifies which fields of the + # targeted resource are going to be updated. The API is required + # to only change the values of the fields as specified in the mask + # and leave the others untouched. If a resource is passed in to + # describe the updated values, the API ignores the values of all + # fields not covered by the mask. + # + # If a repeated field is specified for an update operation, new values will + # be appended to the existing repeated field in the target resource. Note that + # a repeated field is only allowed in the last position of a `paths` string. + # + # If a sub-message is specified in the last position of the field mask for an + # update operation, then new value will be merged into the existing sub-message + # in the target resource. + # + # For example, given the target message: + # + # f { + # b { + # d: 1 + # x: 2 + # } + # c: [1] + # } + # + # And an update message: + # + # f { + # b { + # d: 10 + # } + # c: [2] + # } + # + # then if the field mask is: + # + # paths: ["f.b", "f.c"] + # + # then the result will be: + # + # f { + # b { + # d: 10 + # x: 2 + # } + # c: [1, 2] + # } + # + # An implementation may provide options to override this default behavior for + # repeated and message fields. + # + # In order to reset a field's value to the default, the field must + # be in the mask and set to the default value in the provided resource. + # Hence, in order to reset all fields of a resource, provide a default + # instance of the resource and set all fields in the mask, or do + # not provide a mask as described below. + # + # If a field mask is not present on update, the operation applies to + # all fields (as if a field mask of all fields has been specified). + # Note that in the presence of schema evolution, this may mean that + # fields the client does not know and has therefore not filled into + # the request will be reset to their default. If this is unwanted + # behavior, a specific service may require a client to always specify + # a field mask, producing an error if not. + # + # As with get operations, the location of the resource which + # describes the updated values in the request message depends on the + # operation kind. In any case, the effect of the field mask is + # required to be honored by the API. + # + # ## Considerations for HTTP REST + # + # The HTTP kind of an update operation which uses a field mask must + # be set to PATCH instead of PUT in order to satisfy HTTP semantics + # (PUT must only be used for full updates). + # + # # JSON Encoding of Field Masks + # + # In JSON, a field mask is encoded as a single string where paths are + # separated by a comma. Fields name in each path are converted + # to/from lower-camel naming conventions. + # + # As an example, consider the following message declarations: + # + # message Profile { + # User user = 1; + # Photo photo = 2; + # } + # message User { + # string display_name = 1; + # string address = 2; + # } + # + # In proto a field mask for `Profile` may look as such: + # + # mask { + # paths: "user.display_name" + # paths: "photo" + # } + # + # In JSON, the same mask is represented as below: + # + # { + # mask: "user.displayName,photo" + # } + # + # # Field Masks and Oneof Fields + # + # Field masks treat fields in oneofs just as regular fields. Consider the + # following message: + # + # message SampleMessage { + # oneof test_oneof { + # string name = 4; + # SubMessage sub_message = 9; + # } + # } + # + # The field mask can be: + # + # mask { + # paths: "name" + # } + # + # Or: + # + # mask { + # paths: "sub_message" + # } + # + # Note that oneof type names ("test_oneof" in this case) cannot be used in + # paths. + # + # ## Field Mask Verification + # + # The implementation of any API method which has a FieldMask type field in the + # request should verify the included field paths, and return an + # `INVALID_ARGUMENT` error if any path is unmappable. + # @!attribute [rw] paths + # @return [::Array<::String>] + # The set of field mask paths. + class FieldMask + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/timestamp.rb new file mode 100644 index 000000000000..74352be9c58c --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/timestamp.rb @@ -0,0 +1,127 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Protobuf + # A Timestamp represents a point in time independent of any time zone or local + # calendar, encoded as a count of seconds and fractions of seconds at + # nanosecond resolution. The count is relative to an epoch at UTC midnight on + # January 1, 1970, in the proleptic Gregorian calendar which extends the + # Gregorian calendar backwards to year one. + # + # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + # second table is needed for interpretation, using a [24-hour linear + # smear](https://developers.google.com/time/smear). + # + # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + # restricting to that range, we ensure that we can convert to and from [RFC + # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + # + # # Examples + # + # Example 1: Compute Timestamp from POSIX `time()`. + # + # Timestamp timestamp; + # timestamp.set_seconds(time(NULL)); + # timestamp.set_nanos(0); + # + # Example 2: Compute Timestamp from POSIX `gettimeofday()`. + # + # struct timeval tv; + # gettimeofday(&tv, NULL); + # + # Timestamp timestamp; + # timestamp.set_seconds(tv.tv_sec); + # timestamp.set_nanos(tv.tv_usec * 1000); + # + # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + # + # FILETIME ft; + # GetSystemTimeAsFileTime(&ft); + # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + # + # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + # Timestamp timestamp; + # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + # + # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + # + # long millis = System.currentTimeMillis(); + # + # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + # .setNanos((int) ((millis % 1000) * 1000000)).build(); + # + # Example 5: Compute Timestamp from Java `Instant.now()`. + # + # Instant now = Instant.now(); + # + # Timestamp timestamp = + # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) + # .setNanos(now.getNano()).build(); + # + # Example 6: Compute Timestamp from current time in Python. + # + # timestamp = Timestamp() + # timestamp.GetCurrentTime() + # + # # JSON Mapping + # + # In JSON format, the Timestamp type is encoded as a string in the + # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" + # where \\{year} is always expressed using four digits while \\{month}, \\{day}, + # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional + # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + # is required. A proto3 JSON serializer should always use UTC (as indicated by + # "Z") when printing the Timestamp type and a proto3 JSON parser should be + # able to accept both UTC and other timezones (as indicated by an offset). + # + # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + # 01:30 UTC on January 15, 2017. + # + # In JavaScript, one can convert a Date object to this format using the + # standard + # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + # method. In Python, a standard `datetime.datetime` object can be converted + # to this format using + # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + # the Joda Time's [`ISODateTimeFormat.dateTime()`]( + # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() + # ) to obtain a formatter capable of generating timestamps in this format. + # @!attribute [rw] seconds + # @return [::Integer] + # Represents seconds of UTC time since Unix epoch + # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + # 9999-12-31T23:59:59Z inclusive. + # @!attribute [rw] nanos + # @return [::Integer] + # Non-negative fractions of a second at nanosecond resolution. Negative + # second values with fractions must still have non-negative nanos values + # that count forward in time. Must be from 0 to 999,999,999 + # inclusive. + class Timestamp + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/rpc/status.rb new file mode 100644 index 000000000000..c1a1c07eb2db --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/rpc/status.rb @@ -0,0 +1,48 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Rpc + # The `Status` type defines a logical error model that is suitable for + # different programming environments, including REST APIs and RPC APIs. It is + # used by [gRPC](https://github.com/grpc). Each `Status` message contains + # three pieces of data: error code, error message, and error details. + # + # You can find out more about this error model and how to work with it in the + # [API Design Guide](https://cloud.google.com/apis/design/errors). + # @!attribute [rw] code + # @return [::Integer] + # The status code, which should be an enum value of + # [google.rpc.Code][google.rpc.Code]. + # @!attribute [rw] message + # @return [::String] + # A developer-facing error message, which should be in English. Any + # user-facing error message should be localized and sent in the + # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized + # by the client. + # @!attribute [rw] details + # @return [::Array<::Google::Protobuf::Any>] + # A list of messages that carry the error details. There is a common set of + # message types for APIs to use. + class Status + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/datetime.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/datetime.rb new file mode 100644 index 000000000000..10625864f3dd --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/datetime.rb @@ -0,0 +1,104 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents civil time (or occasionally physical time). + # + # This type can represent a civil time in one of a few possible ways: + # + # * When utc_offset is set and time_zone is unset: a civil time on a calendar + # day with a particular offset from UTC. + # * When time_zone is set and utc_offset is unset: a civil time on a calendar + # day in a particular time zone. + # * When neither time_zone nor utc_offset is set: a civil time on a calendar + # day in local time. + # + # The date is relative to the Proleptic Gregorian Calendar. + # + # If year, month, or day are 0, the DateTime is considered not to have a + # specific year, month, or day respectively. + # + # This type may also be used to represent a physical time if all the date and + # time fields are set and either case of the `time_offset` oneof is set. + # Consider using `Timestamp` message for physical time instead. If your use + # case also would like to store the user's timezone, that can be done in + # another field. + # + # This type is more flexible than some applications may want. Make sure to + # document and validate your application's limitations. + # @!attribute [rw] year + # @return [::Integer] + # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a + # datetime without a year. + # @!attribute [rw] month + # @return [::Integer] + # Optional. Month of year. Must be from 1 to 12, or 0 if specifying a + # datetime without a month. + # @!attribute [rw] day + # @return [::Integer] + # Optional. Day of month. Must be from 1 to 31 and valid for the year and + # month, or 0 if specifying a datetime without a day. + # @!attribute [rw] hours + # @return [::Integer] + # Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults + # to 0 (midnight). An API may choose to allow the value "24:00:00" for + # scenarios like business closing time. + # @!attribute [rw] minutes + # @return [::Integer] + # Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. + # @!attribute [rw] seconds + # @return [::Integer] + # Optional. Seconds of minutes of the time. Must normally be from 0 to 59, + # defaults to 0. An API may allow the value 60 if it allows leap-seconds. + # @!attribute [rw] nanos + # @return [::Integer] + # Optional. Fractions of seconds in nanoseconds. Must be from 0 to + # 999,999,999, defaults to 0. + # @!attribute [rw] utc_offset + # @return [::Google::Protobuf::Duration] + # UTC offset. Must be whole seconds, between -18 hours and +18 hours. + # For example, a UTC offset of -4:00 would be represented as + # { seconds: -14400 }. + # + # Note: The following fields are mutually exclusive: `utc_offset`, `time_zone`. If a field in that set is populated, all other fields in the set will automatically be cleared. + # @!attribute [rw] time_zone + # @return [::Google::Type::TimeZone] + # Time zone. + # + # Note: The following fields are mutually exclusive: `time_zone`, `utc_offset`. If a field in that set is populated, all other fields in the set will automatically be cleared. + class DateTime + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + + # Represents a time zone from the + # [IANA Time Zone Database](https://www.iana.org/time-zones). + # @!attribute [rw] id + # @return [::String] + # IANA Time Zone Database time zone. For example "America/New_York". + # @!attribute [rw] version + # @return [::String] + # Optional. IANA Time Zone Database version number. For example "2019a". + class TimeZone + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/dayofweek.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/dayofweek.rb new file mode 100644 index 000000000000..973211b9ffe7 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/dayofweek.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a day of the week. + module DayOfWeek + # The day of the week is unspecified. + DAY_OF_WEEK_UNSPECIFIED = 0 + + # Monday + MONDAY = 1 + + # Tuesday + TUESDAY = 2 + + # Wednesday + WEDNESDAY = 3 + + # Thursday + THURSDAY = 4 + + # Friday + FRIDAY = 5 + + # Saturday + SATURDAY = 6 + + # Sunday + SUNDAY = 7 + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/month.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/month.rb new file mode 100644 index 000000000000..3e27c902551d --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/month.rb @@ -0,0 +1,64 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a month in the Gregorian calendar. + module Month + # The unspecified month. + MONTH_UNSPECIFIED = 0 + + # The month of January. + JANUARY = 1 + + # The month of February. + FEBRUARY = 2 + + # The month of March. + MARCH = 3 + + # The month of April. + APRIL = 4 + + # The month of May. + MAY = 5 + + # The month of June. + JUNE = 6 + + # The month of July. + JULY = 7 + + # The month of August. + AUGUST = 8 + + # The month of September. + SEPTEMBER = 9 + + # The month of October. + OCTOBER = 10 + + # The month of November. + NOVEMBER = 11 + + # The month of December. + DECEMBER = 12 + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/timeofday.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/timeofday.rb new file mode 100644 index 000000000000..ae79b2f8dceb --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/timeofday.rb @@ -0,0 +1,49 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + + +module Google + module Type + # Represents a time of day. The date and time zone are either not significant + # or are specified elsewhere. An API may choose to allow leap seconds. Related + # types are [google.type.Date][google.type.Date] and + # `google.protobuf.Timestamp`. + # @!attribute [rw] hours + # @return [::Integer] + # Hours of a day in 24 hour format. Must be greater than or equal to 0 and + # typically must be less than or equal to 23. An API may choose to allow the + # value "24:00:00" for scenarios like business closing time. + # @!attribute [rw] minutes + # @return [::Integer] + # Minutes of an hour. Must be greater than or equal to 0 and less than or + # equal to 59. + # @!attribute [rw] seconds + # @return [::Integer] + # Seconds of a minute. Must be greater than or equal to 0 and typically must + # be less than or equal to 59. An API may allow the value 60 if it allows + # leap-seconds. + # @!attribute [rw] nanos + # @return [::Integer] + # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 + # and less than or equal to 999,999,999. + class TimeOfDay + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/Gemfile b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/Gemfile new file mode 100644 index 000000000000..38dc888b0671 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/Gemfile @@ -0,0 +1,32 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +source "https://rubygems.org" + +if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" + gem "google-cloud-oracle_database-v1", path: "../" +else + gem "google-cloud-oracle_database-v1" +end + +group :test do + gem "google-style", "~> 1.26.1" + gem "minitest", "~> 5.16" + gem "minitest-focus", "~> 1.1" + gem "minitest-hooks", "~> 1.5" +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_autonomous_database.rb new file mode 100644 index 000000000000..7fefaf1574bb --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_autonomous_database. +# +def create_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new + + # Call the create_autonomous_database method. + result = client.create_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_exadata_infrastructure.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_exadata_infrastructure.rb new file mode 100644 index 000000000000..29fcad4a8d64 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_exadata_infrastructure.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_cloud_exadata_infrastructure call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_exadata_infrastructure. +# +def create_cloud_exadata_infrastructure + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new + + # Call the create_cloud_exadata_infrastructure method. + result = client.create_cloud_exadata_infrastructure request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_vm_cluster.rb new file mode 100644 index 000000000000..ac0b186ba92b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_vm_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_cloud_vm_cluster call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_vm_cluster. +# +def create_cloud_vm_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new + + # Call the create_cloud_vm_cluster method. + result = client.create_cloud_vm_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_db_system.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_db_system.rb new file mode 100644 index 000000000000..1f9da6ad9b11 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_db_system.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_db_system call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_db_system. +# +def create_db_system + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new + + # Call the create_db_system method. + result = client.create_db_system request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exadb_vm_cluster.rb new file mode 100644 index 000000000000..15e5ebef54ee --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exadb_vm_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_exadb_vm_cluster call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exadb_vm_cluster. +# +def create_exadb_vm_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new + + # Call the create_exadb_vm_cluster method. + result = client.create_exadb_vm_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exascale_db_storage_vault.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exascale_db_storage_vault.rb new file mode 100644 index 000000000000..efa0d3e98c78 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exascale_db_storage_vault.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_exascale_db_storage_vault call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exascale_db_storage_vault. +# +def create_exascale_db_storage_vault + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new + + # Call the create_exascale_db_storage_vault method. + result = client.create_exascale_db_storage_vault request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection.rb new file mode 100644 index 000000000000..e449d911b233 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnection_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_goldengate_connection call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection. +# +def create_goldengate_connection + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new + + # Call the create_goldengate_connection method. + result = client.create_goldengate_connection request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnection_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection_assignment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection_assignment.rb new file mode 100644 index 000000000000..5e2ed4da0201 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection_assignment.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnectionAssignment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_goldengate_connection_assignment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection_assignment. +# +def create_goldengate_connection_assignment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new + + # Call the create_goldengate_connection_assignment method. + result = client.create_goldengate_connection_assignment request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnectionAssignment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_deployment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_deployment.rb new file mode 100644 index 000000000000..1f4f6bb1971d --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_deployment.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateGoldengateDeployment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_goldengate_deployment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_deployment. +# +def create_goldengate_deployment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new + + # Call the create_goldengate_deployment method. + result = client.create_goldengate_deployment request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateGoldengateDeployment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_network.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_network.rb new file mode 100644 index 000000000000..416fa4709036 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_network.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_odb_network call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_network. +# +def create_odb_network + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new + + # Call the create_odb_network method. + result = client.create_odb_network request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_subnet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_subnet.rb new file mode 100644 index 000000000000..90b6f1b2132b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_subnet.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the create_odb_subnet call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_subnet. +# +def create_odb_subnet + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new + + # Call the create_odb_subnet method. + result = client.create_odb_subnet request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_autonomous_database.rb new file mode 100644 index 000000000000..401634dfc7d6 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_autonomous_database. +# +def delete_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new + + # Call the delete_autonomous_database method. + result = client.delete_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_exadata_infrastructure.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_exadata_infrastructure.rb new file mode 100644 index 000000000000..3da386f9d5cc --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_exadata_infrastructure.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_cloud_exadata_infrastructure call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_exadata_infrastructure. +# +def delete_cloud_exadata_infrastructure + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new + + # Call the delete_cloud_exadata_infrastructure method. + result = client.delete_cloud_exadata_infrastructure request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_vm_cluster.rb new file mode 100644 index 000000000000..c2fcfd8e14e5 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_vm_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_cloud_vm_cluster call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_vm_cluster. +# +def delete_cloud_vm_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new + + # Call the delete_cloud_vm_cluster method. + result = client.delete_cloud_vm_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_db_system.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_db_system.rb new file mode 100644 index 000000000000..67134c3b1128 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_db_system.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_db_system call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_db_system. +# +def delete_db_system + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new + + # Call the delete_db_system method. + result = client.delete_db_system request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exadb_vm_cluster.rb new file mode 100644 index 000000000000..d7a50c930fb8 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exadb_vm_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_exadb_vm_cluster call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exadb_vm_cluster. +# +def delete_exadb_vm_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new + + # Call the delete_exadb_vm_cluster method. + result = client.delete_exadb_vm_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exascale_db_storage_vault.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exascale_db_storage_vault.rb new file mode 100644 index 000000000000..57791aecb20f --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exascale_db_storage_vault.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_exascale_db_storage_vault call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exascale_db_storage_vault. +# +def delete_exascale_db_storage_vault + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new + + # Call the delete_exascale_db_storage_vault method. + result = client.delete_exascale_db_storage_vault request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection.rb new file mode 100644 index 000000000000..0e6947f51955 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnection_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_goldengate_connection call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection. +# +def delete_goldengate_connection + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new + + # Call the delete_goldengate_connection method. + result = client.delete_goldengate_connection request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnection_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection_assignment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection_assignment.rb new file mode 100644 index 000000000000..eead844d7caa --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection_assignment.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnectionAssignment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_goldengate_connection_assignment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection_assignment. +# +def delete_goldengate_connection_assignment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new + + # Call the delete_goldengate_connection_assignment method. + result = client.delete_goldengate_connection_assignment request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnectionAssignment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_deployment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_deployment.rb new file mode 100644 index 000000000000..289228eea10e --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_deployment.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateDeployment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_goldengate_deployment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_deployment. +# +def delete_goldengate_deployment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new + + # Call the delete_goldengate_deployment method. + result = client.delete_goldengate_deployment request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateDeployment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_network.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_network.rb new file mode 100644 index 000000000000..a11f71f41cc0 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_network.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_odb_network call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_network. +# +def delete_odb_network + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new + + # Call the delete_odb_network method. + result = client.delete_odb_network request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_subnet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_subnet.rb new file mode 100644 index 000000000000..17826c872d6b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_subnet.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the delete_odb_subnet call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_subnet. +# +def delete_odb_subnet + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new + + # Call the delete_odb_subnet method. + result = client.delete_odb_subnet request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/failover_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/failover_autonomous_database.rb new file mode 100644 index 000000000000..34c7ed5ee7b2 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/failover_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the failover_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#failover_autonomous_database. +# +def failover_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new + + # Call the failover_autonomous_database method. + result = client.failover_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/generate_autonomous_database_wallet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/generate_autonomous_database_wallet.rb new file mode 100644 index 000000000000..f91da49f313b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/generate_autonomous_database_wallet.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the generate_autonomous_database_wallet call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#generate_autonomous_database_wallet. +# +def generate_autonomous_database_wallet + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new + + # Call the generate_autonomous_database_wallet method. + result = client.generate_autonomous_database_wallet request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_autonomous_database.rb new file mode 100644 index 000000000000..8e6896e5a254 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_autonomous_database.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_autonomous_database. +# +def get_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new + + # Call the get_autonomous_database method. + result = client.get_autonomous_database request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabase. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_exadata_infrastructure.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_exadata_infrastructure.rb new file mode 100644 index 000000000000..c11ffecfa9d0 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_exadata_infrastructure.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_cloud_exadata_infrastructure call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_exadata_infrastructure. +# +def get_cloud_exadata_infrastructure + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new + + # Call the get_cloud_exadata_infrastructure method. + result = client.get_cloud_exadata_infrastructure request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_vm_cluster.rb new file mode 100644 index 000000000000..721712429e19 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_vm_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_cloud_vm_cluster call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_vm_cluster. +# +def get_cloud_vm_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new + + # Call the get_cloud_vm_cluster method. + result = client.get_cloud_vm_cluster request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudVmCluster. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_database.rb new file mode 100644 index 000000000000..a97ee01e49a6 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_database.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_database. +# +def get_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new + + # Call the get_database method. + result = client.get_database request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::Database. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_db_system.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_db_system.rb new file mode 100644 index 000000000000..b70c71096143 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_db_system.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetDbSystem_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_db_system call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_db_system. +# +def get_db_system + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new + + # Call the get_db_system method. + result = client.get_db_system request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::DbSystem. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetDbSystem_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exadb_vm_cluster.rb new file mode 100644 index 000000000000..8abed062f0cc --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exadb_vm_cluster.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_exadb_vm_cluster call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exadb_vm_cluster. +# +def get_exadb_vm_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new + + # Call the get_exadb_vm_cluster method. + result = client.get_exadb_vm_cluster request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::ExadbVmCluster. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exascale_db_storage_vault.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exascale_db_storage_vault.rb new file mode 100644 index 000000000000..195880ed832f --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exascale_db_storage_vault.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_exascale_db_storage_vault call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exascale_db_storage_vault. +# +def get_exascale_db_storage_vault + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new + + # Call the get_exascale_db_storage_vault method. + result = client.get_exascale_db_storage_vault request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection.rb new file mode 100644 index 000000000000..d1f900b5501c --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnection_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_goldengate_connection call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection. +# +def get_goldengate_connection + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new + + # Call the get_goldengate_connection method. + result = client.get_goldengate_connection request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnection. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnection_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_assignment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_assignment.rb new file mode 100644 index 000000000000..f56baa91c94b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_assignment.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionAssignment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_goldengate_connection_assignment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_assignment. +# +def get_goldengate_connection_assignment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new + + # Call the get_goldengate_connection_assignment method. + result = client.get_goldengate_connection_assignment request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionAssignment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_type.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_type.rb new file mode 100644 index 000000000000..27a576e8b5f8 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_type.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_goldengate_connection_type call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_type. +# +def get_goldengate_connection_type + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new + + # Call the get_goldengate_connection_type method. + result = client.get_goldengate_connection_type request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment.rb new file mode 100644 index 000000000000..044f28a7d59a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeployment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_goldengate_deployment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment. +# +def get_goldengate_deployment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new + + # Call the get_goldengate_deployment method. + result = client.get_goldengate_deployment request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeployment. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeployment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_environment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_environment.rb new file mode 100644 index 000000000000..902c7a11a7d3 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_environment.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_goldengate_deployment_environment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_environment. +# +def get_goldengate_deployment_environment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new + + # Call the get_goldengate_deployment_environment method. + result = client.get_goldengate_deployment_environment request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_type.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_type.rb new file mode 100644 index 000000000000..f9b0ff0ff85b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_type.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_goldengate_deployment_type call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_type. +# +def get_goldengate_deployment_type + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new + + # Call the get_goldengate_deployment_type method. + result = client.get_goldengate_deployment_type request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_version.rb new file mode 100644 index 000000000000..ca0869d5d9d8 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_version.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_goldengate_deployment_version call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_version. +# +def get_goldengate_deployment_version + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new + + # Call the get_goldengate_deployment_version method. + result = client.get_goldengate_deployment_version request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_network.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_network.rb new file mode 100644 index 000000000000..38d4c2750b11 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_network.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_odb_network call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_network. +# +def get_odb_network + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new + + # Call the get_odb_network method. + result = client.get_odb_network request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbNetwork. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_subnet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_subnet.rb new file mode 100644 index 000000000000..754a017939b6 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_subnet.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_odb_subnet call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_subnet. +# +def get_odb_subnet + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new + + # Call the get_odb_subnet method. + result = client.get_odb_subnet request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbSubnet. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_pluggable_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_pluggable_database.rb new file mode 100644 index 000000000000..5b396e6ad698 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_pluggable_database.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the get_pluggable_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_pluggable_database. +# +def get_pluggable_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new + + # Call the get_pluggable_database method. + result = client.get_pluggable_database request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::PluggableDatabase. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_backups.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_backups.rb new file mode 100644 index 000000000000..63e7f87ec3af --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_backups.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_autonomous_database_backups call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_backups. +# +def list_autonomous_database_backups + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new + + # Call the list_autonomous_database_backups method. + result = client.list_autonomous_database_backups request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_character_sets.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_character_sets.rb new file mode 100644 index 000000000000..dcf09feb4414 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_character_sets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_autonomous_database_character_sets call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_character_sets. +# +def list_autonomous_database_character_sets + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new + + # Call the list_autonomous_database_character_sets method. + result = client.list_autonomous_database_character_sets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_databases.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_databases.rb new file mode 100644 index 000000000000..82a216d09cca --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_databases.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_autonomous_databases call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_databases. +# +def list_autonomous_databases + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new + + # Call the list_autonomous_databases method. + result = client.list_autonomous_databases request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_db_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_db_versions.rb new file mode 100644 index 000000000000..987da6cb44f3 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_db_versions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_autonomous_db_versions call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_db_versions. +# +def list_autonomous_db_versions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new + + # Call the list_autonomous_db_versions method. + result = client.list_autonomous_db_versions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_exadata_infrastructures.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_exadata_infrastructures.rb new file mode 100644 index 000000000000..e465dd79bff1 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_exadata_infrastructures.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_cloud_exadata_infrastructures call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_exadata_infrastructures. +# +def list_cloud_exadata_infrastructures + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new + + # Call the list_cloud_exadata_infrastructures method. + result = client.list_cloud_exadata_infrastructures request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_vm_clusters.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_vm_clusters.rb new file mode 100644 index 000000000000..1c5a3c00585a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_vm_clusters.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_cloud_vm_clusters call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_vm_clusters. +# +def list_cloud_vm_clusters + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new + + # Call the list_cloud_vm_clusters method. + result = client.list_cloud_vm_clusters request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudVmCluster. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_database_character_sets.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_database_character_sets.rb new file mode 100644 index 000000000000..06b5f75e9547 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_database_character_sets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_database_character_sets call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_database_character_sets. +# +def list_database_character_sets + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new + + # Call the list_database_character_sets method. + result = client.list_database_character_sets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_databases.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_databases.rb new file mode 100644 index 000000000000..a3b445418286 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_databases.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListDatabases_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_databases call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_databases. +# +def list_databases + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new + + # Call the list_databases method. + result = client.list_databases request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::Database. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListDatabases_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_nodes.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_nodes.rb new file mode 100644 index 000000000000..b555c4e13de4 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_nodes.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_db_nodes call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_nodes. +# +def list_db_nodes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new + + # Call the list_db_nodes method. + result = client.list_db_nodes request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbNode. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_servers.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_servers.rb new file mode 100644 index 000000000000..08976f0d30ce --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_servers.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_db_servers call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_servers. +# +def list_db_servers + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new + + # Call the list_db_servers method. + result = client.list_db_servers request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbServer. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_initial_storage_sizes.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_initial_storage_sizes.rb new file mode 100644 index 000000000000..9223bf118888 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_initial_storage_sizes.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_db_system_initial_storage_sizes call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_initial_storage_sizes. +# +def list_db_system_initial_storage_sizes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new + + # Call the list_db_system_initial_storage_sizes method. + result = client.list_db_system_initial_storage_sizes request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_shapes.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_shapes.rb new file mode 100644 index 000000000000..94fbaa722126 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_shapes.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_db_system_shapes call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_shapes. +# +def list_db_system_shapes + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new + + # Call the list_db_system_shapes method. + result = client.list_db_system_shapes request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemShape. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_systems.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_systems.rb new file mode 100644 index 000000000000..76b99b2c3ccf --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_systems.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListDbSystems_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_db_systems call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_systems. +# +def list_db_systems + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new + + # Call the list_db_systems method. + result = client.list_db_systems request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystem. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListDbSystems_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_versions.rb new file mode 100644 index 000000000000..b7aa7c1bc4a7 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_versions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_db_versions call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_versions. +# +def list_db_versions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new + + # Call the list_db_versions method. + result = client.list_db_versions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_entitlements.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_entitlements.rb new file mode 100644 index 000000000000..6bcf8f668350 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_entitlements.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_entitlements call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_entitlements. +# +def list_entitlements + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new + + # Call the list_entitlements method. + result = client.list_entitlements request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::Entitlement. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exadb_vm_clusters.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exadb_vm_clusters.rb new file mode 100644 index 000000000000..dbc96fc6a114 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exadb_vm_clusters.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_exadb_vm_clusters call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exadb_vm_clusters. +# +def list_exadb_vm_clusters + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new + + # Call the list_exadb_vm_clusters method. + result = client.list_exadb_vm_clusters request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exascale_db_storage_vaults.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exascale_db_storage_vaults.rb new file mode 100644 index 000000000000..cb26df64a85c --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exascale_db_storage_vaults.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_exascale_db_storage_vaults call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exascale_db_storage_vaults. +# +def list_exascale_db_storage_vaults + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new + + # Call the list_exascale_db_storage_vaults method. + result = client.list_exascale_db_storage_vaults request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_gi_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_gi_versions.rb new file mode 100644 index 000000000000..3bbdcbdb9623 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_gi_versions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_gi_versions call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_gi_versions. +# +def list_gi_versions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new + + # Call the list_gi_versions method. + result = client.list_gi_versions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::GiVersion. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_assignments.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_assignments.rb new file mode 100644 index 000000000000..f0710dd914de --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_assignments.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionAssignments_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_goldengate_connection_assignments call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_assignments. +# +def list_goldengate_connection_assignments + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new + + # Call the list_goldengate_connection_assignments method. + result = client.list_goldengate_connection_assignments request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionAssignments_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_types.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_types.rb new file mode 100644 index 000000000000..2f6308d38b1c --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_types.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionTypes_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_goldengate_connection_types call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_types. +# +def list_goldengate_connection_types + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new + + # Call the list_goldengate_connection_types method. + result = client.list_goldengate_connection_types request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionTypes_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connections.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connections.rb new file mode 100644 index 000000000000..114d28561f7a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connections.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnections_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_goldengate_connections call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connections. +# +def list_goldengate_connections + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new + + # Call the list_goldengate_connections method. + result = client.list_goldengate_connections request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnection. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnections_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_environments.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_environments.rb new file mode 100644 index 000000000000..65dad9b55ea0 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_environments.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentEnvironments_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_goldengate_deployment_environments call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_environments. +# +def list_goldengate_deployment_environments + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new + + # Call the list_goldengate_deployment_environments method. + result = client.list_goldengate_deployment_environments request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentEnvironments_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_types.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_types.rb new file mode 100644 index 000000000000..3e0f19565539 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_types.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentTypes_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_goldengate_deployment_types call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_types. +# +def list_goldengate_deployment_types + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new + + # Call the list_goldengate_deployment_types method. + result = client.list_goldengate_deployment_types request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentTypes_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_versions.rb new file mode 100644 index 000000000000..01734b2b98a0 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_versions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentVersions_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_goldengate_deployment_versions call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_versions. +# +def list_goldengate_deployment_versions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new + + # Call the list_goldengate_deployment_versions method. + result = client.list_goldengate_deployment_versions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployments.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployments.rb new file mode 100644 index 000000000000..fc553dcb3479 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployments.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeployments_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_goldengate_deployments call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployments. +# +def list_goldengate_deployments + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new + + # Call the list_goldengate_deployments method. + result = client.list_goldengate_deployments request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeployments_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_minor_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_minor_versions.rb new file mode 100644 index 000000000000..7dbebb3ca049 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_minor_versions.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_minor_versions call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_minor_versions. +# +def list_minor_versions + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new + + # Call the list_minor_versions method. + result = client.list_minor_versions request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::MinorVersion. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_networks.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_networks.rb new file mode 100644 index 000000000000..53141e897e0a --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_networks.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_odb_networks call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_networks. +# +def list_odb_networks + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new + + # Call the list_odb_networks method. + result = client.list_odb_networks request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbNetwork. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_subnets.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_subnets.rb new file mode 100644 index 000000000000..60c3504d64c0 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_subnets.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_odb_subnets call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_subnets. +# +def list_odb_subnets + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new + + # Call the list_odb_subnets method. + result = client.list_odb_subnets request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbSubnet. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_pluggable_databases.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_pluggable_databases.rb new file mode 100644 index 000000000000..643ab1dff4d1 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_pluggable_databases.rb @@ -0,0 +1,51 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the list_pluggable_databases call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_pluggable_databases. +# +def list_pluggable_databases + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new + + # Call the list_pluggable_databases method. + result = client.list_pluggable_databases request + + # The returned object is of type Gapic::PagedEnumerable. You can iterate + # over elements, and API calls will be issued to fetch pages as needed. + result.each do |item| + # Each element is of type ::Google::Cloud::OracleDatabase::V1::PluggableDatabase. + p item + end +end +# [END oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/remove_virtual_machine_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/remove_virtual_machine_exadb_vm_cluster.rb new file mode 100644 index 000000000000..411331f79766 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/remove_virtual_machine_exadb_vm_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the remove_virtual_machine_exadb_vm_cluster call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#remove_virtual_machine_exadb_vm_cluster. +# +def remove_virtual_machine_exadb_vm_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new + + # Call the remove_virtual_machine_exadb_vm_cluster method. + result = client.remove_virtual_machine_exadb_vm_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restart_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restart_autonomous_database.rb new file mode 100644 index 000000000000..f8959e49d1f3 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restart_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_RestartAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the restart_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restart_autonomous_database. +# +def restart_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new + + # Call the restart_autonomous_database method. + result = client.restart_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_RestartAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restore_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restore_autonomous_database.rb new file mode 100644 index 000000000000..2432994283ff --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restore_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the restore_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restore_autonomous_database. +# +def restore_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new + + # Call the restore_autonomous_database method. + result = client.restore_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_autonomous_database.rb new file mode 100644 index 000000000000..e5e616c720e6 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_StartAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the start_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_autonomous_database. +# +def start_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new + + # Call the start_autonomous_database method. + result = client.start_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_StartAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_goldengate_deployment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_goldengate_deployment.rb new file mode 100644 index 000000000000..c2b129f746f7 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_goldengate_deployment.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_StartGoldengateDeployment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the start_goldengate_deployment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_goldengate_deployment. +# +def start_goldengate_deployment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new + + # Call the start_goldengate_deployment method. + result = client.start_goldengate_deployment request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_StartGoldengateDeployment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_autonomous_database.rb new file mode 100644 index 000000000000..764494dc51df --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_StopAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the stop_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_autonomous_database. +# +def stop_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new + + # Call the stop_autonomous_database method. + result = client.stop_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_StopAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_goldengate_deployment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_goldengate_deployment.rb new file mode 100644 index 000000000000..9ec29a5d49e2 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_goldengate_deployment.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_StopGoldengateDeployment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the stop_goldengate_deployment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_goldengate_deployment. +# +def stop_goldengate_deployment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new + + # Call the stop_goldengate_deployment method. + result = client.stop_goldengate_deployment request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_StopGoldengateDeployment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/switchover_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/switchover_autonomous_database.rb new file mode 100644 index 000000000000..b3c304fa9d35 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/switchover_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the switchover_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#switchover_autonomous_database. +# +def switchover_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new + + # Call the switchover_autonomous_database method. + result = client.switchover_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/test_goldengate_connection_assignment.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/test_goldengate_connection_assignment.rb new file mode 100644 index 000000000000..150605576370 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/test_goldengate_connection_assignment.rb @@ -0,0 +1,47 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_TestGoldengateConnectionAssignment_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the test_goldengate_connection_assignment call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#test_goldengate_connection_assignment. +# +def test_goldengate_connection_assignment + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new + + # Call the test_goldengate_connection_assignment method. + result = client.test_goldengate_connection_assignment request + + # The returned object is of type Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse. + p result +end +# [END oracledatabase_v1_generated_OracleDatabase_TestGoldengateConnectionAssignment_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_autonomous_database.rb new file mode 100644 index 000000000000..dd77eb23607b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_autonomous_database.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the update_autonomous_database call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_autonomous_database. +# +def update_autonomous_database + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new + + # Call the update_autonomous_database method. + result = client.update_autonomous_database request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_exadb_vm_cluster.rb new file mode 100644 index 000000000000..69dcd3b106a1 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_exadb_vm_cluster.rb @@ -0,0 +1,54 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +# [START oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_sync] +require "google/cloud/oracle_database/v1" + +## +# Snippet for the update_exadb_vm_cluster call in the OracleDatabase service +# +# 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://cloud.google.com/ruby/docs/reference. +# +# This is an auto-generated example demonstrating basic usage of +# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_exadb_vm_cluster. +# +def update_exadb_vm_cluster + # Create a client object. The client can be reused for multiple calls. + client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + + # Create a request. To set request fields, pass in keyword arguments. + request = Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new + + # Call the update_exadb_vm_cluster method. + result = client.update_exadb_vm_cluster request + + # The returned object is of type Gapic::Operation. You can use it to + # check the status of an operation, cancel it, or wait for results. + # Here is how to wait for a response. + result.wait_until_done! timeout: 60 + if result.response? + p result.response + else + puts "No response received." + end +end +# [END oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json new file mode 100644 index 000000000000..dabb0b86c9ce --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json @@ -0,0 +1,3255 @@ +{ + "client_library": { + "name": "google-cloud-oracle_database-v1", + "version": "", + "language": "RUBY", + "apis": [ + { + "id": "google.cloud.oracledatabase.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync", + "title": "Snippet for the list_cloud_exadata_infrastructures call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_exadata_infrastructures.", + "file": "oracle_database/list_cloud_exadata_infrastructures.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_cloud_exadata_infrastructures", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_exadata_infrastructures", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListCloudExadataInfrastructures", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListCloudExadataInfrastructures", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync", + "title": "Snippet for the get_cloud_exadata_infrastructure call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_exadata_infrastructure.", + "file": "oracle_database/get_cloud_exadata_infrastructure.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_cloud_exadata_infrastructure", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_exadata_infrastructure", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetCloudExadataInfrastructure", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetCloudExadataInfrastructure", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync", + "title": "Snippet for the create_cloud_exadata_infrastructure call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_exadata_infrastructure.", + "file": "oracle_database/create_cloud_exadata_infrastructure.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_cloud_exadata_infrastructure", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_exadata_infrastructure", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateCloudExadataInfrastructure", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateCloudExadataInfrastructure", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync", + "title": "Snippet for the delete_cloud_exadata_infrastructure call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_exadata_infrastructure.", + "file": "oracle_database/delete_cloud_exadata_infrastructure.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_cloud_exadata_infrastructure", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_exadata_infrastructure", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteCloudExadataInfrastructure", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteCloudExadataInfrastructure", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync", + "title": "Snippet for the list_cloud_vm_clusters call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_vm_clusters.", + "file": "oracle_database/list_cloud_vm_clusters.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_cloud_vm_clusters", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_vm_clusters", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListCloudVmClusters", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListCloudVmClusters", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync", + "title": "Snippet for the get_cloud_vm_cluster call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_vm_cluster.", + "file": "oracle_database/get_cloud_vm_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_cloud_vm_cluster", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_vm_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::CloudVmCluster", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetCloudVmCluster", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetCloudVmCluster", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync", + "title": "Snippet for the create_cloud_vm_cluster call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_vm_cluster.", + "file": "oracle_database/create_cloud_vm_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_cloud_vm_cluster", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_vm_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateCloudVmCluster", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateCloudVmCluster", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync", + "title": "Snippet for the delete_cloud_vm_cluster call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_vm_cluster.", + "file": "oracle_database/delete_cloud_vm_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_cloud_vm_cluster", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_vm_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteCloudVmCluster", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteCloudVmCluster", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync", + "title": "Snippet for the list_entitlements call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_entitlements.", + "file": "oracle_database/list_entitlements.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_entitlements", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_entitlements", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListEntitlements", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListEntitlements", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync", + "title": "Snippet for the list_db_servers call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_servers.", + "file": "oracle_database/list_db_servers.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_db_servers", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_servers", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListDbServersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbServersResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListDbServers", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbServers", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync", + "title": "Snippet for the list_db_nodes call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_nodes.", + "file": "oracle_database/list_db_nodes.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_db_nodes", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_nodes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListDbNodes", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbNodes", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync", + "title": "Snippet for the list_gi_versions call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_gi_versions.", + "file": "oracle_database/list_gi_versions.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_gi_versions", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_gi_versions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGiVersions", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGiVersions", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_sync", + "title": "Snippet for the list_minor_versions call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_minor_versions.", + "file": "oracle_database/list_minor_versions.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_minor_versions", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_minor_versions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListMinorVersions", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListMinorVersions", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync", + "title": "Snippet for the list_db_system_shapes call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_shapes.", + "file": "oracle_database/list_db_system_shapes.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_db_system_shapes", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_shapes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListDbSystemShapes", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystemShapes", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync", + "title": "Snippet for the list_autonomous_databases call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_databases.", + "file": "oracle_database/list_autonomous_databases.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_autonomous_databases", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_databases", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListAutonomousDatabases", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabases", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync", + "title": "Snippet for the get_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_autonomous_database.", + "file": "oracle_database/get_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::AutonomousDatabase", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync", + "title": "Snippet for the create_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_autonomous_database.", + "file": "oracle_database/create_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_sync", + "title": "Snippet for the update_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_autonomous_database.", + "file": "oracle_database/update_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "UpdateAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.UpdateAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync", + "title": "Snippet for the delete_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_autonomous_database.", + "file": "oracle_database/delete_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync", + "title": "Snippet for the restore_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restore_autonomous_database.", + "file": "oracle_database/restore_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "restore_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restore_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "RestoreAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.RestoreAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync", + "title": "Snippet for the generate_autonomous_database_wallet call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#generate_autonomous_database_wallet.", + "file": "oracle_database/generate_autonomous_database_wallet.rb", + "language": "RUBY", + "client_method": { + "short_name": "generate_autonomous_database_wallet", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#generate_autonomous_database_wallet", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GenerateAutonomousDatabaseWallet", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GenerateAutonomousDatabaseWallet", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync", + "title": "Snippet for the list_autonomous_db_versions call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_db_versions.", + "file": "oracle_database/list_autonomous_db_versions.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_autonomous_db_versions", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_db_versions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListAutonomousDbVersions", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDbVersions", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync", + "title": "Snippet for the list_autonomous_database_character_sets call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_character_sets.", + "file": "oracle_database/list_autonomous_database_character_sets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_autonomous_database_character_sets", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_character_sets", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListAutonomousDatabaseCharacterSets", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabaseCharacterSets", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync", + "title": "Snippet for the list_autonomous_database_backups call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_backups.", + "file": "oracle_database/list_autonomous_database_backups.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_autonomous_database_backups", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_backups", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListAutonomousDatabaseBackups", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabaseBackups", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_StopAutonomousDatabase_sync", + "title": "Snippet for the stop_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_autonomous_database.", + "file": "oracle_database/stop_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "stop_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "StopAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StopAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_StartAutonomousDatabase_sync", + "title": "Snippet for the start_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_autonomous_database.", + "file": "oracle_database/start_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "start_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "StartAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StartAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_RestartAutonomousDatabase_sync", + "title": "Snippet for the restart_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restart_autonomous_database.", + "file": "oracle_database/restart_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "restart_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restart_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "RestartAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.RestartAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_sync", + "title": "Snippet for the switchover_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#switchover_autonomous_database.", + "file": "oracle_database/switchover_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "switchover_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#switchover_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "SwitchoverAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.SwitchoverAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_sync", + "title": "Snippet for the failover_autonomous_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#failover_autonomous_database.", + "file": "oracle_database/failover_autonomous_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "failover_autonomous_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#failover_autonomous_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "FailoverAutonomousDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.FailoverAutonomousDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_sync", + "title": "Snippet for the list_odb_networks call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_networks.", + "file": "oracle_database/list_odb_networks.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_odb_networks", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_networks", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListOdbNetworks", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListOdbNetworks", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_sync", + "title": "Snippet for the get_odb_network call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_network.", + "file": "oracle_database/get_odb_network.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_odb_network", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_network", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::OdbNetwork", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetOdbNetwork", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetOdbNetwork", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_sync", + "title": "Snippet for the create_odb_network call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_network.", + "file": "oracle_database/create_odb_network.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_odb_network", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_network", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateOdbNetwork", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateOdbNetwork", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_sync", + "title": "Snippet for the delete_odb_network call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_network.", + "file": "oracle_database/delete_odb_network.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_odb_network", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_network", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteOdbNetwork", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteOdbNetwork", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_sync", + "title": "Snippet for the list_odb_subnets call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_subnets.", + "file": "oracle_database/list_odb_subnets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_odb_subnets", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_subnets", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListOdbSubnets", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListOdbSubnets", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_sync", + "title": "Snippet for the get_odb_subnet call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_subnet.", + "file": "oracle_database/get_odb_subnet.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_odb_subnet", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_subnet", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::OdbSubnet", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetOdbSubnet", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetOdbSubnet", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_sync", + "title": "Snippet for the create_odb_subnet call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_subnet.", + "file": "oracle_database/create_odb_subnet.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_odb_subnet", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_subnet", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateOdbSubnet", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateOdbSubnet", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_sync", + "title": "Snippet for the delete_odb_subnet call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_subnet.", + "file": "oracle_database/delete_odb_subnet.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_odb_subnet", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_subnet", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteOdbSubnet", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteOdbSubnet", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_sync", + "title": "Snippet for the list_exadb_vm_clusters call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exadb_vm_clusters.", + "file": "oracle_database/list_exadb_vm_clusters.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_exadb_vm_clusters", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exadb_vm_clusters", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListExadbVmClusters", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListExadbVmClusters", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_sync", + "title": "Snippet for the get_exadb_vm_cluster call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exadb_vm_cluster.", + "file": "oracle_database/get_exadb_vm_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_exadb_vm_cluster", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exadb_vm_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ExadbVmCluster", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetExadbVmCluster", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetExadbVmCluster", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_sync", + "title": "Snippet for the create_exadb_vm_cluster call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exadb_vm_cluster.", + "file": "oracle_database/create_exadb_vm_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_exadb_vm_cluster", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exadb_vm_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateExadbVmCluster", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateExadbVmCluster", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_sync", + "title": "Snippet for the delete_exadb_vm_cluster call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exadb_vm_cluster.", + "file": "oracle_database/delete_exadb_vm_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_exadb_vm_cluster", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exadb_vm_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteExadbVmCluster", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteExadbVmCluster", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_sync", + "title": "Snippet for the update_exadb_vm_cluster call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_exadb_vm_cluster.", + "file": "oracle_database/update_exadb_vm_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "update_exadb_vm_cluster", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_exadb_vm_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "UpdateExadbVmCluster", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.UpdateExadbVmCluster", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_sync", + "title": "Snippet for the remove_virtual_machine_exadb_vm_cluster call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#remove_virtual_machine_exadb_vm_cluster.", + "file": "oracle_database/remove_virtual_machine_exadb_vm_cluster.rb", + "language": "RUBY", + "client_method": { + "short_name": "remove_virtual_machine_exadb_vm_cluster", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#remove_virtual_machine_exadb_vm_cluster", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "RemoveVirtualMachineExadbVmCluster", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.RemoveVirtualMachineExadbVmCluster", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_sync", + "title": "Snippet for the list_exascale_db_storage_vaults call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exascale_db_storage_vaults.", + "file": "oracle_database/list_exascale_db_storage_vaults.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_exascale_db_storage_vaults", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exascale_db_storage_vaults", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListExascaleDbStorageVaults", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListExascaleDbStorageVaults", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_sync", + "title": "Snippet for the get_exascale_db_storage_vault call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exascale_db_storage_vault.", + "file": "oracle_database/get_exascale_db_storage_vault.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_exascale_db_storage_vault", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exascale_db_storage_vault", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetExascaleDbStorageVault", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetExascaleDbStorageVault", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_sync", + "title": "Snippet for the create_exascale_db_storage_vault call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exascale_db_storage_vault.", + "file": "oracle_database/create_exascale_db_storage_vault.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_exascale_db_storage_vault", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exascale_db_storage_vault", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateExascaleDbStorageVault", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateExascaleDbStorageVault", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_sync", + "title": "Snippet for the delete_exascale_db_storage_vault call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exascale_db_storage_vault.", + "file": "oracle_database/delete_exascale_db_storage_vault.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_exascale_db_storage_vault", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exascale_db_storage_vault", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteExascaleDbStorageVault", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteExascaleDbStorageVault", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_sync", + "title": "Snippet for the list_db_system_initial_storage_sizes call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_initial_storage_sizes.", + "file": "oracle_database/list_db_system_initial_storage_sizes.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_db_system_initial_storage_sizes", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_initial_storage_sizes", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListDbSystemInitialStorageSizes", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystemInitialStorageSizes", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDatabases_sync", + "title": "Snippet for the list_databases call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_databases.", + "file": "oracle_database/list_databases.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_databases", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_databases", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListDatabases", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDatabases", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetDatabase_sync", + "title": "Snippet for the get_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_database.", + "file": "oracle_database/get_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::Database", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_sync", + "title": "Snippet for the list_pluggable_databases call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_pluggable_databases.", + "file": "oracle_database/list_pluggable_databases.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_pluggable_databases", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_pluggable_databases", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListPluggableDatabases", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListPluggableDatabases", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_sync", + "title": "Snippet for the get_pluggable_database call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_pluggable_database.", + "file": "oracle_database/get_pluggable_database.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_pluggable_database", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_pluggable_database", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::PluggableDatabase", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetPluggableDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetPluggableDatabase", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystems_sync", + "title": "Snippet for the list_db_systems call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_systems.", + "file": "oracle_database/list_db_systems.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_db_systems", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_systems", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListDbSystems", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystems", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetDbSystem_sync", + "title": "Snippet for the get_db_system call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_db_system.", + "file": "oracle_database/get_db_system.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_db_system", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_db_system", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::DbSystem", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetDbSystem", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetDbSystem", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_sync", + "title": "Snippet for the create_db_system call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_db_system.", + "file": "oracle_database/create_db_system.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_db_system", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_db_system", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateDbSystem", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateDbSystem", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_sync", + "title": "Snippet for the delete_db_system call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_db_system.", + "file": "oracle_database/delete_db_system.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_db_system", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_db_system", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteDbSystem", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteDbSystem", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeployments_sync", + "title": "Snippet for the list_goldengate_deployments call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployments.", + "file": "oracle_database/list_goldengate_deployments.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_deployments", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployments", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateDeployments", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeployments", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeployment_sync", + "title": "Snippet for the get_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment.", + "file": "oracle_database/get_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeployment", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateDeployment_sync", + "title": "Snippet for the create_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_deployment.", + "file": "oracle_database/create_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateDeployment_sync", + "title": "Snippet for the delete_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_deployment.", + "file": "oracle_database/delete_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_StopGoldengateDeployment_sync", + "title": "Snippet for the stop_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_goldengate_deployment.", + "file": "oracle_database/stop_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "stop_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "StopGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StopGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_StartGoldengateDeployment_sync", + "title": "Snippet for the start_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_goldengate_deployment.", + "file": "oracle_database/start_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "start_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "StartGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StartGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnections_sync", + "title": "Snippet for the list_goldengate_connections call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connections.", + "file": "oracle_database/list_goldengate_connections.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_connections", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connections", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateConnections", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnections", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnection_sync", + "title": "Snippet for the get_goldengate_connection call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection.", + "file": "oracle_database/get_goldengate_connection.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_connection", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnection", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateConnection", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnection", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnection_sync", + "title": "Snippet for the create_goldengate_connection call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection.", + "file": "oracle_database/create_goldengate_connection.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_goldengate_connection", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateGoldengateConnection", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateConnection", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnection_sync", + "title": "Snippet for the delete_goldengate_connection call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection.", + "file": "oracle_database/delete_goldengate_connection.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_goldengate_connection", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteGoldengateConnection", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateConnection", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_sync", + "title": "Snippet for the get_goldengate_deployment_version call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_version.", + "file": "oracle_database/get_goldengate_deployment_version.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_deployment_version", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_version", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateDeploymentVersion", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentVersion", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentVersions_sync", + "title": "Snippet for the list_goldengate_deployment_versions call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_versions.", + "file": "oracle_database/list_goldengate_deployment_versions.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_deployment_versions", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_versions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateDeploymentVersions", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentVersions", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_sync", + "title": "Snippet for the get_goldengate_deployment_type call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_type.", + "file": "oracle_database/get_goldengate_deployment_type.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_deployment_type", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_type", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateDeploymentType", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentType", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentTypes_sync", + "title": "Snippet for the list_goldengate_deployment_types call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_types.", + "file": "oracle_database/list_goldengate_deployment_types.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_deployment_types", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_types", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateDeploymentTypes", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentTypes", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_sync", + "title": "Snippet for the get_goldengate_deployment_environment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_environment.", + "file": "oracle_database/get_goldengate_deployment_environment.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_deployment_environment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_environment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateDeploymentEnvironment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentEnvironment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentEnvironments_sync", + "title": "Snippet for the list_goldengate_deployment_environments call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_environments.", + "file": "oracle_database/list_goldengate_deployment_environments.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_deployment_environments", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_environments", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateDeploymentEnvironments", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentEnvironments", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_sync", + "title": "Snippet for the get_goldengate_connection_type call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_type.", + "file": "oracle_database/get_goldengate_connection_type.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_connection_type", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_type", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateConnectionType", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnectionType", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionTypes_sync", + "title": "Snippet for the list_goldengate_connection_types call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_types.", + "file": "oracle_database/list_goldengate_connection_types.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_connection_types", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_types", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateConnectionTypes", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnectionTypes", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync", + "title": "Snippet for the list_db_versions call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_versions.", + "file": "oracle_database/list_db_versions.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_db_versions", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_versions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListDbVersions", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbVersions", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_sync", + "title": "Snippet for the list_database_character_sets call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_database_character_sets.", + "file": "oracle_database/list_database_character_sets.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_database_character_sets", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_database_character_sets", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListDatabaseCharacterSets", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDatabaseCharacterSets", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionAssignments_sync", + "title": "Snippet for the list_goldengate_connection_assignments call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_assignments.", + "file": "oracle_database/list_goldengate_connection_assignments.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_connection_assignments", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_assignments", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateConnectionAssignments", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnectionAssignments", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionAssignment_sync", + "title": "Snippet for the get_goldengate_connection_assignment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_assignment.", + "file": "oracle_database/get_goldengate_connection_assignment.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_connection_assignment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_assignment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateConnectionAssignment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnectionAssignment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnectionAssignment_sync", + "title": "Snippet for the create_goldengate_connection_assignment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection_assignment.", + "file": "oracle_database/create_goldengate_connection_assignment.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_goldengate_connection_assignment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection_assignment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateGoldengateConnectionAssignment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateConnectionAssignment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnectionAssignment_sync", + "title": "Snippet for the delete_goldengate_connection_assignment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection_assignment.", + "file": "oracle_database/delete_goldengate_connection_assignment.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_goldengate_connection_assignment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection_assignment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteGoldengateConnectionAssignment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateConnectionAssignment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_TestGoldengateConnectionAssignment_sync", + "title": "Snippet for the test_goldengate_connection_assignment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#test_goldengate_connection_assignment.", + "file": "oracle_database/test_goldengate_connection_assignment.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_goldengate_connection_assignment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#test_goldengate_connection_assignment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "TestGoldengateConnectionAssignment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.TestGoldengateConnectionAssignment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + } + ] +} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_operations_test.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_operations_test.rb new file mode 100644 index 000000000000..114e337ab096 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_operations_test.rb @@ -0,0 +1,400 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/oracledatabase/v1/oracledatabase_pb" +require "google/cloud/oracledatabase/v1/oracledatabase_services_pb" +require "google/cloud/oracle_database/v1/oracle_database" + +class ::Google::Cloud::OracleDatabase::V1::OracleDatabase::OperationsTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_operations + # Create GRPC objects. + grpc_response = ::Google::Longrunning::ListOperationsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + return_partial_success = true + + list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_operations, name + assert_kind_of ::Google::Longrunning::ListOperationsRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal true, request["return_partial_success"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_operations_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_operations_client_stub.call_rpc_count + end + end + + def test_get_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_operation, name + assert_kind_of ::Google::Longrunning::GetOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_operation_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_operation({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_operation name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_operation({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_operation_client_stub.call_rpc_count + end + end + + def test_delete_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_operation, name + assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_operation_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_operation_client_stub.call_rpc_count + end + end + + def test_cancel_operation + # Create GRPC objects. + grpc_response = ::Google::Protobuf::Empty.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :cancel_operation, name + assert_kind_of ::Google::Longrunning::CancelOperationRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, cancel_operation_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.cancel_operation({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.cancel_operation name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.cancel_operation({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, cancel_operation_client_stub.call_rpc_count + end + end + + def test_wait_operation + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + timeout = {} + + wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :wait_operation, name + assert_kind_of ::Google::Longrunning::WaitOperationRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, wait_operation_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.wait_operation({ name: name, timeout: timeout }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.wait_operation name: name, timeout: timeout do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, wait_operation_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb new file mode 100644 index 000000000000..442f3af45453 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb @@ -0,0 +1,307 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/oracle_database/v1/oracle_database" + +class ::Google::Cloud::OracleDatabase::V1::OracleDatabase::ClientPathsTest < Minitest::Test + class DummyStub + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_autonomous_database_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.autonomous_database_path project: "value0", location: "value1", autonomous_database: "value2" + assert_equal "projects/value0/locations/value1/autonomousDatabases/value2", path + end + end + + def test_cloud_exadata_infrastructure_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cloud_exadata_infrastructure_path project: "value0", location: "value1", cloud_exadata_infrastructure: "value2" + assert_equal "projects/value0/locations/value1/cloudExadataInfrastructures/value2", path + end + end + + def test_cloud_vm_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.cloud_vm_cluster_path project: "value0", location: "value1", cloud_vm_cluster: "value2" + assert_equal "projects/value0/locations/value1/cloudVmClusters/value2", path + end + end + + def test_crypto_key_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" + assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path + end + end + + def test_database_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.database_path project: "value0", location: "value1", database: "value2" + assert_equal "projects/value0/locations/value1/databases/value2", path + end + end + + def test_db_system_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.db_system_path project: "value0", location: "value1", db_system: "value2" + assert_equal "projects/value0/locations/value1/dbSystems/value2", path + end + end + + def test_exadb_vm_cluster_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.exadb_vm_cluster_path project: "value0", location: "value1", exadb_vm_cluster: "value2" + assert_equal "projects/value0/locations/value1/exadbVmClusters/value2", path + end + end + + def test_exascale_db_storage_vault_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.exascale_db_storage_vault_path project: "value0", location: "value1", exascale_db_storage_vault: "value2" + assert_equal "projects/value0/locations/value1/exascaleDbStorageVaults/value2", path + end + end + + def test_gi_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.gi_version_path project: "value0", location: "value1", gi_version: "value2" + assert_equal "projects/value0/locations/value1/giVersions/value2", path + end + end + + def test_goldengate_connection_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_connection_path project: "value0", location: "value1", goldengate_connection: "value2" + assert_equal "projects/value0/locations/value1/goldengateConnections/value2", path + end + end + + def test_goldengate_connection_assignment_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_connection_assignment_path project: "value0", location: "value1", goldengate_connection_assignment: "value2" + assert_equal "projects/value0/locations/value1/goldengateConnectionAssignments/value2", path + end + end + + def test_goldengate_connection_type_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_connection_type_path project: "value0", location: "value1", goldengate_connection_type: "value2" + assert_equal "projects/value0/locations/value1/goldengateConnectionTypes/value2", path + end + end + + def test_goldengate_deployment_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_deployment_path project: "value0", location: "value1", goldengate_deployment: "value2" + assert_equal "projects/value0/locations/value1/goldengateDeployments/value2", path + end + end + + def test_goldengate_deployment_environment_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_deployment_environment_path project: "value0", location: "value1", goldengate_deployment_environment: "value2" + assert_equal "projects/value0/locations/value1/goldengateDeploymentEnvironments/value2", path + end + end + + def test_goldengate_deployment_type_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_deployment_type_path project: "value0", location: "value1", goldengate_deployment_type: "value2" + assert_equal "projects/value0/locations/value1/goldengateDeploymentTypes/value2", path + end + end + + def test_goldengate_deployment_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_deployment_version_path project: "value0", location: "value1", goldengate_deployment_version: "value2" + assert_equal "projects/value0/locations/value1/goldengateDeploymentVersions/value2", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path + end + end + + def test_network_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.network_path project: "value0", network: "value1" + assert_equal "projects/value0/global/networks/value1", path + end + end + + def test_odb_network_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.odb_network_path project: "value0", location: "value1", odb_network: "value2" + assert_equal "projects/value0/locations/value1/odbNetworks/value2", path + end + end + + def test_odb_subnet_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.odb_subnet_path project: "value0", location: "value1", odb_network: "value2", odb_subnet: "value3" + assert_equal "projects/value0/locations/value1/odbNetworks/value2/odbSubnets/value3", path + end + end + + def test_pluggable_database_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.pluggable_database_path project: "value0", location: "value1", pluggable_database: "value2" + assert_equal "projects/value0/locations/value1/pluggableDatabases/value2", path + end + end + + def test_secret_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.secret_version_path project: "value0", secret: "value1", secret_version: "value2" + assert_equal "projects/value0/secrets/value1/versions/value2", path + end + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb new file mode 100644 index 000000000000..bc85d4e0a66b --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb @@ -0,0 +1,4624 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" +require "gapic/rest" +require "google/cloud/oracledatabase/v1/oracledatabase_pb" +require "google/cloud/oracle_database/v1/oracle_database/rest" + + +class ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_count, :requests + + def initialize response, &block + @response = response + @block = block + @call_count = 0 + @requests = [] + end + + def make_get_request uri:, params: {}, options: {}, method_name: nil + make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_delete_request uri:, params: {}, options: {}, method_name: nil + make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name + end + + def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil + make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_put_request uri:, body:, params: {}, options: {}, method_name: nil + make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name + end + + def make_http_request *args, **kwargs + @call_count += 1 + + @requests << @block&.call(*args, **kwargs) + + @response + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_cloud_exadata_infrastructures + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_cloud_exadata_infrastructures_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_cloud_exadata_infrastructures_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_cloud_exadata_infrastructures_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_cloud_exadata_infrastructures({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_cloud_exadata_infrastructures parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_cloud_exadata_infrastructures ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_cloud_exadata_infrastructures({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_cloud_exadata_infrastructures(::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_cloud_exadata_infrastructures_client_stub.call_count + end + end + end + + def test_get_cloud_exadata_infrastructure + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_cloud_exadata_infrastructure_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_cloud_exadata_infrastructure_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_cloud_exadata_infrastructure_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_cloud_exadata_infrastructure({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_cloud_exadata_infrastructure name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_cloud_exadata_infrastructure({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_cloud_exadata_infrastructure_client_stub.call_count + end + end + end + + def test_create_cloud_exadata_infrastructure + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + cloud_exadata_infrastructure_id = "hello world" + cloud_exadata_infrastructure = {} + request_id = "hello world" + + create_cloud_exadata_infrastructure_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_cloud_exadata_infrastructure_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_cloud_exadata_infrastructure_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_cloud_exadata_infrastructure({ parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_cloud_exadata_infrastructure parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new(parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_cloud_exadata_infrastructure({ parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new(parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_cloud_exadata_infrastructure_client_stub.call_count + end + end + end + + def test_delete_cloud_exadata_infrastructure + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + force = true + + delete_cloud_exadata_infrastructure_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_cloud_exadata_infrastructure_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_cloud_exadata_infrastructure_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_cloud_exadata_infrastructure({ name: name, request_id: request_id, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_cloud_exadata_infrastructure name: name, request_id: request_id, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new(name: name, request_id: request_id, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_cloud_exadata_infrastructure({ name: name, request_id: request_id, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new(name: name, request_id: request_id, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_cloud_exadata_infrastructure_client_stub.call_count + end + end + end + + def test_list_cloud_vm_clusters + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_cloud_vm_clusters_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_cloud_vm_clusters_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_cloud_vm_clusters_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_cloud_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_cloud_vm_clusters parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_cloud_vm_clusters ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_cloud_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_cloud_vm_clusters(::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_cloud_vm_clusters_client_stub.call_count + end + end + end + + def test_get_cloud_vm_cluster + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::CloudVmCluster.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_cloud_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_cloud_vm_cluster_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_cloud_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_cloud_vm_cluster({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_cloud_vm_cluster name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_cloud_vm_cluster({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_cloud_vm_cluster_client_stub.call_count + end + end + end + + def test_create_cloud_vm_cluster + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + cloud_vm_cluster_id = "hello world" + cloud_vm_cluster = {} + request_id = "hello world" + + create_cloud_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_cloud_vm_cluster_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_cloud_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_cloud_vm_cluster({ parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_cloud_vm_cluster parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new(parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_cloud_vm_cluster({ parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new(parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_cloud_vm_cluster_client_stub.call_count + end + end + end + + def test_delete_cloud_vm_cluster + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + force = true + + delete_cloud_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_cloud_vm_cluster_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_cloud_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_cloud_vm_cluster({ name: name, request_id: request_id, force: force }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_cloud_vm_cluster name: name, request_id: request_id, force: force do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new(name: name, request_id: request_id, force: force) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_cloud_vm_cluster({ name: name, request_id: request_id, force: force }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new(name: name, request_id: request_id, force: force), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_cloud_vm_cluster_client_stub.call_count + end + end + end + + def test_list_entitlements + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_entitlements_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_entitlements_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_entitlements_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_entitlements({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_entitlements parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_entitlements ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_entitlements({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_entitlements(::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_entitlements_client_stub.call_count + end + end + end + + def test_list_db_servers + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_db_servers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_servers_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_db_servers_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_db_servers({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_db_servers parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_db_servers ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_db_servers({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_db_servers(::Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_db_servers_client_stub.call_count + end + end + end + + def test_list_db_nodes + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_db_nodes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_nodes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_db_nodes_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_db_nodes({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_db_nodes parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_db_nodes ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_db_nodes({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_db_nodes(::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_db_nodes_client_stub.call_count + end + end + end + + def test_list_gi_versions + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_gi_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_gi_versions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_gi_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_gi_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_gi_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_gi_versions ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_gi_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_gi_versions(::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_gi_versions_client_stub.call_count + end + end + end + + def test_list_minor_versions + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_minor_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_minor_versions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_minor_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_minor_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_minor_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_minor_versions ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_minor_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_minor_versions(::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_minor_versions_client_stub.call_count + end + end + end + + def test_list_db_system_shapes + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_db_system_shapes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_system_shapes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_db_system_shapes_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_db_system_shapes({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_db_system_shapes parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_db_system_shapes ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_db_system_shapes({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_db_system_shapes(::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_db_system_shapes_client_stub.call_count + end + end + end + + def test_list_autonomous_databases + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_autonomous_databases_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_autonomous_databases_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_autonomous_databases_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_autonomous_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_autonomous_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_autonomous_databases ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_autonomous_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_autonomous_databases(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_autonomous_databases_client_stub.call_count + end + end + end + + def test_get_autonomous_database + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_autonomous_database({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_autonomous_database name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_autonomous_database ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_autonomous_database({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_autonomous_database(::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_autonomous_database_client_stub.call_count + end + end + end + + def test_create_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + autonomous_database_id = "hello world" + autonomous_database = {} + request_id = "hello world" + + create_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_autonomous_database({ parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_autonomous_database parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_autonomous_database ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new(parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_autonomous_database({ parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_autonomous_database(::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new(parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_autonomous_database_client_stub.call_count + end + end + end + + def test_update_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + autonomous_database = {} + request_id = "hello world" + + update_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_update_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_autonomous_database({ update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_autonomous_database update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_autonomous_database ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new(update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_autonomous_database({ update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_autonomous_database(::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new(update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_autonomous_database_client_stub.call_count + end + end + end + + def test_delete_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_autonomous_database({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_autonomous_database name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_autonomous_database ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_autonomous_database({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_autonomous_database(::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_autonomous_database_client_stub.call_count + end + end + end + + def test_restore_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + restore_time = {} + + restore_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_restore_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, restore_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.restore_autonomous_database({ name: name, restore_time: restore_time }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.restore_autonomous_database name: name, restore_time: restore_time do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.restore_autonomous_database ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new(name: name, restore_time: restore_time) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.restore_autonomous_database({ name: name, restore_time: restore_time }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.restore_autonomous_database(::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new(name: name, restore_time: restore_time), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, restore_autonomous_database_client_stub.call_count + end + end + end + + def test_generate_autonomous_database_wallet + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + type = :GENERATE_TYPE_UNSPECIFIED + is_regional = true + password = "hello world" + + generate_autonomous_database_wallet_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_generate_autonomous_database_wallet_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, generate_autonomous_database_wallet_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.generate_autonomous_database_wallet({ name: name, type: type, is_regional: is_regional, password: password }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.generate_autonomous_database_wallet name: name, type: type, is_regional: is_regional, password: password do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.generate_autonomous_database_wallet ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new(name: name, type: type, is_regional: is_regional, password: password) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.generate_autonomous_database_wallet({ name: name, type: type, is_regional: is_regional, password: password }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.generate_autonomous_database_wallet(::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new(name: name, type: type, is_regional: is_regional, password: password), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, generate_autonomous_database_wallet_client_stub.call_count + end + end + end + + def test_list_autonomous_db_versions + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_autonomous_db_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_autonomous_db_versions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_autonomous_db_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_autonomous_db_versions({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_autonomous_db_versions parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_autonomous_db_versions ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_autonomous_db_versions({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_autonomous_db_versions(::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_autonomous_db_versions_client_stub.call_count + end + end + end + + def test_list_autonomous_database_character_sets + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_autonomous_database_character_sets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_autonomous_database_character_sets_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_autonomous_database_character_sets_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_autonomous_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_autonomous_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_autonomous_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_autonomous_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_autonomous_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_autonomous_database_character_sets_client_stub.call_count + end + end + end + + def test_list_autonomous_database_backups + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + + list_autonomous_database_backups_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_autonomous_database_backups_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_autonomous_database_backups_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_autonomous_database_backups({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_autonomous_database_backups parent: parent, filter: filter, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_autonomous_database_backups ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_autonomous_database_backups({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_autonomous_database_backups(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_autonomous_database_backups_client_stub.call_count + end + end + end + + def test_stop_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + stop_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_stop_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, stop_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.stop_autonomous_database({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.stop_autonomous_database name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.stop_autonomous_database ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.stop_autonomous_database({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.stop_autonomous_database(::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, stop_autonomous_database_client_stub.call_count + end + end + end + + def test_start_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + start_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_start_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, start_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.start_autonomous_database({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.start_autonomous_database name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.start_autonomous_database ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.start_autonomous_database({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.start_autonomous_database(::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, start_autonomous_database_client_stub.call_count + end + end + end + + def test_restart_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + restart_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_restart_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, restart_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.restart_autonomous_database({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.restart_autonomous_database name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.restart_autonomous_database ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.restart_autonomous_database({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.restart_autonomous_database(::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, restart_autonomous_database_client_stub.call_count + end + end + end + + def test_switchover_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + peer_autonomous_database = "hello world" + + switchover_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_switchover_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, switchover_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.switchover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.switchover_autonomous_database name: name, peer_autonomous_database: peer_autonomous_database do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.switchover_autonomous_database ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.switchover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.switchover_autonomous_database(::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, switchover_autonomous_database_client_stub.call_count + end + end + end + + def test_failover_autonomous_database + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + peer_autonomous_database = "hello world" + + failover_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_failover_autonomous_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, failover_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.failover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.failover_autonomous_database name: name, peer_autonomous_database: peer_autonomous_database do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.failover_autonomous_database ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.failover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.failover_autonomous_database(::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, failover_autonomous_database_client_stub.call_count + end + end + end + + def test_list_odb_networks + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_odb_networks_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_odb_networks_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_odb_networks_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_odb_networks({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_odb_networks parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_odb_networks ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_odb_networks({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_odb_networks(::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_odb_networks_client_stub.call_count + end + end + end + + def test_get_odb_network + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::OdbNetwork.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_odb_network_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_odb_network_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_odb_network_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_odb_network({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_odb_network name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_odb_network ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_odb_network({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_odb_network(::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_odb_network_client_stub.call_count + end + end + end + + def test_create_odb_network + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + odb_network_id = "hello world" + odb_network = {} + request_id = "hello world" + + create_odb_network_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_odb_network_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_odb_network_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_odb_network({ parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_odb_network parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_odb_network ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new(parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_odb_network({ parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_odb_network(::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new(parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_odb_network_client_stub.call_count + end + end + end + + def test_delete_odb_network + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_odb_network_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_odb_network_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_odb_network_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_odb_network({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_odb_network name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_odb_network ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_odb_network({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_odb_network(::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_odb_network_client_stub.call_count + end + end + end + + def test_list_odb_subnets + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_odb_subnets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_odb_subnets_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_odb_subnets_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_odb_subnets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_odb_subnets parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_odb_subnets ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_odb_subnets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_odb_subnets(::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_odb_subnets_client_stub.call_count + end + end + end + + def test_get_odb_subnet + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::OdbSubnet.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_odb_subnet_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_odb_subnet_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_odb_subnet_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_odb_subnet({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_odb_subnet name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_odb_subnet ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_odb_subnet({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_odb_subnet(::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_odb_subnet_client_stub.call_count + end + end + end + + def test_create_odb_subnet + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + odb_subnet_id = "hello world" + odb_subnet = {} + request_id = "hello world" + + create_odb_subnet_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_odb_subnet_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_odb_subnet_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_odb_subnet({ parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_odb_subnet parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_odb_subnet ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new(parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_odb_subnet({ parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_odb_subnet(::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new(parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_odb_subnet_client_stub.call_count + end + end + end + + def test_delete_odb_subnet + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_odb_subnet_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_odb_subnet_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_odb_subnet_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_odb_subnet({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_odb_subnet name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_odb_subnet ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_odb_subnet({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_odb_subnet(::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_odb_subnet_client_stub.call_count + end + end + end + + def test_list_exadb_vm_clusters + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_exadb_vm_clusters_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_exadb_vm_clusters_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_exadb_vm_clusters_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_exadb_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_exadb_vm_clusters parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_exadb_vm_clusters ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_exadb_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_exadb_vm_clusters(::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_exadb_vm_clusters_client_stub.call_count + end + end + end + + def test_get_exadb_vm_cluster + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_exadb_vm_cluster_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_exadb_vm_cluster({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_exadb_vm_cluster name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_exadb_vm_cluster({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_exadb_vm_cluster_client_stub.call_count + end + end + end + + def test_create_exadb_vm_cluster + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + exadb_vm_cluster_id = "hello world" + exadb_vm_cluster = {} + request_id = "hello world" + + create_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_exadb_vm_cluster_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_exadb_vm_cluster({ parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_exadb_vm_cluster parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new(parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_exadb_vm_cluster({ parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new(parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_exadb_vm_cluster_client_stub.call_count + end + end + end + + def test_delete_exadb_vm_cluster + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_exadb_vm_cluster_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_exadb_vm_cluster({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_exadb_vm_cluster name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_exadb_vm_cluster({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_exadb_vm_cluster_client_stub.call_count + end + end + end + + def test_update_exadb_vm_cluster + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + update_mask = {} + exadb_vm_cluster = {} + request_id = "hello world" + + update_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_update_exadb_vm_cluster_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, update_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.update_exadb_vm_cluster({ update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.update_exadb_vm_cluster update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.update_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new(update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.update_exadb_vm_cluster({ update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.update_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new(update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, update_exadb_vm_cluster_client_stub.call_count + end + end + end + + def test_remove_virtual_machine_exadb_vm_cluster + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + hostnames = ["hello world"] + + remove_virtual_machine_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_remove_virtual_machine_exadb_vm_cluster_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, remove_virtual_machine_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.remove_virtual_machine_exadb_vm_cluster({ name: name, request_id: request_id, hostnames: hostnames }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.remove_virtual_machine_exadb_vm_cluster name: name, request_id: request_id, hostnames: hostnames do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.remove_virtual_machine_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new(name: name, request_id: request_id, hostnames: hostnames) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.remove_virtual_machine_exadb_vm_cluster({ name: name, request_id: request_id, hostnames: hostnames }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.remove_virtual_machine_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new(name: name, request_id: request_id, hostnames: hostnames), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, remove_virtual_machine_exadb_vm_cluster_client_stub.call_count + end + end + end + + def test_list_exascale_db_storage_vaults + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_exascale_db_storage_vaults_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_exascale_db_storage_vaults_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_exascale_db_storage_vaults_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_exascale_db_storage_vaults({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_exascale_db_storage_vaults parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_exascale_db_storage_vaults ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_exascale_db_storage_vaults({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_exascale_db_storage_vaults(::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_exascale_db_storage_vaults_client_stub.call_count + end + end + end + + def test_get_exascale_db_storage_vault + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_exascale_db_storage_vault_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_exascale_db_storage_vault_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_exascale_db_storage_vault_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_exascale_db_storage_vault({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_exascale_db_storage_vault name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_exascale_db_storage_vault({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_exascale_db_storage_vault_client_stub.call_count + end + end + end + + def test_create_exascale_db_storage_vault + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + exascale_db_storage_vault_id = "hello world" + exascale_db_storage_vault = {} + request_id = "hello world" + + create_exascale_db_storage_vault_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_exascale_db_storage_vault_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_exascale_db_storage_vault_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_exascale_db_storage_vault({ parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_exascale_db_storage_vault parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new(parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_exascale_db_storage_vault({ parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new(parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_exascale_db_storage_vault_client_stub.call_count + end + end + end + + def test_delete_exascale_db_storage_vault + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_exascale_db_storage_vault_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_exascale_db_storage_vault_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_exascale_db_storage_vault_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_exascale_db_storage_vault({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_exascale_db_storage_vault name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_exascale_db_storage_vault({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_exascale_db_storage_vault_client_stub.call_count + end + end + end + + def test_list_db_system_initial_storage_sizes + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_db_system_initial_storage_sizes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_system_initial_storage_sizes_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_db_system_initial_storage_sizes_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_db_system_initial_storage_sizes({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_db_system_initial_storage_sizes parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_db_system_initial_storage_sizes ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_db_system_initial_storage_sizes({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_db_system_initial_storage_sizes(::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_db_system_initial_storage_sizes_client_stub.call_count + end + end + end + + def test_list_databases + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_databases_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_databases_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_databases_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_databases ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_databases(::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_databases_client_stub.call_count + end + end + end + + def test_get_database + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::Database.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_database({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_database name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_database ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_database({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_database(::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_database_client_stub.call_count + end + end + end + + def test_list_pluggable_databases + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_pluggable_databases_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_pluggable_databases_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_pluggable_databases_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_pluggable_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_pluggable_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_pluggable_databases ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_pluggable_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_pluggable_databases(::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_pluggable_databases_client_stub.call_count + end + end + end + + def test_get_pluggable_database + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::PluggableDatabase.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_pluggable_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_pluggable_database_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_pluggable_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_pluggable_database({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_pluggable_database name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_pluggable_database ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_pluggable_database({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_pluggable_database(::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_pluggable_database_client_stub.call_count + end + end + end + + def test_list_db_systems + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_db_systems_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_systems_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_db_systems_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_db_systems({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_db_systems parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_db_systems ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_db_systems({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_db_systems(::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_db_systems_client_stub.call_count + end + end + end + + def test_get_db_system + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::DbSystem.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_db_system_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_db_system_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_db_system_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_db_system({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_db_system name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_db_system ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_db_system({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_db_system(::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_db_system_client_stub.call_count + end + end + end + + def test_create_db_system + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + db_system_id = "hello world" + db_system = {} + request_id = "hello world" + + create_db_system_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_db_system_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_db_system_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_db_system({ parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_db_system parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_db_system ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new(parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_db_system({ parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_db_system(::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new(parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_db_system_client_stub.call_count + end + end + end + + def test_delete_db_system + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_db_system_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_db_system_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_db_system_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_db_system({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_db_system name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_db_system ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_db_system({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_db_system(::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_db_system_client_stub.call_count + end + end + end + + def test_list_goldengate_deployments + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_deployments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployments_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_deployments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_deployments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_deployments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_deployments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_deployments_client_stub.call_count + end + end + end + + def test_get_goldengate_deployment + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_deployment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_deployment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_deployment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_client_stub.call_count + end + end + end + + def test_create_goldengate_deployment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_deployment_id = "hello world" + goldengate_deployment = {} + request_id = "hello world" + + create_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_goldengate_deployment parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_goldengate_deployment_client_stub.call_count + end + end + end + + def test_delete_goldengate_deployment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_goldengate_deployment({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_goldengate_deployment name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_goldengate_deployment({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_goldengate_deployment_client_stub.call_count + end + end + end + + def test_stop_goldengate_deployment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + stop_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_stop_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, stop_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.stop_goldengate_deployment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.stop_goldengate_deployment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.stop_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.stop_goldengate_deployment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.stop_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, stop_goldengate_deployment_client_stub.call_count + end + end + end + + def test_start_goldengate_deployment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + start_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_start_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, start_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.start_goldengate_deployment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.start_goldengate_deployment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.start_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.start_goldengate_deployment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.start_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, start_goldengate_deployment_client_stub.call_count + end + end + end + + def test_list_goldengate_connections + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_connections_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connections_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_connections_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_connections parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_connections ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_connections(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_connections_client_stub.call_count + end + end + end + + def test_get_goldengate_connection + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_connection({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_connection name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_connection ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_connection({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_connection(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_client_stub.call_count + end + end + end + + def test_create_goldengate_connection + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_connection_id = "hello world" + goldengate_connection = {} + request_id = "hello world" + + create_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_connection_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_goldengate_connection parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_goldengate_connection ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_goldengate_connection(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_goldengate_connection_client_stub.call_count + end + end + end + + def test_delete_goldengate_connection + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_connection_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_goldengate_connection({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_goldengate_connection name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_goldengate_connection ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_goldengate_connection({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_goldengate_connection(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_goldengate_connection_client_stub.call_count + end + end + end + + def test_get_goldengate_deployment_version + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_version_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_version_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_version_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_deployment_version({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_deployment_version name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_deployment_version ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_deployment_version({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_deployment_version(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_version_client_stub.call_count + end + end + end + + def test_list_goldengate_deployment_versions + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_goldengate_deployment_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_versions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_deployment_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_deployment_versions ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_deployment_versions(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_versions_client_stub.call_count + end + end + end + + def test_get_goldengate_deployment_type + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_type_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_type_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_type_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_deployment_type({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_deployment_type name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_deployment_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_deployment_type({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_deployment_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_type_client_stub.call_count + end + end + end + + def test_list_goldengate_deployment_types + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_deployment_types_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_types_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_types_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_deployment_types parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_deployment_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_deployment_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_types_client_stub.call_count + end + end + end + + def test_get_goldengate_deployment_environment + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_environment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_environment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_environment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_deployment_environment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_deployment_environment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_deployment_environment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_deployment_environment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_deployment_environment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_environment_client_stub.call_count + end + end + end + + def test_list_goldengate_deployment_environments + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_goldengate_deployment_environments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_environments_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_environments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_deployment_environments parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_deployment_environments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_deployment_environments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_environments_client_stub.call_count + end + end + end + + def test_get_goldengate_connection_type + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_type_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_type_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_type_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_connection_type({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_connection_type name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_connection_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_connection_type({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_connection_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_type_client_stub.call_count + end + end + end + + def test_list_goldengate_connection_types + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_goldengate_connection_types_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connection_types_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_connection_types_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_connection_types parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_connection_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_connection_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_connection_types_client_stub.call_count + end + end + end + + def test_list_db_versions + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_db_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_versions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_db_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_db_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_db_versions ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_db_versions(::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_db_versions_client_stub.call_count + end + end + end + + def test_list_database_character_sets + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_database_character_sets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_database_character_sets_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_database_character_sets_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_database_character_sets_client_stub.call_count + end + end + end + + def test_list_goldengate_connection_assignments + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_connection_assignments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connection_assignments_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_connection_assignments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_connection_assignments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_connection_assignments ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_connection_assignments(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_connection_assignments_client_stub.call_count + end + end + end + + def test_get_goldengate_connection_assignment + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_assignment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_connection_assignment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_connection_assignment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_connection_assignment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_assignment_client_stub.call_count + end + end + end + + def test_create_goldengate_connection_assignment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_connection_assignment_id = "hello world" + goldengate_connection_assignment = {} + request_id = "hello world" + + create_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_connection_assignment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_goldengate_connection_assignment parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_goldengate_connection_assignment_client_stub.call_count + end + end + end + + def test_delete_goldengate_connection_assignment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_connection_assignment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_goldengate_connection_assignment name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_goldengate_connection_assignment_client_stub.call_count + end + end + end + + def test_test_goldengate_connection_assignment + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + type = :TEST_TYPE_UNSPECIFIED + + test_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_test_goldengate_connection_assignment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, test_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.test_goldengate_connection_assignment({ name: name, type: type }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.test_goldengate_connection_assignment name: name, type: type do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.test_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.test_goldengate_connection_assignment({ name: name, type: type }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.test_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, test_goldengate_connection_assignment_client_stub.call_count + end + end + end + + def test_configure + credentials_token = :dummy_value + + client = block_config = config = nil + dummy_stub = ClientStub.new nil + Gapic::Rest::ClientStub.stub :new, dummy_stub do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = credentials_token + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration, config + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb new file mode 100644 index 000000000000..3be9218afd68 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb @@ -0,0 +1,5428 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "helper" + +require "gapic/grpc/service_stub" + +require "google/cloud/oracledatabase/v1/oracledatabase_pb" +require "google/cloud/oracle_database/v1/oracle_database" + +class ::Google::Cloud::OracleDatabase::V1::OracleDatabase::ClientTest < Minitest::Test + class ClientStub + attr_accessor :call_rpc_count, :requests + + def initialize response, operation, &block + @response = response + @operation = operation + @block = block + @call_rpc_count = 0 + @requests = [] + end + + def call_rpc *args, **kwargs + @call_rpc_count += 1 + + @requests << @block&.call(*args, **kwargs) + + catch :response do + yield @response, @operation if block_given? + @response + end + end + + def endpoint + "endpoint.example.com" + end + + def universe_domain + "example.com" + end + + def stub_logger + nil + end + + def logger + nil + end + end + + def test_list_cloud_exadata_infrastructures + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_cloud_exadata_infrastructures_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_cloud_exadata_infrastructures, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_cloud_exadata_infrastructures_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_cloud_exadata_infrastructures({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_cloud_exadata_infrastructures parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_cloud_exadata_infrastructures ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_cloud_exadata_infrastructures({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_cloud_exadata_infrastructures(::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_cloud_exadata_infrastructures_client_stub.call_rpc_count + end + end + + def test_get_cloud_exadata_infrastructure + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_cloud_exadata_infrastructure_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_cloud_exadata_infrastructure, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_cloud_exadata_infrastructure_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_cloud_exadata_infrastructure({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_cloud_exadata_infrastructure name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_cloud_exadata_infrastructure({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_cloud_exadata_infrastructure_client_stub.call_rpc_count + end + end + + def test_create_cloud_exadata_infrastructure + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + cloud_exadata_infrastructure_id = "hello world" + cloud_exadata_infrastructure = {} + request_id = "hello world" + + create_cloud_exadata_infrastructure_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_cloud_exadata_infrastructure, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["cloud_exadata_infrastructure_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure), request["cloud_exadata_infrastructure"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_cloud_exadata_infrastructure_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_cloud_exadata_infrastructure({ parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_cloud_exadata_infrastructure parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new(parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_cloud_exadata_infrastructure({ parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new(parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_cloud_exadata_infrastructure_client_stub.call_rpc_count + end + end + + def test_delete_cloud_exadata_infrastructure + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + force = true + + delete_cloud_exadata_infrastructure_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_cloud_exadata_infrastructure, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_cloud_exadata_infrastructure_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_cloud_exadata_infrastructure({ name: name, request_id: request_id, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_cloud_exadata_infrastructure name: name, request_id: request_id, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new(name: name, request_id: request_id, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_cloud_exadata_infrastructure({ name: name, request_id: request_id, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new(name: name, request_id: request_id, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_cloud_exadata_infrastructure_client_stub.call_rpc_count + end + end + + def test_list_cloud_vm_clusters + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_cloud_vm_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_cloud_vm_clusters, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_cloud_vm_clusters_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_cloud_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_cloud_vm_clusters parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_cloud_vm_clusters ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_cloud_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_cloud_vm_clusters(::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_cloud_vm_clusters_client_stub.call_rpc_count + end + end + + def test_get_cloud_vm_cluster + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::CloudVmCluster.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_cloud_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_cloud_vm_cluster, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_cloud_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_cloud_vm_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_cloud_vm_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_cloud_vm_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_cloud_vm_cluster_client_stub.call_rpc_count + end + end + + def test_create_cloud_vm_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + cloud_vm_cluster_id = "hello world" + cloud_vm_cluster = {} + request_id = "hello world" + + create_cloud_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_cloud_vm_cluster, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["cloud_vm_cluster_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::CloudVmCluster), request["cloud_vm_cluster"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_cloud_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_cloud_vm_cluster({ parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_cloud_vm_cluster parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new(parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_cloud_vm_cluster({ parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new(parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_cloud_vm_cluster_client_stub.call_rpc_count + end + end + + def test_delete_cloud_vm_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + force = true + + delete_cloud_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_cloud_vm_cluster, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + assert_equal true, request["force"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_cloud_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_cloud_vm_cluster({ name: name, request_id: request_id, force: force }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_cloud_vm_cluster name: name, request_id: request_id, force: force do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new(name: name, request_id: request_id, force: force) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_cloud_vm_cluster({ name: name, request_id: request_id, force: force }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new(name: name, request_id: request_id, force: force), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_cloud_vm_cluster_client_stub.call_rpc_count + end + end + + def test_list_entitlements + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_entitlements_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_entitlements, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_entitlements_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_entitlements({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_entitlements parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_entitlements ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_entitlements({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_entitlements(::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_entitlements_client_stub.call_rpc_count + end + end + + def test_list_db_servers + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_db_servers_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_db_servers, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_db_servers_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_db_servers({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_db_servers parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_db_servers ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_db_servers({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_db_servers(::Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_db_servers_client_stub.call_rpc_count + end + end + + def test_list_db_nodes + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_db_nodes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_db_nodes, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_db_nodes_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_db_nodes({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_db_nodes parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_db_nodes ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_db_nodes({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_db_nodes(::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_db_nodes_client_stub.call_rpc_count + end + end + + def test_list_gi_versions + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_gi_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_gi_versions, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_gi_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_gi_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_gi_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_gi_versions ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_gi_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_gi_versions(::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_gi_versions_client_stub.call_rpc_count + end + end + + def test_list_minor_versions + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_minor_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_minor_versions, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_minor_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_minor_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_minor_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_minor_versions ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_minor_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_minor_versions(::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_minor_versions_client_stub.call_rpc_count + end + end + + def test_list_db_system_shapes + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_db_system_shapes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_db_system_shapes, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_db_system_shapes_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_db_system_shapes({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_db_system_shapes parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_db_system_shapes ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_db_system_shapes({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_db_system_shapes(::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_db_system_shapes_client_stub.call_rpc_count + end + end + + def test_list_autonomous_databases + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_autonomous_databases_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_autonomous_databases, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_autonomous_databases_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_autonomous_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_autonomous_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_autonomous_databases ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_autonomous_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_autonomous_databases(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_autonomous_databases_client_stub.call_rpc_count + end + end + + def test_get_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_autonomous_database({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_autonomous_database name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_autonomous_database ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_autonomous_database({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_autonomous_database(::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_autonomous_database_client_stub.call_rpc_count + end + end + + def test_create_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + autonomous_database_id = "hello world" + autonomous_database = {} + request_id = "hello world" + + create_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["autonomous_database_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase), request["autonomous_database"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_autonomous_database({ parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_autonomous_database parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_autonomous_database ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new(parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_autonomous_database({ parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_autonomous_database(::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new(parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_autonomous_database_client_stub.call_rpc_count + end + end + + def test_update_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + autonomous_database = {} + request_id = "hello world" + + update_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase), request["autonomous_database"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_autonomous_database({ update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_autonomous_database update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_autonomous_database ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new(update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_autonomous_database({ update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_autonomous_database(::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new(update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_autonomous_database_client_stub.call_rpc_count + end + end + + def test_delete_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_autonomous_database({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_autonomous_database name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_autonomous_database ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_autonomous_database({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_autonomous_database(::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_autonomous_database_client_stub.call_rpc_count + end + end + + def test_restore_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + restore_time = {} + + restore_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :restore_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, request + assert_equal "hello world", request["name"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["restore_time"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, restore_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.restore_autonomous_database({ name: name, restore_time: restore_time }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.restore_autonomous_database name: name, restore_time: restore_time do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.restore_autonomous_database ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new(name: name, restore_time: restore_time) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.restore_autonomous_database({ name: name, restore_time: restore_time }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.restore_autonomous_database(::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new(name: name, restore_time: restore_time), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, restore_autonomous_database_client_stub.call_rpc_count + end + end + + def test_generate_autonomous_database_wallet + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + type = :GENERATE_TYPE_UNSPECIFIED + is_regional = true + password = "hello world" + + generate_autonomous_database_wallet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :generate_autonomous_database_wallet, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, request + assert_equal "hello world", request["name"] + assert_equal :GENERATE_TYPE_UNSPECIFIED, request["type"] + assert_equal true, request["is_regional"] + assert_equal "hello world", request["password"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, generate_autonomous_database_wallet_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.generate_autonomous_database_wallet({ name: name, type: type, is_regional: is_regional, password: password }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.generate_autonomous_database_wallet name: name, type: type, is_regional: is_regional, password: password do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.generate_autonomous_database_wallet ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new(name: name, type: type, is_regional: is_regional, password: password) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.generate_autonomous_database_wallet({ name: name, type: type, is_regional: is_regional, password: password }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.generate_autonomous_database_wallet(::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new(name: name, type: type, is_regional: is_regional, password: password), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, generate_autonomous_database_wallet_client_stub.call_rpc_count + end + end + + def test_list_autonomous_db_versions + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_autonomous_db_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_autonomous_db_versions, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_autonomous_db_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_autonomous_db_versions({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_autonomous_db_versions parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_autonomous_db_versions ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_autonomous_db_versions({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_autonomous_db_versions(::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_autonomous_db_versions_client_stub.call_rpc_count + end + end + + def test_list_autonomous_database_character_sets + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_autonomous_database_character_sets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_autonomous_database_character_sets, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_autonomous_database_character_sets_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_autonomous_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_autonomous_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_autonomous_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_autonomous_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_autonomous_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_autonomous_database_character_sets_client_stub.call_rpc_count + end + end + + def test_list_autonomous_database_backups + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + filter = "hello world" + page_size = 42 + page_token = "hello world" + + list_autonomous_database_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_autonomous_database_backups, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["filter"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_autonomous_database_backups_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_autonomous_database_backups({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_autonomous_database_backups parent: parent, filter: filter, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_autonomous_database_backups ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_autonomous_database_backups({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_autonomous_database_backups(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_autonomous_database_backups_client_stub.call_rpc_count + end + end + + def test_stop_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + stop_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :stop_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, stop_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.stop_autonomous_database({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.stop_autonomous_database name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.stop_autonomous_database ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.stop_autonomous_database({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.stop_autonomous_database(::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, stop_autonomous_database_client_stub.call_rpc_count + end + end + + def test_start_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + start_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :start_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, start_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.start_autonomous_database({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.start_autonomous_database name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.start_autonomous_database ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.start_autonomous_database({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.start_autonomous_database(::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, start_autonomous_database_client_stub.call_rpc_count + end + end + + def test_restart_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + restart_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :restart_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, restart_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.restart_autonomous_database({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.restart_autonomous_database name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.restart_autonomous_database ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.restart_autonomous_database({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.restart_autonomous_database(::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, restart_autonomous_database_client_stub.call_rpc_count + end + end + + def test_switchover_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + peer_autonomous_database = "hello world" + + switchover_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :switchover_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["peer_autonomous_database"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, switchover_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.switchover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.switchover_autonomous_database name: name, peer_autonomous_database: peer_autonomous_database do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.switchover_autonomous_database ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.switchover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.switchover_autonomous_database(::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, switchover_autonomous_database_client_stub.call_rpc_count + end + end + + def test_failover_autonomous_database + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + peer_autonomous_database = "hello world" + + failover_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :failover_autonomous_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["peer_autonomous_database"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, failover_autonomous_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.failover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.failover_autonomous_database name: name, peer_autonomous_database: peer_autonomous_database do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.failover_autonomous_database ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.failover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.failover_autonomous_database(::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, failover_autonomous_database_client_stub.call_rpc_count + end + end + + def test_list_odb_networks + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_odb_networks_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_odb_networks, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_odb_networks_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_odb_networks({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_odb_networks parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_odb_networks ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_odb_networks({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_odb_networks(::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_odb_networks_client_stub.call_rpc_count + end + end + + def test_get_odb_network + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::OdbNetwork.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_odb_network_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_odb_network, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_odb_network_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_odb_network({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_odb_network name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_odb_network ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_odb_network({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_odb_network(::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_odb_network_client_stub.call_rpc_count + end + end + + def test_create_odb_network + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + odb_network_id = "hello world" + odb_network = {} + request_id = "hello world" + + create_odb_network_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_odb_network, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["odb_network_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::OdbNetwork), request["odb_network"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_odb_network_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_odb_network({ parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_odb_network parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_odb_network ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new(parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_odb_network({ parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_odb_network(::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new(parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_odb_network_client_stub.call_rpc_count + end + end + + def test_delete_odb_network + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_odb_network_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_odb_network, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_odb_network_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_odb_network({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_odb_network name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_odb_network ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_odb_network({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_odb_network(::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_odb_network_client_stub.call_rpc_count + end + end + + def test_list_odb_subnets + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_odb_subnets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_odb_subnets, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_odb_subnets_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_odb_subnets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_odb_subnets parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_odb_subnets ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_odb_subnets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_odb_subnets(::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_odb_subnets_client_stub.call_rpc_count + end + end + + def test_get_odb_subnet + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::OdbSubnet.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_odb_subnet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_odb_subnet, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_odb_subnet_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_odb_subnet({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_odb_subnet name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_odb_subnet ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_odb_subnet({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_odb_subnet(::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_odb_subnet_client_stub.call_rpc_count + end + end + + def test_create_odb_subnet + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + odb_subnet_id = "hello world" + odb_subnet = {} + request_id = "hello world" + + create_odb_subnet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_odb_subnet, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["odb_subnet_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::OdbSubnet), request["odb_subnet"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_odb_subnet_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_odb_subnet({ parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_odb_subnet parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_odb_subnet ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new(parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_odb_subnet({ parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_odb_subnet(::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new(parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_odb_subnet_client_stub.call_rpc_count + end + end + + def test_delete_odb_subnet + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_odb_subnet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_odb_subnet, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_odb_subnet_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_odb_subnet({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_odb_subnet name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_odb_subnet ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_odb_subnet({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_odb_subnet(::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_odb_subnet_client_stub.call_rpc_count + end + end + + def test_list_exadb_vm_clusters + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_exadb_vm_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_exadb_vm_clusters, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_exadb_vm_clusters_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_exadb_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_exadb_vm_clusters parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_exadb_vm_clusters ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_exadb_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_exadb_vm_clusters(::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_exadb_vm_clusters_client_stub.call_rpc_count + end + end + + def test_get_exadb_vm_cluster + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_exadb_vm_cluster, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_exadb_vm_cluster({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_exadb_vm_cluster name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_exadb_vm_cluster({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_exadb_vm_cluster_client_stub.call_rpc_count + end + end + + def test_create_exadb_vm_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + exadb_vm_cluster_id = "hello world" + exadb_vm_cluster = {} + request_id = "hello world" + + create_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_exadb_vm_cluster, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["exadb_vm_cluster_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster), request["exadb_vm_cluster"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_exadb_vm_cluster({ parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_exadb_vm_cluster parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new(parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_exadb_vm_cluster({ parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new(parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_exadb_vm_cluster_client_stub.call_rpc_count + end + end + + def test_delete_exadb_vm_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_exadb_vm_cluster, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_exadb_vm_cluster({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_exadb_vm_cluster name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_exadb_vm_cluster({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_exadb_vm_cluster_client_stub.call_rpc_count + end + end + + def test_update_exadb_vm_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + update_mask = {} + exadb_vm_cluster = {} + request_id = "hello world" + + update_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :update_exadb_vm_cluster, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, request + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster), request["exadb_vm_cluster"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, update_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.update_exadb_vm_cluster({ update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.update_exadb_vm_cluster update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.update_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new(update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.update_exadb_vm_cluster({ update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.update_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new(update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, update_exadb_vm_cluster_client_stub.call_rpc_count + end + end + + def test_remove_virtual_machine_exadb_vm_cluster + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + hostnames = ["hello world"] + + remove_virtual_machine_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :remove_virtual_machine_exadb_vm_cluster, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + assert_equal ["hello world"], request["hostnames"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, remove_virtual_machine_exadb_vm_cluster_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.remove_virtual_machine_exadb_vm_cluster({ name: name, request_id: request_id, hostnames: hostnames }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.remove_virtual_machine_exadb_vm_cluster name: name, request_id: request_id, hostnames: hostnames do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.remove_virtual_machine_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new(name: name, request_id: request_id, hostnames: hostnames) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.remove_virtual_machine_exadb_vm_cluster({ name: name, request_id: request_id, hostnames: hostnames }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.remove_virtual_machine_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new(name: name, request_id: request_id, hostnames: hostnames), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, remove_virtual_machine_exadb_vm_cluster_client_stub.call_rpc_count + end + end + + def test_list_exascale_db_storage_vaults + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_exascale_db_storage_vaults_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_exascale_db_storage_vaults, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_exascale_db_storage_vaults_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_exascale_db_storage_vaults({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_exascale_db_storage_vaults parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_exascale_db_storage_vaults ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_exascale_db_storage_vaults({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_exascale_db_storage_vaults(::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_exascale_db_storage_vaults_client_stub.call_rpc_count + end + end + + def test_get_exascale_db_storage_vault + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_exascale_db_storage_vault_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_exascale_db_storage_vault, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_exascale_db_storage_vault_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_exascale_db_storage_vault({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_exascale_db_storage_vault name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_exascale_db_storage_vault({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_exascale_db_storage_vault_client_stub.call_rpc_count + end + end + + def test_create_exascale_db_storage_vault + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + exascale_db_storage_vault_id = "hello world" + exascale_db_storage_vault = {} + request_id = "hello world" + + create_exascale_db_storage_vault_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_exascale_db_storage_vault, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["exascale_db_storage_vault_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault), request["exascale_db_storage_vault"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_exascale_db_storage_vault_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_exascale_db_storage_vault({ parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_exascale_db_storage_vault parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new(parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_exascale_db_storage_vault({ parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new(parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_exascale_db_storage_vault_client_stub.call_rpc_count + end + end + + def test_delete_exascale_db_storage_vault + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_exascale_db_storage_vault_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_exascale_db_storage_vault, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_exascale_db_storage_vault_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_exascale_db_storage_vault({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_exascale_db_storage_vault name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_exascale_db_storage_vault({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_exascale_db_storage_vault_client_stub.call_rpc_count + end + end + + def test_list_db_system_initial_storage_sizes + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_db_system_initial_storage_sizes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_db_system_initial_storage_sizes, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_db_system_initial_storage_sizes_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_db_system_initial_storage_sizes({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_db_system_initial_storage_sizes parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_db_system_initial_storage_sizes ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_db_system_initial_storage_sizes({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_db_system_initial_storage_sizes(::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_db_system_initial_storage_sizes_client_stub.call_rpc_count + end + end + + def test_list_databases + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_databases_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_databases, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_databases_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_databases ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_databases(::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_databases_client_stub.call_rpc_count + end + end + + def test_get_database + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::Database.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_database({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_database name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_database ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_database({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_database(::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_database_client_stub.call_rpc_count + end + end + + def test_list_pluggable_databases + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_pluggable_databases_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_pluggable_databases, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_pluggable_databases_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_pluggable_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_pluggable_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_pluggable_databases ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_pluggable_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_pluggable_databases(::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_pluggable_databases_client_stub.call_rpc_count + end + end + + def test_get_pluggable_database + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::PluggableDatabase.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_pluggable_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_pluggable_database, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_pluggable_database_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_pluggable_database({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_pluggable_database name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_pluggable_database ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_pluggable_database({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_pluggable_database(::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_pluggable_database_client_stub.call_rpc_count + end + end + + def test_list_db_systems + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_db_systems_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_db_systems, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_db_systems_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_db_systems({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_db_systems parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_db_systems ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_db_systems({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_db_systems(::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_db_systems_client_stub.call_rpc_count + end + end + + def test_get_db_system + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::DbSystem.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_db_system_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_db_system, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_db_system_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_db_system({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_db_system name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_db_system ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_db_system({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_db_system(::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_db_system_client_stub.call_rpc_count + end + end + + def test_create_db_system + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + db_system_id = "hello world" + db_system = {} + request_id = "hello world" + + create_db_system_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_db_system, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["db_system_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::DbSystem), request["db_system"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_db_system_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_db_system({ parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_db_system parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_db_system ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new(parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_db_system({ parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_db_system(::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new(parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_db_system_client_stub.call_rpc_count + end + end + + def test_delete_db_system + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_db_system_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_db_system, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_db_system_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_db_system({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_db_system name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_db_system ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_db_system({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_db_system(::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_db_system_client_stub.call_rpc_count + end + end + + def test_list_goldengate_deployments + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_deployments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_deployments, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_deployments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_deployments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_deployments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_deployments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_deployments_client_stub.call_rpc_count + end + end + + def test_get_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_deployment({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_deployment name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_deployment({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_create_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_deployment_id = "hello world" + goldengate_deployment = {} + request_id = "hello world" + + create_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["goldengate_deployment_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment), request["goldengate_deployment"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_goldengate_deployment parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_delete_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_goldengate_deployment({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_goldengate_deployment name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_goldengate_deployment({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_stop_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + stop_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :stop_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, stop_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.stop_goldengate_deployment({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.stop_goldengate_deployment name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.stop_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.stop_goldengate_deployment({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.stop_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, stop_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_start_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + start_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :start_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, start_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.start_goldengate_deployment({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.start_goldengate_deployment name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.start_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.start_goldengate_deployment({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.start_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, start_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_list_goldengate_connections + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_connections_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_connections, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_connections_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_connections parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_connections ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_connections(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_connections_client_stub.call_rpc_count + end + end + + def test_get_goldengate_connection + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_connection, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_connection({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_connection name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_connection ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_connection({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_connection(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_client_stub.call_rpc_count + end + end + + def test_create_goldengate_connection + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_connection_id = "hello world" + goldengate_connection = {} + request_id = "hello world" + + create_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_goldengate_connection, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["goldengate_connection_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateConnection), request["goldengate_connection"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_goldengate_connection parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_goldengate_connection ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_goldengate_connection(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_goldengate_connection_client_stub.call_rpc_count + end + end + + def test_delete_goldengate_connection + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_goldengate_connection, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_goldengate_connection({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_goldengate_connection name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_goldengate_connection ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_goldengate_connection({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_goldengate_connection(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_goldengate_connection_client_stub.call_rpc_count + end + end + + def test_get_goldengate_deployment_version + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_version_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_deployment_version, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_deployment_version_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_deployment_version({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_deployment_version name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_deployment_version ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_deployment_version({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_deployment_version(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_version_client_stub.call_rpc_count + end + end + + def test_list_goldengate_deployment_versions + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_goldengate_deployment_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_deployment_versions, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_deployment_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_deployment_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_deployment_versions ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_deployment_versions(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_versions_client_stub.call_rpc_count + end + end + + def test_get_goldengate_deployment_type + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_type_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_deployment_type, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_deployment_type_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_deployment_type({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_deployment_type name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_deployment_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_deployment_type({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_deployment_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_type_client_stub.call_rpc_count + end + end + + def test_list_goldengate_deployment_types + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_deployment_types_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_deployment_types, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_deployment_types_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_deployment_types parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_deployment_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_deployment_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_types_client_stub.call_rpc_count + end + end + + def test_get_goldengate_deployment_environment + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_environment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_deployment_environment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_deployment_environment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_deployment_environment({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_deployment_environment name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_deployment_environment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_deployment_environment({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_deployment_environment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_environment_client_stub.call_rpc_count + end + end + + def test_list_goldengate_deployment_environments + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_goldengate_deployment_environments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_deployment_environments, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_deployment_environments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_deployment_environments parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_deployment_environments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_deployment_environments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_environments_client_stub.call_rpc_count + end + end + + def test_get_goldengate_connection_type + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_type_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_connection_type, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_connection_type_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_connection_type({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_connection_type name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_connection_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_connection_type({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_connection_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_type_client_stub.call_rpc_count + end + end + + def test_list_goldengate_connection_types + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_goldengate_connection_types_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_connection_types, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_connection_types_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_connection_types parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_connection_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_connection_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_connection_types_client_stub.call_rpc_count + end + end + + def test_list_db_versions + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_db_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_db_versions, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_db_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_db_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_db_versions ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_db_versions(::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_db_versions_client_stub.call_rpc_count + end + end + + def test_list_database_character_sets + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_database_character_sets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_database_character_sets, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_database_character_sets_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_database_character_sets_client_stub.call_rpc_count + end + end + + def test_list_goldengate_connection_assignments + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_connection_assignments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_connection_assignments, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_connection_assignments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_connection_assignments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_connection_assignments ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_connection_assignments(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_connection_assignments_client_stub.call_rpc_count + end + end + + def test_get_goldengate_connection_assignment + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_connection_assignment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_connection_assignment({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_connection_assignment name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_connection_assignment({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_assignment_client_stub.call_rpc_count + end + end + + def test_create_goldengate_connection_assignment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_connection_assignment_id = "hello world" + goldengate_connection_assignment = {} + request_id = "hello world" + + create_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_goldengate_connection_assignment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["goldengate_connection_assignment_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment), request["goldengate_connection_assignment"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_goldengate_connection_assignment parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_goldengate_connection_assignment_client_stub.call_rpc_count + end + end + + def test_delete_goldengate_connection_assignment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_goldengate_connection_assignment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_goldengate_connection_assignment name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_goldengate_connection_assignment_client_stub.call_rpc_count + end + end + + def test_test_goldengate_connection_assignment + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + type = :TEST_TYPE_UNSPECIFIED + + test_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_goldengate_connection_assignment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, request + assert_equal "hello world", request["name"] + assert_equal :TEST_TYPE_UNSPECIFIED, request["type"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_goldengate_connection_assignment({ name: name, type: type }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_goldengate_connection_assignment name: name, type: type do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_goldengate_connection_assignment({ name: name, type: type }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_goldengate_connection_assignment_client_stub.call_rpc_count + end + end + + def test_configure + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = block_config = config = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + end + + config = client.configure do |c| + block_config = c + end + + assert_same block_config, config + assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration, config + end + + def test_credentials + key = OpenSSL::PKey::RSA.new 2048 + cred_json = { + "private_key" => key.to_pem, + "client_email" => "app@developer.gserviceaccount.com", + "type" => "service_account" + } + key_file = StringIO.new cred_json.to_json + creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) + + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = creds + end + assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client, client + assert_equal creds, client.configure.credentials + end + end + + def test_operations_client + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + + client = nil + dummy_stub = ClientStub.new nil, nil + Gapic::ServiceStub.stub :new, dummy_stub do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + end + + assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations, client.operations_client + end +end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/helper.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/helper.rb new file mode 100644 index 000000000000..672b337030e7 --- /dev/null +++ b/owl-bot-staging/google-cloud-oracle_database-v1/test/helper.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Auto-generated by gapic-generator-ruby. DO NOT EDIT! + +require "minitest/autorun" +require "minitest/focus" +require "minitest/mock" +require "minitest/rg" + +require "grpc" + +require "ostruct" From f2a033ff7b61f9598d667922120cc1c35a864eab Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 9 Jun 2026 15:17:12 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../.owlbot-manifest.json | 37 + .../gapic_metadata.json | 115 + .../v1/oracle_database/client.rb | 2854 ++++- .../v1/oracle_database/paths.rb | 152 + .../v1/oracle_database/rest/client.rb | 2559 ++++- .../v1/oracle_database/rest/service_stub.rb | 2155 +++- .../v1/autonomous_database_pb.rb | 2 +- .../cloud/oracledatabase/v1/database_pb.rb | 2 +- .../cloud/oracledatabase/v1/db_system_pb.rb | 2 +- .../oracledatabase/v1/exadata_infra_pb.rb | 3 +- .../v1/exascale_db_storage_vault_pb.rb | 2 +- .../v1/goldengate_connection_assignment_pb.rb | 0 .../v1/goldengate_connection_pb.rb | 0 .../v1/goldengate_connection_type_pb.rb | 0 .../goldengate_deployment_environment_pb.rb | 0 .../v1/goldengate_deployment_pb.rb | 0 .../v1/goldengate_deployment_type_pb.rb | 0 .../v1/goldengate_deployment_version_pb.rb | 0 .../oracledatabase/v1/oracledatabase_pb.rb | 9 +- .../v1/oracledatabase_services_pb.rb | 47 + .../cloud/oracledatabase/v1/vm_cluster_pb.rb | 2 +- .../proto_docs/google/api/client.rb | 4 + .../oracledatabase/v1/autonomous_database.rb | 132 +- .../cloud/oracledatabase/v1/database.rb | 28 +- .../cloud/oracledatabase/v1/db_system.rb | 7 +- .../v1/exascale_db_storage_vault.rb | 4 + .../v1/goldengate_connection.rb | 0 .../v1/goldengate_connection_assignment.rb | 0 .../v1/goldengate_connection_type.rb | 0 .../v1/goldengate_deployment.rb | 0 .../v1/goldengate_deployment_environment.rb | 0 .../v1/goldengate_deployment_type.rb | 0 .../v1/goldengate_deployment_version.rb | 0 .../cloud/oracledatabase/v1/oracledatabase.rb | 22 +- .../cloud/oracledatabase/v1/vm_cluster.rb | 8 +- .../create_goldengate_connection.rb | 0 ...create_goldengate_connection_assignment.rb | 0 .../create_goldengate_deployment.rb | 0 .../delete_goldengate_connection.rb | 0 ...delete_goldengate_connection_assignment.rb | 0 .../delete_goldengate_deployment.rb | 0 .../get_goldengate_connection.rb | 0 .../get_goldengate_connection_assignment.rb | 0 .../get_goldengate_connection_type.rb | 0 .../get_goldengate_deployment.rb | 0 .../get_goldengate_deployment_environment.rb | 0 .../get_goldengate_deployment_type.rb | 0 .../get_goldengate_deployment_version.rb | 0 .../list_goldengate_connection_assignments.rb | 0 .../list_goldengate_connection_types.rb | 0 .../list_goldengate_connections.rb | 0 ...list_goldengate_deployment_environments.rb | 0 .../list_goldengate_deployment_types.rb | 0 .../list_goldengate_deployment_versions.rb | 0 .../list_goldengate_deployments.rb | 0 .../start_goldengate_deployment.rb | 0 .../stop_goldengate_deployment.rb | 0 .../test_goldengate_connection_assignment.rb | 0 ...tadata_google.cloud.oracledatabase.v1.json | 920 ++ .../v1/oracle_database_paths_test.rb | 96 + .../v1/oracle_database_rest_test.rb | 1279 +++ .../v1/oracle_database_test.rb | 1529 ++- .../.gitignore | 22 - .../.repo-metadata.json | 17 - .../.rubocop.yml | 33 - .../google-cloud-oracle_database-v1/.toys.rb | 28 - .../google-cloud-oracle_database-v1/.yardopts | 12 - .../AUTHENTICATION.md | 122 - .../CHANGELOG.md | 2 - .../google-cloud-oracle_database-v1/Gemfile | 14 - .../LICENSE.md | 201 - .../google-cloud-oracle_database-v1/README.md | 154 - .../google-cloud-oracle_database-v1/Rakefile | 169 - .../gapic_metadata.json | 423 - .../google-cloud-oracle_database-v1.gemspec | 29 - .../lib/google-cloud-oracle_database-v1.rb | 21 - .../lib/google/cloud/oracle_database/v1.rb | 45 - .../oracle_database/v1/bindings_override.rb | 75 - .../oracle_database/v1/oracle_database.rb | 56 - .../v1/oracle_database/client.rb | 9331 ----------------- .../v1/oracle_database/credentials.rb | 47 - .../v1/oracle_database/operations.rb | 841 -- .../v1/oracle_database/paths.rb | 451 - .../v1/oracle_database/rest.rb | 54 - .../v1/oracle_database/rest/client.rb | 8729 --------------- .../v1/oracle_database/rest/operations.rb | 925 -- .../v1/oracle_database/rest/service_stub.rb | 5053 --------- .../google/cloud/oracle_database/v1/rest.rb | 38 - .../cloud/oracle_database/v1/version.rb | 28 - .../autonomous_database_character_set_pb.rb | 25 - .../v1/autonomous_database_pb.rb | 62 - .../v1/autonomous_db_backup_pb.rb | 28 - .../v1/autonomous_db_version_pb.rb | 25 - .../cloud/oracledatabase/v1/common_pb.rb | 27 - .../v1/database_character_set_pb.rb | 27 - .../cloud/oracledatabase/v1/database_pb.rb | 38 - .../cloud/oracledatabase/v1/db_node_pb.rb | 27 - .../cloud/oracledatabase/v1/db_server_pb.rb | 26 - .../v1/db_system_initial_storage_size_pb.rb | 30 - .../cloud/oracledatabase/v1/db_system_pb.rb | 42 - .../oracledatabase/v1/db_system_shape_pb.rb | 24 - .../cloud/oracledatabase/v1/db_version_pb.rb | 27 - .../cloud/oracledatabase/v1/entitlement_pb.rb | 26 - .../oracledatabase/v1/exadata_infra_pb.rb | 34 - .../oracledatabase/v1/exadb_vm_cluster_pb.rb | 32 - .../v1/exascale_db_storage_vault_pb.rb | 36 - .../cloud/oracledatabase/v1/gi_version_pb.rb | 24 - .../oracledatabase/v1/location_metadata_pb.rb | 23 - .../oracledatabase/v1/minor_version_pb.rb | 26 - .../cloud/oracledatabase/v1/odb_network_pb.rb | 32 - .../cloud/oracledatabase/v1/odb_subnet_pb.rb | 33 - .../oracledatabase/v1/oracledatabase_pb.rb | 107 - .../v1/oracledatabase_services_pb.rb | 216 - .../v1/pluggable_database_pb.rb | 38 - .../cloud/oracledatabase/v1/vm_cluster_pb.rb | 32 - .../proto_docs/README.md | 4 - .../proto_docs/google/api/client.rb | 593 -- .../proto_docs/google/api/field_behavior.rb | 85 - .../proto_docs/google/api/field_info.rb | 88 - .../proto_docs/google/api/launch_stage.rb | 71 - .../proto_docs/google/api/resource.rb | 227 - .../oracledatabase/v1/autonomous_database.rb | 983 -- .../v1/autonomous_database_character_set.rb | 57 - .../oracledatabase/v1/autonomous_db_backup.rb | 175 - .../v1/autonomous_db_version.rb | 48 - .../google/cloud/oracledatabase/v1/common.rb | 101 - .../cloud/oracledatabase/v1/database.rb | 352 - .../v1/database_character_set.rb | 99 - .../google/cloud/oracledatabase/v1/db_node.rb | 106 - .../cloud/oracledatabase/v1/db_server.rb | 100 - .../cloud/oracledatabase/v1/db_system.rb | 386 - .../v1/db_system_initial_storage_size.rb | 126 - .../oracledatabase/v1/db_system_shape.rb | 70 - .../cloud/oracledatabase/v1/db_version.rb | 102 - .../cloud/oracledatabase/v1/entitlement.rb | 84 - .../cloud/oracledatabase/v1/exadata_infra.rb | 276 - .../oracledatabase/v1/exadb_vm_cluster.rb | 229 - .../v1/exascale_db_storage_vault.rb | 275 - .../cloud/oracledatabase/v1/gi_version.rb | 41 - .../oracledatabase/v1/location_metadata.rb | 35 - .../cloud/oracledatabase/v1/minor_version.rb | 81 - .../cloud/oracledatabase/v1/odb_network.rb | 184 - .../cloud/oracledatabase/v1/odb_subnet.rb | 189 - .../cloud/oracledatabase/v1/oracledatabase.rb | 916 -- .../oracledatabase/v1/pluggable_database.rb | 366 - .../cloud/oracledatabase/v1/vm_cluster.rb | 276 - .../google/longrunning/operations.rb | 191 - .../proto_docs/google/protobuf/any.rb | 145 - .../proto_docs/google/protobuf/duration.rb | 98 - .../proto_docs/google/protobuf/empty.rb | 34 - .../proto_docs/google/protobuf/field_mask.rb | 229 - .../proto_docs/google/protobuf/timestamp.rb | 127 - .../proto_docs/google/rpc/status.rb | 48 - .../proto_docs/google/type/datetime.rb | 104 - .../proto_docs/google/type/dayofweek.rb | 49 - .../proto_docs/google/type/month.rb | 64 - .../proto_docs/google/type/timeofday.rb | 49 - .../snippets/Gemfile | 32 - .../create_autonomous_database.rb | 54 - .../create_cloud_exadata_infrastructure.rb | 54 - .../create_cloud_vm_cluster.rb | 54 - .../oracle_database/create_db_system.rb | 54 - .../create_exadb_vm_cluster.rb | 54 - .../create_exascale_db_storage_vault.rb | 54 - .../oracle_database/create_odb_network.rb | 54 - .../oracle_database/create_odb_subnet.rb | 54 - .../delete_autonomous_database.rb | 54 - .../delete_cloud_exadata_infrastructure.rb | 54 - .../delete_cloud_vm_cluster.rb | 54 - .../oracle_database/delete_db_system.rb | 54 - .../delete_exadb_vm_cluster.rb | 54 - .../delete_exascale_db_storage_vault.rb | 54 - .../oracle_database/delete_odb_network.rb | 54 - .../oracle_database/delete_odb_subnet.rb | 54 - .../failover_autonomous_database.rb | 54 - .../generate_autonomous_database_wallet.rb | 47 - .../get_autonomous_database.rb | 47 - .../get_cloud_exadata_infrastructure.rb | 47 - .../oracle_database/get_cloud_vm_cluster.rb | 47 - .../snippets/oracle_database/get_database.rb | 47 - .../snippets/oracle_database/get_db_system.rb | 47 - .../oracle_database/get_exadb_vm_cluster.rb | 47 - .../get_exascale_db_storage_vault.rb | 47 - .../oracle_database/get_odb_network.rb | 47 - .../oracle_database/get_odb_subnet.rb | 47 - .../oracle_database/get_pluggable_database.rb | 47 - .../list_autonomous_database_backups.rb | 51 - ...list_autonomous_database_character_sets.rb | 51 - .../list_autonomous_databases.rb | 51 - .../list_autonomous_db_versions.rb | 51 - .../list_cloud_exadata_infrastructures.rb | 51 - .../oracle_database/list_cloud_vm_clusters.rb | 51 - .../list_database_character_sets.rb | 51 - .../oracle_database/list_databases.rb | 51 - .../snippets/oracle_database/list_db_nodes.rb | 51 - .../oracle_database/list_db_servers.rb | 51 - .../list_db_system_initial_storage_sizes.rb | 51 - .../oracle_database/list_db_system_shapes.rb | 51 - .../oracle_database/list_db_systems.rb | 51 - .../oracle_database/list_db_versions.rb | 51 - .../oracle_database/list_entitlements.rb | 51 - .../oracle_database/list_exadb_vm_clusters.rb | 51 - .../list_exascale_db_storage_vaults.rb | 51 - .../oracle_database/list_gi_versions.rb | 51 - .../oracle_database/list_minor_versions.rb | 51 - .../oracle_database/list_odb_networks.rb | 51 - .../oracle_database/list_odb_subnets.rb | 51 - .../list_pluggable_databases.rb | 51 - ...remove_virtual_machine_exadb_vm_cluster.rb | 54 - .../restart_autonomous_database.rb | 54 - .../restore_autonomous_database.rb | 54 - .../start_autonomous_database.rb | 54 - .../stop_autonomous_database.rb | 54 - .../switchover_autonomous_database.rb | 54 - .../update_autonomous_database.rb | 54 - .../update_exadb_vm_cluster.rb | 54 - ...tadata_google.cloud.oracledatabase.v1.json | 3255 ------ .../v1/oracle_database_operations_test.rb | 400 - .../v1/oracle_database_paths_test.rb | 307 - .../v1/oracle_database_rest_test.rb | 4624 -------- .../v1/oracle_database_test.rb | 5428 ---------- .../test/helper.rb | 26 - 222 files changed, 11210 insertions(+), 53671 deletions(-) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/create_goldengate_connection.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/create_goldengate_connection_assignment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/create_goldengate_deployment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/delete_goldengate_connection.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/delete_goldengate_connection_assignment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/delete_goldengate_deployment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/get_goldengate_connection.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/get_goldengate_connection_assignment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/get_goldengate_connection_type.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/get_goldengate_deployment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/get_goldengate_deployment_environment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/get_goldengate_deployment_type.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/get_goldengate_deployment_version.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/list_goldengate_connection_assignments.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/list_goldengate_connection_types.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/list_goldengate_connections.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/list_goldengate_deployment_environments.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/list_goldengate_deployment_types.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/list_goldengate_deployment_versions.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/list_goldengate_deployments.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/start_goldengate_deployment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/stop_goldengate_deployment.rb (100%) rename {owl-bot-staging/google-cloud-oracle_database-v1 => google-cloud-oracle_database-v1}/snippets/oracle_database/test_goldengate_connection_assignment.rb (100%) delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.gitignore delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.repo-metadata.json delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.rubocop.yml delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.toys.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/.yardopts delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/AUTHENTICATION.md delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/CHANGELOG.md delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/Gemfile delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/LICENSE.md delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/README.md delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/Rakefile delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/gapic_metadata.json delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/google-cloud-oracle_database-v1.gemspec delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google-cloud-oracle_database-v1.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/bindings_override.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/rest.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/version.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/common_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_node_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_server_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_version_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/README.md delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_behavior.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_info.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/launch_stage.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/resource.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/common.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_node.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_server.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_version.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/longrunning/operations.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/any.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/duration.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/empty.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/field_mask.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/timestamp.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/rpc/status.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/datetime.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/dayofweek.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/month.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/timeofday.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/Gemfile delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_exadata_infrastructure.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_db_system.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exadb_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exascale_db_storage_vault.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_network.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_subnet.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_exadata_infrastructure.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_db_system.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exadb_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exascale_db_storage_vault.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_network.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_subnet.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/failover_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/generate_autonomous_database_wallet.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_exadata_infrastructure.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_db_system.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exadb_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exascale_db_storage_vault.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_network.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_subnet.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_pluggable_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_backups.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_character_sets.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_databases.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_db_versions.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_exadata_infrastructures.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_vm_clusters.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_database_character_sets.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_databases.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_nodes.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_servers.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_initial_storage_sizes.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_shapes.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_systems.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_versions.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_entitlements.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exadb_vm_clusters.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exascale_db_storage_vaults.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_gi_versions.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_minor_versions.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_networks.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_subnets.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_pluggable_databases.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/remove_virtual_machine_exadb_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restart_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restore_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/switchover_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_autonomous_database.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_exadb_vm_cluster.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_operations_test.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb delete mode 100644 owl-bot-staging/google-cloud-oracle_database-v1/test/helper.rb diff --git a/google-cloud-oracle_database-v1/.owlbot-manifest.json b/google-cloud-oracle_database-v1/.owlbot-manifest.json index 00d992c873db..1a5e135a4546 100644 --- a/google-cloud-oracle_database-v1/.owlbot-manifest.json +++ b/google-cloud-oracle_database-v1/.owlbot-manifest.json @@ -45,6 +45,13 @@ "lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb", "lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb", "lib/google/cloud/oracledatabase/v1/gi_version_pb.rb", + "lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb", + "lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb", + "lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb", + "lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb", + "lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb", + "lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb", + "lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb", "lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb", "lib/google/cloud/oracledatabase/v1/minor_version_pb.rb", "lib/google/cloud/oracledatabase/v1/odb_network_pb.rb", @@ -77,6 +84,13 @@ "proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb", "proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb", "proto_docs/google/cloud/oracledatabase/v1/gi_version.rb", + "proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb", + "proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb", + "proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb", + "proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb", + "proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb", + "proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb", + "proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb", "proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb", "proto_docs/google/cloud/oracledatabase/v1/minor_version.rb", "proto_docs/google/cloud/oracledatabase/v1/odb_network.rb", @@ -102,6 +116,9 @@ "snippets/oracle_database/create_db_system.rb", "snippets/oracle_database/create_exadb_vm_cluster.rb", "snippets/oracle_database/create_exascale_db_storage_vault.rb", + "snippets/oracle_database/create_goldengate_connection.rb", + "snippets/oracle_database/create_goldengate_connection_assignment.rb", + "snippets/oracle_database/create_goldengate_deployment.rb", "snippets/oracle_database/create_odb_network.rb", "snippets/oracle_database/create_odb_subnet.rb", "snippets/oracle_database/delete_autonomous_database.rb", @@ -110,6 +127,9 @@ "snippets/oracle_database/delete_db_system.rb", "snippets/oracle_database/delete_exadb_vm_cluster.rb", "snippets/oracle_database/delete_exascale_db_storage_vault.rb", + "snippets/oracle_database/delete_goldengate_connection.rb", + "snippets/oracle_database/delete_goldengate_connection_assignment.rb", + "snippets/oracle_database/delete_goldengate_deployment.rb", "snippets/oracle_database/delete_odb_network.rb", "snippets/oracle_database/delete_odb_subnet.rb", "snippets/oracle_database/failover_autonomous_database.rb", @@ -121,6 +141,13 @@ "snippets/oracle_database/get_db_system.rb", "snippets/oracle_database/get_exadb_vm_cluster.rb", "snippets/oracle_database/get_exascale_db_storage_vault.rb", + "snippets/oracle_database/get_goldengate_connection.rb", + "snippets/oracle_database/get_goldengate_connection_assignment.rb", + "snippets/oracle_database/get_goldengate_connection_type.rb", + "snippets/oracle_database/get_goldengate_deployment.rb", + "snippets/oracle_database/get_goldengate_deployment_environment.rb", + "snippets/oracle_database/get_goldengate_deployment_type.rb", + "snippets/oracle_database/get_goldengate_deployment_version.rb", "snippets/oracle_database/get_odb_network.rb", "snippets/oracle_database/get_odb_subnet.rb", "snippets/oracle_database/get_pluggable_database.rb", @@ -142,6 +169,13 @@ "snippets/oracle_database/list_exadb_vm_clusters.rb", "snippets/oracle_database/list_exascale_db_storage_vaults.rb", "snippets/oracle_database/list_gi_versions.rb", + "snippets/oracle_database/list_goldengate_connection_assignments.rb", + "snippets/oracle_database/list_goldengate_connection_types.rb", + "snippets/oracle_database/list_goldengate_connections.rb", + "snippets/oracle_database/list_goldengate_deployment_environments.rb", + "snippets/oracle_database/list_goldengate_deployment_types.rb", + "snippets/oracle_database/list_goldengate_deployment_versions.rb", + "snippets/oracle_database/list_goldengate_deployments.rb", "snippets/oracle_database/list_minor_versions.rb", "snippets/oracle_database/list_odb_networks.rb", "snippets/oracle_database/list_odb_subnets.rb", @@ -150,8 +184,11 @@ "snippets/oracle_database/restart_autonomous_database.rb", "snippets/oracle_database/restore_autonomous_database.rb", "snippets/oracle_database/start_autonomous_database.rb", + "snippets/oracle_database/start_goldengate_deployment.rb", "snippets/oracle_database/stop_autonomous_database.rb", + "snippets/oracle_database/stop_goldengate_deployment.rb", "snippets/oracle_database/switchover_autonomous_database.rb", + "snippets/oracle_database/test_goldengate_connection_assignment.rb", "snippets/oracle_database/update_autonomous_database.rb", "snippets/oracle_database/update_exadb_vm_cluster.rb", "snippets/snippet_metadata_google.cloud.oracledatabase.v1.json", diff --git a/google-cloud-oracle_database-v1/gapic_metadata.json b/google-cloud-oracle_database-v1/gapic_metadata.json index 8a8da4f16bbf..9e05cdb0dd0e 100644 --- a/google-cloud-oracle_database-v1/gapic_metadata.json +++ b/google-cloud-oracle_database-v1/gapic_metadata.json @@ -290,6 +290,96 @@ "delete_db_system" ] }, + "ListGoldengateDeployments": { + "methods": [ + "list_goldengate_deployments" + ] + }, + "GetGoldengateDeployment": { + "methods": [ + "get_goldengate_deployment" + ] + }, + "CreateGoldengateDeployment": { + "methods": [ + "create_goldengate_deployment" + ] + }, + "DeleteGoldengateDeployment": { + "methods": [ + "delete_goldengate_deployment" + ] + }, + "StopGoldengateDeployment": { + "methods": [ + "stop_goldengate_deployment" + ] + }, + "StartGoldengateDeployment": { + "methods": [ + "start_goldengate_deployment" + ] + }, + "ListGoldengateConnections": { + "methods": [ + "list_goldengate_connections" + ] + }, + "GetGoldengateConnection": { + "methods": [ + "get_goldengate_connection" + ] + }, + "CreateGoldengateConnection": { + "methods": [ + "create_goldengate_connection" + ] + }, + "DeleteGoldengateConnection": { + "methods": [ + "delete_goldengate_connection" + ] + }, + "GetGoldengateDeploymentVersion": { + "methods": [ + "get_goldengate_deployment_version" + ] + }, + "ListGoldengateDeploymentVersions": { + "methods": [ + "list_goldengate_deployment_versions" + ] + }, + "GetGoldengateDeploymentType": { + "methods": [ + "get_goldengate_deployment_type" + ] + }, + "ListGoldengateDeploymentTypes": { + "methods": [ + "list_goldengate_deployment_types" + ] + }, + "GetGoldengateDeploymentEnvironment": { + "methods": [ + "get_goldengate_deployment_environment" + ] + }, + "ListGoldengateDeploymentEnvironments": { + "methods": [ + "list_goldengate_deployment_environments" + ] + }, + "GetGoldengateConnectionType": { + "methods": [ + "get_goldengate_connection_type" + ] + }, + "ListGoldengateConnectionTypes": { + "methods": [ + "list_goldengate_connection_types" + ] + }, "ListDbVersions": { "methods": [ "list_db_versions" @@ -299,6 +389,31 @@ "methods": [ "list_database_character_sets" ] + }, + "ListGoldengateConnectionAssignments": { + "methods": [ + "list_goldengate_connection_assignments" + ] + }, + "GetGoldengateConnectionAssignment": { + "methods": [ + "get_goldengate_connection_assignment" + ] + }, + "CreateGoldengateConnectionAssignment": { + "methods": [ + "create_goldengate_connection_assignment" + ] + }, + "DeleteGoldengateConnectionAssignment": { + "methods": [ + "delete_goldengate_connection_assignment" + ] + }, + "TestGoldengateConnectionAssignment": { + "methods": [ + "test_goldengate_connection_assignment" + ] } } } diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb index 999b7ae96ec6..5d2d858bef4d 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb @@ -223,6 +223,46 @@ def self.configure initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] } + default_config.rpcs.list_goldengate_deployments.timeout = 60.0 + default_config.rpcs.list_goldengate_deployments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_deployment.timeout = 60.0 + default_config.rpcs.get_goldengate_deployment.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connections.timeout = 60.0 + default_config.rpcs.list_goldengate_connections.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_connection.timeout = 60.0 + default_config.rpcs.get_goldengate_connection.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_versions.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_types.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_types.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_environments.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_environments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connection_types.timeout = 60.0 + default_config.rpcs.list_goldengate_connection_types.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + default_config.rpcs.list_db_versions.timeout = 60.0 default_config.rpcs.list_db_versions.retry_policy = { initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] @@ -233,6 +273,16 @@ def self.configure initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] } + default_config.rpcs.list_goldengate_connection_assignments.timeout = 60.0 + default_config.rpcs.list_goldengate_connection_assignments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_connection_assignment.timeout = 60.0 + default_config.rpcs.get_goldengate_connection_assignment.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + default_config end yield @configure if block_given? @@ -3116,7 +3166,8 @@ def restart_autonomous_database request, options = nil # Required. The name of the Autonomous Database in the following format: # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. # @param peer_autonomous_database [::String] - # Required. The peer database name to switch over to. + # Optional. The peer database name to switch over to. Required for + # cross-region standby, and must be omitted for in-region Data Guard. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Gapic::Operation] @@ -3214,7 +3265,8 @@ def switchover_autonomous_database request, options = nil # Required. The name of the Autonomous Database in the following format: # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. # @param peer_autonomous_database [::String] - # Required. The peer database name to fail over to. + # Optional. The peer database name to fail over to. Required for cross-region + # standby, and must be omitted for in-region Data Guard. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Gapic::Operation] @@ -6026,45 +6078,43 @@ def delete_db_system request, options = nil end ## - # List DbVersions for the given project and location. + # Lists all the GoldengateDeployments for the given project and location. # - # @overload list_db_versions(request, options = nil) - # Pass arguments to `list_db_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash. + # @overload list_goldengate_deployments(request, options = nil) + # Pass arguments to `list_goldengate_deployments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest} or an equivalent Hash. # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash] + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter values, pass an empty Hash. # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_db_versions` via keyword arguments. Note that at + # @overload list_goldengate_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_deployments` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent value for the DbVersion resource with the - # format: projects/\\{project}/locations/\\{location} + # Required. The parent value for GoldengateDeployments in the following + # format: projects/\\{project}/locations/\\{location}. # @param page_size [::Integer] # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 DbVersions will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. + # If unspecified, at most 50 GoldengateDeployments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. + # Optional. A page token, received from a previous ListGoldengateDeployments + # call. Provide this to retrieve the subsequent page. # @param filter [::String] - # Optional. Filter expression that matches a subset of the DbVersions to - # show. The supported filter for dbSystem creation is `db_system_shape = - # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no - # filter is provided, all DbVersions will be returned. + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6075,28 +6125,28 @@ def delete_db_system request, options = nil # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new # - # # Call the list_db_versions method. - # result = client.list_db_versions request + # # Call the list_goldengate_deployments method. + # result = client.list_goldengate_deployments request # # # The returned object is of type Gapic::PagedEnumerable. You can iterate # # over elements, and API calls will be issued to fetch pages as needed. # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment. # p item # end # - def list_db_versions request, options = nil + def list_goldengate_deployments request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - metadata = @config.rpcs.list_db_versions.metadata.to_h + metadata = @config.rpcs.list_goldengate_deployments.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -6113,16 +6163,16 @@ def list_db_versions request, options = nil request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") metadata[:"x-goog-request-params"] ||= request_params_header - options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout, + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployments.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_db_versions.retry_policy + retry_policy: @config.rpcs.list_goldengate_deployments.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @oracle_database_stub.call_rpc :list_db_versions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_versions, request, response, operation, options + @oracle_database_stub.call_rpc :list_goldengate_deployments, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployments, request, response, operation, options yield response, operation if block_given? throw :response, response end @@ -6131,50 +6181,32 @@ def list_db_versions request, options = nil end ## - # List DatabaseCharacterSets for the given project and location. + # Gets details of a single GoldengateDeployment. # - # @overload list_database_character_sets(request, options = nil) - # Pass arguments to `list_database_character_sets` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash. + # @overload get_goldengate_deployment(request, options = nil) + # Pass arguments to `get_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest} or an equivalent Hash. # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash] + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter values, pass an empty Hash. # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at + # @overload get_goldengate_deployment(name: nil) + # Pass arguments to `get_goldengate_deployment` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). # - # @param parent [::String] - # Required. The parent value for DatabaseCharacterSets in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of DatabaseCharacterSets to return. The - # service may return fewer than this value. If unspecified, at most 50 - # DatabaseCharacterSets will be returned. The maximum value is 1000; values - # above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent - # page. - # - # When paginating, all other parameters provided to - # `ListDatabaseCharacterSets` must match the call that provided the page - # token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # **character_set_type** field is supported in the following format: - # `character_set_type="{characterSetType}"`. Accepted values include - # `DATABASE` and `NATIONAL`. + # @param name [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. # # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] # # @raise [::Google::Cloud::Error] if the RPC is aborted. # @@ -6185,28 +6217,24 @@ def list_db_versions request, options = nil # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new # - # # Call the list_database_character_sets method. - # result = client.list_database_character_sets request + # # Call the get_goldengate_deployment method. + # result = client.get_goldengate_deployment request # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. - # p item - # end + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeployment. + # p result # - def list_database_character_sets request, options = nil + def get_goldengate_deployment request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - metadata = @config.rpcs.list_database_character_sets.metadata.to_h + metadata = @config.rpcs.get_goldengate_deployment.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -6216,147 +6244,2444 @@ def list_database_character_sets request, options = nil metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id header_params = {} - if request.parent - header_params["parent"] = request.parent + if request.name + header_params["name"] = request.name end request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") metadata[:"x-goog-request-params"] ||= request_params_header - options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout, + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment.timeout, metadata: metadata, - retry_policy: @config.rpcs.list_database_character_sets.retry_policy + retry_policy: @config.rpcs.get_goldengate_deployment.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @oracle_database_stub.call_rpc :list_database_character_sets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, request, response, operation, options + @oracle_database_stub.call_rpc :get_goldengate_deployment, request, options: options do |response, operation| yield response, operation if block_given? - throw :response, response end rescue ::GRPC::BadStatus => e raise ::Google::Cloud::Error.from_error(e) end ## - # Configuration class for the OracleDatabase API. + # Creates a new GoldengateDeployment in a given project and location. # - # This class represents the configuration for OracleDatabase, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. + # @overload create_goldengate_deployment(request, options = nil) + # Pass arguments to `create_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest} or an equivalent Hash. # - # Configuration can be applied globally to all clients, or to a single client - # on construction. + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @example + # @overload create_goldengate_deployment(parent: nil, goldengate_deployment_id: nil, goldengate_deployment: nil, request_id: nil) + # Pass arguments to `create_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). # - # # Modify the global config, setting the timeout for - # # list_cloud_exadata_infrastructures to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 - # end + # @param parent [::String] + # Required. The value for parent of the GoldengateDeployment in the following + # format: projects/\\{project}/locations/\\{location}. + # @param goldengate_deployment_id [::String] + # Required. The ID of the GoldengateDeployment to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param goldengate_deployment [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 - # end + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] # - # @example + # @return [::Gapic::Operation] # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. + # @raise [::Google::Cloud::Error] if the RPC is aborted. # - # require "googleauth" + # @example Basic example + # require "google/cloud/oracle_database/v1" # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new # - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - # config.credentials = credentials - # end + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] + # # Call the create_goldengate_deployment method. + # result = client.create_goldengate_deployment request # - class Configuration - extend ::Gapic::Config - - # @private + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_goldengate_deployment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateDeployment. + # + # @overload delete_goldengate_deployment(request, options = nil) + # Pass arguments to `delete_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_goldengate_deployment(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new + # + # # Call the delete_goldengate_deployment method. + # result = client.delete_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_goldengate_deployment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Stops a single GoldengateDeployment. + # + # @overload stop_goldengate_deployment(request, options = nil) + # Pass arguments to `stop_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload stop_goldengate_deployment(name: nil) + # Pass arguments to `stop_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new + # + # # Call the stop_goldengate_deployment method. + # result = client.stop_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def stop_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.stop_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.stop_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.stop_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :stop_goldengate_deployment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts a single GoldengateDeployment. + # + # @overload start_goldengate_deployment(request, options = nil) + # Pass arguments to `start_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload start_goldengate_deployment(name: nil) + # Pass arguments to `start_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new + # + # # Call the start_goldengate_deployment method. + # result = client.start_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def start_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.start_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.start_goldengate_deployment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.start_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :start_goldengate_deployment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the GoldengateConnections for the given project and location. + # + # @overload list_goldengate_connections(request, options = nil) + # Pass arguments to `list_goldengate_connections` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_connections` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for GoldengateConnections in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 GoldengateConnections will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous ListGoldengateConnections + # call. Provide this to retrieve the subsequent page. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new + # + # # Call the list_goldengate_connections method. + # result = client.list_goldengate_connections request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnection. + # p item + # end + # + def list_goldengate_connections request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_connections.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connections.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_connections.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_connections, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connections, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnection. + # + # @overload get_goldengate_connection(request, options = nil) + # Pass arguments to `get_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_connection(name: nil) + # Pass arguments to `get_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new + # + # # Call the get_goldengate_connection method. + # result = client.get_goldengate_connection request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnection. + # p result + # + def get_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_connection, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateConnection in a given project and location. + # + # @overload create_goldengate_connection(request, options = nil) + # Pass arguments to `create_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_goldengate_connection(parent: nil, goldengate_connection_id: nil, goldengate_connection: nil, request_id: nil) + # Pass arguments to `create_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the GoldengateConnection in the following + # format: projects/\\{project}/locations/\\{location}. + # @param goldengate_connection_id [::String] + # Required. The ID of the GoldengateConnection to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param goldengate_connection [::Google::Cloud::OracleDatabase::V1::GoldengateConnection, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new + # + # # Call the create_goldengate_connection method. + # result = client.create_goldengate_connection request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_goldengate_connection.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_goldengate_connection, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateConnection. + # + # @overload delete_goldengate_connection(request, options = nil) + # Pass arguments to `delete_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_goldengate_connection(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new + # + # # Call the delete_goldengate_connection method. + # result = client.delete_goldengate_connection request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_goldengate_connection, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeploymentVersion. + # + # @overload get_goldengate_deployment_version(request, options = nil) + # Pass arguments to `get_goldengate_deployment_version` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_deployment_version(name: nil) + # Pass arguments to `get_goldengate_deployment_version` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeploymentVersion to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new + # + # # Call the get_goldengate_deployment_version method. + # result = client.get_goldengate_deployment_version request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + # p result + # + def get_goldengate_deployment_version request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_deployment_version.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_version.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_version.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_deployment_version, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateDeploymentVersions in a given project and location. + # + # @overload list_goldengate_deployment_versions(request, options = nil) + # Pass arguments to `list_goldengate_deployment_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_deployment_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_goldengate_deployment_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Parent value for ListGoldengateDeploymentVersionsRequest + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_id and deployment_type fields must be specified in the + # format: `deployment_id="id"` or `deployment_type="DATABASE_ORACLE"`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new + # + # # Call the list_goldengate_deployment_versions method. + # result = client.list_goldengate_deployment_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + # p item + # end + # + def list_goldengate_deployment_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_deployment_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_versions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_deployment_versions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_versions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldenGateDeploymentType. + # + # @overload get_goldengate_deployment_type(request, options = nil) + # Pass arguments to `get_goldengate_deployment_type` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_deployment_type(name: nil) + # Pass arguments to `get_goldengate_deployment_type` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeploymentType to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentTypes/\\{goldengate_deployment_type} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new + # + # # Call the get_goldengate_deployment_type method. + # result = client.get_goldengate_deployment_type request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + # p result + # + def get_goldengate_deployment_type request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_deployment_type.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_type.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_type.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_deployment_type, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldenGateDeploymentTypes in a given project and location. + # + # @overload list_goldengate_deployment_types(request, options = nil) + # Pass arguments to `list_goldengate_deployment_types` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_deployment_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_deployment_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_type and ogg_version fields must be specified in the format: + # `deployment_type="DATABASE_ORACLE"` or `ogg_version="version"`. + # Allowed values for deployment_type are: `DATABASE_ORACLE`, `BIGDATA`, + # `DATABASE_MICROSOFT_SQLSERVER`, `DATABASE_MYSQL`, `DATABASE_POSTGRESQL`, + # `DATABASE_DB2ZOS`, `DATABASE_DB2I`, `GGSA`, `DATA_TRANSFORMS`. + # @param order_by [::String] + # Optional. Hint for how to order the results + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new + # + # # Call the list_goldengate_deployment_types method. + # result = client.list_goldengate_deployment_types request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + # p item + # end + # + def list_goldengate_deployment_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_deployment_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_types.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_deployment_types, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_types, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeploymentEnvironment. + # + # @overload get_goldengate_deployment_environment(request, options = nil) + # Pass arguments to `get_goldengate_deployment_environment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_deployment_environment(name: nil) + # Pass arguments to `get_goldengate_deployment_environment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource with the format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new + # + # # Call the get_goldengate_deployment_environment method. + # result = client.get_goldengate_deployment_environment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + # p result + # + def get_goldengate_deployment_environment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_deployment_environment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_environment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_environment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_deployment_environment, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateDeploymentEnvironments in a given project and location. + # + # @overload list_goldengate_deployment_environments(request, options = nil) + # Pass arguments to `list_goldengate_deployment_environments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_deployment_environments(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_goldengate_deployment_environments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of + # GoldengateDeploymentEnvironments. Format: + # projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 deployment environments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new + # + # # Call the list_goldengate_deployment_environments method. + # result = client.list_goldengate_deployment_environments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + # p item + # end + # + def list_goldengate_deployment_environments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_deployment_environments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_environments.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_environments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_deployment_environments, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_environments, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnectionType. + # + # @overload get_goldengate_connection_type(request, options = nil) + # Pass arguments to `get_goldengate_connection_type` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_connection_type(name: nil) + # Pass arguments to `get_goldengate_connection_type` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource in the format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionTypes/\\{goldengate_connection_type} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new + # + # # Call the get_goldengate_connection_type method. + # result = client.get_goldengate_connection_type request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + # p result + # + def get_goldengate_connection_type request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_connection_type.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_type.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_connection_type.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_connection_type, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateConnectionTypes in a given project and location. + # + # @overload list_goldengate_connection_types(request, options = nil) + # Pass arguments to `list_goldengate_connection_types` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_connection_types(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_goldengate_connection_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Parent value for ListGoldengateConnectionTypesRequest + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. The + # connection_type field must be specified in the format: + # `connection_type="ORACLE"`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new + # + # # Call the list_goldengate_connection_types method. + # result = client.list_goldengate_connection_types request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + # p item + # end + # + def list_goldengate_connection_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_connection_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_types.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_connection_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_connection_types, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_types, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DbVersions for the given project and location. + # + # @overload list_db_versions(request, options = nil) + # Pass arguments to `list_db_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_db_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the DbVersion resource with the + # format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 DbVersions will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @param filter [::String] + # Optional. Filter expression that matches a subset of the DbVersions to + # show. The supported filter for dbSystem creation is `db_system_shape = + # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no + # filter is provided, all DbVersions will be returned. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new + # + # # Call the list_db_versions method. + # result = client.list_db_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. + # p item + # end + # + def list_db_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_db_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_db_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_db_versions, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_versions, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DatabaseCharacterSets for the given project and location. + # + # @overload list_database_character_sets(request, options = nil) + # Pass arguments to `list_database_character_sets` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for DatabaseCharacterSets in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of DatabaseCharacterSets to return. The + # service may return fewer than this value. If unspecified, at most 50 + # DatabaseCharacterSets will be returned. The maximum value is 1000; values + # above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # `ListDatabaseCharacterSets` must match the call that provided the page + # token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # **character_set_type** field is supported in the following format: + # `character_set_type="{characterSetType}"`. Accepted values include + # `DATABASE` and `NATIONAL`. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new + # + # # Call the list_database_character_sets method. + # result = client.list_database_character_sets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. + # p item + # end + # + def list_database_character_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_database_character_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_database_character_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_database_character_sets, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateConnectionAssignments in a given project and location. + # + # @overload list_goldengate_connection_assignments(request, options = nil) + # Pass arguments to `list_goldengate_connection_assignments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload list_goldengate_connection_assignments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_connection_assignments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the GoldengateConnectionAssignments. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of GoldengateConnectionAssignments to return. + # The service may return fewer than this value. If unspecified, at most 50 + # GoldengateConnectionAssignments will be returned. The maximum value is + # 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListGoldengateConnectionAssignments` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `ListGoldengateConnectionAssignments` must match the call that provided + # the page token. + # @param filter [::String] + # Optional. A filter expression that filters GoldengateConnectionAssignments + # listed in the response. + # @param order_by [::String] + # Optional. A comma-separated list of fields to order by, sorted in ascending + # order. Use "DESC" after a field name for descending. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new + # + # # Call the list_goldengate_connection_assignments method. + # result = client.list_goldengate_connection_assignments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + # p item + # end + # + def list_goldengate_connection_assignments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.list_goldengate_connection_assignments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_assignments.timeout, + metadata: metadata, + retry_policy: @config.rpcs.list_goldengate_connection_assignments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :list_goldengate_connection_assignments, request, options: options do |response, operation| + response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_assignments, request, response, operation, options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnectionAssignment. + # + # @overload get_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `get_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload get_goldengate_connection_assignment(name: nil) + # Pass arguments to `get_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnectionAssignment to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new + # + # # Call the get_goldengate_connection_assignment method. + # result = client.get_goldengate_connection_assignment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + # p result + # + def get_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.get_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_assignment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.get_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :get_goldengate_connection_assignment, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateConnectionAssignment in a given project and + # location. + # + # @overload create_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `create_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload create_goldengate_connection_assignment(parent: nil, goldengate_connection_assignment_id: nil, goldengate_connection_assignment: nil, request_id: nil) + # Pass arguments to `create_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this GoldengateConnectionAssignment + # will be created. Format: projects/\\{project}/locations/\\{location} + # @param goldengate_connection_assignment_id [::String] + # Required. The ID of the GoldengateConnectionAssignment to create. + # @param goldengate_connection_assignment [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment, ::Hash] + # Required. The GoldengateConnectionAssignment to create. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new + # + # # Call the create_goldengate_connection_assignment method. + # result = client.create_goldengate_connection_assignment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.create_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.parent + header_params["parent"] = request.parent + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.create_goldengate_connection_assignment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.create_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :create_goldengate_connection_assignment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateConnectionAssignment. + # + # @overload delete_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `delete_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload delete_goldengate_connection_assignment(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnectionAssignment to delete. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes after the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Gapic::Operation] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new + # + # # Call the delete_goldengate_connection_assignment method. + # result = client.delete_goldengate_connection_assignment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.delete_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection_assignment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.delete_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :delete_goldengate_connection_assignment, request, options: options do |response, operation| + response = ::Gapic::Operation.new response, @operations_client, options: options + yield response, operation if block_given? + throw :response, response + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Tests a single GoldengateConnectionAssignment. + # + # @overload test_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `test_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. + # + # @overload test_goldengate_connection_assignment(name: nil, type: nil) + # Pass arguments to `test_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the connection assignment for which to test connection. + # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @param type [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest::TestType] + # Optional. The type of the test of the assigned connection. + # The only type actually supported is DEFAULT. + # + # @yield [response, operation] Access the result along with the RPC operation + # @yieldparam response [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # @yieldparam operation [::GRPC::ActiveCall::Operation] + # + # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # + # @raise [::Google::Cloud::Error] if the RPC is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new + # + # # Call the test_goldengate_connection_assignment method. + # result = client.test_goldengate_connection_assignment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse. + # p result + # + def test_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + metadata = @config.rpcs.test_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION + metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + header_params = {} + if request.name + header_params["name"] = request.name + end + + request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") + metadata[:"x-goog-request-params"] ||= request_params_header + + options.apply_defaults timeout: @config.rpcs.test_goldengate_connection_assignment.timeout, + metadata: metadata, + retry_policy: @config.rpcs.test_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.call_rpc :test_goldengate_connection_assignment, request, options: options do |response, operation| + yield response, operation if block_given? + end + rescue ::GRPC::BadStatus => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the OracleDatabase API. + # + # This class represents the configuration for OracleDatabase, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_cloud_exadata_infrastructures to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`GRPC::Core::Channel`) a gRPC channel with included credentials + # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object + # * (`nil`) indicating no credentials + # + # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials + # is deprecated. Providing an unvalidated credential configuration to + # Google APIs can compromise the security of your systems and data. + # + # @example + # + # # The recommended way to provide credentials is to use the `make_creds` method + # # on the appropriate credentials class for your environment. + # + # require "googleauth" + # + # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( + # json_key_io: ::File.open("/path/to/keyfile.json") + # ) + # + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + # config.credentials = credentials + # end + # + # @note Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] + # @!attribute [rw] scope + # The OAuth scopes + # @return [::Array<::String>] + # @!attribute [rw] lib_name + # The library name as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] lib_version + # The library version as recorded in instrumentation and logging + # @return [::String] + # @!attribute [rw] channel_args + # Extra parameters passed to the gRPC channel. Note: this is ignored if a + # `GRPC::Core::Channel` object is provided as the credential. + # @return [::Hash] + # @!attribute [rw] interceptors + # An array of interceptors that are run before calls are executed. + # @return [::Array<::GRPC::ClientInterceptor>] + # @!attribute [rw] timeout + # The call timeout in seconds. + # @return [::Numeric] + # @!attribute [rw] metadata + # Additional gRPC headers to be sent with the call. + # @return [::Hash{::Symbol=>::String}] + # @!attribute [rw] retry_policy + # The retry policy. The value is a hash with the following keys: + # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. + # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. + # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. + # * `:retry_codes` (*type:* `Array`) - The error codes that should + # trigger a retry. + # @return [::Hash] + # @!attribute [rw] quota_project + # A separate project against which to charge quota. + # @return [::String] + # @!attribute [rw] universe_domain + # The universe domain within which to make requests. This determines the + # default endpoint URL. The default value of nil uses the environment + # universe (usually the default "googleapis.com" universe). + # @return [::String,nil] + # @!attribute [rw] logger + # A custom logger to use for request/response debug logging, or the value + # `:default` (the default) to construct a default logger, or `nil` to + # explicitly disable logging. + # @return [::Logger,:default,nil] + # + class Configuration + extend ::Gapic::Config + + # @private # The endpoint specific to the default "googleapis.com" universe. Deprecated. DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" @@ -6704,6 +9029,96 @@ class Rpcs # attr_reader :delete_db_system ## + # RPC-specific configuration for `list_goldengate_deployments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployments + ## + # RPC-specific configuration for `get_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment + ## + # RPC-specific configuration for `create_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_deployment + ## + # RPC-specific configuration for `delete_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_deployment + ## + # RPC-specific configuration for `stop_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :stop_goldengate_deployment + ## + # RPC-specific configuration for `start_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :start_goldengate_deployment + ## + # RPC-specific configuration for `list_goldengate_connections` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connections + ## + # RPC-specific configuration for `get_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection + ## + # RPC-specific configuration for `create_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_connection + ## + # RPC-specific configuration for `delete_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_connection + ## + # RPC-specific configuration for `get_goldengate_deployment_version` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_version + ## + # RPC-specific configuration for `list_goldengate_deployment_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_versions + ## + # RPC-specific configuration for `get_goldengate_deployment_type` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_type + ## + # RPC-specific configuration for `list_goldengate_deployment_types` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_types + ## + # RPC-specific configuration for `get_goldengate_deployment_environment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_environment + ## + # RPC-specific configuration for `list_goldengate_deployment_environments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_environments + ## + # RPC-specific configuration for `get_goldengate_connection_type` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection_type + ## + # RPC-specific configuration for `list_goldengate_connection_types` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connection_types + ## # RPC-specific configuration for `list_db_versions` # @return [::Gapic::Config::Method] # @@ -6713,6 +9128,31 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :list_database_character_sets + ## + # RPC-specific configuration for `list_goldengate_connection_assignments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connection_assignments + ## + # RPC-specific configuration for `get_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection_assignment + ## + # RPC-specific configuration for `create_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_connection_assignment + ## + # RPC-specific configuration for `delete_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_connection_assignment + ## + # RPC-specific configuration for `test_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :test_goldengate_connection_assignment # @private def initialize parent_rpcs = nil @@ -6828,10 +9268,56 @@ def initialize parent_rpcs = nil @create_db_system = ::Gapic::Config::Method.new create_db_system_config delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config + list_goldengate_deployments_config = parent_rpcs.list_goldengate_deployments if parent_rpcs.respond_to? :list_goldengate_deployments + @list_goldengate_deployments = ::Gapic::Config::Method.new list_goldengate_deployments_config + get_goldengate_deployment_config = parent_rpcs.get_goldengate_deployment if parent_rpcs.respond_to? :get_goldengate_deployment + @get_goldengate_deployment = ::Gapic::Config::Method.new get_goldengate_deployment_config + create_goldengate_deployment_config = parent_rpcs.create_goldengate_deployment if parent_rpcs.respond_to? :create_goldengate_deployment + @create_goldengate_deployment = ::Gapic::Config::Method.new create_goldengate_deployment_config + delete_goldengate_deployment_config = parent_rpcs.delete_goldengate_deployment if parent_rpcs.respond_to? :delete_goldengate_deployment + @delete_goldengate_deployment = ::Gapic::Config::Method.new delete_goldengate_deployment_config + stop_goldengate_deployment_config = parent_rpcs.stop_goldengate_deployment if parent_rpcs.respond_to? :stop_goldengate_deployment + @stop_goldengate_deployment = ::Gapic::Config::Method.new stop_goldengate_deployment_config + start_goldengate_deployment_config = parent_rpcs.start_goldengate_deployment if parent_rpcs.respond_to? :start_goldengate_deployment + @start_goldengate_deployment = ::Gapic::Config::Method.new start_goldengate_deployment_config + list_goldengate_connections_config = parent_rpcs.list_goldengate_connections if parent_rpcs.respond_to? :list_goldengate_connections + @list_goldengate_connections = ::Gapic::Config::Method.new list_goldengate_connections_config + get_goldengate_connection_config = parent_rpcs.get_goldengate_connection if parent_rpcs.respond_to? :get_goldengate_connection + @get_goldengate_connection = ::Gapic::Config::Method.new get_goldengate_connection_config + create_goldengate_connection_config = parent_rpcs.create_goldengate_connection if parent_rpcs.respond_to? :create_goldengate_connection + @create_goldengate_connection = ::Gapic::Config::Method.new create_goldengate_connection_config + delete_goldengate_connection_config = parent_rpcs.delete_goldengate_connection if parent_rpcs.respond_to? :delete_goldengate_connection + @delete_goldengate_connection = ::Gapic::Config::Method.new delete_goldengate_connection_config + get_goldengate_deployment_version_config = parent_rpcs.get_goldengate_deployment_version if parent_rpcs.respond_to? :get_goldengate_deployment_version + @get_goldengate_deployment_version = ::Gapic::Config::Method.new get_goldengate_deployment_version_config + list_goldengate_deployment_versions_config = parent_rpcs.list_goldengate_deployment_versions if parent_rpcs.respond_to? :list_goldengate_deployment_versions + @list_goldengate_deployment_versions = ::Gapic::Config::Method.new list_goldengate_deployment_versions_config + get_goldengate_deployment_type_config = parent_rpcs.get_goldengate_deployment_type if parent_rpcs.respond_to? :get_goldengate_deployment_type + @get_goldengate_deployment_type = ::Gapic::Config::Method.new get_goldengate_deployment_type_config + list_goldengate_deployment_types_config = parent_rpcs.list_goldengate_deployment_types if parent_rpcs.respond_to? :list_goldengate_deployment_types + @list_goldengate_deployment_types = ::Gapic::Config::Method.new list_goldengate_deployment_types_config + get_goldengate_deployment_environment_config = parent_rpcs.get_goldengate_deployment_environment if parent_rpcs.respond_to? :get_goldengate_deployment_environment + @get_goldengate_deployment_environment = ::Gapic::Config::Method.new get_goldengate_deployment_environment_config + list_goldengate_deployment_environments_config = parent_rpcs.list_goldengate_deployment_environments if parent_rpcs.respond_to? :list_goldengate_deployment_environments + @list_goldengate_deployment_environments = ::Gapic::Config::Method.new list_goldengate_deployment_environments_config + get_goldengate_connection_type_config = parent_rpcs.get_goldengate_connection_type if parent_rpcs.respond_to? :get_goldengate_connection_type + @get_goldengate_connection_type = ::Gapic::Config::Method.new get_goldengate_connection_type_config + list_goldengate_connection_types_config = parent_rpcs.list_goldengate_connection_types if parent_rpcs.respond_to? :list_goldengate_connection_types + @list_goldengate_connection_types = ::Gapic::Config::Method.new list_goldengate_connection_types_config list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config + list_goldengate_connection_assignments_config = parent_rpcs.list_goldengate_connection_assignments if parent_rpcs.respond_to? :list_goldengate_connection_assignments + @list_goldengate_connection_assignments = ::Gapic::Config::Method.new list_goldengate_connection_assignments_config + get_goldengate_connection_assignment_config = parent_rpcs.get_goldengate_connection_assignment if parent_rpcs.respond_to? :get_goldengate_connection_assignment + @get_goldengate_connection_assignment = ::Gapic::Config::Method.new get_goldengate_connection_assignment_config + create_goldengate_connection_assignment_config = parent_rpcs.create_goldengate_connection_assignment if parent_rpcs.respond_to? :create_goldengate_connection_assignment + @create_goldengate_connection_assignment = ::Gapic::Config::Method.new create_goldengate_connection_assignment_config + delete_goldengate_connection_assignment_config = parent_rpcs.delete_goldengate_connection_assignment if parent_rpcs.respond_to? :delete_goldengate_connection_assignment + @delete_goldengate_connection_assignment = ::Gapic::Config::Method.new delete_goldengate_connection_assignment_config + test_goldengate_connection_assignment_config = parent_rpcs.test_goldengate_connection_assignment if parent_rpcs.respond_to? :test_goldengate_connection_assignment + @test_goldengate_connection_assignment = ::Gapic::Config::Method.new test_goldengate_connection_assignment_config yield self if block_given? end diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb index ad2404d189e5..28cbf58f7459 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb @@ -197,6 +197,139 @@ def gi_version_path project:, location:, gi_version: "projects/#{project}/locations/#{location}/giVersions/#{gi_version}" end + ## + # Create a fully-qualified GoldengateConnection resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}` + # + # @param project [String] + # @param location [String] + # @param goldengate_connection [String] + # + # @return [::String] + def goldengate_connection_path project:, location:, goldengate_connection: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateConnections/#{goldengate_connection}" + end + + ## + # Create a fully-qualified GoldengateConnectionAssignment resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateConnectionAssignments/{goldengate_connection_assignment}` + # + # @param project [String] + # @param location [String] + # @param goldengate_connection_assignment [String] + # + # @return [::String] + def goldengate_connection_assignment_path project:, location:, goldengate_connection_assignment: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateConnectionAssignments/#{goldengate_connection_assignment}" + end + + ## + # Create a fully-qualified GoldengateConnectionType resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}` + # + # @param project [String] + # @param location [String] + # @param goldengate_connection_type [String] + # + # @return [::String] + def goldengate_connection_type_path project:, location:, goldengate_connection_type: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateConnectionTypes/#{goldengate_connection_type}" + end + + ## + # Create a fully-qualified GoldengateDeployment resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}` + # + # @param project [String] + # @param location [String] + # @param goldengate_deployment [String] + # + # @return [::String] + def goldengate_deployment_path project:, location:, goldengate_deployment: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateDeployments/#{goldengate_deployment}" + end + + ## + # Create a fully-qualified GoldengateDeploymentEnvironment resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}` + # + # @param project [String] + # @param location [String] + # @param goldengate_deployment_environment [String] + # + # @return [::String] + def goldengate_deployment_environment_path project:, location:, goldengate_deployment_environment: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateDeploymentEnvironments/#{goldengate_deployment_environment}" + end + + ## + # Create a fully-qualified GoldengateDeploymentType resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}` + # + # @param project [String] + # @param location [String] + # @param goldengate_deployment_type [String] + # + # @return [::String] + def goldengate_deployment_type_path project:, location:, goldengate_deployment_type: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateDeploymentTypes/#{goldengate_deployment_type}" + end + + ## + # Create a fully-qualified GoldengateDeploymentVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}` + # + # @param project [String] + # @param location [String] + # @param goldengate_deployment_version [String] + # + # @return [::String] + def goldengate_deployment_version_path project:, location:, goldengate_deployment_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/goldengateDeploymentVersions/#{goldengate_deployment_version}" + end + ## # Create a fully-qualified Location resource string. # @@ -290,6 +423,25 @@ def pluggable_database_path project:, location:, pluggable_database: "projects/#{project}/locations/#{location}/pluggableDatabases/#{pluggable_database}" end + ## + # Create a fully-qualified SecretVersion resource string. + # + # The resource will be in the following format: + # + # `projects/{project}/secrets/{secret}/versions/{secret_version}` + # + # @param project [String] + # @param secret [String] + # @param secret_version [String] + # + # @return [::String] + def secret_version_path project:, secret:, secret_version: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" + + "projects/#{project}/secrets/#{secret}/versions/#{secret_version}" + end + extend self end end diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb index 3302e67cc905..11fb7aa4fbeb 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb @@ -225,6 +225,46 @@ def self.configure initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] } + default_config.rpcs.list_goldengate_deployments.timeout = 60.0 + default_config.rpcs.list_goldengate_deployments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_deployment.timeout = 60.0 + default_config.rpcs.get_goldengate_deployment.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connections.timeout = 60.0 + default_config.rpcs.list_goldengate_connections.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_connection.timeout = 60.0 + default_config.rpcs.get_goldengate_connection.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_versions.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_versions.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_types.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_types.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_deployment_environments.timeout = 60.0 + default_config.rpcs.list_goldengate_deployment_environments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.list_goldengate_connection_types.timeout = 60.0 + default_config.rpcs.list_goldengate_connection_types.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + default_config.rpcs.list_db_versions.timeout = 60.0 default_config.rpcs.list_db_versions.retry_policy = { initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] @@ -235,6 +275,16 @@ def self.configure initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] } + default_config.rpcs.list_goldengate_connection_assignments.timeout = 60.0 + default_config.rpcs.list_goldengate_connection_assignments.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + + default_config.rpcs.get_goldengate_connection_assignment.timeout = 60.0 + default_config.rpcs.get_goldengate_connection_assignment.retry_policy = { + initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] + } + default_config end yield @configure if block_given? @@ -2921,7 +2971,8 @@ def restart_autonomous_database request, options = nil # Required. The name of the Autonomous Database in the following format: # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. # @param peer_autonomous_database [::String] - # Required. The peer database name to switch over to. + # Optional. The peer database name to switch over to. Required for + # cross-region standby, and must be omitted for in-region Data Guard. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Gapic::Operation] # @yieldparam operation [::Gapic::Rest::TransportOperation] @@ -3012,7 +3063,8 @@ def switchover_autonomous_database request, options = nil # Required. The name of the Autonomous Database in the following format: # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. # @param peer_autonomous_database [::String] - # Required. The peer database name to fail over to. + # Optional. The peer database name to fail over to. Required for cross-region + # standby, and must be omitted for in-region Data Guard. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Gapic::Operation] # @yieldparam operation [::Gapic::Rest::TransportOperation] @@ -5628,44 +5680,42 @@ def delete_db_system request, options = nil end ## - # List DbVersions for the given project and location. + # Lists all the GoldengateDeployments for the given project and location. # - # @overload list_db_versions(request, options = nil) - # Pass arguments to `list_db_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash. + # @overload list_goldengate_deployments(request, options = nil) + # Pass arguments to `list_goldengate_deployments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest} or an equivalent Hash. # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash] + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter values, pass an empty Hash. # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_db_versions` via keyword arguments. Note that at + # @overload list_goldengate_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_deployments` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent value for the DbVersion resource with the - # format: projects/\\{project}/locations/\\{location} + # Required. The parent value for GoldengateDeployments in the following + # format: projects/\\{project}/locations/\\{location}. # @param page_size [::Integer] # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 DbVersions will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. + # If unspecified, at most 50 GoldengateDeployments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. + # Optional. A page token, received from a previous ListGoldengateDeployments + # call. Provide this to retrieve the subsequent page. # @param filter [::String] - # Optional. Filter expression that matches a subset of the DbVersions to - # show. The supported filter for dbSystem creation is `db_system_shape = - # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no - # filter is provided, all DbVersions will be returned. + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5676,28 +5726,28 @@ def delete_db_system request, options = nil # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new # - # # Call the list_db_versions method. - # result = client.list_db_versions request + # # Call the list_goldengate_deployments method. + # result = client.list_goldengate_deployments request # # # The returned object is of type Gapic::PagedEnumerable. You can iterate # # over elements, and API calls will be issued to fetch pages as needed. # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment. # p item # end # - def list_db_versions request, options = nil + def list_goldengate_deployments request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - call_metadata = @config.rpcs.list_db_versions.metadata.to_h + call_metadata = @config.rpcs.list_goldengate_deployments.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -5708,16 +5758,16 @@ def list_db_versions request, options = nil call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout, + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployments.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_db_versions.retry_policy + retry_policy: @config.rpcs.list_goldengate_deployments.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @oracle_database_stub.list_db_versions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_versions, "db_versions", request, result, options + @oracle_database_stub.list_goldengate_deployments request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployments, "goldengate_deployments", request, result, options yield result, operation if block_given? throw :response, result end @@ -5726,49 +5776,131 @@ def list_db_versions request, options = nil end ## - # List DatabaseCharacterSets for the given project and location. + # Gets details of a single GoldengateDeployment. # - # @overload list_database_character_sets(request, options = nil) - # Pass arguments to `list_database_character_sets` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash. + # @overload get_goldengate_deployment(request, options = nil) + # Pass arguments to `get_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest} or an equivalent Hash. # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash] + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Hash] # A request object representing the call parameters. Required. To specify no # parameters, or to keep all the default parameter values, pass an empty Hash. # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at + # @overload get_goldengate_deployment(name: nil) + # Pass arguments to `get_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new + # + # # Call the get_goldengate_deployment method. + # result = client.get_goldengate_deployment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeployment. + # p result + # + def get_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_deployment request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateDeployment in a given project and location. + # + # @overload create_goldengate_deployment(request, options = nil) + # Pass arguments to `create_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_goldengate_deployment(parent: nil, goldengate_deployment_id: nil, goldengate_deployment: nil, request_id: nil) + # Pass arguments to `create_goldengate_deployment` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent value for DatabaseCharacterSets in the following + # Required. The value for parent of the GoldengateDeployment in the following # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of DatabaseCharacterSets to return. The - # service may return fewer than this value. If unspecified, at most 50 - # DatabaseCharacterSets will be returned. The maximum value is 1000; values - # above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent - # page. + # @param goldengate_deployment_id [::String] + # Required. The ID of the GoldengateDeployment to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param goldengate_deployment [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. # - # When paginating, all other parameters provided to - # `ListDatabaseCharacterSets` must match the call that provided the page - # token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # **character_set_type** field is supported in the following format: - # `character_set_type="{characterSetType}"`. Accepted values include - # `DATABASE` and `NATIONAL`. + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # @yieldparam result [::Gapic::Operation] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # @return [::Gapic::Operation] # # @raise [::Google::Cloud::Error] if the REST call is aborted. # @@ -5779,28 +5911,31 @@ def list_db_versions request, options = nil # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new # # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new # - # # Call the list_database_character_sets method. - # result = client.list_database_character_sets request + # # Call the create_goldengate_deployment method. + # result = client.create_goldengate_deployment request # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. - # p item + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." # end # - def list_database_character_sets request, options = nil + def create_goldengate_deployment request, options = nil raise ::ArgumentError, "request must be provided" if request.nil? - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest # Converts hash and nil to an options object options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h # Customize the options with defaults - call_metadata = @config.rpcs.list_database_character_sets.metadata.to_h + call_metadata = @config.rpcs.create_goldengate_deployment.metadata.to_h # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ @@ -5811,16 +5946,16 @@ def list_database_character_sets request, options = nil call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout, + options.apply_defaults timeout: @config.rpcs.create_goldengate_deployment.timeout, metadata: call_metadata, - retry_policy: @config.rpcs.list_database_character_sets.retry_policy + retry_policy: @config.rpcs.create_goldengate_deployment.retry_policy options.apply_defaults timeout: @config.timeout, metadata: @config.metadata, retry_policy: @config.retry_policy - @oracle_database_stub.list_database_character_sets request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, "database_character_sets", request, result, options + @oracle_database_stub.create_goldengate_deployment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options yield result, operation if block_given? throw :response, result end @@ -5829,55 +5964,2084 @@ def list_database_character_sets request, options = nil end ## - # Configuration class for the OracleDatabase REST API. + # Deletes a single GoldengateDeployment. # - # This class represents the configuration for OracleDatabase REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. + # @overload delete_goldengate_deployment(request, options = nil) + # Pass arguments to `delete_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest} or an equivalent Hash. # - # Configuration can be applied globally to all clients, or to a single client - # on construction. + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @example + # @overload delete_goldengate_deployment(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). # - # # Modify the global config, setting the timeout for - # # list_cloud_exadata_infrastructures to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 - # end + # @param name [::String] + # Required. The name of the GoldengateDeployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 - # end + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials + # @return [::Gapic::Operation] # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new + # + # # Call the delete_goldengate_deployment method. + # result = client.delete_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_goldengate_deployment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Stops a single GoldengateDeployment. + # + # @overload stop_goldengate_deployment(request, options = nil) + # Pass arguments to `stop_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload stop_goldengate_deployment(name: nil) + # Pass arguments to `stop_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new + # + # # Call the stop_goldengate_deployment method. + # result = client.stop_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def stop_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.stop_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.stop_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.stop_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.stop_goldengate_deployment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Starts a single GoldengateDeployment. + # + # @overload start_goldengate_deployment(request, options = nil) + # Pass arguments to `start_goldengate_deployment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload start_goldengate_deployment(name: nil) + # Pass arguments to `start_goldengate_deployment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the Goldengate Deployment in the following format: + # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new + # + # # Call the start_goldengate_deployment method. + # result = client.start_goldengate_deployment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def start_goldengate_deployment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.start_goldengate_deployment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.start_goldengate_deployment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.start_goldengate_deployment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.start_goldengate_deployment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists all the GoldengateConnections for the given project and location. + # + # @overload list_goldengate_connections(request, options = nil) + # Pass arguments to `list_goldengate_connections` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_connections` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for GoldengateConnections in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 GoldengateConnections will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous ListGoldengateConnections + # call. Provide this to retrieve the subsequent page. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. + # @param order_by [::String] + # Optional. An expression for ordering the results of the request. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new + # + # # Call the list_goldengate_connections method. + # result = client.list_goldengate_connections request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnection. + # p item + # end + # + def list_goldengate_connections request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_connections.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connections.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_connections.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_connections request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connections, "goldengate_connections", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnection. + # + # @overload get_goldengate_connection(request, options = nil) + # Pass arguments to `get_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_connection(name: nil) + # Pass arguments to `get_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new + # + # # Call the get_goldengate_connection method. + # result = client.get_goldengate_connection request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnection. + # p result + # + def get_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_connection request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateConnection in a given project and location. + # + # @overload create_goldengate_connection(request, options = nil) + # Pass arguments to `create_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_goldengate_connection(parent: nil, goldengate_connection_id: nil, goldengate_connection: nil, request_id: nil) + # Pass arguments to `create_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The value for parent of the GoldengateConnection in the following + # format: projects/\\{project}/locations/\\{location}. + # @param goldengate_connection_id [::String] + # Required. The ID of the GoldengateConnection to create. This value is + # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of + # 63 characters in length. The value must start with a letter and end with a + # letter or a number. + # @param goldengate_connection [::Google::Cloud::OracleDatabase::V1::GoldengateConnection, ::Hash] + # Required. The resource being created. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new + # + # # Call the create_goldengate_connection method. + # result = client.create_goldengate_connection request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_goldengate_connection.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_goldengate_connection request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateConnection. + # + # @overload delete_goldengate_connection(request, options = nil) + # Pass arguments to `delete_goldengate_connection` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_goldengate_connection(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_connection` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnection in the following format: + # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. + # @param request_id [::String] + # Optional. An optional ID to identify the request. This value is used to + # identify duplicate requests. If you make a request with the same request ID + # and the original request is still in progress or completed, the server + # ignores the second request. This prevents clients from + # accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new + # + # # Call the delete_goldengate_connection method. + # result = client.delete_goldengate_connection request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_connection request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_goldengate_connection.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_goldengate_connection.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_goldengate_connection request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeploymentVersion. + # + # @overload get_goldengate_deployment_version(request, options = nil) + # Pass arguments to `get_goldengate_deployment_version` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_deployment_version(name: nil) + # Pass arguments to `get_goldengate_deployment_version` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeploymentVersion to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new + # + # # Call the get_goldengate_deployment_version method. + # result = client.get_goldengate_deployment_version request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + # p result + # + def get_goldengate_deployment_version request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_deployment_version.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_version.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_version.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_deployment_version request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateDeploymentVersions in a given project and location. + # + # @overload list_goldengate_deployment_versions(request, options = nil) + # Pass arguments to `list_goldengate_deployment_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_deployment_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_goldengate_deployment_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Parent value for ListGoldengateDeploymentVersionsRequest + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. The + # maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_id and deployment_type fields must be specified in the + # format: `deployment_id="id"` or `deployment_type="DATABASE_ORACLE"`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new + # + # # Call the list_goldengate_deployment_versions method. + # result = client.list_goldengate_deployment_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. + # p item + # end + # + def list_goldengate_deployment_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_deployment_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_versions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_deployment_versions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_versions, "goldengate_deployment_versions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldenGateDeploymentType. + # + # @overload get_goldengate_deployment_type(request, options = nil) + # Pass arguments to `get_goldengate_deployment_type` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_deployment_type(name: nil) + # Pass arguments to `get_goldengate_deployment_type` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateDeploymentType to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentTypes/\\{goldengate_deployment_type} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new + # + # # Call the get_goldengate_deployment_type method. + # result = client.get_goldengate_deployment_type request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + # p result + # + def get_goldengate_deployment_type request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_deployment_type.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_type.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_type.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_deployment_type request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldenGateDeploymentTypes in a given project and location. + # + # @overload list_goldengate_deployment_types(request, options = nil) + # Pass arguments to `list_goldengate_deployment_types` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_deployment_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_deployment_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Either + # the deployment_type and ogg_version fields must be specified in the format: + # `deployment_type="DATABASE_ORACLE"` or `ogg_version="version"`. + # Allowed values for deployment_type are: `DATABASE_ORACLE`, `BIGDATA`, + # `DATABASE_MICROSOFT_SQLSERVER`, `DATABASE_MYSQL`, `DATABASE_POSTGRESQL`, + # `DATABASE_DB2ZOS`, `DATABASE_DB2I`, `GGSA`, `DATA_TRANSFORMS`. + # @param order_by [::String] + # Optional. Hint for how to order the results + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new + # + # # Call the list_goldengate_deployment_types method. + # result = client.list_goldengate_deployment_types request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. + # p item + # end + # + def list_goldengate_deployment_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_deployment_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_types.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_deployment_types request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_types, "goldengate_deployment_types", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateDeploymentEnvironment. + # + # @overload get_goldengate_deployment_environment(request, options = nil) + # Pass arguments to `get_goldengate_deployment_environment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_deployment_environment(name: nil) + # Pass arguments to `get_goldengate_deployment_environment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource with the format: + # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new + # + # # Call the get_goldengate_deployment_environment method. + # result = client.get_goldengate_deployment_environment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + # p result + # + def get_goldengate_deployment_environment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_deployment_environment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_environment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_deployment_environment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_deployment_environment request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateDeploymentEnvironments in a given project and location. + # + # @overload list_goldengate_deployment_environments(request, options = nil) + # Pass arguments to `list_goldengate_deployment_environments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_deployment_environments(parent: nil, page_size: nil, page_token: nil) + # Pass arguments to `list_goldengate_deployment_environments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent, which owns this collection of + # GoldengateDeploymentEnvironments. Format: + # projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, at most 50 deployment environments will be returned. + # The maximum value is 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new + # + # # Call the list_goldengate_deployment_environments method. + # result = client.list_goldengate_deployment_environments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. + # p item + # end + # + def list_goldengate_deployment_environments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_deployment_environments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_environments.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_deployment_environments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_deployment_environments request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_environments, "goldengate_deployment_environments", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnectionType. + # + # @overload get_goldengate_connection_type(request, options = nil) + # Pass arguments to `get_goldengate_connection_type` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_connection_type(name: nil) + # Pass arguments to `get_goldengate_connection_type` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the resource in the format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionTypes/\\{goldengate_connection_type} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new + # + # # Call the get_goldengate_connection_type method. + # result = client.get_goldengate_connection_type request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + # p result + # + def get_goldengate_connection_type request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_connection_type.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_type.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_connection_type.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_connection_type request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateConnectionTypes in a given project and location. + # + # @overload list_goldengate_connection_types(request, options = nil) + # Pass arguments to `list_goldengate_connection_types` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_connection_types(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_goldengate_connection_types` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. Parent value for ListGoldengateConnectionTypesRequest + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. Requested page size. Server may return fewer items than + # requested. If unspecified, server will pick an appropriate default. + # @param page_token [::String] + # Optional. A token identifying a page of results the server should return. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. The + # connection_type field must be specified in the format: + # `connection_type="ORACLE"`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new + # + # # Call the list_goldengate_connection_types method. + # result = client.list_goldengate_connection_types request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. + # p item + # end + # + def list_goldengate_connection_types request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_connection_types.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_types.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_connection_types.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_connection_types request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_types, "goldengate_connection_types", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DbVersions for the given project and location. + # + # @overload list_db_versions(request, options = nil) + # Pass arguments to `list_db_versions` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_db_versions` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the DbVersion resource with the + # format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of items to return. + # If unspecified, a maximum of 50 DbVersions will be returned. + # The maximum value is 1000; values above 1000 will be reset to 1000. + # @param page_token [::String] + # Optional. A token identifying the requested page of results to return. All + # fields except the filter should remain the same as in the request that + # provided this page token. + # @param filter [::String] + # Optional. Filter expression that matches a subset of the DbVersions to + # show. The supported filter for dbSystem creation is `db_system_shape = + # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no + # filter is provided, all DbVersions will be returned. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new + # + # # Call the list_db_versions method. + # result = client.list_db_versions request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. + # p item + # end + # + def list_db_versions request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_db_versions.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_db_versions.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_db_versions request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_versions, "db_versions", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # List DatabaseCharacterSets for the given project and location. + # + # @overload list_database_character_sets(request, options = nil) + # Pass arguments to `list_database_character_sets` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) + # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for DatabaseCharacterSets in the following + # format: projects/\\{project}/locations/\\{location}. + # @param page_size [::Integer] + # Optional. The maximum number of DatabaseCharacterSets to return. The + # service may return fewer than this value. If unspecified, at most 50 + # DatabaseCharacterSets will be returned. The maximum value is 1000; values + # above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent + # page. + # + # When paginating, all other parameters provided to + # `ListDatabaseCharacterSets` must match the call that provided the page + # token. + # @param filter [::String] + # Optional. An expression for filtering the results of the request. Only the + # **character_set_type** field is supported in the following format: + # `character_set_type="{characterSetType}"`. Accepted values include + # `DATABASE` and `NATIONAL`. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new + # + # # Call the list_database_character_sets method. + # result = client.list_database_character_sets request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. + # p item + # end + # + def list_database_character_sets request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_database_character_sets.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_database_character_sets.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_database_character_sets request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, "database_character_sets", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Lists GoldengateConnectionAssignments in a given project and location. + # + # @overload list_goldengate_connection_assignments(request, options = nil) + # Pass arguments to `list_goldengate_connection_assignments` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload list_goldengate_connection_assignments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) + # Pass arguments to `list_goldengate_connection_assignments` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent value for the GoldengateConnectionAssignments. + # Format: projects/\\{project}/locations/\\{location} + # @param page_size [::Integer] + # Optional. The maximum number of GoldengateConnectionAssignments to return. + # The service may return fewer than this value. If unspecified, at most 50 + # GoldengateConnectionAssignments will be returned. The maximum value is + # 1000; values above 1000 will be coerced to 1000. + # @param page_token [::String] + # Optional. A page token, received from a previous + # `ListGoldengateConnectionAssignments` call. Provide this to retrieve the + # subsequent page. + # + # When paginating, all other parameters provided to + # `ListGoldengateConnectionAssignments` must match the call that provided + # the page token. + # @param filter [::String] + # Optional. A filter expression that filters GoldengateConnectionAssignments + # listed in the response. + # @param order_by [::String] + # Optional. A comma-separated list of fields to order by, sorted in ascending + # order. Use "DESC" after a field name for descending. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new + # + # # Call the list_goldengate_connection_assignments method. + # result = client.list_goldengate_connection_assignments request + # + # # The returned object is of type Gapic::PagedEnumerable. You can iterate + # # over elements, and API calls will be issued to fetch pages as needed. + # result.each do |item| + # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + # p item + # end + # + def list_goldengate_connection_assignments request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.list_goldengate_connection_assignments.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_assignments.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.list_goldengate_connection_assignments.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.list_goldengate_connection_assignments request, options do |result, operation| + result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_assignments, "goldengate_connection_assignments", request, result, options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Gets details of a single GoldengateConnectionAssignment. + # + # @overload get_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `get_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload get_goldengate_connection_assignment(name: nil) + # Pass arguments to `get_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnectionAssignment to retrieve. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new + # + # # Call the get_goldengate_connection_assignment method. + # result = client.get_goldengate_connection_assignment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. + # p result + # + def get_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.get_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_assignment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.get_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.get_goldengate_connection_assignment request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Creates a new GoldengateConnectionAssignment in a given project and + # location. + # + # @overload create_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `create_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload create_goldengate_connection_assignment(parent: nil, goldengate_connection_assignment_id: nil, goldengate_connection_assignment: nil, request_id: nil) + # Pass arguments to `create_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param parent [::String] + # Required. The parent resource where this GoldengateConnectionAssignment + # will be created. Format: projects/\\{project}/locations/\\{location} + # @param goldengate_connection_assignment_id [::String] + # Required. The ID of the GoldengateConnectionAssignment to create. + # @param goldengate_connection_assignment [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment, ::Hash] + # Required. The GoldengateConnectionAssignment to create. + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes since the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new + # + # # Call the create_goldengate_connection_assignment method. + # result = client.create_goldengate_connection_assignment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def create_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.create_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.create_goldengate_connection_assignment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.create_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.create_goldengate_connection_assignment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Deletes a single GoldengateConnectionAssignment. + # + # @overload delete_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `delete_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload delete_goldengate_connection_assignment(name: nil, request_id: nil) + # Pass arguments to `delete_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. The name of the GoldengateConnectionAssignment to delete. + # Format: + # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @param request_id [::String] + # Optional. An optional request ID to identify requests. Specify a unique + # request ID so that if you must retry your request, the server will know to + # ignore the request if it has already been completed. The server will + # guarantee that for at least 60 minutes after the first request. + # + # For example, consider a situation where you make an initial request and the + # request times out. If you make the request again with the same request + # ID, the server can check if original operation with the same request ID + # was received, and if so, will ignore the second request. This prevents + # clients from accidentally creating duplicate commitments. + # + # The request ID must be a valid UUID with the exception that zero UUID is + # not supported (00000000-0000-0000-0000-000000000000). + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Gapic::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Gapic::Operation] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new + # + # # Call the delete_goldengate_connection_assignment method. + # result = client.delete_goldengate_connection_assignment request + # + # # The returned object is of type Gapic::Operation. You can use it to + # # check the status of an operation, cancel it, or wait for results. + # # Here is how to wait for a response. + # result.wait_until_done! timeout: 60 + # if result.response? + # p result.response + # else + # puts "No response received." + # end + # + def delete_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.delete_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection_assignment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.delete_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.delete_goldengate_connection_assignment request, options do |result, operation| + result = ::Gapic::Operation.new result, @operations_client, options: options + yield result, operation if block_given? + throw :response, result + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Tests a single GoldengateConnectionAssignment. + # + # @overload test_goldengate_connection_assignment(request, options = nil) + # Pass arguments to `test_goldengate_connection_assignment` via a request object, either of type + # {::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest} or an equivalent Hash. + # + # @param request [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Hash] + # A request object representing the call parameters. Required. To specify no + # parameters, or to keep all the default parameter values, pass an empty Hash. + # @param options [::Gapic::CallOptions, ::Hash] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @overload test_goldengate_connection_assignment(name: nil, type: nil) + # Pass arguments to `test_goldengate_connection_assignment` via keyword arguments. Note that at + # least one keyword argument is required. To specify no parameters, or to keep all + # the default parameter values, pass an empty Hash as a request object (see above). + # + # @param name [::String] + # Required. Name of the connection assignment for which to test connection. + # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} + # @param type [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest::TestType] + # Optional. The type of the test of the assigned connection. + # The only type actually supported is DEFAULT. + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # + # @raise [::Google::Cloud::Error] if the REST call is aborted. + # + # @example Basic example + # require "google/cloud/oracle_database/v1" + # + # # Create a client object. The client can be reused for multiple calls. + # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new + # + # # Create a request. To set request fields, pass in keyword arguments. + # request = Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new + # + # # Call the test_goldengate_connection_assignment method. + # result = client.test_goldengate_connection_assignment request + # + # # The returned object is of type Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse. + # p result + # + def test_goldengate_connection_assignment request, options = nil + raise ::ArgumentError, "request must be provided" if request.nil? + + request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest + + # Converts hash and nil to an options object + options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h + + # Customize the options with defaults + call_metadata = @config.rpcs.test_goldengate_connection_assignment.metadata.to_h + + # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers + call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ + lib_name: @config.lib_name, lib_version: @config.lib_version, + gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, + transports_version_send: [:rest] + + call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? + call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id + + options.apply_defaults timeout: @config.rpcs.test_goldengate_connection_assignment.timeout, + metadata: call_metadata, + retry_policy: @config.rpcs.test_goldengate_connection_assignment.retry_policy + + options.apply_defaults timeout: @config.timeout, + metadata: @config.metadata, + retry_policy: @config.retry_policy + + @oracle_database_stub.test_goldengate_connection_assignment request, options do |result, operation| + yield result, operation if block_given? + end + rescue ::Gapic::Rest::Error => e + raise ::Google::Cloud::Error.from_error(e) + end + + ## + # Configuration class for the OracleDatabase REST API. + # + # This class represents the configuration for OracleDatabase REST, + # providing control over timeouts, retry behavior, logging, transport + # parameters, and other low-level controls. Certain parameters can also be + # applied individually to specific RPCs. See + # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration::Rpcs} + # for a list of RPCs that can be configured independently. + # + # Configuration can be applied globally to all clients, or to a single client + # on construction. + # + # @example + # + # # Modify the global config, setting the timeout for + # # list_cloud_exadata_infrastructures to 20 seconds, + # # and all remaining timeouts to 10 seconds. + # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config| + # config.timeout = 10.0 + # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 + # end + # + # # Apply the above configuration only to a new client. + # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + # config.timeout = 10.0 + # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 + # end + # + # @!attribute [rw] endpoint + # A custom service endpoint, as a hostname or hostname:port. The default is + # nil, indicating to use the default endpoint in the current universe domain. + # @return [::String,nil] + # @!attribute [rw] credentials + # Credentials to send with calls. You may provide any of the following types: + # * (`String`) The path to a service account key file in JSON format + # * (`Hash`) A service account key as a Hash + # * (`Google::Auth::Credentials`) A googleauth credentials object + # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) + # * (`Signet::OAuth2::Client`) A signet oauth2 client object + # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) + # * (`nil`) indicating no credentials + # + # Warning: If you accept a credential configuration (JSON file or Hash) from an + # external source for authentication to Google Cloud, you must validate it before + # providing it to a Google API client library. Providing an unvalidated credential + # configuration to Google APIs can compromise the security of your systems and data. + # For more information, refer to [Validate credential configurations from external + # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). + # @return [::Object] # @!attribute [rw] scope # The OAuth scopes # @return [::Array<::String>] @@ -6262,6 +8426,96 @@ class Rpcs # attr_reader :delete_db_system ## + # RPC-specific configuration for `list_goldengate_deployments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployments + ## + # RPC-specific configuration for `get_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment + ## + # RPC-specific configuration for `create_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_deployment + ## + # RPC-specific configuration for `delete_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_deployment + ## + # RPC-specific configuration for `stop_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :stop_goldengate_deployment + ## + # RPC-specific configuration for `start_goldengate_deployment` + # @return [::Gapic::Config::Method] + # + attr_reader :start_goldengate_deployment + ## + # RPC-specific configuration for `list_goldengate_connections` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connections + ## + # RPC-specific configuration for `get_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection + ## + # RPC-specific configuration for `create_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_connection + ## + # RPC-specific configuration for `delete_goldengate_connection` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_connection + ## + # RPC-specific configuration for `get_goldengate_deployment_version` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_version + ## + # RPC-specific configuration for `list_goldengate_deployment_versions` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_versions + ## + # RPC-specific configuration for `get_goldengate_deployment_type` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_type + ## + # RPC-specific configuration for `list_goldengate_deployment_types` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_types + ## + # RPC-specific configuration for `get_goldengate_deployment_environment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_deployment_environment + ## + # RPC-specific configuration for `list_goldengate_deployment_environments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_deployment_environments + ## + # RPC-specific configuration for `get_goldengate_connection_type` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection_type + ## + # RPC-specific configuration for `list_goldengate_connection_types` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connection_types + ## # RPC-specific configuration for `list_db_versions` # @return [::Gapic::Config::Method] # @@ -6271,6 +8525,31 @@ class Rpcs # @return [::Gapic::Config::Method] # attr_reader :list_database_character_sets + ## + # RPC-specific configuration for `list_goldengate_connection_assignments` + # @return [::Gapic::Config::Method] + # + attr_reader :list_goldengate_connection_assignments + ## + # RPC-specific configuration for `get_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :get_goldengate_connection_assignment + ## + # RPC-specific configuration for `create_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :create_goldengate_connection_assignment + ## + # RPC-specific configuration for `delete_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :delete_goldengate_connection_assignment + ## + # RPC-specific configuration for `test_goldengate_connection_assignment` + # @return [::Gapic::Config::Method] + # + attr_reader :test_goldengate_connection_assignment # @private def initialize parent_rpcs = nil @@ -6386,10 +8665,56 @@ def initialize parent_rpcs = nil @create_db_system = ::Gapic::Config::Method.new create_db_system_config delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config + list_goldengate_deployments_config = parent_rpcs.list_goldengate_deployments if parent_rpcs.respond_to? :list_goldengate_deployments + @list_goldengate_deployments = ::Gapic::Config::Method.new list_goldengate_deployments_config + get_goldengate_deployment_config = parent_rpcs.get_goldengate_deployment if parent_rpcs.respond_to? :get_goldengate_deployment + @get_goldengate_deployment = ::Gapic::Config::Method.new get_goldengate_deployment_config + create_goldengate_deployment_config = parent_rpcs.create_goldengate_deployment if parent_rpcs.respond_to? :create_goldengate_deployment + @create_goldengate_deployment = ::Gapic::Config::Method.new create_goldengate_deployment_config + delete_goldengate_deployment_config = parent_rpcs.delete_goldengate_deployment if parent_rpcs.respond_to? :delete_goldengate_deployment + @delete_goldengate_deployment = ::Gapic::Config::Method.new delete_goldengate_deployment_config + stop_goldengate_deployment_config = parent_rpcs.stop_goldengate_deployment if parent_rpcs.respond_to? :stop_goldengate_deployment + @stop_goldengate_deployment = ::Gapic::Config::Method.new stop_goldengate_deployment_config + start_goldengate_deployment_config = parent_rpcs.start_goldengate_deployment if parent_rpcs.respond_to? :start_goldengate_deployment + @start_goldengate_deployment = ::Gapic::Config::Method.new start_goldengate_deployment_config + list_goldengate_connections_config = parent_rpcs.list_goldengate_connections if parent_rpcs.respond_to? :list_goldengate_connections + @list_goldengate_connections = ::Gapic::Config::Method.new list_goldengate_connections_config + get_goldengate_connection_config = parent_rpcs.get_goldengate_connection if parent_rpcs.respond_to? :get_goldengate_connection + @get_goldengate_connection = ::Gapic::Config::Method.new get_goldengate_connection_config + create_goldengate_connection_config = parent_rpcs.create_goldengate_connection if parent_rpcs.respond_to? :create_goldengate_connection + @create_goldengate_connection = ::Gapic::Config::Method.new create_goldengate_connection_config + delete_goldengate_connection_config = parent_rpcs.delete_goldengate_connection if parent_rpcs.respond_to? :delete_goldengate_connection + @delete_goldengate_connection = ::Gapic::Config::Method.new delete_goldengate_connection_config + get_goldengate_deployment_version_config = parent_rpcs.get_goldengate_deployment_version if parent_rpcs.respond_to? :get_goldengate_deployment_version + @get_goldengate_deployment_version = ::Gapic::Config::Method.new get_goldengate_deployment_version_config + list_goldengate_deployment_versions_config = parent_rpcs.list_goldengate_deployment_versions if parent_rpcs.respond_to? :list_goldengate_deployment_versions + @list_goldengate_deployment_versions = ::Gapic::Config::Method.new list_goldengate_deployment_versions_config + get_goldengate_deployment_type_config = parent_rpcs.get_goldengate_deployment_type if parent_rpcs.respond_to? :get_goldengate_deployment_type + @get_goldengate_deployment_type = ::Gapic::Config::Method.new get_goldengate_deployment_type_config + list_goldengate_deployment_types_config = parent_rpcs.list_goldengate_deployment_types if parent_rpcs.respond_to? :list_goldengate_deployment_types + @list_goldengate_deployment_types = ::Gapic::Config::Method.new list_goldengate_deployment_types_config + get_goldengate_deployment_environment_config = parent_rpcs.get_goldengate_deployment_environment if parent_rpcs.respond_to? :get_goldengate_deployment_environment + @get_goldengate_deployment_environment = ::Gapic::Config::Method.new get_goldengate_deployment_environment_config + list_goldengate_deployment_environments_config = parent_rpcs.list_goldengate_deployment_environments if parent_rpcs.respond_to? :list_goldengate_deployment_environments + @list_goldengate_deployment_environments = ::Gapic::Config::Method.new list_goldengate_deployment_environments_config + get_goldengate_connection_type_config = parent_rpcs.get_goldengate_connection_type if parent_rpcs.respond_to? :get_goldengate_connection_type + @get_goldengate_connection_type = ::Gapic::Config::Method.new get_goldengate_connection_type_config + list_goldengate_connection_types_config = parent_rpcs.list_goldengate_connection_types if parent_rpcs.respond_to? :list_goldengate_connection_types + @list_goldengate_connection_types = ::Gapic::Config::Method.new list_goldengate_connection_types_config list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config + list_goldengate_connection_assignments_config = parent_rpcs.list_goldengate_connection_assignments if parent_rpcs.respond_to? :list_goldengate_connection_assignments + @list_goldengate_connection_assignments = ::Gapic::Config::Method.new list_goldengate_connection_assignments_config + get_goldengate_connection_assignment_config = parent_rpcs.get_goldengate_connection_assignment if parent_rpcs.respond_to? :get_goldengate_connection_assignment + @get_goldengate_connection_assignment = ::Gapic::Config::Method.new get_goldengate_connection_assignment_config + create_goldengate_connection_assignment_config = parent_rpcs.create_goldengate_connection_assignment if parent_rpcs.respond_to? :create_goldengate_connection_assignment + @create_goldengate_connection_assignment = ::Gapic::Config::Method.new create_goldengate_connection_assignment_config + delete_goldengate_connection_assignment_config = parent_rpcs.delete_goldengate_connection_assignment if parent_rpcs.respond_to? :delete_goldengate_connection_assignment + @delete_goldengate_connection_assignment = ::Gapic::Config::Method.new delete_goldengate_connection_assignment_config + test_goldengate_connection_assignment_config = parent_rpcs.test_goldengate_connection_assignment if parent_rpcs.respond_to? :test_goldengate_connection_assignment + @test_goldengate_connection_assignment = ::Gapic::Config::Method.new test_goldengate_connection_assignment_config yield self if block_given? end diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb index 0094556dc491..6a11df1272ab 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb @@ -2314,23 +2314,23 @@ def delete_db_system request_pb, options = nil end ## - # Baseline implementation for the list_db_versions REST call + # Baseline implementation for the list_goldengate_deployments REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse] + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse] + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse] # A result object deserialized from the server's reply - def list_db_versions request_pb, options = nil + def list_goldengate_deployments request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_list_db_versions_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployments_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -2342,11 +2342,11 @@ def list_db_versions request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "list_db_versions", + method_name: "list_goldengate_deployments", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -2354,23 +2354,23 @@ def list_db_versions request_pb, options = nil end ## - # Baseline implementation for the list_database_character_sets REST call + # Baseline implementation for the get_goldengate_deployment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse] + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] # @yieldparam operation [::Gapic::Rest::TransportOperation] # - # @return [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse] + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] # A result object deserialized from the server's reply - def list_database_character_sets request_pb, options = nil + def get_goldengate_deployment request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? - verb, uri, query_string_params, body = ServiceStub.transcode_list_database_character_sets_request request_pb + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split "=", 2 } else @@ -2382,11 +2382,11 @@ def list_database_character_sets request_pb, options = nil uri: uri, body: body || "", params: query_string_params, - method_name: "list_database_character_sets", + method_name: "get_goldengate_deployment", options: options ) operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.decode_json response.body, ignore_unknown_fields: true + result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.decode_json response.body, ignore_unknown_fields: true catch :response do yield result, operation if block_given? result @@ -2394,85 +2394,1503 @@ def list_database_character_sets request_pb, options = nil end ## - # @private + # Baseline implementation for the create_goldengate_deployment REST call # - # GRPC transcoding helper method for the list_cloud_exadata_infrastructures REST call + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest] + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest] # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_cloud_exadata_infrastructures_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/cloudExadataInfrastructures", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end end ## - # @private + # Baseline implementation for the stop_goldengate_deployment REST call # - # GRPC transcoding helper method for the get_cloud_exadata_infrastructure REST call + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest] + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def stop_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_stop_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "stop_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the start_goldengate_deployment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest] # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_cloud_exadata_infrastructure_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def start_goldengate_deployment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_start_goldengate_deployment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "start_goldengate_deployment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end end ## - # @private + # Baseline implementation for the list_goldengate_connections REST call # - # GRPC transcoding helper method for the create_cloud_exadata_infrastructure REST call + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest] + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse] + # A result object deserialized from the server's reply + def list_goldengate_connections request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connections_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_connections", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_connection REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest] # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_cloud_exadata_infrastructure_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/cloudExadataInfrastructures", - body: "cloud_exadata_infrastructure", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] + # A result object deserialized from the server's reply + def get_goldengate_connection request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_connection", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end end ## - # @private + # Baseline implementation for the create_goldengate_connection REST call # - # GRPC transcoding helper method for the delete_cloud_exadata_infrastructure REST call + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest] + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_goldengate_connection request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_connection_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_goldengate_connection", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_goldengate_connection REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_goldengate_connection request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_connection_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_goldengate_connection", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_deployment_version REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] + # A result object deserialized from the server's reply + def get_goldengate_deployment_version request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_version_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_deployment_version", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_deployment_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse] + # A result object deserialized from the server's reply + def list_goldengate_deployment_versions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_versions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_deployment_versions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_deployment_type REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] + # A result object deserialized from the server's reply + def get_goldengate_deployment_type request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_type_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_deployment_type", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_deployment_types REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse] + # A result object deserialized from the server's reply + def list_goldengate_deployment_types request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_types_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_deployment_types", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_deployment_environment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] + # A result object deserialized from the server's reply + def get_goldengate_deployment_environment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_environment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_deployment_environment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_deployment_environments REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse] + # A result object deserialized from the server's reply + def list_goldengate_deployment_environments request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_environments_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_deployment_environments", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_connection_type REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] + # A result object deserialized from the server's reply + def get_goldengate_connection_type request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_type_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_connection_type", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_connection_types REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse] + # A result object deserialized from the server's reply + def list_goldengate_connection_types request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connection_types_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_connection_types", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_db_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse] + # A result object deserialized from the server's reply + def list_db_versions request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_db_versions_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_db_versions", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_database_character_sets REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse] + # A result object deserialized from the server's reply + def list_database_character_sets request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_database_character_sets_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_database_character_sets", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the list_goldengate_connection_assignments REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse] + # A result object deserialized from the server's reply + def list_goldengate_connection_assignments request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connection_assignments_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "list_goldengate_connection_assignments", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the get_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] + # A result object deserialized from the server's reply + def get_goldengate_connection_assignment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_assignment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "get_goldengate_connection_assignment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the create_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def create_goldengate_connection_assignment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_connection_assignment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "create_goldengate_connection_assignment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the delete_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Longrunning::Operation] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Longrunning::Operation] + # A result object deserialized from the server's reply + def delete_goldengate_connection_assignment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_connection_assignment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "delete_goldengate_connection_assignment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # Baseline implementation for the test_goldengate_connection_assignment REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest] + # A request object representing the call parameters. Required. + # @param options [::Gapic::CallOptions] + # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. + # + # @yield [result, operation] Access the result along with the TransportOperation object + # @yieldparam result [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # @yieldparam operation [::Gapic::Rest::TransportOperation] + # + # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] + # A result object deserialized from the server's reply + def test_goldengate_connection_assignment request_pb, options = nil + raise ::ArgumentError, "request must be provided" if request_pb.nil? + + verb, uri, query_string_params, body = ServiceStub.transcode_test_goldengate_connection_assignment_request request_pb + query_string_params = if query_string_params.any? + query_string_params.to_h { |p| p.split "=", 2 } + else + {} + end + + response = @client_stub.make_http_request( + verb, + uri: uri, + body: body || "", + params: query_string_params, + method_name: "test_goldengate_connection_assignment", + options: options + ) + operation = ::Gapic::Rest::TransportOperation.new response + result = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.decode_json response.body, ignore_unknown_fields: true + catch :response do + yield result, operation if block_given? + result + end + end + + ## + # @private + # + # GRPC transcoding helper method for the list_cloud_exadata_infrastructures REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_cloud_exadata_infrastructures_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/cloudExadataInfrastructures", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_cloud_exadata_infrastructure_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_cloud_exadata_infrastructure_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/cloudExadataInfrastructures", + body: "cloud_exadata_infrastructure", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_cloud_exadata_infrastructure REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_cloud_exadata_infrastructure_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_cloud_vm_clusters REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_cloud_vm_clusters_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/cloudVmClusters", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_cloud_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_cloud_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/cloudVmClusters", + body: "cloud_vm_cluster", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_cloud_vm_cluster REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_cloud_vm_cluster_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_entitlements REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_entitlements_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/entitlements", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_servers REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_servers_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbServers", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_nodes REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_nodes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbNodes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] + ] + ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbNodes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_gi_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_gi_versions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/giVersions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_minor_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_minor_versions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/minorVersions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/giVersions/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_db_system_shapes REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_db_system_shapes_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/dbSystemShapes", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_autonomous_databases REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_autonomous_databases_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/autonomousDatabases", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the get_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_get_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the create_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_create_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/autonomousDatabases", + body: "autonomous_database", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the update_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_update_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{autonomous_database.name}", + body: "autonomous_database", + matches: [ + ["autonomous_database.name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the delete_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_delete_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the restore_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_restore_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:restore", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the generate_autonomous_database_wallet REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_generate_autonomous_database_wallet_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:generateWallet", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_autonomous_db_versions REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_autonomous_db_versions_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/autonomousDbVersions", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_autonomous_database_character_sets REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_autonomous_database_character_sets_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/autonomousDatabaseCharacterSets", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the list_autonomous_database_backups REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_list_autonomous_database_backups_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/autonomousDatabaseBackups", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the stop_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_stop_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:stop", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the start_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest] + # A request object representing the call parameters. Required. + # @return [Array(String, [String, nil], Hash{String => String})] + # Uri, Body, Query string parameters + def self.transcode_start_autonomous_database_request request_pb + transcoder = Gapic::Rest::GrpcTranscoder.new + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:start", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ] + ) + transcoder.transcode request_pb + end + + ## + # @private + # + # GRPC transcoding helper method for the restart_autonomous_database REST call + # + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_delete_cloud_exadata_infrastructure_request request_pb + def self.transcode_restart_autonomous_database_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", + uri_method: :post, + uri_template: "/v1/{name}:restart", + body: "*", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2481,19 +3899,20 @@ def self.transcode_delete_cloud_exadata_infrastructure_request request_pb ## # @private # - # GRPC transcoding helper method for the list_cloud_vm_clusters REST call + # GRPC transcoding helper method for the switchover_autonomous_database REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_cloud_vm_clusters_request request_pb + def self.transcode_switchover_autonomous_database_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/cloudVmClusters", + uri_method: :post, + uri_template: "/v1/{name}:switchover", + body: "*", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2502,19 +3921,20 @@ def self.transcode_list_cloud_vm_clusters_request request_pb ## # @private # - # GRPC transcoding helper method for the get_cloud_vm_cluster REST call + # GRPC transcoding helper method for the failover_autonomous_database REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_cloud_vm_cluster_request request_pb + def self.transcode_failover_autonomous_database_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", + uri_method: :post, + uri_template: "/v1/{name}:failover", + body: "*", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2523,18 +3943,17 @@ def self.transcode_get_cloud_vm_cluster_request request_pb ## # @private # - # GRPC transcoding helper method for the create_cloud_vm_cluster REST call + # GRPC transcoding helper method for the list_odb_networks REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_create_cloud_vm_cluster_request request_pb + def self.transcode_list_odb_networks_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/cloudVmClusters", - body: "cloud_vm_cluster", + uri_method: :get, + uri_template: "/v1/{parent}/odbNetworks", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -2545,19 +3964,19 @@ def self.transcode_create_cloud_vm_cluster_request request_pb ## # @private # - # GRPC transcoding helper method for the delete_cloud_vm_cluster REST call + # GRPC transcoding helper method for the get_odb_network REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_delete_cloud_vm_cluster_request request_pb + def self.transcode_get_odb_network_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :delete, + uri_method: :get, uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2566,17 +3985,18 @@ def self.transcode_delete_cloud_vm_cluster_request request_pb ## # @private # - # GRPC transcoding helper method for the list_entitlements REST call + # GRPC transcoding helper method for the create_odb_network REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_entitlements_request request_pb + def self.transcode_create_odb_network_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/entitlements", + uri_method: :post, + uri_template: "/v1/{parent}/odbNetworks", + body: "odb_network", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -2587,19 +4007,19 @@ def self.transcode_list_entitlements_request request_pb ## # @private # - # GRPC transcoding helper method for the list_db_servers REST call + # GRPC transcoding helper method for the delete_odb_network REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_db_servers_request request_pb + def self.transcode_delete_odb_network_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbServers", + uri_method: :delete, + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2608,26 +4028,19 @@ def self.transcode_list_db_servers_request request_pb ## # @private # - # GRPC transcoding helper method for the list_db_nodes REST call + # GRPC transcoding helper method for the list_odb_subnets REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_db_nodes_request request_pb + def self.transcode_list_odb_subnets_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/dbNodes", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbNodes", + uri_template: "/v1/{parent}/odbSubnets", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2636,19 +4049,19 @@ def self.transcode_list_db_nodes_request request_pb ## # @private # - # GRPC transcoding helper method for the list_gi_versions REST call + # GRPC transcoding helper method for the get_odb_subnet REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_gi_versions_request request_pb + def self.transcode_get_odb_subnet_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/giVersions", + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2657,19 +4070,20 @@ def self.transcode_list_gi_versions_request request_pb ## # @private # - # GRPC transcoding helper method for the list_minor_versions REST call + # GRPC transcoding helper method for the create_odb_subnet REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_minor_versions_request request_pb + def self.transcode_create_odb_subnet_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/minorVersions", + uri_method: :post, + uri_template: "/v1/{parent}/odbSubnets", + body: "odb_subnet", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/giVersions/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2678,19 +4092,19 @@ def self.transcode_list_minor_versions_request request_pb ## # @private # - # GRPC transcoding helper method for the list_db_system_shapes REST call + # GRPC transcoding helper method for the delete_odb_subnet REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_db_system_shapes_request request_pb + def self.transcode_delete_odb_subnet_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbSystemShapes", + uri_method: :delete, + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2699,17 +4113,17 @@ def self.transcode_list_db_system_shapes_request request_pb ## # @private # - # GRPC transcoding helper method for the list_autonomous_databases REST call + # GRPC transcoding helper method for the list_exadb_vm_clusters REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_autonomous_databases_request request_pb + def self.transcode_list_exadb_vm_clusters_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/autonomousDatabases", + uri_template: "/v1/{parent}/exadbVmClusters", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -2720,19 +4134,19 @@ def self.transcode_list_autonomous_databases_request request_pb ## # @private # - # GRPC transcoding helper method for the get_autonomous_database REST call + # GRPC transcoding helper method for the get_exadb_vm_cluster REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_autonomous_database_request request_pb + def self.transcode_get_exadb_vm_cluster_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2741,18 +4155,18 @@ def self.transcode_get_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the create_autonomous_database REST call + # GRPC transcoding helper method for the create_exadb_vm_cluster REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_create_autonomous_database_request request_pb + def self.transcode_create_exadb_vm_cluster_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, - uri_template: "/v1/{parent}/autonomousDatabases", - body: "autonomous_database", + uri_template: "/v1/{parent}/exadbVmClusters", + body: "exadb_vm_cluster", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -2763,20 +4177,19 @@ def self.transcode_create_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the update_autonomous_database REST call + # GRPC transcoding helper method for the delete_exadb_vm_cluster REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_update_autonomous_database_request request_pb + def self.transcode_delete_exadb_vm_cluster_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :patch, - uri_template: "/v1/{autonomous_database.name}", - body: "autonomous_database", + uri_method: :delete, + uri_template: "/v1/{name}", matches: [ - ["autonomous_database.name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2785,19 +4198,20 @@ def self.transcode_update_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the delete_autonomous_database REST call + # GRPC transcoding helper method for the update_exadb_vm_cluster REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_delete_autonomous_database_request request_pb + def self.transcode_update_exadb_vm_cluster_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", + uri_method: :patch, + uri_template: "/v1/{exadb_vm_cluster.name}", + body: "exadb_vm_cluster", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["exadb_vm_cluster.name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2806,20 +4220,20 @@ def self.transcode_delete_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the restore_autonomous_database REST call + # GRPC transcoding helper method for the remove_virtual_machine_exadb_vm_cluster REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_restore_autonomous_database_request request_pb + def self.transcode_remove_virtual_machine_exadb_vm_cluster_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, - uri_template: "/v1/{name}:restore", + uri_template: "/v1/{name}:removeVirtualMachine", body: "*", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2828,20 +4242,19 @@ def self.transcode_restore_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the generate_autonomous_database_wallet REST call + # GRPC transcoding helper method for the list_exascale_db_storage_vaults REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_generate_autonomous_database_wallet_request request_pb + def self.transcode_list_exascale_db_storage_vaults_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:generateWallet", - body: "*", + uri_method: :get, + uri_template: "/v1/{parent}/exascaleDbStorageVaults", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2850,19 +4263,19 @@ def self.transcode_generate_autonomous_database_wallet_request request_pb ## # @private # - # GRPC transcoding helper method for the list_autonomous_db_versions REST call + # GRPC transcoding helper method for the get_exascale_db_storage_vault REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_autonomous_db_versions_request request_pb + def self.transcode_get_exascale_db_storage_vault_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/autonomousDbVersions", + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2871,17 +4284,18 @@ def self.transcode_list_autonomous_db_versions_request request_pb ## # @private # - # GRPC transcoding helper method for the list_autonomous_database_character_sets REST call + # GRPC transcoding helper method for the create_exascale_db_storage_vault REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_autonomous_database_character_sets_request request_pb + def self.transcode_create_exascale_db_storage_vault_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/autonomousDatabaseCharacterSets", + uri_method: :post, + uri_template: "/v1/{parent}/exascaleDbStorageVaults", + body: "exascale_db_storage_vault", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -2892,19 +4306,19 @@ def self.transcode_list_autonomous_database_character_sets_request request_pb ## # @private # - # GRPC transcoding helper method for the list_autonomous_database_backups REST call + # GRPC transcoding helper method for the delete_exascale_db_storage_vault REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_autonomous_database_backups_request request_pb + def self.transcode_delete_exascale_db_storage_vault_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/autonomousDatabaseBackups", + uri_method: :delete, + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2913,20 +4327,19 @@ def self.transcode_list_autonomous_database_backups_request request_pb ## # @private # - # GRPC transcoding helper method for the stop_autonomous_database REST call + # GRPC transcoding helper method for the list_db_system_initial_storage_sizes REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_stop_autonomous_database_request request_pb + def self.transcode_list_db_system_initial_storage_sizes_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:stop", - body: "*", + uri_method: :get, + uri_template: "/v1/{parent}/dbSystemInitialStorageSizes", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2935,20 +4348,19 @@ def self.transcode_stop_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the start_autonomous_database REST call + # GRPC transcoding helper method for the list_databases REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_start_autonomous_database_request request_pb + def self.transcode_list_databases_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:start", - body: "*", + uri_method: :get, + uri_template: "/v1/{parent}/databases", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2957,20 +4369,19 @@ def self.transcode_start_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the restart_autonomous_database REST call + # GRPC transcoding helper method for the get_database REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_restart_autonomous_database_request request_pb + def self.transcode_get_database_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:restart", - body: "*", + uri_method: :get, + uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/databases/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -2979,20 +4390,19 @@ def self.transcode_restart_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the switchover_autonomous_database REST call + # GRPC transcoding helper method for the list_pluggable_databases REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_switchover_autonomous_database_request request_pb + def self.transcode_list_pluggable_databases_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:switchover", - body: "*", + uri_method: :get, + uri_template: "/v1/{parent}/pluggableDatabases", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3001,20 +4411,19 @@ def self.transcode_switchover_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the failover_autonomous_database REST call + # GRPC transcoding helper method for the get_pluggable_database REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_failover_autonomous_database_request request_pb + def self.transcode_get_pluggable_database_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:failover", - body: "*", + uri_method: :get, + uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/pluggableDatabases/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3023,17 +4432,17 @@ def self.transcode_failover_autonomous_database_request request_pb ## # @private # - # GRPC transcoding helper method for the list_odb_networks REST call + # GRPC transcoding helper method for the list_db_systems REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_odb_networks_request request_pb + def self.transcode_list_db_systems_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/odbNetworks", + uri_template: "/v1/{parent}/dbSystems", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -3044,19 +4453,19 @@ def self.transcode_list_odb_networks_request request_pb ## # @private # - # GRPC transcoding helper method for the get_odb_network REST call + # GRPC transcoding helper method for the get_db_system REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_odb_network_request request_pb + def self.transcode_get_db_system_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3065,18 +4474,18 @@ def self.transcode_get_odb_network_request request_pb ## # @private # - # GRPC transcoding helper method for the create_odb_network REST call + # GRPC transcoding helper method for the create_db_system REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_create_odb_network_request request_pb + def self.transcode_create_db_system_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, - uri_template: "/v1/{parent}/odbNetworks", - body: "odb_network", + uri_template: "/v1/{parent}/dbSystems", + body: "db_system", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -3087,19 +4496,19 @@ def self.transcode_create_odb_network_request request_pb ## # @private # - # GRPC transcoding helper method for the delete_odb_network REST call + # GRPC transcoding helper method for the delete_db_system REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_delete_odb_network_request request_pb + def self.transcode_delete_db_system_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3108,19 +4517,19 @@ def self.transcode_delete_odb_network_request request_pb ## # @private # - # GRPC transcoding helper method for the list_odb_subnets REST call + # GRPC transcoding helper method for the list_goldengate_deployments REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_odb_subnets_request request_pb + def self.transcode_list_goldengate_deployments_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/odbSubnets", + uri_template: "/v1/{parent}/goldengateDeployments", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3129,19 +4538,19 @@ def self.transcode_list_odb_subnets_request request_pb ## # @private # - # GRPC transcoding helper method for the get_odb_subnet REST call + # GRPC transcoding helper method for the get_goldengate_deployment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_odb_subnet_request request_pb + def self.transcode_get_goldengate_deployment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3150,20 +4559,20 @@ def self.transcode_get_odb_subnet_request request_pb ## # @private # - # GRPC transcoding helper method for the create_odb_subnet REST call + # GRPC transcoding helper method for the create_goldengate_deployment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_create_odb_subnet_request request_pb + def self.transcode_create_goldengate_deployment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, - uri_template: "/v1/{parent}/odbSubnets", - body: "odb_subnet", + uri_template: "/v1/{parent}/goldengateDeployments", + body: "goldengate_deployment", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3172,19 +4581,19 @@ def self.transcode_create_odb_subnet_request request_pb ## # @private # - # GRPC transcoding helper method for the delete_odb_subnet REST call + # GRPC transcoding helper method for the delete_goldengate_deployment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_delete_odb_subnet_request request_pb + def self.transcode_delete_goldengate_deployment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3193,19 +4602,20 @@ def self.transcode_delete_odb_subnet_request request_pb ## # @private # - # GRPC transcoding helper method for the list_exadb_vm_clusters REST call + # GRPC transcoding helper method for the stop_goldengate_deployment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_exadb_vm_clusters_request request_pb + def self.transcode_stop_goldengate_deployment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/exadbVmClusters", + uri_method: :post, + uri_template: "/v1/{name}:stop", + body: "*", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3214,19 +4624,20 @@ def self.transcode_list_exadb_vm_clusters_request request_pb ## # @private # - # GRPC transcoding helper method for the get_exadb_vm_cluster REST call + # GRPC transcoding helper method for the start_goldengate_deployment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_exadb_vm_cluster_request request_pb + def self.transcode_start_goldengate_deployment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", + uri_method: :post, + uri_template: "/v1/{name}:start", + body: "*", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3235,18 +4646,17 @@ def self.transcode_get_exadb_vm_cluster_request request_pb ## # @private # - # GRPC transcoding helper method for the create_exadb_vm_cluster REST call + # GRPC transcoding helper method for the list_goldengate_connections REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_create_exadb_vm_cluster_request request_pb + def self.transcode_list_goldengate_connections_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/exadbVmClusters", - body: "exadb_vm_cluster", + uri_method: :get, + uri_template: "/v1/{parent}/goldengateConnections", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -3257,19 +4667,19 @@ def self.transcode_create_exadb_vm_cluster_request request_pb ## # @private # - # GRPC transcoding helper method for the delete_exadb_vm_cluster REST call + # GRPC transcoding helper method for the get_goldengate_connection REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_delete_exadb_vm_cluster_request request_pb + def self.transcode_get_goldengate_connection_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :delete, + uri_method: :get, uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnections/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3278,20 +4688,20 @@ def self.transcode_delete_exadb_vm_cluster_request request_pb ## # @private # - # GRPC transcoding helper method for the update_exadb_vm_cluster REST call + # GRPC transcoding helper method for the create_goldengate_connection REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_update_exadb_vm_cluster_request request_pb + def self.transcode_create_goldengate_connection_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :patch, - uri_template: "/v1/{exadb_vm_cluster.name}", - body: "exadb_vm_cluster", + uri_method: :post, + uri_template: "/v1/{parent}/goldengateConnections", + body: "goldengate_connection", matches: [ - ["exadb_vm_cluster.name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3300,20 +4710,19 @@ def self.transcode_update_exadb_vm_cluster_request request_pb ## # @private # - # GRPC transcoding helper method for the remove_virtual_machine_exadb_vm_cluster REST call + # GRPC transcoding helper method for the delete_goldengate_connection REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_remove_virtual_machine_exadb_vm_cluster_request request_pb + def self.transcode_delete_goldengate_connection_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:removeVirtualMachine", - body: "*", + uri_method: :delete, + uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnections/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3322,19 +4731,19 @@ def self.transcode_remove_virtual_machine_exadb_vm_cluster_request request_pb ## # @private # - # GRPC transcoding helper method for the list_exascale_db_storage_vaults REST call + # GRPC transcoding helper method for the get_goldengate_deployment_version REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_exascale_db_storage_vaults_request request_pb + def self.transcode_get_goldengate_deployment_version_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/exascaleDbStorageVaults", + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentVersions/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3343,19 +4752,19 @@ def self.transcode_list_exascale_db_storage_vaults_request request_pb ## # @private # - # GRPC transcoding helper method for the get_exascale_db_storage_vault REST call + # GRPC transcoding helper method for the list_goldengate_deployment_versions REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_exascale_db_storage_vault_request request_pb + def self.transcode_list_goldengate_deployment_versions_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{name}", + uri_template: "/v1/{parent}/goldengateDeploymentVersions", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3364,20 +4773,19 @@ def self.transcode_get_exascale_db_storage_vault_request request_pb ## # @private # - # GRPC transcoding helper method for the create_exascale_db_storage_vault REST call + # GRPC transcoding helper method for the get_goldengate_deployment_type REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_create_exascale_db_storage_vault_request request_pb + def self.transcode_get_goldengate_deployment_type_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/exascaleDbStorageVaults", - body: "exascale_db_storage_vault", + uri_method: :get, + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentTypes/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3386,19 +4794,19 @@ def self.transcode_create_exascale_db_storage_vault_request request_pb ## # @private # - # GRPC transcoding helper method for the delete_exascale_db_storage_vault REST call + # GRPC transcoding helper method for the list_goldengate_deployment_types REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_delete_exascale_db_storage_vault_request request_pb + def self.transcode_list_goldengate_deployment_types_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", + uri_method: :get, + uri_template: "/v1/{parent}/goldengateDeploymentTypes", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3407,19 +4815,19 @@ def self.transcode_delete_exascale_db_storage_vault_request request_pb ## # @private # - # GRPC transcoding helper method for the list_db_system_initial_storage_sizes REST call + # GRPC transcoding helper method for the get_goldengate_deployment_environment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_db_system_initial_storage_sizes_request request_pb + def self.transcode_get_goldengate_deployment_environment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/dbSystemInitialStorageSizes", + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentEnvironments/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3428,17 +4836,17 @@ def self.transcode_list_db_system_initial_storage_sizes_request request_pb ## # @private # - # GRPC transcoding helper method for the list_databases REST call + # GRPC transcoding helper method for the list_goldengate_deployment_environments REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_databases_request request_pb + def self.transcode_list_goldengate_deployment_environments_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/databases", + uri_template: "/v1/{parent}/goldengateDeploymentEnvironments", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -3449,19 +4857,19 @@ def self.transcode_list_databases_request request_pb ## # @private # - # GRPC transcoding helper method for the get_database REST call + # GRPC transcoding helper method for the get_goldengate_connection_type REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_database_request request_pb + def self.transcode_get_goldengate_connection_type_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1/{name}", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/databases/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionTypes/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3470,17 +4878,17 @@ def self.transcode_get_database_request request_pb ## # @private # - # GRPC transcoding helper method for the list_pluggable_databases REST call + # GRPC transcoding helper method for the list_goldengate_connection_types REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_pluggable_databases_request request_pb + def self.transcode_list_goldengate_connection_types_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/pluggableDatabases", + uri_template: "/v1/{parent}/goldengateConnectionTypes", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -3491,19 +4899,19 @@ def self.transcode_list_pluggable_databases_request request_pb ## # @private # - # GRPC transcoding helper method for the get_pluggable_database REST call + # GRPC transcoding helper method for the list_db_versions REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_pluggable_database_request request_pb + def self.transcode_list_db_versions_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{name}", + uri_template: "/v1/{parent}/dbVersions", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/pluggableDatabases/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3512,17 +4920,17 @@ def self.transcode_get_pluggable_database_request request_pb ## # @private # - # GRPC transcoding helper method for the list_db_systems REST call + # GRPC transcoding helper method for the list_database_character_sets REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_db_systems_request request_pb + def self.transcode_list_database_character_sets_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{parent}/dbSystems", + uri_template: "/v1/{parent}/databaseCharacterSets", matches: [ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] @@ -3533,19 +4941,19 @@ def self.transcode_list_db_systems_request request_pb ## # @private # - # GRPC transcoding helper method for the get_db_system REST call + # GRPC transcoding helper method for the list_goldengate_connection_assignments REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_get_db_system_request request_pb + def self.transcode_list_goldengate_connection_assignments_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, - uri_template: "/v1/{name}", + uri_template: "/v1/{parent}/goldengateConnectionAssignments", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3554,20 +4962,19 @@ def self.transcode_get_db_system_request request_pb ## # @private # - # GRPC transcoding helper method for the create_db_system REST call + # GRPC transcoding helper method for the get_goldengate_connection_assignment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_create_db_system_request request_pb + def self.transcode_get_goldengate_connection_assignment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/dbSystems", - body: "db_system", + uri_method: :get, + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3576,19 +4983,20 @@ def self.transcode_create_db_system_request request_pb ## # @private # - # GRPC transcoding helper method for the delete_db_system REST call + # GRPC transcoding helper method for the create_goldengate_connection_assignment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_delete_db_system_request request_pb + def self.transcode_create_goldengate_connection_assignment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", + uri_method: :post, + uri_template: "/v1/{parent}/goldengateConnectionAssignments", + body: "goldengate_connection_assignment", matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false] + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3597,19 +5005,19 @@ def self.transcode_delete_db_system_request request_pb ## # @private # - # GRPC transcoding helper method for the list_db_versions REST call + # GRPC transcoding helper method for the delete_goldengate_connection_assignment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_db_versions_request request_pb + def self.transcode_delete_goldengate_connection_assignment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbVersions", + uri_method: :delete, + uri_template: "/v1/{name}", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] ] ) transcoder.transcode request_pb @@ -3618,19 +5026,20 @@ def self.transcode_list_db_versions_request request_pb ## # @private # - # GRPC transcoding helper method for the list_database_character_sets REST call + # GRPC transcoding helper method for the test_goldengate_connection_assignment REST call # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest] + # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters - def self.transcode_list_database_character_sets_request request_pb + def self.transcode_test_goldengate_connection_assignment_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/databaseCharacterSets", + uri_method: :post, + uri_template: "/v1/{name}:test", + body: "*", matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] ] ) transcoder.transcode request_pb diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb index 8d276965656b..fdfb23045856 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_pb.rb @@ -13,7 +13,7 @@ require 'google/type/timeofday_pb' -descriptor_data = "\n8google/cloud/oracledatabase/v1/autonomous_database.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xb2\x08\n\x12\x41utonomousDatabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x08\x64\x61tabase\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65ntitlement_id\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x61\x64min_password\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12U\n\nproperties\x18\x07 \x01(\x0b\x32<.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesB\x03\xe0\x41\x01\x12S\n\x06labels\x18\x08 \x03(\x0b\x32>.google.cloud.oracledatabase.v1.AutonomousDatabase.LabelsEntryB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\t \x01(\tB&\xe0\x41\x01\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x11\n\x04\x63idr\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0bodb_network\x18\x10 \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x11 \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12H\n\rsource_config\x18\x0b \x01(\x0b\x32,.google.cloud.oracledatabase.v1.SourceConfigB\x03\xe0\x41\x01\x12[\n\x19peer_autonomous_databases\x18\x0c \x03(\tB8\xe0\x41\x03\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12X\n%disaster_recovery_supported_locations\x18\x0f \x03(\tB)\xe0\x41\x03\xfa\x41#\n!locations.googleapis.com/Location\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xb2\x01\xea\x41\xae\x01\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Qprojects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}*\x13\x61utonomousDatabases2\x12\x61utonomousDatabase\"\x99\x01\n\x0cSourceConfig\x12U\n\x13\x61utonomous_database\x18\x01 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x32\n%automatic_backups_replication_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xc0\'\n\x1c\x41utonomousDatabaseProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcompute_count\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\x12\x1b\n\x0e\x63pu_core_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12!\n\x14\x64\x61ta_storage_size_gb\x18? \x01(\x05\x42\x03\xe0\x41\x01\x12\x44\n\x0b\x64\x62_workload\x18\x05 \x01(\x0e\x32*.google.cloud.oracledatabase.v1.DBWorkloadB\x03\xe0\x41\x02\x12\x65\n\ndb_edition\x18\x06 \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEditionB\x03\xe0\x41\x01\x12\x1a\n\rcharacter_set\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fn_character_set\x18\t \x01(\tB\x03\xe0\x41\x01\x12 \n\x13private_endpoint_ip\x18\n \x01(\tB\x03\xe0\x41\x01\x12#\n\x16private_endpoint_label\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ndb_version\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12$\n\x17is_auto_scaling_enabled\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12,\n\x1fis_storage_auto_scaling_enabled\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x0clicense_type\x18\x10 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseTypeB\x03\xe0\x41\x02\x12O\n\x11\x63ustomer_contacts\x18\x11 \x03(\x0b\x32/.google.cloud.oracledatabase.v1.CustomerContactB\x03\xe0\x41\x01\x12\x16\n\tsecret_id\x18\x12 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08vault_id\x18\x13 \x01(\tB\x03\xe0\x41\x01\x12|\n\x19maintenance_schedule_type\x18\x14 \x01(\x0e\x32T.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleTypeB\x03\xe0\x41\x01\x12%\n\x18mtls_connection_required\x18\" \x01(\x08\x42\x03\xe0\x41\x01\x12)\n\x1c\x62\x61\x63kup_retention_period_days\x18\x39 \x01(\x05\x42\x03\xe0\x41\x01\x12-\n actual_used_data_storage_size_tb\x18\x15 \x01(\x01\x42\x03\xe0\x41\x03\x12&\n\x19\x61llocated_storage_size_tb\x18\x16 \x01(\x01\x42\x03\xe0\x41\x03\x12Q\n\x0c\x61pex_details\x18\x17 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.AutonomousDatabaseApexB\x03\xe0\x41\x03\x12\x32\n are_primary_allowlisted_ips_used\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x11lifecycle_details\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x1a \x01(\x0e\x32%.google.cloud.oracledatabase.v1.StateB\x03\xe0\x41\x03\x12-\n autonomous_container_database_id\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12\'\n\x1a\x61vailable_upgrade_versions\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x64\n\x12\x63onnection_strings\x18\x1d \x01(\x0b\x32\x43.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsB\x03\xe0\x41\x03\x12^\n\x0f\x63onnection_urls\x18\x1e \x01(\x0b\x32@.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsB\x03\xe0\x41\x03\x12\x45\n\x1d\x66\x61iled_data_recovery_duration\x18\x1f \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1d\n\x10memory_table_gbs\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12(\n\x1bis_local_data_guard_enabled\x18! \x01(\x08\x42\x03\xe0\x41\x03\x12\x38\n+local_adg_auto_failover_max_data_loss_limit\x18# \x01(\x05\x42\x03\xe0\x41\x03\x12_\n\x10local_standby_db\x18$ \x01(\x0b\x32@.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryB\x03\xe0\x41\x03\x12/\n\"memory_per_oracle_compute_unit_gbs\x18% \x01(\x05\x42\x03\xe0\x41\x03\x12\x81\x01\n\x1clocal_disaster_recovery_type\x18& \x01(\x0e\x32V.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryTypeB\x03\xe0\x41\x03\x12h\n\x0f\x64\x61ta_safe_state\x18\' \x01(\x0e\x32J.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeStateB\x03\xe0\x41\x03\x12|\n\x19\x64\x61tabase_management_state\x18( \x01(\x0e\x32T.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementStateB\x03\xe0\x41\x03\x12]\n\topen_mode\x18) \x01(\x0e\x32\x45.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenModeB\x03\xe0\x41\x03\x12_\n\x19operations_insights_state\x18* \x01(\x0e\x32\x37.google.cloud.oracledatabase.v1.OperationsInsightsStateB\x03\xe0\x41\x03\x12\x18\n\x0bpeer_db_ids\x18+ \x03(\tB\x03\xe0\x41\x03\x12k\n\x10permission_level\x18, \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevelB\x03\xe0\x41\x03\x12\x1d\n\x10private_endpoint\x18- \x01(\tB\x03\xe0\x41\x03\x12k\n\x10refreshable_mode\x18. \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableModeB\x03\xe0\x41\x03\x12m\n\x11refreshable_state\x18/ \x01(\x0e\x32M.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableStateB\x03\xe0\x41\x03\x12T\n\x04role\x18\x30 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RoleB\x03\xe0\x41\x03\x12\x63\n\x1bscheduled_operation_details\x18@ \x03(\x0b\x32\x39.google.cloud.oracledatabase.v1.ScheduledOperationDetailsB\x03\xe0\x41\x03\x12\"\n\x15sql_web_developer_url\x18\x32 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17supported_clone_regions\x18\x33 \x03(\tB\x03\xe0\x41\x03\x12\'\n\x1aused_data_storage_size_tbs\x18\x35 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\x36 \x01(\tB\x03\xe0\x41\x03\x12/\n\"total_auto_backup_storage_size_gbs\x18; \x01(\x02\x42\x03\xe0\x41\x03\x12\x43\n\x1anext_long_term_backup_time\x18< \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x1c\x64\x61ta_guard_role_changed_time\x18= \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n#disaster_recovery_role_changed_time\x18> \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_begin_time\x18\x41 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\x42 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1c\n\x0f\x61llowlisted_ips\x18\x43 \x03(\tB\x03\xe0\x41\x01\x12J\n\x0e\x65ncryption_key\x18\x44 \x01(\x0b\x32-.google.cloud.oracledatabase.v1.EncryptionKeyB\x03\xe0\x41\x01\x12\x66\n\x1e\x65ncryption_key_history_entries\x18\x45 \x03(\x0b\x32\x39.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryB\x03\xe0\x41\x03\x12 \n\x13service_agent_email\x18\x46 \x01(\tB\x03\xe0\x41\x03\"a\n\x0f\x44\x61tabaseEdition\x12 \n\x1c\x44\x41TABASE_EDITION_UNSPECIFIED\x10\x00\x12\x14\n\x10STANDARD_EDITION\x10\x01\x12\x16\n\x12\x45NTERPRISE_EDITION\x10\x02\"]\n\x0bLicenseType\x12\x1c\n\x18LICENSE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\\\n\x17MaintenanceScheduleType\x12)\n%MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45\x41RLY\x10\x01\x12\x0b\n\x07REGULAR\x10\x02\"d\n\x19LocalDisasterRecoveryType\x12,\n(LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44G\x10\x01\x12\x10\n\x0c\x42\x41\x43KUP_BASED\x10\x02\"\x84\x01\n\rDataSafeState\x12\x1f\n\x1b\x44\x41TA_SAFE_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bREGISTERING\x10\x01\x12\x0e\n\nREGISTERED\x10\x02\x12\x11\n\rDEREGISTERING\x10\x03\x12\x12\n\x0eNOT_REGISTERED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"\xaa\x01\n\x17\x44\x61tabaseManagementState\x12)\n%DATABASE_MANAGEMENT_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06\"D\n\x08OpenMode\x12\x19\n\x15OPEN_MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\"U\n\x0fPermissionLevel\x12 \n\x1cPERMISSION_LEVEL_UNSPECIFIED\x10\x00\x12\x0e\n\nRESTRICTED\x10\x01\x12\x10\n\x0cUNRESTRICTED\x10\x02\"N\n\x0fRefreshableMode\x12 \n\x1cREFRESHABLE_MODE_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATIC\x10\x01\x12\n\n\x06MANUAL\x10\x02\"Y\n\x10RefreshableState\x12!\n\x1dREFRESHABLE_STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nREFRESHING\x10\x01\x12\x12\n\x0eNOT_REFRESHING\x10\x02\"s\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\x0b\n\x07STANDBY\x10\x02\x12\x14\n\x10\x44ISABLED_STANDBY\x10\x03\x12\x0f\n\x0b\x42\x41\x43KUP_COPY\x10\x04\x12\x14\n\x10SNAPSHOT_STANDBY\x10\x05\x42#\n!_are_primary_allowlisted_ips_used\"\xa1\x01\n\x19\x45ncryptionKeyHistoryEntry\x12J\n\x0e\x65ncryption_key\x18\x01 \x01(\x0b\x32-.google.cloud.oracledatabase.v1.EncryptionKeyB\x03\xe0\x41\x03\x12\x38\n\x0f\x61\x63tivation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xe8\x01\n\rEncryptionKey\x12M\n\x08provider\x18\x01 \x01(\x0e\x32\x36.google.cloud.oracledatabase.v1.EncryptionKey.ProviderB\x03\xe0\x41\x01\x12:\n\x07kms_key\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"L\n\x08Provider\x12\x18\n\x14PROVIDER_UNSPECIFIED\x10\x00\x12\x12\n\x0eGOOGLE_MANAGED\x10\x01\x12\x12\n\x0eORACLE_MANAGED\x10\x02\"N\n\x16\x41utonomousDatabaseApex\x12\x19\n\x0c\x61pex_version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cords_version\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xaa\x02\n#AutonomousDatabaseConnectionStrings\x12Y\n\x16\x61ll_connection_strings\x18\x01 \x01(\x0b\x32\x34.google.cloud.oracledatabase.v1.AllConnectionStringsB\x03\xe0\x41\x03\x12\x16\n\tdedicated\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04high\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03low\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06medium\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12V\n\x08profiles\x18\x06 \x03(\x0b\x32?.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileB\x03\xe0\x41\x03\"\xb2\t\n\x1f\x44\x61tabaseConnectionStringProfile\x12j\n\x0e\x63onsumer_group\x18\x01 \x01(\x0e\x32M.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroupB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x64\n\x0bhost_format\x18\x03 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormatB\x03\xe0\x41\x03\x12\x18\n\x0bis_regional\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12_\n\x08protocol\x18\x05 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ProtocolB\x03\xe0\x41\x03\x12\x66\n\x0csession_mode\x18\x06 \x01(\x0e\x32K.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionModeB\x03\xe0\x41\x03\x12h\n\rsyntax_format\x18\x07 \x01(\x0e\x32L.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormatB\x03\xe0\x41\x03\x12r\n\x12tls_authentication\x18\x08 \x01(\x0e\x32Q.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthenticationB\x03\xe0\x41\x03\x12\x12\n\x05value\x18\t \x01(\tB\x03\xe0\x41\x03\"d\n\rConsumerGroup\x12\x1e\n\x1a\x43ONSUMER_GROUP_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x07\n\x03LOW\x10\x03\x12\x06\n\x02TP\x10\x04\x12\x0c\n\x08TPURGENT\x10\x05\";\n\nHostFormat\x12\x1b\n\x17HOST_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46QDN\x10\x01\x12\x06\n\x02IP\x10\x02\"7\n\x08Protocol\x12\x18\n\x14PROTOCOL_UNSPECIFIED\x10\x00\x12\x07\n\x03TCP\x10\x01\x12\x08\n\x04TCPS\x10\x02\"E\n\x0bSessionMode\x12\x1c\n\x18SESSION_MODE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44IRECT\x10\x01\x12\x0c\n\x08INDIRECT\x10\x02\"Y\n\x0cSyntaxFormat\x12\x1d\n\x19SYNTAX_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04LONG\x10\x01\x12\r\n\tEZCONNECT\x10\x02\x12\x11\n\rEZCONNECTPLUS\x10\x03\"O\n\x11TLSAuthentication\x12\"\n\x1eTLS_AUTHENTICATION_UNSPECIFIED\x10\x00\x12\n\n\x06SERVER\x10\x01\x12\n\n\x06MUTUAL\x10\x02\"P\n\x14\x41llConnectionStrings\x12\x11\n\x04high\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03low\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06medium\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xad\x02\n AutonomousDatabaseConnectionUrls\x12\x15\n\x08\x61pex_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17\x64\x61tabase_transforms_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10graph_studio_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12*\n\x1dmachine_learning_notebook_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x31\n$machine_learning_user_management_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cmongo_db_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08ords_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsql_dev_web_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\"\xcd\x02\n AutonomousDatabaseStandbySummary\x12\x39\n\x11lag_time_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1e\n\x11lifecycle_details\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32%.google.cloud.oracledatabase.v1.StateB\x03\xe0\x41\x03\x12\x45\n\x1c\x64\x61ta_guard_role_changed_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n#disaster_recovery_role_changed_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xae\x01\n\x19ScheduledOperationDetails\x12\x30\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x03\x12/\n\nstart_time\x18\x04 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x03\x12.\n\tstop_time\x18\x05 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x03*B\n\x0cGenerateType\x12\x1d\n\x19GENERATE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\n\n\x06SINGLE\x10\x02*\xab\x03\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08STOPPING\x10\x03\x12\x0b\n\x07STOPPED\x10\x04\x12\x0c\n\x08STARTING\x10\x05\x12\x0f\n\x0bTERMINATING\x10\x06\x12\x0e\n\nTERMINATED\x10\x07\x12\x0f\n\x0bUNAVAILABLE\x10\x08\x12\x17\n\x13RESTORE_IN_PROGRESS\x10\t\x12\x12\n\x0eRESTORE_FAILED\x10\n\x12\x16\n\x12\x42\x41\x43KUP_IN_PROGRESS\x10\x0b\x12\x15\n\x11SCALE_IN_PROGRESS\x10\x0c\x12\x1d\n\x19\x41VAILABLE_NEEDS_ATTENTION\x10\r\x12\x0c\n\x08UPDATING\x10\x0e\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x0f\x12\x0e\n\nRESTARTING\x10\x10\x12\x0e\n\nRECREATING\x10\x11\x12\x1b\n\x17ROLE_CHANGE_IN_PROGRESS\x10\x12\x12\r\n\tUPGRADING\x10\x13\x12\x10\n\x0cINACCESSIBLE\x10\x14\x12\x0b\n\x07STANDBY\x10\x15*\xaa\x01\n\x17OperationsInsightsState\x12)\n%OPERATIONS_INSIGHTS_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06*N\n\nDBWorkload\x12\x1b\n\x17\x44\x42_WORKLOAD_UNSPECIFIED\x10\x00\x12\x08\n\x04OLTP\x10\x01\x12\x06\n\x02\x44W\x10\x02\x12\x07\n\x03\x41JD\x10\x03\x12\x08\n\x04\x41PEX\x10\x04\x42\xf1\x01\n\"com.google.cloud.oracledatabase.v1B\x17\x41utonomousDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" +descriptor_data = "\n8google/cloud/oracledatabase/v1/autonomous_database.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x1bgoogle/type/timeofday.proto\"\xa8\t\n\x12\x41utonomousDatabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x08\x64\x61tabase\x18\x02 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1c\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1b\n\x0e\x65ntitlement_id\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x0e\x61\x64min_password\x18\x06 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\\\n\x1d\x61\x64min_password_secret_version\x18\x12 \x01(\tB5\xe0\x41\x01\xe0\x41\x05\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12U\n\nproperties\x18\x07 \x01(\x0b\x32<.google.cloud.oracledatabase.v1.AutonomousDatabasePropertiesB\x03\xe0\x41\x01\x12S\n\x06labels\x18\x08 \x03(\x0b\x32>.google.cloud.oracledatabase.v1.AutonomousDatabase.LabelsEntryB\x03\xe0\x41\x01\x12:\n\x07network\x18\t \x01(\tB)\xe0\x41\x01\xe0\x41\x05\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x14\n\x04\x63idr\x18\n \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12H\n\x0bodb_network\x18\x10 \x01(\tB3\xe0\x41\x01\xe0\x41\x05\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x46\n\nodb_subnet\x18\x11 \x01(\tB2\xe0\x41\x01\xe0\x41\x05\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12K\n\rsource_config\x18\x0b \x01(\x0b\x32,.google.cloud.oracledatabase.v1.SourceConfigB\x06\xe0\x41\x01\xe0\x41\x05\x12[\n\x19peer_autonomous_databases\x18\x0c \x03(\tB8\xe0\x41\x03\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12X\n%disaster_recovery_supported_locations\x18\x0f \x03(\tB)\xe0\x41\x03\xfa\x41#\n!locations.googleapis.com/Location\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xb2\x01\xea\x41\xae\x01\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Qprojects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}*\x13\x61utonomousDatabases2\x12\x61utonomousDatabase\"\x99\x01\n\x0cSourceConfig\x12U\n\x13\x61utonomous_database\x18\x01 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x32\n%automatic_backups_replication_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe0)\n\x1c\x41utonomousDatabaseProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\rcompute_count\x18\x02 \x01(\x02\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x1e\n\x0e\x63pu_core_count\x18\x03 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12$\n\x14\x64\x61ta_storage_size_tb\x18\x04 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12$\n\x14\x64\x61ta_storage_size_gb\x18? \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12G\n\x0b\x64\x62_workload\x18\x05 \x01(\x0e\x32*.google.cloud.oracledatabase.v1.DBWorkloadB\x06\xe0\x41\x02\xe0\x41\x05\x12h\n\ndb_edition\x18\x06 \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEditionB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1d\n\rcharacter_set\x18\x08 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1f\n\x0fn_character_set\x18\t \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12#\n\x13private_endpoint_ip\x18\n \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12&\n\x16private_endpoint_label\x18\x0b \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1a\n\ndb_version\x18\x0c \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\'\n\x17is_auto_scaling_enabled\x18\x0e \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12/\n\x1fis_storage_auto_scaling_enabled\x18\x0f \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x66\n\x0clicense_type\x18\x10 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12R\n\x11\x63ustomer_contacts\x18\x11 \x03(\x0b\x32/.google.cloud.oracledatabase.v1.CustomerContactB\x06\xe0\x41\x01\xe0\x41\x05\x12\x19\n\tsecret_id\x18\x12 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x18\n\x08vault_id\x18\x13 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x7f\n\x19maintenance_schedule_type\x18\x14 \x01(\x0e\x32T.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleTypeB\x06\xe0\x41\x01\xe0\x41\x05\x12(\n\x18mtls_connection_required\x18\" \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12,\n\x1c\x62\x61\x63kup_retention_period_days\x18\x39 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12-\n actual_used_data_storage_size_tb\x18\x15 \x01(\x01\x42\x03\xe0\x41\x03\x12&\n\x19\x61llocated_storage_size_tb\x18\x16 \x01(\x01\x42\x03\xe0\x41\x03\x12Q\n\x0c\x61pex_details\x18\x17 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.AutonomousDatabaseApexB\x03\xe0\x41\x03\x12\x32\n are_primary_allowlisted_ips_used\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x11lifecycle_details\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x1a \x01(\x0e\x32%.google.cloud.oracledatabase.v1.StateB\x03\xe0\x41\x03\x12-\n autonomous_container_database_id\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12\'\n\x1a\x61vailable_upgrade_versions\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x64\n\x12\x63onnection_strings\x18\x1d \x01(\x0b\x32\x43.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsB\x03\xe0\x41\x03\x12^\n\x0f\x63onnection_urls\x18\x1e \x01(\x0b\x32@.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsB\x03\xe0\x41\x03\x12\x45\n\x1d\x66\x61iled_data_recovery_duration\x18\x1f \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1d\n\x10memory_table_gbs\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12*\n\x1bis_local_data_guard_enabled\x18! \x01(\x08\x42\x05\x18\x01\xe0\x41\x03\x12:\n+local_adg_auto_failover_max_data_loss_limit\x18# \x01(\x05\x42\x05\x18\x01\xe0\x41\x03\x12_\n\x10local_standby_db\x18$ \x01(\x0b\x32@.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryB\x03\xe0\x41\x03\x12/\n\"memory_per_oracle_compute_unit_gbs\x18% \x01(\x05\x42\x03\xe0\x41\x03\x12\x81\x01\n\x1clocal_disaster_recovery_type\x18& \x01(\x0e\x32V.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryTypeB\x03\xe0\x41\x03\x12h\n\x0f\x64\x61ta_safe_state\x18\' \x01(\x0e\x32J.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeStateB\x03\xe0\x41\x03\x12|\n\x19\x64\x61tabase_management_state\x18( \x01(\x0e\x32T.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementStateB\x03\xe0\x41\x03\x12]\n\topen_mode\x18) \x01(\x0e\x32\x45.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenModeB\x03\xe0\x41\x03\x12_\n\x19operations_insights_state\x18* \x01(\x0e\x32\x37.google.cloud.oracledatabase.v1.OperationsInsightsStateB\x03\xe0\x41\x03\x12\x18\n\x0bpeer_db_ids\x18+ \x03(\tB\x03\xe0\x41\x03\x12k\n\x10permission_level\x18, \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevelB\x03\xe0\x41\x03\x12\x1d\n\x10private_endpoint\x18- \x01(\tB\x03\xe0\x41\x03\x12k\n\x10refreshable_mode\x18. \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableModeB\x03\xe0\x41\x03\x12m\n\x11refreshable_state\x18/ \x01(\x0e\x32M.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableStateB\x03\xe0\x41\x03\x12T\n\x04role\x18\x30 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RoleB\x03\xe0\x41\x03\x12\x63\n\x1bscheduled_operation_details\x18@ \x03(\x0b\x32\x39.google.cloud.oracledatabase.v1.ScheduledOperationDetailsB\x03\xe0\x41\x03\x12\"\n\x15sql_web_developer_url\x18\x32 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17supported_clone_regions\x18\x33 \x03(\tB\x03\xe0\x41\x03\x12\'\n\x1aused_data_storage_size_tbs\x18\x35 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\x36 \x01(\tB\x03\xe0\x41\x03\x12/\n\"total_auto_backup_storage_size_gbs\x18; \x01(\x02\x42\x03\xe0\x41\x03\x12\x43\n\x1anext_long_term_backup_time\x18< \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x1c\x64\x61ta_guard_role_changed_time\x18= \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n#disaster_recovery_role_changed_time\x18> \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_begin_time\x18\x41 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\x42 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\x0f\x61llowlisted_ips\x18\x43 \x03(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12J\n\x0e\x65ncryption_key\x18\x44 \x01(\x0b\x32-.google.cloud.oracledatabase.v1.EncryptionKeyB\x03\xe0\x41\x01\x12\x66\n\x1e\x65ncryption_key_history_entries\x18\x45 \x03(\x0b\x32\x39.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryB\x03\xe0\x41\x03\x12 \n\x13service_agent_email\x18\x46 \x01(\tB\x03\xe0\x41\x03\x12*\n\x18local_data_guard_enabled\x18G \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x46\n4local_adg_auto_failover_max_data_loss_limit_duration\x18H \x01(\x05\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\"a\n\x0f\x44\x61tabaseEdition\x12 \n\x1c\x44\x41TABASE_EDITION_UNSPECIFIED\x10\x00\x12\x14\n\x10STANDARD_EDITION\x10\x01\x12\x16\n\x12\x45NTERPRISE_EDITION\x10\x02\"]\n\x0bLicenseType\x12\x1c\n\x18LICENSE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\\\n\x17MaintenanceScheduleType\x12)\n%MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45\x41RLY\x10\x01\x12\x0b\n\x07REGULAR\x10\x02\"w\n\x19LocalDisasterRecoveryType\x12,\n(LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44G\x10\x01\x12\x10\n\x0c\x42\x41\x43KUP_BASED\x10\x02\x12\x11\n\rNOT_AVAILABLE\x10\x03\"\x84\x01\n\rDataSafeState\x12\x1f\n\x1b\x44\x41TA_SAFE_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bREGISTERING\x10\x01\x12\x0e\n\nREGISTERED\x10\x02\x12\x11\n\rDEREGISTERING\x10\x03\x12\x12\n\x0eNOT_REGISTERED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"\xaa\x01\n\x17\x44\x61tabaseManagementState\x12)\n%DATABASE_MANAGEMENT_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06\"D\n\x08OpenMode\x12\x19\n\x15OPEN_MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\"U\n\x0fPermissionLevel\x12 \n\x1cPERMISSION_LEVEL_UNSPECIFIED\x10\x00\x12\x0e\n\nRESTRICTED\x10\x01\x12\x10\n\x0cUNRESTRICTED\x10\x02\"N\n\x0fRefreshableMode\x12 \n\x1cREFRESHABLE_MODE_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATIC\x10\x01\x12\n\n\x06MANUAL\x10\x02\"Y\n\x10RefreshableState\x12!\n\x1dREFRESHABLE_STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nREFRESHING\x10\x01\x12\x12\n\x0eNOT_REFRESHING\x10\x02\"s\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\x0b\n\x07STANDBY\x10\x02\x12\x14\n\x10\x44ISABLED_STANDBY\x10\x03\x12\x0f\n\x0b\x42\x41\x43KUP_COPY\x10\x04\x12\x14\n\x10SNAPSHOT_STANDBY\x10\x05\x42#\n!_are_primary_allowlisted_ips_usedB\x1b\n\x19_local_data_guard_enabledB7\n5_local_adg_auto_failover_max_data_loss_limit_duration\"\xa1\x01\n\x19\x45ncryptionKeyHistoryEntry\x12J\n\x0e\x65ncryption_key\x18\x01 \x01(\x0b\x32-.google.cloud.oracledatabase.v1.EncryptionKeyB\x03\xe0\x41\x03\x12\x38\n\x0f\x61\x63tivation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xe8\x01\n\rEncryptionKey\x12M\n\x08provider\x18\x01 \x01(\x0e\x32\x36.google.cloud.oracledatabase.v1.EncryptionKey.ProviderB\x03\xe0\x41\x01\x12:\n\x07kms_key\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"L\n\x08Provider\x12\x18\n\x14PROVIDER_UNSPECIFIED\x10\x00\x12\x12\n\x0eGOOGLE_MANAGED\x10\x01\x12\x12\n\x0eORACLE_MANAGED\x10\x02\"N\n\x16\x41utonomousDatabaseApex\x12\x19\n\x0c\x61pex_version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cords_version\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xaa\x02\n#AutonomousDatabaseConnectionStrings\x12Y\n\x16\x61ll_connection_strings\x18\x01 \x01(\x0b\x32\x34.google.cloud.oracledatabase.v1.AllConnectionStringsB\x03\xe0\x41\x03\x12\x16\n\tdedicated\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04high\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03low\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06medium\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12V\n\x08profiles\x18\x06 \x03(\x0b\x32?.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileB\x03\xe0\x41\x03\"\xb2\t\n\x1f\x44\x61tabaseConnectionStringProfile\x12j\n\x0e\x63onsumer_group\x18\x01 \x01(\x0e\x32M.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroupB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x64\n\x0bhost_format\x18\x03 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormatB\x03\xe0\x41\x03\x12\x18\n\x0bis_regional\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12_\n\x08protocol\x18\x05 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ProtocolB\x03\xe0\x41\x03\x12\x66\n\x0csession_mode\x18\x06 \x01(\x0e\x32K.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionModeB\x03\xe0\x41\x03\x12h\n\rsyntax_format\x18\x07 \x01(\x0e\x32L.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormatB\x03\xe0\x41\x03\x12r\n\x12tls_authentication\x18\x08 \x01(\x0e\x32Q.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthenticationB\x03\xe0\x41\x03\x12\x12\n\x05value\x18\t \x01(\tB\x03\xe0\x41\x03\"d\n\rConsumerGroup\x12\x1e\n\x1a\x43ONSUMER_GROUP_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x07\n\x03LOW\x10\x03\x12\x06\n\x02TP\x10\x04\x12\x0c\n\x08TPURGENT\x10\x05\";\n\nHostFormat\x12\x1b\n\x17HOST_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46QDN\x10\x01\x12\x06\n\x02IP\x10\x02\"7\n\x08Protocol\x12\x18\n\x14PROTOCOL_UNSPECIFIED\x10\x00\x12\x07\n\x03TCP\x10\x01\x12\x08\n\x04TCPS\x10\x02\"E\n\x0bSessionMode\x12\x1c\n\x18SESSION_MODE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44IRECT\x10\x01\x12\x0c\n\x08INDIRECT\x10\x02\"Y\n\x0cSyntaxFormat\x12\x1d\n\x19SYNTAX_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04LONG\x10\x01\x12\r\n\tEZCONNECT\x10\x02\x12\x11\n\rEZCONNECTPLUS\x10\x03\"O\n\x11TLSAuthentication\x12\"\n\x1eTLS_AUTHENTICATION_UNSPECIFIED\x10\x00\x12\n\n\x06SERVER\x10\x01\x12\n\n\x06MUTUAL\x10\x02\"P\n\x14\x41llConnectionStrings\x12\x11\n\x04high\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03low\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06medium\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xad\x02\n AutonomousDatabaseConnectionUrls\x12\x15\n\x08\x61pex_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17\x64\x61tabase_transforms_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10graph_studio_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12*\n\x1dmachine_learning_notebook_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x31\n$machine_learning_user_management_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cmongo_db_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08ords_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsql_dev_web_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\"\xcd\x02\n AutonomousDatabaseStandbySummary\x12\x39\n\x11lag_time_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1e\n\x11lifecycle_details\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32%.google.cloud.oracledatabase.v1.StateB\x03\xe0\x41\x03\x12\x45\n\x1c\x64\x61ta_guard_role_changed_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n#disaster_recovery_role_changed_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xae\x01\n\x19ScheduledOperationDetails\x12\x30\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x03\x12/\n\nstart_time\x18\x04 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x03\x12.\n\tstop_time\x18\x05 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x03*B\n\x0cGenerateType\x12\x1d\n\x19GENERATE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\n\n\x06SINGLE\x10\x02*\xab\x03\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08STOPPING\x10\x03\x12\x0b\n\x07STOPPED\x10\x04\x12\x0c\n\x08STARTING\x10\x05\x12\x0f\n\x0bTERMINATING\x10\x06\x12\x0e\n\nTERMINATED\x10\x07\x12\x0f\n\x0bUNAVAILABLE\x10\x08\x12\x17\n\x13RESTORE_IN_PROGRESS\x10\t\x12\x12\n\x0eRESTORE_FAILED\x10\n\x12\x16\n\x12\x42\x41\x43KUP_IN_PROGRESS\x10\x0b\x12\x15\n\x11SCALE_IN_PROGRESS\x10\x0c\x12\x1d\n\x19\x41VAILABLE_NEEDS_ATTENTION\x10\r\x12\x0c\n\x08UPDATING\x10\x0e\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x0f\x12\x0e\n\nRESTARTING\x10\x10\x12\x0e\n\nRECREATING\x10\x11\x12\x1b\n\x17ROLE_CHANGE_IN_PROGRESS\x10\x12\x12\r\n\tUPGRADING\x10\x13\x12\x10\n\x0cINACCESSIBLE\x10\x14\x12\x0b\n\x07STANDBY\x10\x15*\xaa\x01\n\x17OperationsInsightsState\x12)\n%OPERATIONS_INSIGHTS_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06*N\n\nDBWorkload\x12\x1b\n\x17\x44\x42_WORKLOAD_UNSPECIFIED\x10\x00\x12\x08\n\x04OLTP\x10\x01\x12\x06\n\x02\x44W\x10\x02\x12\x07\n\x03\x41JD\x10\x03\x12\x08\n\x04\x41PEX\x10\x04\x42\xf1\x01\n\"com.google.cloud.oracledatabase.v1B\x17\x41utonomousDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb index 25095ed86795..fd06468cdb9f 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb @@ -11,7 +11,7 @@ require 'google/type/dayofweek_pb' -descriptor_data = "\n-google/cloud/oracledatabase/v1/database.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x37google/cloud/oracledatabase/v1/pluggable_database.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\"\xc8\x06\n\x08\x44\x61tabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07\x64\x62_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x62_unique_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x61\x64min_password\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13tde_wallet_password\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rcharacter_set\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0encharacter_set\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07oci_url\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\nproperties\x18\n \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DatabasePropertiesB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x61tabase_id\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64\x62_home_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x13ops_insights_status\x18\x0e \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatusB\x03\xe0\x41\x03\"\xac\x01\n\x18OperationsInsightsStatus\x12*\n&OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06:~\xea\x41{\n&oracledatabase.googleapis.com/Database\x12\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/Database\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"m\n\x15ListDatabasesResponse\x12;\n\tdatabases\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.Database\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" +descriptor_data = "\n-google/cloud/oracledatabase/v1/database.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x37google/cloud/oracledatabase/v1/pluggable_database.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\"\xcd\x08\n\x08\x44\x61tabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07\x64\x62_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x62_unique_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x61\x64min_password\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x1d\x61\x64min_password_secret_version\x18\x11 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12 \n\x13tde_wallet_password\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12^\n\"tde_wallet_password_secret_version\x18\x12 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1a\n\rcharacter_set\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0encharacter_set\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07oci_url\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\nproperties\x18\n \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DatabasePropertiesB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x61tabase_id\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64\x62_home_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x13ops_insights_status\x18\x0e \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatusB\x03\xe0\x41\x03\x12\"\n\x15pluggable_database_id\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12$\n\x17pluggable_database_name\x18\x10 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n\x18OperationsInsightsStatus\x12*\n&OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06:~\xea\x41{\n&oracledatabase.googleapis.com/Database\x12\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/Database\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"m\n\x15ListDatabasesResponse\x12;\n\tdatabases\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.Database\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb index e380fe26f8dd..41caf3c91bbc 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb @@ -12,7 +12,7 @@ require 'google/type/datetime_pb' -descriptor_data = "\n.google/cloud/oracledatabase/v1/db_system.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/oracledatabase/v1/database.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x93\x05\n\x08\x44\x62System\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12K\n\nproperties\x18\x02 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DbSystemPropertiesB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.DbSystem.LabelsEntryB\x03\xe0\x41\x01\x12\x45\n\x0bodb_network\x18\x05 \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x06 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1b\n\x0e\x65ntitlement_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n&oracledatabase.googleapis.com/DbSystem\x12=projects/{project}/locations/{location}/dbSystems/{db_system}*\tdbSystems2\x08\x64\x62System\"\xe4\x0c\n\x12\x44\x62SystemProperties\x12\x12\n\x05shape\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcompute_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12)\n\x1cinitial_data_storage_size_gb\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12i\n\x10\x64\x61tabase_edition\x18\x04 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEditionB\x03\xe0\x41\x02\x12[\n\rlicense_model\x18\x05 \x01(\x0e\x32?.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModelB\x03\xe0\x41\x02\x12\x1c\n\x0fssh_public_keys\x18\x06 \x03(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fhostname_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08hostname\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nprivate_ip\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x17\x64\x61ta_collection_options\x18\n \x01(\x0b\x32=.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x0b \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\x12g\n\x0flifecycle_state\x18\x0c \x01(\x0e\x32I.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleStateB\x03\xe0\x41\x03\x12<\n\x07\x64\x62_home\x18\r \x01(\x0b\x32&.google.cloud.oracledatabase.v1.DbHomeB\x03\xe0\x41\x01\x12\x11\n\x04ocid\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0ememory_size_gb\x18\x0f \x01(\x05\x42\x03\xe0\x41\x01\x12[\n\rcompute_model\x18\x10 \x01(\x0e\x32?.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModelB\x03\xe0\x41\x01\x12!\n\x14\x64\x61ta_storage_size_gb\x18\x11 \x01(\x05\x42\x03\xe0\x41\x01\x12!\n\x14reco_storage_size_gb\x18\x12 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x64omain\x18\x13 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x01\x12O\n\x11\x64\x62_system_options\x18\x15 \x01(\x0b\x32/.google.cloud.oracledatabase.v1.DbSystemOptionsB\x03\xe0\x41\x01\"\x9c\x01\n\x17\x44\x62SystemDatabaseEdition\x12*\n&DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED\x10\x00\x12\x14\n\x10STANDARD_EDITION\x10\x01\x12\x16\n\x12\x45NTERPRISE_EDITION\x10\x02\x12\'\n#ENTERPRISE_EDITION_HIGH_PERFORMANCE\x10\x03\"_\n\x0cLicenseModel\x12\x1d\n\x19LICENSE_MODEL_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\xee\x01\n\x16\x44\x62SystemLifecycleState\x12)\n%DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08MIGRATED\x10\x07\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x08\x12\x13\n\x0fNEEDS_ATTENTION\x10\t\x12\r\n\tUPGRADING\x10\n\"A\n\x0c\x43omputeModel\x12\x1d\n\x19\x43OMPUTE_MODEL_UNSPECIFIED\x10\x00\x12\x08\n\x04\x45\x43PU\x10\x01\x12\x08\n\x04OCPU\x10\x02\"r\n\x1d\x44\x61taCollectionOptionsDbSystem\x12*\n\x1dis_diagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12%\n\x18is_incident_logs_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xc0\x01\n\x0f\x44\x62SystemOptions\x12\x62\n\x12storage_management\x18\x01 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagementB\x03\xe0\x41\x01\"I\n\x11StorageManagement\x12\"\n\x1eSTORAGE_MANAGEMENT_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41SM\x10\x01\x12\x07\n\x03LVM\x10\x02\"\xa7\x01\n\x06\x44\x62Home\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ndb_version\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08\x64\x61tabase\x18\x03 \x01(\x0b\x32(.google.cloud.oracledatabase.v1.DatabaseB\x03\xe0\x41\x02\x12(\n\x1bis_unified_auditing_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xd5\x01\n\x15\x43reateDbSystemRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbSystem\x12\x19\n\x0c\x64\x62_system_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\tdb_system\x18\x03 \x01(\x0b\x32(.google.cloud.oracledatabase.v1.DbSystemB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"v\n\x15\x44\x65leteDbSystemRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&oracledatabase.googleapis.com/DbSystem\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"R\n\x12GetDbSystemRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&oracledatabase.googleapis.com/DbSystem\"\xb3\x01\n\x14ListDbSystemsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbSystem\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListDbSystemsResponse\x12<\n\ndb_systems\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.DbSystem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDbSystemProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" +descriptor_data = "\n.google/cloud/oracledatabase/v1/db_system.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/oracledatabase/v1/database.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x93\x05\n\x08\x44\x62System\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12K\n\nproperties\x18\x02 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DbSystemPropertiesB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.DbSystem.LabelsEntryB\x03\xe0\x41\x01\x12\x45\n\x0bodb_network\x18\x05 \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x06 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1b\n\x0e\x65ntitlement_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n&oracledatabase.googleapis.com/DbSystem\x12=projects/{project}/locations/{location}/dbSystems/{db_system}*\tdbSystems2\x08\x64\x62System\"\xe4\x0c\n\x12\x44\x62SystemProperties\x12\x12\n\x05shape\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcompute_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12)\n\x1cinitial_data_storage_size_gb\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12i\n\x10\x64\x61tabase_edition\x18\x04 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEditionB\x03\xe0\x41\x02\x12[\n\rlicense_model\x18\x05 \x01(\x0e\x32?.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModelB\x03\xe0\x41\x02\x12\x1c\n\x0fssh_public_keys\x18\x06 \x03(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fhostname_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08hostname\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nprivate_ip\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x17\x64\x61ta_collection_options\x18\n \x01(\x0b\x32=.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x0b \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\x12g\n\x0flifecycle_state\x18\x0c \x01(\x0e\x32I.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleStateB\x03\xe0\x41\x03\x12<\n\x07\x64\x62_home\x18\r \x01(\x0b\x32&.google.cloud.oracledatabase.v1.DbHomeB\x03\xe0\x41\x01\x12\x11\n\x04ocid\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0ememory_size_gb\x18\x0f \x01(\x05\x42\x03\xe0\x41\x01\x12[\n\rcompute_model\x18\x10 \x01(\x0e\x32?.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModelB\x03\xe0\x41\x01\x12!\n\x14\x64\x61ta_storage_size_gb\x18\x11 \x01(\x05\x42\x03\xe0\x41\x01\x12!\n\x14reco_storage_size_gb\x18\x12 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x64omain\x18\x13 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x01\x12O\n\x11\x64\x62_system_options\x18\x15 \x01(\x0b\x32/.google.cloud.oracledatabase.v1.DbSystemOptionsB\x03\xe0\x41\x01\"\x9c\x01\n\x17\x44\x62SystemDatabaseEdition\x12*\n&DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED\x10\x00\x12\x14\n\x10STANDARD_EDITION\x10\x01\x12\x16\n\x12\x45NTERPRISE_EDITION\x10\x02\x12\'\n#ENTERPRISE_EDITION_HIGH_PERFORMANCE\x10\x03\"_\n\x0cLicenseModel\x12\x1d\n\x19LICENSE_MODEL_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\xee\x01\n\x16\x44\x62SystemLifecycleState\x12)\n%DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08MIGRATED\x10\x07\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x08\x12\x13\n\x0fNEEDS_ATTENTION\x10\t\x12\r\n\tUPGRADING\x10\n\"A\n\x0c\x43omputeModel\x12\x1d\n\x19\x43OMPUTE_MODEL_UNSPECIFIED\x10\x00\x12\x08\n\x04\x45\x43PU\x10\x01\x12\x08\n\x04OCPU\x10\x02\"r\n\x1d\x44\x61taCollectionOptionsDbSystem\x12*\n\x1dis_diagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12%\n\x18is_incident_logs_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xc0\x01\n\x0f\x44\x62SystemOptions\x12\x62\n\x12storage_management\x18\x01 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagementB\x03\xe0\x41\x01\"I\n\x11StorageManagement\x12\"\n\x1eSTORAGE_MANAGEMENT_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41SM\x10\x01\x12\x07\n\x03LVM\x10\x02\"\xa7\x01\n\x06\x44\x62Home\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ndb_version\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08\x64\x61tabase\x18\x03 \x01(\x0b\x32(.google.cloud.oracledatabase.v1.DatabaseB\x03\xe0\x41\x02\x12(\n\x1bis_unified_auditing_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xd5\x01\n\x15\x43reateDbSystemRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbSystem\x12\x19\n\x0c\x64\x62_system_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\tdb_system\x18\x03 \x01(\x0b\x32(.google.cloud.oracledatabase.v1.DbSystemB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"v\n\x15\x44\x65leteDbSystemRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&oracledatabase.googleapis.com/DbSystem\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"R\n\x12GetDbSystemRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&oracledatabase.googleapis.com/DbSystem\"\xb3\x01\n\x14ListDbSystemsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbSystem\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x15ListDbSystemsResponse\x12<\n\ndb_systems\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.DbSystem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\tB\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDbSystemProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb index e295a7572c7d..e5f761003eed 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb @@ -5,6 +5,7 @@ require 'google/protobuf' require 'google/api/field_behavior_pb' +require 'google/api/field_info_pb' require 'google/api/resource_pb' require 'google/cloud/oracledatabase/v1/common_pb' require 'google/protobuf/timestamp_pb' @@ -12,7 +13,7 @@ require 'google/type/month_pb' -descriptor_data = "\n2google/cloud/oracledatabase/v1/exadata_infra.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x17google/type/month.proto\"\x84\x05\n\x1a\x43loudExadataInfrastructure\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65ntitlement_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12]\n\nproperties\x18\x05 \x01(\x0b\x32\x44.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesB\x03\xe0\x41\x01\x12[\n\x06labels\x18\x06 \x03(\x0b\x32\x46.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xdb\x01\xea\x41\xd7\x01\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x62projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}*\x1b\x63loudExadataInfrastructures2\x1a\x63loudExadataInfrastructure\"\xb5\x0b\n$CloudExadataInfrastructureProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcompute_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1a\n\rstorage_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x15total_storage_size_gb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19\x61vailable_storage_size_gb\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12R\n\x12maintenance_window\x18\x06 \x01(\x0b\x32\x31.google.cloud.oracledatabase.v1.MaintenanceWindowB\x03\xe0\x41\x01\x12^\n\x05state\x18\x07 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.StateB\x03\xe0\x41\x03\x12\x12\n\x05shape\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07oci_url\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tcpu_count\x18\n \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_cpu_count\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12\x1b\n\x0ememory_size_gb\x18\x0c \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_memory_gb\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12$\n\x17\x64\x62_node_storage_size_gb\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12(\n\x1bmax_db_node_storage_size_gb\x18\x0f \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x10 \x01(\x01\x42\x03\xe0\x41\x03\x12 \n\x13max_data_storage_tb\x18\x11 \x01(\x01\x42\x03\xe0\x41\x03\x12$\n\x17\x61\x63tivated_storage_count\x18\x12 \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18\x61\x64\x64itional_storage_count\x18\x13 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1e\n\x11\x64\x62_server_version\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16storage_server_version\x18\x15 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17next_maintenance_run_id\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x19next_maintenance_run_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\"next_security_maintenance_run_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x11\x63ustomer_contacts\x18\x19 \x03(\x0b\x32/.google.cloud.oracledatabase.v1.CustomerContactB\x03\xe0\x41\x01\x12+\n\x1emonthly_storage_server_version\x18\x1a \x01(\tB\x03\xe0\x41\x03\x12&\n\x19monthly_db_server_version\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12H\n\rcompute_model\x18\x1f \x01(\x0e\x32,.google.cloud.oracledatabase.v1.ComputeModelB\x03\xe0\x41\x03\x12!\n\x14\x64\x61tabase_server_type\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12 \n\x13storage_server_type\x18\x1e \x01(\tB\x03\xe0\x41\x03\"\x97\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"\xa5\x05\n\x11MaintenanceWindow\x12\x66\n\npreference\x18\x01 \x01(\x0e\x32M.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreferenceB\x03\xe0\x41\x01\x12\'\n\x06months\x18\x02 \x03(\x0e\x32\x12.google.type.MonthB\x03\xe0\x41\x01\x12\x1b\n\x0eweeks_of_month\x18\x03 \x03(\x05\x42\x03\xe0\x41\x01\x12\x31\n\x0c\x64\x61ys_of_week\x18\x04 \x03(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x12\x19\n\x0chours_of_day\x18\x05 \x03(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0elead_time_week\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12Z\n\rpatching_mode\x18\x07 \x01(\x0e\x32>.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingModeB\x03\xe0\x41\x01\x12\'\n\x1a\x63ustom_action_timeout_mins\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12-\n is_custom_action_timeout_enabled\x18\t \x01(\x08\x42\x03\xe0\x41\x01\"v\n\x1bMaintenanceWindowPreference\x12-\n)MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43USTOM_PREFERENCE\x10\x01\x12\x11\n\rNO_PREFERENCE\x10\x02\"K\n\x0cPatchingMode\x12\x1d\n\x19PATCHING_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07ROLLING\x10\x01\x12\x0f\n\x0bNON_ROLLING\x10\x02\x42\xf9\x01\n\"com.google.cloud.oracledatabase.v1B\x1f\x43loudExadataInfrastructureProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" +descriptor_data = "\n2google/cloud/oracledatabase/v1/exadata_infra.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x17google/type/month.proto\"\x84\x05\n\x1a\x43loudExadataInfrastructure\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65ntitlement_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12]\n\nproperties\x18\x05 \x01(\x0b\x32\x44.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesB\x03\xe0\x41\x01\x12[\n\x06labels\x18\x06 \x03(\x0b\x32\x46.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xdb\x01\xea\x41\xd7\x01\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x62projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}*\x1b\x63loudExadataInfrastructures2\x1a\x63loudExadataInfrastructure\"\xb5\x0b\n$CloudExadataInfrastructureProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcompute_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1a\n\rstorage_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x15total_storage_size_gb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19\x61vailable_storage_size_gb\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12R\n\x12maintenance_window\x18\x06 \x01(\x0b\x32\x31.google.cloud.oracledatabase.v1.MaintenanceWindowB\x03\xe0\x41\x01\x12^\n\x05state\x18\x07 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.StateB\x03\xe0\x41\x03\x12\x12\n\x05shape\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07oci_url\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tcpu_count\x18\n \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_cpu_count\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12\x1b\n\x0ememory_size_gb\x18\x0c \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_memory_gb\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12$\n\x17\x64\x62_node_storage_size_gb\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12(\n\x1bmax_db_node_storage_size_gb\x18\x0f \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x10 \x01(\x01\x42\x03\xe0\x41\x03\x12 \n\x13max_data_storage_tb\x18\x11 \x01(\x01\x42\x03\xe0\x41\x03\x12$\n\x17\x61\x63tivated_storage_count\x18\x12 \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18\x61\x64\x64itional_storage_count\x18\x13 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1e\n\x11\x64\x62_server_version\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16storage_server_version\x18\x15 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17next_maintenance_run_id\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x19next_maintenance_run_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\"next_security_maintenance_run_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x11\x63ustomer_contacts\x18\x19 \x03(\x0b\x32/.google.cloud.oracledatabase.v1.CustomerContactB\x03\xe0\x41\x01\x12+\n\x1emonthly_storage_server_version\x18\x1a \x01(\tB\x03\xe0\x41\x03\x12&\n\x19monthly_db_server_version\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12H\n\rcompute_model\x18\x1f \x01(\x0e\x32,.google.cloud.oracledatabase.v1.ComputeModelB\x03\xe0\x41\x03\x12!\n\x14\x64\x61tabase_server_type\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12 \n\x13storage_server_type\x18\x1e \x01(\tB\x03\xe0\x41\x03\"\x97\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"\xa5\x05\n\x11MaintenanceWindow\x12\x66\n\npreference\x18\x01 \x01(\x0e\x32M.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreferenceB\x03\xe0\x41\x01\x12\'\n\x06months\x18\x02 \x03(\x0e\x32\x12.google.type.MonthB\x03\xe0\x41\x01\x12\x1b\n\x0eweeks_of_month\x18\x03 \x03(\x05\x42\x03\xe0\x41\x01\x12\x31\n\x0c\x64\x61ys_of_week\x18\x04 \x03(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x12\x19\n\x0chours_of_day\x18\x05 \x03(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0elead_time_week\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12Z\n\rpatching_mode\x18\x07 \x01(\x0e\x32>.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingModeB\x03\xe0\x41\x01\x12\'\n\x1a\x63ustom_action_timeout_mins\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12-\n is_custom_action_timeout_enabled\x18\t \x01(\x08\x42\x03\xe0\x41\x01\"v\n\x1bMaintenanceWindowPreference\x12-\n)MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43USTOM_PREFERENCE\x10\x01\x12\x11\n\rNO_PREFERENCE\x10\x02\"K\n\x0cPatchingMode\x12\x1d\n\x19PATCHING_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07ROLLING\x10\x01\x12\x0f\n\x0bNON_ROLLING\x10\x02\x42\xf9\x01\n\"com.google.cloud.oracledatabase.v1B\x1f\x43loudExadataInfrastructureProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb index 0f81a5fe1556..928044639293 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb @@ -11,7 +11,7 @@ require 'google/type/datetime_pb' -descriptor_data = "\n>google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\xe5\x04\n\x16\x45xascaleDbStorageVault\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Y\n\nproperties\x18\x04 \x01(\x0b\x32@.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65ntitlement_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12W\n\x06labels\x18\x07 \x03(\x0b\x32\x42.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xc8\x01\xea\x41\xc4\x01\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12[projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}*\x17\x65xascaleDbStorageVaults2\x16\x65xascaleDbStorageVault\"\x85\x07\n ExascaleDbStorageVaultProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12-\n\ttime_zone\x18\x02 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x03\x12\x62\n\x1b\x65xascale_db_storage_details\x18\x03 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsB\x03\xe0\x41\x02\x12Z\n\x05state\x18\x04 \x01(\x0e\x32\x46.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.StateB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0evm_cluster_ids\x18\x06 \x03(\tB\x03\xe0\x41\x03\x12\x1d\n\x10vm_cluster_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12+\n\x1e\x61\x64\x64itional_flash_cache_percent\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07oci_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12w\n\x19\x61ttached_shape_attributes\x18\n \x03(\x0e\x32O.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\x03\xe0\x41\x03\x12x\n\x1a\x61vailable_shape_attributes\x18\x0b \x03(\x0e\x32O.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\x03\xe0\x41\x03\"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"W\n\x0eShapeAttribute\x12\x1f\n\x1bSHAPE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x11\n\rSMART_STORAGE\x10\x01\x12\x11\n\rBLOCK_STORAGE\x10\x02\"X\n\x18\x45xascaleDbStorageDetails\x12\x1f\n\x12\x61vailable_size_gbs\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1b\n\x0etotal_size_gbs\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"n\n GetExascaleDbStorageVaultRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\"\xcf\x01\n\"ListExascaleDbStorageVaultsRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x9a\x01\n#ListExascaleDbStorageVaultsResponse\x12Z\n\x1a\x65xascale_db_storage_vaults\x18\x01 \x03(\x0b\x32\x36.google.cloud.oracledatabase.v1.ExascaleDbStorageVault\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9f\x02\n#CreateExascaleDbStorageVaultRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34oracledatabase.googleapis.com/ExascaleDbStorageVault\x12)\n\x1c\x65xascale_db_storage_vault_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12^\n\x19\x65xascale_db_storage_vault\x18\x03 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x92\x01\n#DeleteExascaleDbStorageVaultRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x42\xf5\x01\n\"com.google.cloud.oracledatabase.v1B\x1b\x45xascaleDbStorageVaultProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" +descriptor_data = "\n>google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\xe5\x04\n\x16\x45xascaleDbStorageVault\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Y\n\nproperties\x18\x04 \x01(\x0b\x32@.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65ntitlement_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12W\n\x06labels\x18\x07 \x03(\x0b\x32\x42.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xc8\x01\xea\x41\xc4\x01\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12[projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}*\x17\x65xascaleDbStorageVaults2\x16\x65xascaleDbStorageVault\"\x85\x07\n ExascaleDbStorageVaultProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12-\n\ttime_zone\x18\x02 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x03\x12\x62\n\x1b\x65xascale_db_storage_details\x18\x03 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsB\x03\xe0\x41\x02\x12Z\n\x05state\x18\x04 \x01(\x0e\x32\x46.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.StateB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0evm_cluster_ids\x18\x06 \x03(\tB\x03\xe0\x41\x03\x12\x1d\n\x10vm_cluster_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12+\n\x1e\x61\x64\x64itional_flash_cache_percent\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07oci_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12w\n\x19\x61ttached_shape_attributes\x18\n \x03(\x0e\x32O.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\x03\xe0\x41\x03\x12x\n\x1a\x61vailable_shape_attributes\x18\x0b \x03(\x0e\x32O.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\x03\xe0\x41\x03\"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"W\n\x0eShapeAttribute\x12\x1f\n\x1bSHAPE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x11\n\rSMART_STORAGE\x10\x01\x12\x11\n\rBLOCK_STORAGE\x10\x02\"X\n\x18\x45xascaleDbStorageDetails\x12\x1f\n\x12\x61vailable_size_gbs\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1b\n\x0etotal_size_gbs\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"n\n GetExascaleDbStorageVaultRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\"\xcf\x01\n\"ListExascaleDbStorageVaultsRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xaf\x01\n#ListExascaleDbStorageVaultsResponse\x12Z\n\x1a\x65xascale_db_storage_vaults\x18\x01 \x03(\x0b\x32\x36.google.cloud.oracledatabase.v1.ExascaleDbStorageVault\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x9f\x02\n#CreateExascaleDbStorageVaultRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34oracledatabase.googleapis.com/ExascaleDbStorageVault\x12)\n\x1c\x65xascale_db_storage_vault_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12^\n\x19\x65xascale_db_storage_vault\x18\x03 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x92\x01\n#DeleteExascaleDbStorageVaultRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x42\xf5\x01\n\"com.google.cloud.oracledatabase.v1B\x1b\x45xascaleDbStorageVaultProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb rename to google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb rename to google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_pb.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb rename to google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_connection_type_pb.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb rename to google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb rename to google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_pb.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb rename to google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_type_pb.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb rename to google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/goldengate_deployment_version_pb.rb diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb index 15d6b0006e86..5b0f9bc4db81 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb @@ -26,6 +26,13 @@ require 'google/cloud/oracledatabase/v1/exadb_vm_cluster_pb' require 'google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb' require 'google/cloud/oracledatabase/v1/gi_version_pb' +require 'google/cloud/oracledatabase/v1/goldengate_connection_pb' +require 'google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb' +require 'google/cloud/oracledatabase/v1/goldengate_connection_type_pb' +require 'google/cloud/oracledatabase/v1/goldengate_deployment_pb' +require 'google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb' +require 'google/cloud/oracledatabase/v1/goldengate_deployment_type_pb' +require 'google/cloud/oracledatabase/v1/goldengate_deployment_version_pb' require 'google/cloud/oracledatabase/v1/minor_version_pb' require 'google/cloud/oracledatabase/v1/odb_network_pb' require 'google/cloud/oracledatabase/v1/odb_subnet_pb' @@ -37,7 +44,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n3google/cloud/oracledatabase/v1/oracledatabase.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/oracledatabase/v1/autonomous_database.proto\x1a\x46google/cloud/oracledatabase/v1/autonomous_database_character_set.proto\x1a\x39google/cloud/oracledatabase/v1/autonomous_db_backup.proto\x1a:google/cloud/oracledatabase/v1/autonomous_db_version.proto\x1a-google/cloud/oracledatabase/v1/database.proto\x1a;google/cloud/oracledatabase/v1/database_character_set.proto\x1a,google/cloud/oracledatabase/v1/db_node.proto\x1a.google/cloud/oracledatabase/v1/db_server.proto\x1a.google/cloud/oracledatabase/v1/db_system.proto\x1a\x43google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto\x1a\x34google/cloud/oracledatabase/v1/db_system_shape.proto\x1a/google/cloud/oracledatabase/v1/db_version.proto\x1a\x30google/cloud/oracledatabase/v1/entitlement.proto\x1a\x32google/cloud/oracledatabase/v1/exadata_infra.proto\x1a\x35google/cloud/oracledatabase/v1/exadb_vm_cluster.proto\x1a>google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\x1a/google/cloud/oracledatabase/v1/gi_version.proto\x1a\x32google/cloud/oracledatabase/v1/minor_version.proto\x1a\x30google/cloud/oracledatabase/v1/odb_network.proto\x1a/google/cloud/oracledatabase/v1/odb_subnet.proto\x1a\x37google/cloud/oracledatabase/v1/pluggable_database.proto\x1a/google/cloud/oracledatabase/v1/vm_cluster.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd7\x01\n&ListCloudExadataInfrastructuresRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa5\x01\n\'ListCloudExadataInfrastructuresResponse\x12\x61\n\x1d\x63loud_exadata_infrastructures\x18\x01 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"v\n$GetCloudExadataInfrastructureRequest\x12N\n\x04name\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\"\xb1\x02\n\'CreateCloudExadataInfrastructureRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/CloudExadataInfrastructure\x12,\n\x1f\x63loud_exadata_infrastructure_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x1c\x63loud_exadata_infrastructure\x18\x03 \x01(\x0b\x32:.google.cloud.oracledatabase.v1.CloudExadataInfrastructureB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xae\x01\n\'DeleteCloudExadataInfrastructureRequest\x12N\n\x04name\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xa8\x01\n\x1aListCloudVmClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/CloudVmCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x81\x01\n\x1bListCloudVmClustersResponse\x12I\n\x11\x63loud_vm_clusters\x18\x01 \x03(\x0b\x32..google.cloud.oracledatabase.v1.CloudVmCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"^\n\x18GetCloudVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/CloudVmCluster\"\xf5\x01\n\x1b\x43reateCloudVmClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/CloudVmCluster\x12 \n\x13\x63loud_vm_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12M\n\x10\x63loud_vm_cluster\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.CloudVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x96\x01\n\x1b\x44\x65leteCloudVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/CloudVmCluster\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x8d\x01\n\x17ListEntitlementsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)oracledatabase.googleapis.com/Entitlement\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"v\n\x18ListEntitlementsResponse\x12\x41\n\x0c\x65ntitlements\x18\x01 \x03(\x0b\x32+.google.cloud.oracledatabase.v1.Entitlement\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x87\x01\n\x14ListDbServersRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbServer\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListDbServersResponse\x12<\n\ndb_servers\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.DbServer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x12ListDbNodesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$oracledatabase.googleapis.com/DbNode\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"h\n\x13ListDbNodesResponse\x12\x38\n\x08\x64\x62_nodes\x18\x01 \x03(\x0b\x32&.google.cloud.oracledatabase.v1.DbNode\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9e\x01\n\x15ListGiVersionsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/GiVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"q\n\x16ListGiVersionsResponse\x12>\n\x0bgi_versions\x18\x01 \x03(\x0b\x32).google.cloud.oracledatabase.v1.GiVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa6\x01\n\x19ListDbSystemShapesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+oracledatabase.googleapis.com/DbSystemShape\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListDbSystemShapesResponse\x12G\n\x10\x64\x62_system_shapes\x18\x01 \x03(\x0b\x32-.google.cloud.oracledatabase.v1.DbSystemShape\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9f\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x08 \x01(\x01\x42\x03\xe0\x41\x03\"\xc7\x01\n\x1eListAutonomousDatabasesRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30oracledatabase.googleapis.com/AutonomousDatabase\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x8c\x01\n\x1fListAutonomousDatabasesResponse\x12P\n\x14\x61utonomous_databases\x18\x01 \x03(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"f\n\x1cGetAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\x87\x02\n\x1f\x43reateAutonomousDatabaseRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30oracledatabase.googleapis.com/AutonomousDatabase\x12#\n\x16\x61utonomous_database_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12T\n\x13\x61utonomous_database\x18\x03 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabaseB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xce\x01\n\x1fUpdateAutonomousDatabaseRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12T\n\x13\x61utonomous_database\x18\x02 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabaseB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x8a\x01\n\x1f\x44\x65leteAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa1\x01\n RestoreAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x35\n\x0crestore_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"g\n\x1dStopAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"h\n\x1eStartAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"j\n RestartAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xc9\x01\n#SwitchoverAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Z\n\x18peer_autonomous_database\x18\x02 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xc7\x01\n!FailoverAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Z\n\x18peer_autonomous_database\x18\x02 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xe3\x01\n\'GenerateAutonomousDatabaseWalletRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12?\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.oracledatabase.v1.GenerateTypeB\x03\xe0\x41\x01\x12\x18\n\x0bis_regional\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\"H\n(GenerateAutonomousDatabaseWalletResponse\x12\x1c\n\x0f\x61rchive_content\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x03\"\x9d\x01\n\x1fListAutonomousDbVersionsRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31oracledatabase.googleapis.com/AutonomousDbVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n ListAutonomousDbVersionsResponse\x12S\n\x16\x61utonomous_db_versions\x18\x01 \x03(\x0b\x32\x33.google.cloud.oracledatabase.v1.AutonomousDbVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc8\x01\n*ListAutonomousDatabaseCharacterSetsRequest\x12T\n\x06parent\x18\x01 \x01(\tBD\xe0\x41\x02\xfa\x41>\x12.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbc\x01\n$ListAutonomousDatabaseBackupsRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36oracledatabase.googleapis.com/AutonomousDatabaseBackup\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9f\x01\n%ListAutonomousDatabaseBackupsResponse\x12]\n\x1b\x61utonomous_database_backups\x18\x01 \x03(\x0b\x32\x38.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf5\x01\n\x1b\x43reateExadbVmClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/ExadbVmCluster\x12 \n\x13\x65xadb_vm_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12M\n\x10\x65xadb_vm_cluster\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x82\x01\n\x1b\x44\x65leteExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"^\n\x18GetExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\"\xbf\x01\n\x1aListExadbVmClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/ExadbVmCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x81\x01\n\x1bListExadbVmClustersResponse\x12I\n\x11\x65xadb_vm_clusters\x18\x01 \x03(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc3\x01\n\x1bUpdateExadbVmClusterRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12M\n\x10\x65xadb_vm_cluster\x18\x02 \x01(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa8\x01\n)RemoveVirtualMachineExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x16\n\thostnames\x18\x04 \x03(\tB\x03\xe0\x41\x02\x32\xc2m\n\x0eOracleDatabase\x12\x84\x02\n\x1fListCloudExadataInfrastructures\x12\x46.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest\x1aG.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse\"P\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures\x12\xf1\x01\n\x1dGetCloudExadataInfrastructure\x12\x44.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest\x1a:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\x12\xea\x02\n CreateCloudExadataInfrastructure\x12G.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41/\n\x1a\x43loudExadataInfrastructure\x12\x11OperationMetadata\xda\x41\x43parent,cloud_exadata_infrastructure,cloud_exadata_infrastructure_id\x82\xd3\xe4\x93\x02_\"?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures:\x1c\x63loud_exadata_infrastructure\x12\x87\x02\n DeleteCloudExadataInfrastructure\x12G.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41*?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\x12\xd4\x01\n\x13ListCloudVmClusters\x12:.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest\x1a;.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*}/cloudVmClusters\x12\xc1\x01\n\x11GetCloudVmCluster\x12\x38.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest\x1a..google.cloud.oracledatabase.v1.CloudVmCluster\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/cloudVmClusters/*}\x12\x96\x02\n\x14\x43reateCloudVmCluster\x12;.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41#\n\x0e\x43loudVmCluster\x12\x11OperationMetadata\xda\x41+parent,cloud_vm_cluster,cloud_vm_cluster_id\x82\xd3\xe4\x93\x02G\"3/v1/{parent=projects/*/locations/*}/cloudVmClusters:\x10\x63loud_vm_cluster\x12\xe3\x01\n\x14\x44\x65leteCloudVmCluster\x12;.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest\x1a\x1d.google.longrunning.Operation\"o\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/cloudVmClusters/*}\x12\xc8\x01\n\x10ListEntitlements\x12\x37.google.cloud.oracledatabase.v1.ListEntitlementsRequest\x1a\x38.google.cloud.oracledatabase.v1.ListEntitlementsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/entitlements\x12\xda\x01\n\rListDbServers\x12\x34.google.cloud.oracledatabase.v1.ListDbServersRequest\x1a\x35.google.cloud.oracledatabase.v1.ListDbServersResponse\"\\\xda\x41\x06parent\x82\xd3\xe4\x93\x02M\x12K/v1/{parent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers\x12\x89\x02\n\x0bListDbNodes\x12\x32.google.cloud.oracledatabase.v1.ListDbNodesRequest\x1a\x33.google.cloud.oracledatabase.v1.ListDbNodesResponse\"\x90\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x80\x01\x12=/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodesZ?\x12=/v1/{parent=projects/*/locations/*/exadbVmClusters/*}/dbNodes\x12\xc0\x01\n\x0eListGiVersions\x12\x35.google.cloud.oracledatabase.v1.ListGiVersionsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListGiVersionsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/giVersions\x12\xd9\x01\n\x11ListMinorVersions\x12\x38.google.cloud.oracledatabase.v1.ListMinorVersionsRequest\x1a\x39.google.cloud.oracledatabase.v1.ListMinorVersionsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/giVersions/*}/minorVersions\x12\xd0\x01\n\x12ListDbSystemShapes\x12\x39.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest\x1a:.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/dbSystemShapes\x12\xe4\x01\n\x17ListAutonomousDatabases\x12>.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest\x1a?.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}/autonomousDatabases\x12\xd1\x01\n\x15GetAutonomousDatabase\x12<.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest\x1a\x32.google.cloud.oracledatabase.v1.AutonomousDatabase\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/autonomousDatabases/*}\x12\xaf\x02\n\x18\x43reateAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x31parent,autonomous_database,autonomous_database_id\x82\xd3\xe4\x93\x02N\"7/v1/{parent=projects/*/locations/*}/autonomousDatabases:\x13\x61utonomous_database\x12\xb1\x02\n\x18UpdateAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1f\x61utonomous_database,update_mask\x82\xd3\xe4\x93\x02\x62\x32K/v1/{autonomous_database.name=projects/*/locations/*/autonomousDatabases/*}:\x13\x61utonomous_database\x12\xef\x01\n\x18\x44\x65leteAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1/{name=projects/*/locations/*/autonomousDatabases/*}\x12\x87\x02\n\x19RestoreAutonomousDatabase\x12@.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x11name,restore_time\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore:\x01*\x12\xa9\x02\n GenerateAutonomousDatabaseWallet\x12G.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest\x1aH.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse\"r\xda\x41\x1ename,type,is_regional,password\x82\xd3\xe4\x93\x02K\"F/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet:\x01*\x12\xe8\x01\n\x18ListAutonomousDbVersions\x12?.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest\x1a@.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*}/autonomousDbVersions\x12\x94\x02\n#ListAutonomousDatabaseCharacterSets\x12J.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest\x1aK.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSets\x12\xfc\x01\n\x1dListAutonomousDatabaseBackups\x12\x44.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest\x1a\x45.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackups\x12\xf0\x01\n\x16StopAutonomousDatabase\x12=.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\".google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/autonomousDatabases/*}:start:\x01*\x12\xf9\x01\n\x19RestartAutonomousDatabase\x12@.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restart:\x01*\x12\x9c\x02\n\x1cSwitchoverAutonomousDatabase\x12\x43.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1dname,peer_autonomous_database\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/autonomousDatabases/*}:switchover:\x01*\x12\x96\x02\n\x1a\x46\x61iloverAutonomousDatabase\x12\x41.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1dname,peer_autonomous_database\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*/autonomousDatabases/*}:failover:\x01*\x12\xc4\x01\n\x0fListOdbNetworks\x12\x36.google.cloud.oracledatabase.v1.ListOdbNetworksRequest\x1a\x37.google.cloud.oracledatabase.v1.ListOdbNetworksResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/odbNetworks\x12\xb1\x01\n\rGetOdbNetwork\x12\x34.google.cloud.oracledatabase.v1.GetOdbNetworkRequest\x1a*.google.cloud.oracledatabase.v1.OdbNetwork\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/odbNetworks/*}\x12\xf7\x01\n\x10\x43reateOdbNetwork\x12\x37.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest\x1a\x1d.google.longrunning.Operation\"\x8a\x01\xca\x41\x1f\n\nOdbNetwork\x12\x11OperationMetadata\xda\x41!parent,odb_network,odb_network_id\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/odbNetworks:\x0bodb_network\x12\xd7\x01\n\x10\x44\x65leteOdbNetwork\x12\x37.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest\x1a\x1d.google.longrunning.Operation\"k\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/odbNetworks/*}\x12\xce\x01\n\x0eListOdbSubnets\x12\x35.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12\x12*\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/databases\x12\xa9\x01\n\x0bGetDatabase\x12\x32.google.cloud.oracledatabase.v1.GetDatabaseRequest\x1a(.google.cloud.oracledatabase.v1.Database\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/databases/*}\x12\xe0\x01\n\x16ListPluggableDatabases\x12=.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest\x1a>.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*}/pluggableDatabases\x12\xcd\x01\n\x14GetPluggableDatabase\x12;.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest\x1a\x31.google.cloud.oracledatabase.v1.PluggableDatabase\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/pluggableDatabases/*}\x12\xbc\x01\n\rListDbSystems\x12\x34.google.cloud.oracledatabase.v1.ListDbSystemsRequest\x1a\x35.google.cloud.oracledatabase.v1.ListDbSystemsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dbSystems\x12\xa9\x01\n\x0bGetDbSystem\x12\x32.google.cloud.oracledatabase.v1.GetDbSystemRequest\x1a(.google.cloud.oracledatabase.v1.DbSystem\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/dbSystems/*}\x12\xe9\x01\n\x0e\x43reateDbSystem\x12\x35.google.cloud.oracledatabase.v1.CreateDbSystemRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\xca\x41\x1d\n\x08\x44\x62System\x12\x11OperationMetadata\xda\x41\x1dparent,db_system,db_system_id\x82\xd3\xe4\x93\x02:\"-/v1/{parent=projects/*/locations/*}/dbSystems:\tdb_system\x12\xd1\x01\n\x0e\x44\x65leteDbSystem\x12\x35.google.cloud.oracledatabase.v1.DeleteDbSystemRequest\x1a\x1d.google.longrunning.Operation\"i\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/dbSystems/*}\x12\xc0\x01\n\x0eListDbVersions\x12\x35.google.cloud.oracledatabase.v1.ListDbVersionsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListDbVersionsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/dbVersions\x12\xec\x01\n\x19ListDatabaseCharacterSets\x12@.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/databaseCharacterSets\x1aQ\xca\x41\x1doracledatabase.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb1\x03\n\"com.google.cloud.oracledatabase.v1B\x0bV1mainProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3" +descriptor_data = "\n3google/cloud/oracledatabase/v1/oracledatabase.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/oracledatabase/v1/autonomous_database.proto\x1a\x46google/cloud/oracledatabase/v1/autonomous_database_character_set.proto\x1a\x39google/cloud/oracledatabase/v1/autonomous_db_backup.proto\x1a:google/cloud/oracledatabase/v1/autonomous_db_version.proto\x1a-google/cloud/oracledatabase/v1/database.proto\x1a;google/cloud/oracledatabase/v1/database_character_set.proto\x1a,google/cloud/oracledatabase/v1/db_node.proto\x1a.google/cloud/oracledatabase/v1/db_server.proto\x1a.google/cloud/oracledatabase/v1/db_system.proto\x1a\x43google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto\x1a\x34google/cloud/oracledatabase/v1/db_system_shape.proto\x1a/google/cloud/oracledatabase/v1/db_version.proto\x1a\x30google/cloud/oracledatabase/v1/entitlement.proto\x1a\x32google/cloud/oracledatabase/v1/exadata_infra.proto\x1a\x35google/cloud/oracledatabase/v1/exadb_vm_cluster.proto\x1a>google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\x1a/google/cloud/oracledatabase/v1/gi_version.proto\x1a:google/cloud/oracledatabase/v1/goldengate_connection.proto\x1a\x45google/cloud/oracledatabase/v1/goldengate_connection_assignment.proto\x1a?google/cloud/oracledatabase/v1/goldengate_connection_type.proto\x1a:google/cloud/oracledatabase/v1/goldengate_deployment.proto\x1a\x46google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto\x1a?google/cloud/oracledatabase/v1/goldengate_deployment_type.proto\x1a\x42google/cloud/oracledatabase/v1/goldengate_deployment_version.proto\x1a\x32google/cloud/oracledatabase/v1/minor_version.proto\x1a\x30google/cloud/oracledatabase/v1/odb_network.proto\x1a/google/cloud/oracledatabase/v1/odb_subnet.proto\x1a\x37google/cloud/oracledatabase/v1/pluggable_database.proto\x1a/google/cloud/oracledatabase/v1/vm_cluster.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd7\x01\n&ListCloudExadataInfrastructuresRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\'ListCloudExadataInfrastructuresResponse\x12\x61\n\x1d\x63loud_exadata_infrastructures\x18\x01 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"v\n$GetCloudExadataInfrastructureRequest\x12N\n\x04name\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\"\xb1\x02\n\'CreateCloudExadataInfrastructureRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/CloudExadataInfrastructure\x12,\n\x1f\x63loud_exadata_infrastructure_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x1c\x63loud_exadata_infrastructure\x18\x03 \x01(\x0b\x32:.google.cloud.oracledatabase.v1.CloudExadataInfrastructureB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xae\x01\n\'DeleteCloudExadataInfrastructureRequest\x12N\n\x04name\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xa8\x01\n\x1aListCloudVmClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/CloudVmCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\x1bListCloudVmClustersResponse\x12I\n\x11\x63loud_vm_clusters\x18\x01 \x03(\x0b\x32..google.cloud.oracledatabase.v1.CloudVmCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x18GetCloudVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/CloudVmCluster\"\xf5\x01\n\x1b\x43reateCloudVmClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/CloudVmCluster\x12 \n\x13\x63loud_vm_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12M\n\x10\x63loud_vm_cluster\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.CloudVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x96\x01\n\x1b\x44\x65leteCloudVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/CloudVmCluster\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x8d\x01\n\x17ListEntitlementsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)oracledatabase.googleapis.com/Entitlement\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"v\n\x18ListEntitlementsResponse\x12\x41\n\x0c\x65ntitlements\x18\x01 \x03(\x0b\x32+.google.cloud.oracledatabase.v1.Entitlement\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x87\x01\n\x14ListDbServersRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbServer\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListDbServersResponse\x12<\n\ndb_servers\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.DbServer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x12ListDbNodesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$oracledatabase.googleapis.com/DbNode\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"h\n\x13ListDbNodesResponse\x12\x38\n\x08\x64\x62_nodes\x18\x01 \x03(\x0b\x32&.google.cloud.oracledatabase.v1.DbNode\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9e\x01\n\x15ListGiVersionsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/GiVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"q\n\x16ListGiVersionsResponse\x12>\n\x0bgi_versions\x18\x01 \x03(\x0b\x32).google.cloud.oracledatabase.v1.GiVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa6\x01\n\x19ListDbSystemShapesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+oracledatabase.googleapis.com/DbSystemShape\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListDbSystemShapesResponse\x12G\n\x10\x64\x62_system_shapes\x18\x01 \x03(\x0b\x32-.google.cloud.oracledatabase.v1.DbSystemShape\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9f\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x08 \x01(\x01\x42\x03\xe0\x41\x03\"\xc7\x01\n\x1eListAutonomousDatabasesRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30oracledatabase.googleapis.com/AutonomousDatabase\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa1\x01\n\x1fListAutonomousDatabasesResponse\x12P\n\x14\x61utonomous_databases\x18\x01 \x03(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"f\n\x1cGetAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\x87\x02\n\x1f\x43reateAutonomousDatabaseRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30oracledatabase.googleapis.com/AutonomousDatabase\x12#\n\x16\x61utonomous_database_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12T\n\x13\x61utonomous_database\x18\x03 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabaseB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xce\x01\n\x1fUpdateAutonomousDatabaseRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12T\n\x13\x61utonomous_database\x18\x02 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabaseB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x8a\x01\n\x1f\x44\x65leteAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa1\x01\n RestoreAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x35\n\x0crestore_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"g\n\x1dStopAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"h\n\x1eStartAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"j\n RestartAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xc9\x01\n#SwitchoverAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Z\n\x18peer_autonomous_database\x18\x02 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xc7\x01\n!FailoverAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Z\n\x18peer_autonomous_database\x18\x02 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xe3\x01\n\'GenerateAutonomousDatabaseWalletRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12?\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.oracledatabase.v1.GenerateTypeB\x03\xe0\x41\x01\x12\x18\n\x0bis_regional\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\"H\n(GenerateAutonomousDatabaseWalletResponse\x12\x1c\n\x0f\x61rchive_content\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x03\"\x9d\x01\n\x1fListAutonomousDbVersionsRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31oracledatabase.googleapis.com/AutonomousDbVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n ListAutonomousDbVersionsResponse\x12S\n\x16\x61utonomous_db_versions\x18\x01 \x03(\x0b\x32\x33.google.cloud.oracledatabase.v1.AutonomousDbVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc8\x01\n*ListAutonomousDatabaseCharacterSetsRequest\x12T\n\x06parent\x18\x01 \x01(\tBD\xe0\x41\x02\xfa\x41>\x12.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbc\x01\n$ListAutonomousDatabaseBackupsRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36oracledatabase.googleapis.com/AutonomousDatabaseBackup\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9f\x01\n%ListAutonomousDatabaseBackupsResponse\x12]\n\x1b\x61utonomous_database_backups\x18\x01 \x03(\x0b\x32\x38.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf5\x01\n\x1b\x43reateExadbVmClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/ExadbVmCluster\x12 \n\x13\x65xadb_vm_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12M\n\x10\x65xadb_vm_cluster\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x82\x01\n\x1b\x44\x65leteExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"^\n\x18GetExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\"\xbf\x01\n\x1aListExadbVmClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/ExadbVmCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\x1bListExadbVmClustersResponse\x12I\n\x11\x65xadb_vm_clusters\x18\x01 \x03(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xc3\x01\n\x1bUpdateExadbVmClusterRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12M\n\x10\x65xadb_vm_cluster\x18\x02 \x01(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa8\x01\n)RemoveVirtualMachineExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x16\n\thostnames\x18\x04 \x03(\tB\x03\xe0\x41\x02\x32\x91\x9d\x01\n\x0eOracleDatabase\x12\x84\x02\n\x1fListCloudExadataInfrastructures\x12\x46.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest\x1aG.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse\"P\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures\x12\xf1\x01\n\x1dGetCloudExadataInfrastructure\x12\x44.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest\x1a:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\x12\xea\x02\n CreateCloudExadataInfrastructure\x12G.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41/\n\x1a\x43loudExadataInfrastructure\x12\x11OperationMetadata\xda\x41\x43parent,cloud_exadata_infrastructure,cloud_exadata_infrastructure_id\x82\xd3\xe4\x93\x02_\"?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures:\x1c\x63loud_exadata_infrastructure\x12\x87\x02\n DeleteCloudExadataInfrastructure\x12G.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41*?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\x12\xd4\x01\n\x13ListCloudVmClusters\x12:.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest\x1a;.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*}/cloudVmClusters\x12\xc1\x01\n\x11GetCloudVmCluster\x12\x38.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest\x1a..google.cloud.oracledatabase.v1.CloudVmCluster\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/cloudVmClusters/*}\x12\x96\x02\n\x14\x43reateCloudVmCluster\x12;.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41#\n\x0e\x43loudVmCluster\x12\x11OperationMetadata\xda\x41+parent,cloud_vm_cluster,cloud_vm_cluster_id\x82\xd3\xe4\x93\x02G\"3/v1/{parent=projects/*/locations/*}/cloudVmClusters:\x10\x63loud_vm_cluster\x12\xe3\x01\n\x14\x44\x65leteCloudVmCluster\x12;.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest\x1a\x1d.google.longrunning.Operation\"o\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/cloudVmClusters/*}\x12\xc8\x01\n\x10ListEntitlements\x12\x37.google.cloud.oracledatabase.v1.ListEntitlementsRequest\x1a\x38.google.cloud.oracledatabase.v1.ListEntitlementsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/entitlements\x12\xda\x01\n\rListDbServers\x12\x34.google.cloud.oracledatabase.v1.ListDbServersRequest\x1a\x35.google.cloud.oracledatabase.v1.ListDbServersResponse\"\\\xda\x41\x06parent\x82\xd3\xe4\x93\x02M\x12K/v1/{parent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers\x12\x89\x02\n\x0bListDbNodes\x12\x32.google.cloud.oracledatabase.v1.ListDbNodesRequest\x1a\x33.google.cloud.oracledatabase.v1.ListDbNodesResponse\"\x90\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x80\x01\x12=/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodesZ?\x12=/v1/{parent=projects/*/locations/*/exadbVmClusters/*}/dbNodes\x12\xc0\x01\n\x0eListGiVersions\x12\x35.google.cloud.oracledatabase.v1.ListGiVersionsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListGiVersionsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/giVersions\x12\xd9\x01\n\x11ListMinorVersions\x12\x38.google.cloud.oracledatabase.v1.ListMinorVersionsRequest\x1a\x39.google.cloud.oracledatabase.v1.ListMinorVersionsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/giVersions/*}/minorVersions\x12\xd0\x01\n\x12ListDbSystemShapes\x12\x39.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest\x1a:.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/dbSystemShapes\x12\xe4\x01\n\x17ListAutonomousDatabases\x12>.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest\x1a?.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}/autonomousDatabases\x12\xd1\x01\n\x15GetAutonomousDatabase\x12<.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest\x1a\x32.google.cloud.oracledatabase.v1.AutonomousDatabase\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/autonomousDatabases/*}\x12\xaf\x02\n\x18\x43reateAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x31parent,autonomous_database,autonomous_database_id\x82\xd3\xe4\x93\x02N\"7/v1/{parent=projects/*/locations/*}/autonomousDatabases:\x13\x61utonomous_database\x12\xb1\x02\n\x18UpdateAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1f\x61utonomous_database,update_mask\x82\xd3\xe4\x93\x02\x62\x32K/v1/{autonomous_database.name=projects/*/locations/*/autonomousDatabases/*}:\x13\x61utonomous_database\x12\xef\x01\n\x18\x44\x65leteAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1/{name=projects/*/locations/*/autonomousDatabases/*}\x12\x87\x02\n\x19RestoreAutonomousDatabase\x12@.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x11name,restore_time\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore:\x01*\x12\xa9\x02\n GenerateAutonomousDatabaseWallet\x12G.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest\x1aH.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse\"r\xda\x41\x1ename,type,is_regional,password\x82\xd3\xe4\x93\x02K\"F/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet:\x01*\x12\xe8\x01\n\x18ListAutonomousDbVersions\x12?.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest\x1a@.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*}/autonomousDbVersions\x12\x94\x02\n#ListAutonomousDatabaseCharacterSets\x12J.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest\x1aK.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSets\x12\xfc\x01\n\x1dListAutonomousDatabaseBackups\x12\x44.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest\x1a\x45.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackups\x12\xf0\x01\n\x16StopAutonomousDatabase\x12=.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\".google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/autonomousDatabases/*}:start:\x01*\x12\xf9\x01\n\x19RestartAutonomousDatabase\x12@.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restart:\x01*\x12\x9c\x02\n\x1cSwitchoverAutonomousDatabase\x12\x43.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1dname,peer_autonomous_database\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/autonomousDatabases/*}:switchover:\x01*\x12\x96\x02\n\x1a\x46\x61iloverAutonomousDatabase\x12\x41.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1dname,peer_autonomous_database\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*/autonomousDatabases/*}:failover:\x01*\x12\xc4\x01\n\x0fListOdbNetworks\x12\x36.google.cloud.oracledatabase.v1.ListOdbNetworksRequest\x1a\x37.google.cloud.oracledatabase.v1.ListOdbNetworksResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/odbNetworks\x12\xb1\x01\n\rGetOdbNetwork\x12\x34.google.cloud.oracledatabase.v1.GetOdbNetworkRequest\x1a*.google.cloud.oracledatabase.v1.OdbNetwork\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/odbNetworks/*}\x12\xf7\x01\n\x10\x43reateOdbNetwork\x12\x37.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest\x1a\x1d.google.longrunning.Operation\"\x8a\x01\xca\x41\x1f\n\nOdbNetwork\x12\x11OperationMetadata\xda\x41!parent,odb_network,odb_network_id\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/odbNetworks:\x0bodb_network\x12\xd7\x01\n\x10\x44\x65leteOdbNetwork\x12\x37.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest\x1a\x1d.google.longrunning.Operation\"k\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/odbNetworks/*}\x12\xce\x01\n\x0eListOdbSubnets\x12\x35.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12\x12*\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/databases\x12\xa9\x01\n\x0bGetDatabase\x12\x32.google.cloud.oracledatabase.v1.GetDatabaseRequest\x1a(.google.cloud.oracledatabase.v1.Database\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/databases/*}\x12\xe0\x01\n\x16ListPluggableDatabases\x12=.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest\x1a>.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*}/pluggableDatabases\x12\xcd\x01\n\x14GetPluggableDatabase\x12;.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest\x1a\x31.google.cloud.oracledatabase.v1.PluggableDatabase\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/pluggableDatabases/*}\x12\xbc\x01\n\rListDbSystems\x12\x34.google.cloud.oracledatabase.v1.ListDbSystemsRequest\x1a\x35.google.cloud.oracledatabase.v1.ListDbSystemsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dbSystems\x12\xa9\x01\n\x0bGetDbSystem\x12\x32.google.cloud.oracledatabase.v1.GetDbSystemRequest\x1a(.google.cloud.oracledatabase.v1.DbSystem\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/dbSystems/*}\x12\xe9\x01\n\x0e\x43reateDbSystem\x12\x35.google.cloud.oracledatabase.v1.CreateDbSystemRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\xca\x41\x1d\n\x08\x44\x62System\x12\x11OperationMetadata\xda\x41\x1dparent,db_system,db_system_id\x82\xd3\xe4\x93\x02:\"-/v1/{parent=projects/*/locations/*}/dbSystems:\tdb_system\x12\xd1\x01\n\x0e\x44\x65leteDbSystem\x12\x35.google.cloud.oracledatabase.v1.DeleteDbSystemRequest\x1a\x1d.google.longrunning.Operation\"i\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/dbSystems/*}\x12\xec\x01\n\x19ListGoldengateDeployments\x12@.google.cloud.oracledatabase.v1.ListGoldengateDeploymentsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListGoldengateDeploymentsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/goldengateDeployments\x12\xd9\x01\n\x17GetGoldengateDeployment\x12>.google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest\x1a\x34.google.cloud.oracledatabase.v1.GoldengateDeployment\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/goldengateDeployments/*}\x12\xbd\x02\n\x1a\x43reateGoldengateDeployment\x12\x41.google.cloud.oracledatabase.v1.CreateGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xbc\x01\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x35parent,goldengate_deployment,goldengate_deployment_id\x82\xd3\xe4\x93\x02R\"9/v1/{parent=projects/*/locations/*}/goldengateDeployments:\x15goldengate_deployment\x12\xf5\x01\n\x1a\x44\x65leteGoldengateDeployment\x12\x41.google.cloud.oracledatabase.v1.DeleteGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/goldengateDeployments/*}\x12\xf8\x01\n\x18StopGoldengateDeployment\x12?.google.cloud.oracledatabase.v1.StopGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\">/v1/{name=projects/*/locations/*/goldengateDeployments/*}:stop:\x01*\x12\xfb\x01\n\x19StartGoldengateDeployment\x12@.google.cloud.oracledatabase.v1.StartGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/goldengateDeployments/*}:start:\x01*\x12\xec\x01\n\x19ListGoldengateConnections\x12@.google.cloud.oracledatabase.v1.ListGoldengateConnectionsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListGoldengateConnectionsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/goldengateConnections\x12\xd9\x01\n\x17GetGoldengateConnection\x12>.google.cloud.oracledatabase.v1.GetGoldengateConnectionRequest\x1a\x34.google.cloud.oracledatabase.v1.GoldengateConnection\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/goldengateConnections/*}\x12\xbd\x02\n\x1a\x43reateGoldengateConnection\x12\x41.google.cloud.oracledatabase.v1.CreateGoldengateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\xbc\x01\xca\x41)\n\x14GoldengateConnection\x12\x11OperationMetadata\xda\x41\x35parent,goldengate_connection,goldengate_connection_id\x82\xd3\xe4\x93\x02R\"9/v1/{parent=projects/*/locations/*}/goldengateConnections:\x15goldengate_connection\x12\xf5\x01\n\x1a\x44\x65leteGoldengateConnection\x12\x41.google.cloud.oracledatabase.v1.DeleteGoldengateConnectionRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/goldengateConnections/*}\x12\xf5\x01\n\x1eGetGoldengateDeploymentVersion\x12\x45.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest\x1a;.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*/goldengateDeploymentVersions/*}\x12\x88\x02\n ListGoldengateDeploymentVersions\x12G.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsRequest\x1aH.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1/{parent=projects/*/locations/*}/goldengateDeploymentVersions\x12\xe9\x01\n\x1bGetGoldengateDeploymentType\x12\x42.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest\x1a\x38.google.cloud.oracledatabase.v1.GoldengateDeploymentType\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/goldengateDeploymentTypes/*}\x12\xfc\x01\n\x1dListGoldengateDeploymentTypes\x12\x44.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesRequest\x1a\x45.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/goldengateDeploymentTypes\x12\x85\x02\n\"GetGoldengateDeploymentEnvironment\x12I.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest\x1a?.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/goldengateDeploymentEnvironments/*}\x12\x98\x02\n$ListGoldengateDeploymentEnvironments\x12K.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsRequest\x1aL.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsResponse\"U\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{parent=projects/*/locations/*}/goldengateDeploymentEnvironments\x12\xe9\x01\n\x1bGetGoldengateConnectionType\x12\x42.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest\x1a\x38.google.cloud.oracledatabase.v1.GoldengateConnectionType\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/goldengateConnectionTypes/*}\x12\xfc\x01\n\x1dListGoldengateConnectionTypes\x12\x44.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesRequest\x1a\x45.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/goldengateConnectionTypes\x12\xc0\x01\n\x0eListDbVersions\x12\x35.google.cloud.oracledatabase.v1.ListDbVersionsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListDbVersionsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/dbVersions\x12\xec\x01\n\x19ListDatabaseCharacterSets\x12@.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/databaseCharacterSets\x12\x94\x02\n#ListGoldengateConnectionAssignments\x12J.google.cloud.oracledatabase.v1.ListGoldengateConnectionAssignmentsRequest\x1aK.google.cloud.oracledatabase.v1.ListGoldengateConnectionAssignmentsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*}/goldengateConnectionAssignments\x12\x81\x02\n!GetGoldengateConnectionAssignment\x12H.google.cloud.oracledatabase.v1.GetGoldengateConnectionAssignmentRequest\x1a>.google.cloud.oracledatabase.v1.GoldengateConnectionAssignment\"R\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}\x12\x86\x03\n$CreateGoldengateConnectionAssignment\x12K.google.cloud.oracledatabase.v1.CreateGoldengateConnectionAssignmentRequest\x1a\x1d.google.longrunning.Operation\"\xf1\x01\xca\x41\x33\n\x1eGoldengateConnectionAssignment\x12\x11OperationMetadata\xda\x41Kparent,goldengate_connection_assignment,goldengate_connection_assignment_id\x82\xd3\xe4\x93\x02g\"C/v1/{parent=projects/*/locations/*}/goldengateConnectionAssignments: goldengate_connection_assignment\x12\x93\x02\n$DeleteGoldengateConnectionAssignment\x12K.google.cloud.oracledatabase.v1.DeleteGoldengateConnectionAssignmentRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45*C/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}\x12\x97\x02\n\"TestGoldengateConnectionAssignment\x12I.google.cloud.oracledatabase.v1.TestGoldengateConnectionAssignmentRequest\x1aJ.google.cloud.oracledatabase.v1.TestGoldengateConnectionAssignmentResponse\"Z\xda\x41\x04name\x82\xd3\xe4\x93\x02M\"H/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}:test:\x01*\x1aQ\xca\x41\x1doracledatabase.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9f\x04\n\"com.google.cloud.oracledatabase.v1B\x0bV1mainProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41k\n*secretmanager.googleapis.com/SecretVersion\x12=projects/{project}/secrets/{secret}/versions/{secret_version}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb index 1fd3edc34c05..80abee0ffa56 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb @@ -155,10 +155,57 @@ class Service rpc :CreateDbSystem, ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Google::Longrunning::Operation # Deletes a single DbSystem. rpc :DeleteDbSystem, ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Google::Longrunning::Operation + # Lists all the GoldengateDeployments for the given project and location. + rpc :ListGoldengateDeployments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse + # Gets details of a single GoldengateDeployment. + rpc :GetGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment + # Creates a new GoldengateDeployment in a given project and location. + rpc :CreateGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Google::Longrunning::Operation + # Deletes a single GoldengateDeployment. + rpc :DeleteGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Google::Longrunning::Operation + # Stops a single GoldengateDeployment. + rpc :StopGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Google::Longrunning::Operation + # Starts a single GoldengateDeployment. + rpc :StartGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Google::Longrunning::Operation + # Lists all the GoldengateConnections for the given project and location. + rpc :ListGoldengateConnections, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse + # Gets details of a single GoldengateConnection. + rpc :GetGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnection + # Creates a new GoldengateConnection in a given project and location. + rpc :CreateGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Google::Longrunning::Operation + # Deletes a single GoldengateConnection. + rpc :DeleteGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Google::Longrunning::Operation + # Gets details of a single GoldengateDeploymentVersion. + rpc :GetGoldengateDeploymentVersion, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion + # Lists GoldengateDeploymentVersions in a given project and location. + rpc :ListGoldengateDeploymentVersions, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse + # Gets details of a single GoldenGateDeploymentType. + rpc :GetGoldengateDeploymentType, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType + # Lists GoldenGateDeploymentTypes in a given project and location. + rpc :ListGoldengateDeploymentTypes, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse + # Gets details of a single GoldengateDeploymentEnvironment. + rpc :GetGoldengateDeploymentEnvironment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment + # Lists GoldengateDeploymentEnvironments in a given project and location. + rpc :ListGoldengateDeploymentEnvironments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse + # Gets details of a single GoldengateConnectionType. + rpc :GetGoldengateConnectionType, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType + # Lists GoldengateConnectionTypes in a given project and location. + rpc :ListGoldengateConnectionTypes, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse # List DbVersions for the given project and location. rpc :ListDbVersions, ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse # List DatabaseCharacterSets for the given project and location. rpc :ListDatabaseCharacterSets, ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse + # Lists GoldengateConnectionAssignments in a given project and location. + rpc :ListGoldengateConnectionAssignments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse + # Gets details of a single GoldengateConnectionAssignment. + rpc :GetGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment + # Creates a new GoldengateConnectionAssignment in a given project and + # location. + rpc :CreateGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Google::Longrunning::Operation + # Deletes a single GoldengateConnectionAssignment. + rpc :DeleteGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Google::Longrunning::Operation + # Tests a single GoldengateConnectionAssignment. + rpc :TestGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse end Stub = Service.rpc_stub_class diff --git a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb index 5f2610c1b158..47130b36fd86 100644 --- a/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +++ b/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb @@ -11,7 +11,7 @@ require 'google/type/datetime_pb' -descriptor_data = "\n/google/cloud/oracledatabase/v1/vm_cluster.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x82\x08\n\x0e\x43loudVmCluster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12`\n\x16\x65xadata_infrastructure\x18\x02 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\nproperties\x18\x06 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesB\x03\xe0\x41\x01\x12O\n\x06labels\x18\x07 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.CloudVmCluster.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x63idr\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x62\x61\x63kup_subnet_cidr\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\x0b \x01(\tB&\xe0\x41\x01\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x1c\n\x0fgcp_oracle_zone\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x0bodb_network\x18\r \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x0e \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12J\n\x11\x62\x61\x63kup_odb_subnet\x18\x0f \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12R\n\x12identity_connector\x18\x10 \x01(\x0b\x32\x31.google.cloud.oracledatabase.v1.IdentityConnectorB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x01\xea\x41\x9b\x01\n,oracledatabase.googleapis.com/CloudVmCluster\x12Jprojects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}*\x0f\x63loudVmClusters2\x0e\x63loudVmCluster\"\xe6\x0c\n\x18\x43loudVmClusterProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12_\n\x0clicense_type\x18\x02 \x01(\x0e\x32\x44.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseTypeB\x03\xe0\x41\x02\x12\x17\n\ngi_version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x04 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\x12\x1c\n\x0fssh_public_keys\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\x05shape\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nocpu_count\x18\x08 \x01(\x02\x42\x03\xe0\x41\x01\x12\x1b\n\x0ememory_size_gb\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17\x64\x62_node_storage_size_gb\x18\n \x01(\x05\x42\x03\xe0\x41\x01\x12\x1c\n\x0fstorage_size_gb\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x0c \x01(\x01\x42\x03\xe0\x41\x01\x12\x65\n\x0f\x64isk_redundancy\x18\r \x01(\x0e\x32G.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancyB\x03\xe0\x41\x01\x12%\n\x18sparse_diskgroup_enabled\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12!\n\x14local_backup_enabled\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fhostname_prefix\x18\x10 \x01(\tB\x03\xe0\x41\x01\x12g\n#diagnostics_data_collection_options\x18\x13 \x01(\x0b\x32\x35.google.cloud.oracledatabase.v1.DataCollectionOptionsB\x03\xe0\x41\x01\x12R\n\x05state\x18\x14 \x01(\x0e\x32>.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StateB\x03\xe0\x41\x03\x12#\n\x16scan_listener_port_tcp\x18\x15 \x01(\x05\x42\x03\xe0\x41\x03\x12\'\n\x1ascan_listener_port_tcp_ssl\x18\x16 \x01(\x05\x42\x03\xe0\x41\x03\x12\x13\n\x06\x64omain\x18\x17 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08scan_dns\x18\x18 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08hostname\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x63pu_core_count\x18\x1a \x01(\x05\x42\x03\xe0\x41\x02\x12\x1b\n\x0esystem_version\x18\x1b \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bscan_ip_ids\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x1f\n\x12scan_dns_record_id\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\x1e \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x62_server_ocids\x18\x1f \x03(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63ompartment_id\x18 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64ns_listener_ip\x18# \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_name\x18$ \x01(\tB\x03\xe0\x41\x01\x12H\n\rcompute_model\x18% \x01(\x0e\x32,.google.cloud.oracledatabase.v1.ComputeModelB\x03\xe0\x41\x03\"]\n\x0bLicenseType\x12\x1c\n\x18LICENSE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"G\n\x0e\x44iskRedundancy\x12\x1f\n\x1b\x44ISK_REDUNDANCY_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06NORMAL\x10\x02\"\x97\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"\x8c\x01\n\x15\x44\x61taCollectionOptions\x12\'\n\x1a\x64iagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12&\n\x19health_monitoring_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\"\n\x15incident_logs_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x42\xed\x01\n\"com.google.cloud.oracledatabase.v1B\x13\x43loudVmClusterProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" +descriptor_data = "\n/google/cloud/oracledatabase/v1/vm_cluster.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x82\x08\n\x0e\x43loudVmCluster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12`\n\x16\x65xadata_infrastructure\x18\x02 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\nproperties\x18\x06 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesB\x03\xe0\x41\x01\x12O\n\x06labels\x18\x07 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.CloudVmCluster.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x63idr\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x62\x61\x63kup_subnet_cidr\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\x0b \x01(\tB&\xe0\x41\x01\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x1c\n\x0fgcp_oracle_zone\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x0bodb_network\x18\r \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x0e \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12J\n\x11\x62\x61\x63kup_odb_subnet\x18\x0f \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12R\n\x12identity_connector\x18\x10 \x01(\x0b\x32\x31.google.cloud.oracledatabase.v1.IdentityConnectorB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x01\xea\x41\x9b\x01\n,oracledatabase.googleapis.com/CloudVmCluster\x12Jprojects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}*\x0f\x63loudVmClusters2\x0e\x63loudVmCluster\"\xe6\x0c\n\x18\x43loudVmClusterProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12_\n\x0clicense_type\x18\x02 \x01(\x0e\x32\x44.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseTypeB\x03\xe0\x41\x02\x12\x17\n\ngi_version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x04 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\x12\x1c\n\x0fssh_public_keys\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\x05shape\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nocpu_count\x18\x08 \x01(\x02\x42\x03\xe0\x41\x01\x12\x1b\n\x0ememory_size_gb\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17\x64\x62_node_storage_size_gb\x18\n \x01(\x05\x42\x03\xe0\x41\x01\x12\x1c\n\x0fstorage_size_gb\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x0c \x01(\x01\x42\x03\xe0\x41\x01\x12\x65\n\x0f\x64isk_redundancy\x18\r \x01(\x0e\x32G.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancyB\x03\xe0\x41\x01\x12%\n\x18sparse_diskgroup_enabled\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12!\n\x14local_backup_enabled\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fhostname_prefix\x18\x10 \x01(\tB\x03\xe0\x41\x01\x12g\n#diagnostics_data_collection_options\x18\x13 \x01(\x0b\x32\x35.google.cloud.oracledatabase.v1.DataCollectionOptionsB\x03\xe0\x41\x01\x12R\n\x05state\x18\x14 \x01(\x0e\x32>.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StateB\x03\xe0\x41\x03\x12#\n\x16scan_listener_port_tcp\x18\x15 \x01(\x05\x42\x03\xe0\x41\x01\x12\'\n\x1ascan_listener_port_tcp_ssl\x18\x16 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x64omain\x18\x17 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08scan_dns\x18\x18 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08hostname\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x63pu_core_count\x18\x1a \x01(\x05\x42\x03\xe0\x41\x02\x12\x1b\n\x0esystem_version\x18\x1b \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bscan_ip_ids\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x1f\n\x12scan_dns_record_id\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\x1e \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x62_server_ocids\x18\x1f \x03(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63ompartment_id\x18 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64ns_listener_ip\x18# \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_name\x18$ \x01(\tB\x03\xe0\x41\x01\x12H\n\rcompute_model\x18% \x01(\x0e\x32,.google.cloud.oracledatabase.v1.ComputeModelB\x03\xe0\x41\x03\"]\n\x0bLicenseType\x12\x1c\n\x18LICENSE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"G\n\x0e\x44iskRedundancy\x12\x1f\n\x1b\x44ISK_REDUNDANCY_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06NORMAL\x10\x02\"\x97\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"\x8c\x01\n\x15\x44\x61taCollectionOptions\x12\'\n\x1a\x64iagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12&\n\x19health_monitoring_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\"\n\x15incident_logs_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x42\xed\x01\n\"com.google.cloud.oracledatabase.v1B\x13\x43loudVmClusterProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb b/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb index a8b1b06d1cad..c58739e32368 100644 --- a/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb +++ b/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb @@ -31,6 +31,8 @@ module Api # @!attribute [rw] selective_gapic_generation # @return [::Google::Api::SelectiveGapicGeneration] # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. class CommonLanguageSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -441,6 +443,8 @@ class LongRunning # This message is used to configure the generation of a subset of the RPCs in # a service for client libraries. + # + # Note: This feature should not be used in most cases. # @!attribute [rw] methods # @return [::Array<::String>] # An allowlist of the fully qualified names of RPCs that should be included diff --git a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb index ced3720bc476..2ca5b80a04f9 100644 --- a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb +++ b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb @@ -30,20 +30,28 @@ module V1 # projects/\\{project}/locations/\\{region}/autonomousDatabases/\\{autonomous_database} # @!attribute [rw] database # @return [::String] - # Optional. The name of the Autonomous Database. The database name must be - # unique in the project. The name must begin with a letter and can contain a - # maximum of 30 alphanumeric characters. + # Optional. Immutable. The name of the Autonomous Database. The database name + # must be unique in the project. The name must begin with a letter and can + # contain a maximum of 30 alphanumeric characters. # @!attribute [rw] display_name # @return [::String] - # Optional. The display name for the Autonomous Database. The name does not - # have to be unique within your project. + # Optional. Immutable. The display name for the Autonomous Database. The name + # does not have to be unique within your project. # @!attribute [r] entitlement_id # @return [::String] # Output only. The ID of the subscription entitlement associated with the # Autonomous Database. # @!attribute [rw] admin_password # @return [::String] - # Optional. The password for the default ADMIN user. + # Optional. Immutable. The password for the default ADMIN user. + # Note: Only one of `admin_password_secret_version` or `admin_password` can + # be populated. + # @!attribute [rw] admin_password_secret_version + # @return [::String] + # Optional. Immutable. The resource name of a secret version in Secret + # Manager which contains the database admin user's password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of + # `admin_password_secret_version` or `admin_password` can be populated. # @!attribute [rw] properties # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties] # Optional. The properties of the Autonomous Database. @@ -52,28 +60,30 @@ module V1 # Optional. The labels or tags associated with the Autonomous Database. # @!attribute [rw] network # @return [::String] - # Optional. The name of the VPC network used by the Autonomous Database in - # the following format: projects/\\{project}/global/networks/\\{network} + # Optional. Immutable. The name of the VPC network used by the Autonomous + # Database in the following format: + # projects/\\{project}/global/networks/\\{network} # @!attribute [rw] cidr # @return [::String] - # Optional. The subnet CIDR range for the Autonomous Database. + # Optional. Immutable. The subnet CIDR range for the Autonomous Database. # @!attribute [rw] odb_network # @return [::String] - # Optional. The name of the OdbNetwork associated with the Autonomous - # Database. Format: + # Optional. Immutable. The name of the OdbNetwork associated with the + # Autonomous Database. Format: # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} It is # optional but if specified, this should match the parent ODBNetwork of the # OdbSubnet. # @!attribute [rw] odb_subnet # @return [::String] - # Optional. The name of the OdbSubnet associated with the Autonomous - # Database. Format: + # Optional. Immutable. The name of the OdbSubnet associated with the + # Autonomous Database. Format: # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} # @!attribute [rw] source_config # @return [::Google::Cloud::OracleDatabase::V1::SourceConfig] - # Optional. The source Autonomous Database configuration for the standby - # Autonomous Database. The source Autonomous Database is configured while - # creating the Peer Autonomous Database and can't be updated after creation. + # Optional. Immutable. The source Autonomous Database configuration for the + # standby Autonomous Database. The source Autonomous Database is configured + # while creating the Peer Autonomous Database and can't be updated after + # creation. # @!attribute [r] peer_autonomous_databases # @return [::Array<::String>] # Output only. The peer Autonomous Database names of the given Autonomous @@ -120,71 +130,79 @@ class SourceConfig # https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle # @!attribute [rw] compute_count # @return [::Float] - # Optional. The number of compute servers for the Autonomous Database. + # Optional. Immutable. The number of compute servers for the Autonomous + # Database. # @!attribute [rw] cpu_core_count # @return [::Integer] - # Optional. The number of CPU cores to be made available to the database. + # Optional. Immutable. The number of CPU cores to be made available to the + # database. # @!attribute [rw] data_storage_size_tb # @return [::Integer] - # Optional. The size of the data stored in the database, in terabytes. + # Optional. Immutable. The size of the data stored in the database, in + # terabytes. # @!attribute [rw] data_storage_size_gb # @return [::Integer] - # Optional. The size of the data stored in the database, in gigabytes. + # Optional. Immutable. The size of the data stored in the database, in + # gigabytes. # @!attribute [rw] db_workload # @return [::Google::Cloud::OracleDatabase::V1::DBWorkload] - # Required. The workload type of the Autonomous Database. + # Required. Immutable. The workload type of the Autonomous Database. # @!attribute [rw] db_edition # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::DatabaseEdition] - # Optional. The edition of the Autonomous Databases. + # Optional. Immutable. The edition of the Autonomous Databases. # @!attribute [rw] character_set # @return [::String] - # Optional. The character set for the Autonomous Database. The default is - # AL32UTF8. + # Optional. Immutable. The character set for the Autonomous Database. The + # default is AL32UTF8. # @!attribute [rw] n_character_set # @return [::String] - # Optional. The national character set for the Autonomous Database. The - # default is AL16UTF16. + # Optional. Immutable. The national character set for the Autonomous + # Database. The default is AL16UTF16. # @!attribute [rw] private_endpoint_ip # @return [::String] - # Optional. The private endpoint IP address for the Autonomous Database. + # Optional. Immutable. The private endpoint IP address for the Autonomous + # Database. # @!attribute [rw] private_endpoint_label # @return [::String] - # Optional. The private endpoint label for the Autonomous Database. + # Optional. Immutable. The private endpoint label for the Autonomous + # Database. # @!attribute [rw] db_version # @return [::String] - # Optional. The Oracle Database version for the Autonomous Database. + # Optional. Immutable. The Oracle Database version for the Autonomous + # Database. # @!attribute [rw] is_auto_scaling_enabled # @return [::Boolean] - # Optional. This field indicates if auto scaling is enabled for the - # Autonomous Database CPU core count. + # Optional. Immutable. This field indicates if auto scaling is enabled for + # the Autonomous Database CPU core count. # @!attribute [rw] is_storage_auto_scaling_enabled # @return [::Boolean] - # Optional. This field indicates if auto scaling is enabled for the - # Autonomous Database storage. + # Optional. Immutable. This field indicates if auto scaling is enabled for + # the Autonomous Database storage. # @!attribute [rw] license_type # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::LicenseType] - # Required. The license type used for the Autonomous Database. + # Required. Immutable. The license type used for the Autonomous Database. # @!attribute [rw] customer_contacts # @return [::Array<::Google::Cloud::OracleDatabase::V1::CustomerContact>] - # Optional. The list of customer contacts. + # Optional. Immutable. The list of customer contacts. # @!attribute [rw] secret_id # @return [::String] - # Optional. The ID of the Oracle Cloud Infrastructure vault secret. + # Optional. Immutable. The ID of the Oracle Cloud Infrastructure vault + # secret. # @!attribute [rw] vault_id # @return [::String] - # Optional. The ID of the Oracle Cloud Infrastructure vault. + # Optional. Immutable. The ID of the Oracle Cloud Infrastructure vault. # @!attribute [rw] maintenance_schedule_type # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::MaintenanceScheduleType] - # Optional. The maintenance schedule of the Autonomous Database. + # Optional. Immutable. The maintenance schedule of the Autonomous Database. # @!attribute [rw] mtls_connection_required # @return [::Boolean] - # Optional. This field specifies if the Autonomous Database requires mTLS - # connections. + # Optional. Immutable. This field specifies if the Autonomous Database + # requires mTLS connections. # @!attribute [rw] backup_retention_period_days # @return [::Integer] - # Optional. The retention period for the Autonomous Database. This field is - # specified in days, can range from 1 day to 60 days, and has a default value - # of 60 days. + # Optional. Immutable. The retention period for the Autonomous Database. This + # field is specified in days, can range from 1 day to 60 days, and has a + # default value of 60 days. # @!attribute [r] actual_used_data_storage_size_tb # @return [::Float] # Output only. The amount of storage currently being used for user and system @@ -236,13 +254,18 @@ class SourceConfig # Output only. The memory assigned to in-memory tables in an Autonomous # Database. # @!attribute [r] is_local_data_guard_enabled + # @deprecated This field is deprecated and may be removed in the next major version update. # @return [::Boolean] - # Output only. This field indicates whether the Autonomous Database has local - # (in-region) Data Guard enabled. + # Output only. Deprecated: Please use `local_data_guard_enabled` instead. + # This field indicates whether the Autonomous Database has local (in-region) + # Data Guard enabled. # @!attribute [r] local_adg_auto_failover_max_data_loss_limit + # @deprecated This field is deprecated and may be removed in the next major version update. # @return [::Integer] - # Output only. This field indicates the maximum data loss limit for an - # Autonomous Database, in seconds. + # Output only. Deprecated: Please use + # `local_adg_auto_failover_max_data_loss_limit_duration` instead. + # This field indicates the maximum data loss limit for an Autonomous + # Database, in seconds. # @!attribute [r] local_standby_db # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseStandbySummary] # Output only. The details of the Autonomous Data Guard standby database. @@ -329,7 +352,8 @@ class SourceConfig # Output only. The date and time when maintenance will end. # @!attribute [rw] allowlisted_ips # @return [::Array<::String>] - # Optional. The list of allowlisted IP addresses for the Autonomous Database. + # Optional. Immutable. The list of allowlisted IP addresses for the + # Autonomous Database. # @!attribute [rw] encryption_key # @return [::Google::Cloud::OracleDatabase::V1::EncryptionKey] # Optional. The encryption key used to encrypt the Autonomous Database. @@ -343,6 +367,15 @@ class SourceConfig # @return [::String] # Output only. An Oracle-managed Google Cloud service account on which # customers can grant roles to access resources in the customer project. + # @!attribute [rw] local_data_guard_enabled + # @return [::Boolean] + # Optional. Indicates whether the Autonomous Database has a local (in-region) + # standby database. Not applicable to cross-region Data Guard or dedicated + # Exadata infrastructure. + # @!attribute [rw] local_adg_auto_failover_max_data_loss_limit_duration + # @return [::Integer] + # Optional. This field indicates the maximum data loss limit for an + # Autonomous Database, in seconds. class AutonomousDatabaseProperties include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -394,6 +427,9 @@ module LocalDisasterRecoveryType # Backup based recovery. BACKUP_BASED = 2 + + # Local disaster recovery is not available. + NOT_AVAILABLE = 3 end # Varies states of the Data Safe registration for the Autonomous Database. diff --git a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb index adcbf6090e58..dc2c6697835e 100644 --- a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb +++ b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb @@ -37,10 +37,27 @@ module V1 # Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up. # @!attribute [rw] admin_password # @return [::String] - # Required. The password for the default ADMIN user. + # Optional. The password for the default ADMIN user. + # Note: Only one of `admin_password_secret_version` or `admin_password` can + # be populated. + # @!attribute [rw] admin_password_secret_version + # @return [::String] + # Optional. The resource name of a secret version in Secret Manager which + # contains the database admin user's password. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of + # `admin_password_secret_version` or `admin_password` can be populated. # @!attribute [rw] tde_wallet_password # @return [::String] # Optional. The TDE wallet password for the database. + # Note: Only one of `tde_wallet_password_secret_version` or + # `tde_wallet_password` can be populated. + # @!attribute [rw] tde_wallet_password_secret_version + # @return [::String] + # Optional. The resource name of a secret version in Secret Manager which + # contains the TDE wallet password for the database. Format: + # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of + # `tde_wallet_password_secret_version` or `tde_wallet_password` can be + # populated. # @!attribute [rw] character_set # @return [::String] # Optional. The character set for the database. The default is AL32UTF8. @@ -70,6 +87,15 @@ module V1 # @!attribute [r] ops_insights_status # @return [::Google::Cloud::OracleDatabase::V1::Database::OperationsInsightsStatus] # Output only. The Status of Operations Insights for this Database. + # @!attribute [rw] pluggable_database_id + # @return [::String] + # Optional. The ID of the pluggable database associated with the Database. + # The ID must be unique within the project and location. + # @!attribute [rw] pluggable_database_name + # @return [::String] + # Optional. The pluggable database associated with the Database. The name + # must begin with an alphabetic character and can contain a maximum of thirty + # alphanumeric characters. class Database include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb index 2af2f8a42e45..a0ddb7359484 100644 --- a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb +++ b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb @@ -248,7 +248,8 @@ module StorageManagement # The storage management is unspecified. STORAGE_MANAGEMENT_UNSPECIFIED = 0 - # Automatic storage management. + # Automatic storage management. This option is not supported. Only LVM is + # supported. ASM = 1 # Logical Volume management. @@ -371,6 +372,10 @@ class ListDbSystemsRequest # @!attribute [rw] next_page_token # @return [::String] # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. class ListDbSystemsResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb index 92eea908bc1d..77be14deeb44 100644 --- a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb +++ b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb @@ -207,6 +207,10 @@ class ListExascaleDbStorageVaultsRequest # the next page token can be provided to a subsequent # ListExascaleDbStorageVaults call to list the next page. # If empty, there are no more pages. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. class ListExascaleDbStorageVaultsResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb rename to google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb rename to google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_assignment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb rename to google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_connection_type.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb rename to google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb rename to google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_environment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb rename to google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_type.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb rename to google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/goldengate_deployment_version.rb diff --git a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb index 684d355111a4..b7cf8dedc5e8 100644 --- a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +++ b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb @@ -52,6 +52,10 @@ class ListCloudExadataInfrastructuresRequest # @!attribute [rw] next_page_token # @return [::String] # A token for fetching next page of response. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. class ListCloudExadataInfrastructuresResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -151,6 +155,10 @@ class ListCloudVmClustersRequest # @!attribute [rw] next_page_token # @return [::String] # A token to fetch the next page of results. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. class ListCloudVmClustersResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -448,6 +456,10 @@ class ListAutonomousDatabasesRequest # @!attribute [rw] next_page_token # @return [::String] # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. class ListAutonomousDatabasesResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -588,7 +600,8 @@ class RestartAutonomousDatabaseRequest # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. # @!attribute [rw] peer_autonomous_database # @return [::String] - # Required. The peer database name to switch over to. + # Optional. The peer database name to switch over to. Required for + # cross-region standby, and must be omitted for in-region Data Guard. class SwitchoverAutonomousDatabaseRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -601,7 +614,8 @@ class SwitchoverAutonomousDatabaseRequest # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. # @!attribute [rw] peer_autonomous_database # @return [::String] - # Required. The peer database name to fail over to. + # Optional. The peer database name to fail over to. Required for cross-region + # standby, and must be omitted for in-region Data Guard. class FailoverAutonomousDatabaseRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -838,6 +852,10 @@ class ListExadbVmClustersRequest # @!attribute [rw] next_page_token # @return [::String] # A token identifying a page of results the server should return. + # @!attribute [rw] unreachable + # @return [::Array<::String>] + # Unreachable locations when listing resources across all locations using + # wildcard location '-'. class ListExadbVmClustersResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods diff --git a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb index 4097d7d1b985..59a753f5f8d9 100644 --- a/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +++ b/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb @@ -149,12 +149,12 @@ class LabelsEntry # @!attribute [r] state # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties::State] # Output only. State of the cluster. - # @!attribute [r] scan_listener_port_tcp + # @!attribute [rw] scan_listener_port_tcp # @return [::Integer] - # Output only. SCAN listener port - TCP - # @!attribute [r] scan_listener_port_tcp_ssl + # Optional. SCAN listener port - TCP + # @!attribute [rw] scan_listener_port_tcp_ssl # @return [::Integer] - # Output only. SCAN listener port - TLS + # Optional. SCAN listener port - TLS # @!attribute [r] domain # @return [::String] # Output only. Parent DNS domain where SCAN DNS and hosts names are diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection_assignment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection_assignment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection_assignment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_connection_assignment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_deployment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_deployment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_deployment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/create_goldengate_deployment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection_assignment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection_assignment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection_assignment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_connection_assignment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_deployment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_deployment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_deployment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/delete_goldengate_deployment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_assignment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_assignment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_assignment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_assignment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_type.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_type.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_type.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_connection_type.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_environment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_environment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_environment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_environment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_type.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_type.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_type.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_type.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_version.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_version.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_version.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/get_goldengate_deployment_version.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_assignments.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_assignments.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_assignments.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_assignments.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_types.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_types.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_types.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connection_types.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connections.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connections.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connections.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_connections.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_environments.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_environments.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_environments.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_environments.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_types.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_types.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_types.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_types.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_versions.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_versions.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_versions.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployment_versions.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployments.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployments.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployments.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/list_goldengate_deployments.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_goldengate_deployment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/start_goldengate_deployment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_goldengate_deployment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/start_goldengate_deployment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_goldengate_deployment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/stop_goldengate_deployment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_goldengate_deployment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/stop_goldengate_deployment.rb diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/test_goldengate_connection_assignment.rb b/google-cloud-oracle_database-v1/snippets/oracle_database/test_goldengate_connection_assignment.rb similarity index 100% rename from owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/test_goldengate_connection_assignment.rb rename to google-cloud-oracle_database-v1/snippets/oracle_database/test_goldengate_connection_assignment.rb diff --git a/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json b/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json index 4e7d90352fe6..5e431c4714b1 100644 --- a/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json +++ b/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json @@ -2251,6 +2251,726 @@ } ] }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeployments_sync", + "title": "Snippet for the list_goldengate_deployments call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployments.", + "file": "oracle_database/list_goldengate_deployments.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_deployments", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployments", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateDeployments", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeployments", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeployment_sync", + "title": "Snippet for the get_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment.", + "file": "oracle_database/get_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeployment", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateDeployment_sync", + "title": "Snippet for the create_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_deployment.", + "file": "oracle_database/create_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateDeployment_sync", + "title": "Snippet for the delete_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_deployment.", + "file": "oracle_database/delete_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_StopGoldengateDeployment_sync", + "title": "Snippet for the stop_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_goldengate_deployment.", + "file": "oracle_database/stop_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "stop_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "StopGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StopGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_StartGoldengateDeployment_sync", + "title": "Snippet for the start_goldengate_deployment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_goldengate_deployment.", + "file": "oracle_database/start_goldengate_deployment.rb", + "language": "RUBY", + "client_method": { + "short_name": "start_goldengate_deployment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_goldengate_deployment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "StartGoldengateDeployment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StartGoldengateDeployment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnections_sync", + "title": "Snippet for the list_goldengate_connections call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connections.", + "file": "oracle_database/list_goldengate_connections.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_connections", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connections", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateConnections", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnections", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnection_sync", + "title": "Snippet for the get_goldengate_connection call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection.", + "file": "oracle_database/get_goldengate_connection.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_connection", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnection", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateConnection", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnection", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnection_sync", + "title": "Snippet for the create_goldengate_connection call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection.", + "file": "oracle_database/create_goldengate_connection.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_goldengate_connection", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateGoldengateConnection", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateConnection", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnection_sync", + "title": "Snippet for the delete_goldengate_connection call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection.", + "file": "oracle_database/delete_goldengate_connection.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_goldengate_connection", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteGoldengateConnection", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateConnection", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_sync", + "title": "Snippet for the get_goldengate_deployment_version call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_version.", + "file": "oracle_database/get_goldengate_deployment_version.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_deployment_version", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_version", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateDeploymentVersion", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentVersion", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentVersions_sync", + "title": "Snippet for the list_goldengate_deployment_versions call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_versions.", + "file": "oracle_database/list_goldengate_deployment_versions.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_deployment_versions", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_versions", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateDeploymentVersions", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentVersions", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_sync", + "title": "Snippet for the get_goldengate_deployment_type call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_type.", + "file": "oracle_database/get_goldengate_deployment_type.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_deployment_type", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_type", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateDeploymentType", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentType", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentTypes_sync", + "title": "Snippet for the list_goldengate_deployment_types call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_types.", + "file": "oracle_database/list_goldengate_deployment_types.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_deployment_types", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_types", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateDeploymentTypes", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentTypes", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_sync", + "title": "Snippet for the get_goldengate_deployment_environment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_environment.", + "file": "oracle_database/get_goldengate_deployment_environment.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_deployment_environment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_environment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateDeploymentEnvironment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentEnvironment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentEnvironments_sync", + "title": "Snippet for the list_goldengate_deployment_environments call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_environments.", + "file": "oracle_database/list_goldengate_deployment_environments.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_deployment_environments", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_environments", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateDeploymentEnvironments", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentEnvironments", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_sync", + "title": "Snippet for the get_goldengate_connection_type call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_type.", + "file": "oracle_database/get_goldengate_connection_type.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_connection_type", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_type", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateConnectionType", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnectionType", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionTypes_sync", + "title": "Snippet for the list_goldengate_connection_types call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_types.", + "file": "oracle_database/list_goldengate_connection_types.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_connection_types", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_types", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateConnectionTypes", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnectionTypes", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, { "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync", "title": "Snippet for the list_db_versions call in the OracleDatabase service", @@ -2330,6 +3050,206 @@ "type": "FULL" } ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionAssignments_sync", + "title": "Snippet for the list_goldengate_connection_assignments call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_assignments.", + "file": "oracle_database/list_goldengate_connection_assignments.rb", + "language": "RUBY", + "client_method": { + "short_name": "list_goldengate_connection_assignments", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_assignments", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "ListGoldengateConnectionAssignments", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnectionAssignments", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 50, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionAssignment_sync", + "title": "Snippet for the get_goldengate_connection_assignment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_assignment.", + "file": "oracle_database/get_goldengate_connection_assignment.rb", + "language": "RUBY", + "client_method": { + "short_name": "get_goldengate_connection_assignment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_assignment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "GetGoldengateConnectionAssignment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnectionAssignment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnectionAssignment_sync", + "title": "Snippet for the create_goldengate_connection_assignment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection_assignment.", + "file": "oracle_database/create_goldengate_connection_assignment.rb", + "language": "RUBY", + "client_method": { + "short_name": "create_goldengate_connection_assignment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection_assignment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "CreateGoldengateConnectionAssignment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateConnectionAssignment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnectionAssignment_sync", + "title": "Snippet for the delete_goldengate_connection_assignment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection_assignment.", + "file": "oracle_database/delete_goldengate_connection_assignment.rb", + "language": "RUBY", + "client_method": { + "short_name": "delete_goldengate_connection_assignment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection_assignment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Longrunning::Operation", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "DeleteGoldengateConnectionAssignment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateConnectionAssignment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 53, + "type": "FULL" + } + ] + }, + { + "region_tag": "oracledatabase_v1_generated_OracleDatabase_TestGoldengateConnectionAssignment_sync", + "title": "Snippet for the test_goldengate_connection_assignment call in the OracleDatabase service", + "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#test_goldengate_connection_assignment.", + "file": "oracle_database/test_goldengate_connection_assignment.rb", + "language": "RUBY", + "client_method": { + "short_name": "test_goldengate_connection_assignment", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#test_goldengate_connection_assignment", + "async": false, + "parameters": [ + { + "type": "::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest", + "name": "request" + } + ], + "result_type": "::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse", + "client": { + "short_name": "OracleDatabase::Client", + "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" + }, + "method": { + "short_name": "TestGoldengateConnectionAssignment", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.TestGoldengateConnectionAssignment", + "service": { + "short_name": "OracleDatabase", + "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" + } + } + }, + "canonical": true, + "origin": "API_DEFINITION", + "segments": [ + { + "start": 20, + "end": 46, + "type": "FULL" + } + ] } ] } \ No newline at end of file diff --git a/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb b/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb index 248184bb5b99..bdd58b2ae0e8 100644 --- a/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb +++ b/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb @@ -149,6 +149,90 @@ def test_gi_version_path end end + def test_goldengate_connection_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_connection_path project: "value0", location: "value1", goldengate_connection: "value2" + assert_equal "projects/value0/locations/value1/goldengateConnections/value2", path + end + end + + def test_goldengate_connection_assignment_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_connection_assignment_path project: "value0", location: "value1", goldengate_connection_assignment: "value2" + assert_equal "projects/value0/locations/value1/goldengateConnectionAssignments/value2", path + end + end + + def test_goldengate_connection_type_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_connection_type_path project: "value0", location: "value1", goldengate_connection_type: "value2" + assert_equal "projects/value0/locations/value1/goldengateConnectionTypes/value2", path + end + end + + def test_goldengate_deployment_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_deployment_path project: "value0", location: "value1", goldengate_deployment: "value2" + assert_equal "projects/value0/locations/value1/goldengateDeployments/value2", path + end + end + + def test_goldengate_deployment_environment_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_deployment_environment_path project: "value0", location: "value1", goldengate_deployment_environment: "value2" + assert_equal "projects/value0/locations/value1/goldengateDeploymentEnvironments/value2", path + end + end + + def test_goldengate_deployment_type_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_deployment_type_path project: "value0", location: "value1", goldengate_deployment_type: "value2" + assert_equal "projects/value0/locations/value1/goldengateDeploymentTypes/value2", path + end + end + + def test_goldengate_deployment_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.goldengate_deployment_version_path project: "value0", location: "value1", goldengate_deployment_version: "value2" + assert_equal "projects/value0/locations/value1/goldengateDeploymentVersions/value2", path + end + end + def test_location_path grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure ::Gapic::ServiceStub.stub :new, DummyStub.new do @@ -208,4 +292,16 @@ def test_pluggable_database_path assert_equal "projects/value0/locations/value1/pluggableDatabases/value2", path end end + + def test_secret_version_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.secret_version_path project: "value0", secret: "value1", secret_version: "value2" + assert_equal "projects/value0/secrets/value1/versions/value2", path + end + end end diff --git a/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb b/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb index 44faa21b54fa..0022af455a82 100644 --- a/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb +++ b/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb @@ -3210,6 +3210,1006 @@ def test_delete_db_system end end + def test_list_goldengate_deployments + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_deployments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployments_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_deployments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_deployments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_deployments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_deployments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_deployments_client_stub.call_count + end + end + end + + def test_get_goldengate_deployment + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_deployment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_deployment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_deployment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_client_stub.call_count + end + end + end + + def test_create_goldengate_deployment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_deployment_id = "hello world" + goldengate_deployment = {} + request_id = "hello world" + + create_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_goldengate_deployment parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_goldengate_deployment_client_stub.call_count + end + end + end + + def test_delete_goldengate_deployment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_goldengate_deployment({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_goldengate_deployment name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_goldengate_deployment({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_goldengate_deployment_client_stub.call_count + end + end + end + + def test_stop_goldengate_deployment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + stop_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_stop_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, stop_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.stop_goldengate_deployment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.stop_goldengate_deployment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.stop_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.stop_goldengate_deployment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.stop_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, stop_goldengate_deployment_client_stub.call_count + end + end + end + + def test_start_goldengate_deployment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + start_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_start_goldengate_deployment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, start_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.start_goldengate_deployment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.start_goldengate_deployment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.start_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.start_goldengate_deployment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.start_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, start_goldengate_deployment_client_stub.call_count + end + end + end + + def test_list_goldengate_connections + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_connections_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connections_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_connections_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_connections parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_connections ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_connections(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_connections_client_stub.call_count + end + end + end + + def test_get_goldengate_connection + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_connection({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_connection name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_connection ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_connection({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_connection(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_client_stub.call_count + end + end + end + + def test_create_goldengate_connection + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_connection_id = "hello world" + goldengate_connection = {} + request_id = "hello world" + + create_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_connection_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_goldengate_connection parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_goldengate_connection ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_goldengate_connection(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_goldengate_connection_client_stub.call_count + end + end + end + + def test_delete_goldengate_connection + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_connection_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_goldengate_connection({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_goldengate_connection name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_goldengate_connection ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_goldengate_connection({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_goldengate_connection(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_goldengate_connection_client_stub.call_count + end + end + end + + def test_get_goldengate_deployment_version + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_version_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_version_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_version_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_deployment_version({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_deployment_version name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_deployment_version ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_deployment_version({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_deployment_version(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_version_client_stub.call_count + end + end + end + + def test_list_goldengate_deployment_versions + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_goldengate_deployment_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_versions_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_deployment_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_deployment_versions ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_deployment_versions(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_versions_client_stub.call_count + end + end + end + + def test_get_goldengate_deployment_type + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_type_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_type_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_type_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_deployment_type({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_deployment_type name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_deployment_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_deployment_type({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_deployment_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_type_client_stub.call_count + end + end + end + + def test_list_goldengate_deployment_types + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_deployment_types_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_types_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_types_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_deployment_types parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_deployment_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_deployment_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_types_client_stub.call_count + end + end + end + + def test_get_goldengate_deployment_environment + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_environment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_environment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_environment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_deployment_environment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_deployment_environment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_deployment_environment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_deployment_environment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_deployment_environment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_environment_client_stub.call_count + end + end + end + + def test_list_goldengate_deployment_environments + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_goldengate_deployment_environments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_environments_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_environments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_deployment_environments parent: parent, page_size: page_size, page_token: page_token do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_deployment_environments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_deployment_environments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_environments_client_stub.call_count + end + end + end + + def test_get_goldengate_connection_type + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_type_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_type_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_type_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_connection_type({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_connection_type name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_connection_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_connection_type({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_connection_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_type_client_stub.call_count + end + end + end + + def test_list_goldengate_connection_types + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_goldengate_connection_types_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connection_types_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_connection_types_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_connection_types parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_connection_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_connection_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_connection_types_client_stub.call_count + end + end + end + def test_list_db_versions # Create test objects. client_result = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.new @@ -3324,6 +4324,285 @@ def test_list_database_character_sets end end + def test_list_goldengate_connection_assignments + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_connection_assignments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connection_assignments_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, list_goldengate_connection_assignments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.list_goldengate_connection_assignments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.list_goldengate_connection_assignments ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.list_goldengate_connection_assignments(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, list_goldengate_connection_assignments_client_stub.call_count + end + end + end + + def test_get_goldengate_connection_assignment + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_assignment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.get_goldengate_connection_assignment({ name: name }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.get_goldengate_connection_assignment name: name do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.get_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.get_goldengate_connection_assignment({ name: name }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.get_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_assignment_client_stub.call_count + end + end + end + + def test_create_goldengate_connection_assignment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_connection_assignment_id = "hello world" + goldengate_connection_assignment = {} + request_id = "hello world" + + create_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_connection_assignment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, create_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.create_goldengate_connection_assignment parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.create_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.create_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, create_goldengate_connection_assignment_client_stub.call_count + end + end + end + + def test_delete_goldengate_connection_assignment + # Create test objects. + client_result = ::Google::Longrunning::Operation.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_connection_assignment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, delete_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.delete_goldengate_connection_assignment name: name, request_id: request_id do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.delete_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.delete_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, delete_goldengate_connection_assignment_client_stub.call_count + end + end + end + + def test_test_goldengate_connection_assignment + # Create test objects. + client_result = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.new + http_response = OpenStruct.new body: client_result.to_json + + call_options = {} + + # Create request parameters for a unary method. + name = "hello world" + type = :TEST_TYPE_UNSPECIFIED + + test_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| + assert options.metadata.key? :"x-goog-api-client" + assert options.metadata[:"x-goog-api-client"].include? "rest" + refute options.metadata[:"x-goog-api-client"].include? "grpc" + end + + ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_test_goldengate_connection_assignment_request, ["", "", {}] do + Gapic::Rest::ClientStub.stub :new, test_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| + config.credentials = :dummy_value + end + + # Use hash object + client.test_goldengate_connection_assignment({ name: name, type: type }) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use named arguments + client.test_goldengate_connection_assignment name: name, type: type do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object + client.test_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use hash object with options + client.test_goldengate_connection_assignment({ name: name, type: type }, call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Use protobuf object with options + client.test_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type), call_options) do |_result, response| + assert_equal http_response, response.underlying_op + end + + # Verify method calls + assert_equal 5, test_goldengate_connection_assignment_client_stub.call_count + end + end + end + def test_configure credentials_token = :dummy_value diff --git a/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb b/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb index ba2783330c8d..4d63cb14de94 100644 --- a/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb +++ b/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb @@ -3752,9 +3752,1238 @@ def test_delete_db_system end end + def test_list_goldengate_deployments + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_deployments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_deployments, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_deployments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_deployments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_deployments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_deployments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_deployments_client_stub.call_rpc_count + end + end + + def test_get_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_deployment({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_deployment name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_deployment({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_create_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_deployment_id = "hello world" + goldengate_deployment = {} + request_id = "hello world" + + create_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["goldengate_deployment_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment), request["goldengate_deployment"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_goldengate_deployment parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_delete_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_goldengate_deployment({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_goldengate_deployment name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_goldengate_deployment({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_stop_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + stop_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :stop_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, stop_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.stop_goldengate_deployment({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.stop_goldengate_deployment name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.stop_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.stop_goldengate_deployment({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.stop_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, stop_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_start_goldengate_deployment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + start_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :start_goldengate_deployment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, start_goldengate_deployment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.start_goldengate_deployment({ name: name }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.start_goldengate_deployment name: name do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.start_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.start_goldengate_deployment({ name: name }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.start_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, start_goldengate_deployment_client_stub.call_rpc_count + end + end + + def test_list_goldengate_connections + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_connections_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_connections, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_connections_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_connections parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_connections ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_connections(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_connections_client_stub.call_rpc_count + end + end + + def test_get_goldengate_connection + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_connection, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_connection({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_connection name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_connection ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_connection({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_connection(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_client_stub.call_rpc_count + end + end + + def test_create_goldengate_connection + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_connection_id = "hello world" + goldengate_connection = {} + request_id = "hello world" + + create_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_goldengate_connection, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["goldengate_connection_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateConnection), request["goldengate_connection"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_goldengate_connection parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_goldengate_connection ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_goldengate_connection(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_goldengate_connection_client_stub.call_rpc_count + end + end + + def test_delete_goldengate_connection + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_goldengate_connection, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_goldengate_connection_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_goldengate_connection({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_goldengate_connection name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_goldengate_connection ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_goldengate_connection({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_goldengate_connection(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_goldengate_connection_client_stub.call_rpc_count + end + end + + def test_get_goldengate_deployment_version + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_version_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_deployment_version, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_deployment_version_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_deployment_version({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_deployment_version name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_deployment_version ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_deployment_version({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_deployment_version(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_version_client_stub.call_rpc_count + end + end + + def test_list_goldengate_deployment_versions + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_goldengate_deployment_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_deployment_versions, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_deployment_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_deployment_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_deployment_versions ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_deployment_versions(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_versions_client_stub.call_rpc_count + end + end + + def test_get_goldengate_deployment_type + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_type_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_deployment_type, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_deployment_type_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_deployment_type({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_deployment_type name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_deployment_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_deployment_type({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_deployment_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_type_client_stub.call_rpc_count + end + end + + def test_list_goldengate_deployment_types + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + order_by = "hello world" + + list_goldengate_deployment_types_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_deployment_types, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_deployment_types_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_deployment_types parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_deployment_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_deployment_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_types_client_stub.call_rpc_count + end + end + + def test_get_goldengate_deployment_environment + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_deployment_environment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_deployment_environment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_deployment_environment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_deployment_environment({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_deployment_environment name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_deployment_environment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_deployment_environment({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_deployment_environment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_deployment_environment_client_stub.call_rpc_count + end + end + + def test_list_goldengate_deployment_environments + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + + list_goldengate_deployment_environments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_deployment_environments, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_deployment_environments_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_deployment_environments parent: parent, page_size: page_size, page_token: page_token do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_deployment_environments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_deployment_environments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_deployment_environments_client_stub.call_rpc_count + end + end + + def test_get_goldengate_connection_type + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_type_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_connection_type, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_connection_type_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_connection_type({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_connection_type name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_connection_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_connection_type({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_connection_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_type_client_stub.call_rpc_count + end + end + + def test_list_goldengate_connection_types + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_goldengate_connection_types_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_connection_types, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_goldengate_connection_types_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_goldengate_connection_types parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_goldengate_connection_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_goldengate_connection_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_goldengate_connection_types_client_stub.call_rpc_count + end + end + def test_list_db_versions # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.new + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + page_size = 42 + page_token = "hello world" + filter = "hello world" + + list_db_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_db_versions, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, request + assert_equal "hello world", request["parent"] + assert_equal 42, request["page_size"] + assert_equal "hello world", request["page_token"] + assert_equal "hello world", request["filter"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, list_db_versions_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.list_db_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.list_db_versions ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.list_db_versions(::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + assert_kind_of Gapic::PagedEnumerable, response + assert_equal grpc_response, response.response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, list_db_versions_client_stub.call_rpc_count + end + end + + def test_list_database_character_sets + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.new grpc_operation = GRPC::ActiveCall::Operation.new nil grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure grpc_options = {} @@ -3765,9 +4994,9 @@ def test_list_db_versions page_token = "hello world" filter = "hello world" - list_db_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_db_versions, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, request + list_database_character_sets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_database_character_sets, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, request assert_equal "hello world", request["parent"] assert_equal 42, request["page_size"] assert_equal "hello world", request["page_token"] @@ -3775,55 +5004,55 @@ def test_list_db_versions refute_nil options end - Gapic::ServiceStub.stub :new, list_db_versions_client_stub do + Gapic::ServiceStub.stub :new, list_database_character_sets_client_stub do # Create client client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| config.credentials = grpc_channel end # Use hash object - client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use named arguments - client.list_db_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + client.list_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object - client.list_db_versions ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + client.list_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use hash object with options - client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object with options - client.list_db_versions(::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + client.list_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Verify method calls - assert_equal 5, list_db_versions_client_stub.call_rpc_count + assert_equal 5, list_database_character_sets_client_stub.call_rpc_count end end - def test_list_database_character_sets + def test_list_goldengate_connection_assignments # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.new + grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.new grpc_operation = GRPC::ActiveCall::Operation.new nil grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure grpc_options = {} @@ -3833,60 +5062,314 @@ def test_list_database_character_sets page_size = 42 page_token = "hello world" filter = "hello world" + order_by = "hello world" - list_database_character_sets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_database_character_sets, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, request + list_goldengate_connection_assignments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :list_goldengate_connection_assignments, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, request assert_equal "hello world", request["parent"] assert_equal 42, request["page_size"] assert_equal "hello world", request["page_token"] assert_equal "hello world", request["filter"] + assert_equal "hello world", request["order_by"] refute_nil options end - Gapic::ServiceStub.stub :new, list_database_character_sets_client_stub do + Gapic::ServiceStub.stub :new, list_goldengate_connection_assignments_client_stub do # Create client client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| config.credentials = grpc_channel end # Use hash object - client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use named arguments - client.list_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + client.list_goldengate_connection_assignments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object - client.list_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + client.list_goldengate_connection_assignments ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use hash object with options - client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object with options - client.list_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + client.list_goldengate_connection_assignments(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Verify method calls - assert_equal 5, list_database_character_sets_client_stub.call_rpc_count + assert_equal 5, list_goldengate_connection_assignments_client_stub.call_rpc_count + end + end + + def test_get_goldengate_connection_assignment + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + + get_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :get_goldengate_connection_assignment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, request + assert_equal "hello world", request["name"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, get_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.get_goldengate_connection_assignment({ name: name }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.get_goldengate_connection_assignment name: name do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.get_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.get_goldengate_connection_assignment({ name: name }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.get_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, get_goldengate_connection_assignment_client_stub.call_rpc_count + end + end + + def test_create_goldengate_connection_assignment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + parent = "hello world" + goldengate_connection_assignment_id = "hello world" + goldengate_connection_assignment = {} + request_id = "hello world" + + create_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :create_goldengate_connection_assignment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, request + assert_equal "hello world", request["parent"] + assert_equal "hello world", request["goldengate_connection_assignment_id"] + assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment), request["goldengate_connection_assignment"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, create_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.create_goldengate_connection_assignment parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.create_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.create_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, create_goldengate_connection_assignment_client_stub.call_rpc_count + end + end + + def test_delete_goldengate_connection_assignment + # Create GRPC objects. + grpc_response = ::Google::Longrunning::Operation.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + request_id = "hello world" + + delete_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :delete_goldengate_connection_assignment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, request + assert_equal "hello world", request["name"] + assert_equal "hello world", request["request_id"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, delete_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use named arguments + client.delete_goldengate_connection_assignment name: name, request_id: request_id do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.delete_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }, grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.delete_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| + assert_kind_of Gapic::Operation, response + assert_equal grpc_response, response.grpc_op + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, delete_goldengate_connection_assignment_client_stub.call_rpc_count + end + end + + def test_test_goldengate_connection_assignment + # Create GRPC objects. + grpc_response = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.new + grpc_operation = GRPC::ActiveCall::Operation.new nil + grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + grpc_options = {} + + # Create request parameters for a unary method. + name = "hello world" + type = :TEST_TYPE_UNSPECIFIED + + test_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| + assert_equal :test_goldengate_connection_assignment, name + assert_kind_of ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, request + assert_equal "hello world", request["name"] + assert_equal :TEST_TYPE_UNSPECIFIED, request["type"] + refute_nil options + end + + Gapic::ServiceStub.stub :new, test_goldengate_connection_assignment_client_stub do + # Create client + client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| + config.credentials = grpc_channel + end + + # Use hash object + client.test_goldengate_connection_assignment({ name: name, type: type }) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use named arguments + client.test_goldengate_connection_assignment name: name, type: type do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object + client.test_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use hash object with options + client.test_goldengate_connection_assignment({ name: name, type: type }, grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Use protobuf object with options + client.test_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type), grpc_options) do |response, operation| + assert_equal grpc_response, response + assert_equal grpc_operation, operation + end + + # Verify method calls + assert_equal 5, test_goldengate_connection_assignment_client_stub.call_rpc_count end end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.gitignore b/owl-bot-staging/google-cloud-oracle_database-v1/.gitignore deleted file mode 100644 index 0135b6bc6cfc..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/.gitignore +++ /dev/null @@ -1,22 +0,0 @@ -# Ignore bundler lockfiles -Gemfile.lock -gems.locked - -# Ignore documentation output -doc/* -.yardoc/* - -# Ignore test output -coverage/* - -# Ignore build artifacts -pkg/* - -# Ignore files commonly present in certain dev environments -.vagrant -.DS_STORE -.idea -*.iml - -# Ignore synth output -__pycache__ diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.repo-metadata.json b/owl-bot-staging/google-cloud-oracle_database-v1/.repo-metadata.json deleted file mode 100644 index d25b8ceec3d9..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "api_id": "oracledatabase.googleapis.com", - "api_shortname": "oracledatabase", - "client_documentation": "https://cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest", - "distribution_name": "google-cloud-oracle_database-v1", - "is_cloud": true, - "language": "ruby", - "name": "oracledatabase", - "name_pretty": "Oracle Database@Google Cloud V1 API", - "product_documentation": "https://cloud.google.com/oracle/database/docs", - "release_level": "unreleased", - "repo": "googleapis/google-cloud-ruby", - "requires_billing": true, - "ruby-cloud-description": "The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. Note that google-cloud-oracle_database-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-oracle_database instead. See the readme for more details.", - "ruby-cloud-product-url": "https://cloud.google.com/oracle/database/docs", - "library_type": "GAPIC_AUTO" -} diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.rubocop.yml b/owl-bot-staging/google-cloud-oracle_database-v1/.rubocop.yml deleted file mode 100644 index 5d3a13a478ab..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/.rubocop.yml +++ /dev/null @@ -1,33 +0,0 @@ -inherit_gem: - google-style: google-style.yml - -AllCops: - Exclude: - - "google-cloud-oracle_database-v1.gemspec" - - "lib/**/*_pb.rb" - - "proto_docs/**/*" - - "test/**/*" - - "acceptance/**/*" - - "samples/acceptance/**/*" - - "Rakefile" - -Layout/LineLength: - Enabled: false -Metrics/AbcSize: - Enabled: false -Metrics/ClassLength: - Enabled: false -Metrics/CyclomaticComplexity: - Enabled: false -Metrics/MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -Metrics/PerceivedComplexity: - Enabled: false -Naming/AccessorMethodName: - Exclude: - - "snippets/**/*.rb" -Naming/FileName: - Exclude: - - "lib/google-cloud-oracle_database-v1.rb" diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.toys.rb b/owl-bot-staging/google-cloud-oracle_database-v1/.toys.rb deleted file mode 100644 index 177e22456e8a..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/.toys.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -toys_version! ">= 0.15.3" - -if ENV["RUBY_COMMON_TOOLS"] - common_tools_dir = File.expand_path ENV["RUBY_COMMON_TOOLS"] - load File.join(common_tools_dir, "toys", "gapic") -else - load_git remote: "https://github.com/googleapis/ruby-common-tools.git", - path: "toys/gapic", - update: true -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/.yardopts b/owl-bot-staging/google-cloud-oracle_database-v1/.yardopts deleted file mode 100644 index 665101124a1e..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/.yardopts +++ /dev/null @@ -1,12 +0,0 @@ ---no-private ---title="Oracle Database@Google Cloud V1 API" ---exclude _pb\.rb$ ---markup markdown ---markup-provider redcarpet - -./lib/**/*.rb -./proto_docs/**/*.rb -- -README.md -LICENSE.md -AUTHENTICATION.md diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/AUTHENTICATION.md b/owl-bot-staging/google-cloud-oracle_database-v1/AUTHENTICATION.md deleted file mode 100644 index 2f3465a2fa8b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/AUTHENTICATION.md +++ /dev/null @@ -1,122 +0,0 @@ -# Authentication - -The recommended way to authenticate to the google-cloud-oracle_database-v1 library is to use -[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials). -To review all of your authentication options, see [Credentials lookup](#credential-lookup). - -## Quickstart - -The following example shows how to set up authentication for a local development -environment with your user credentials. - -**NOTE:** This method is _not_ recommended for running in production. User credentials -should be used only during development. - -1. [Download and install the Google Cloud CLI](https://cloud.google.com/sdk). -2. Set up a local ADC file with your user credentials: - -```sh -gcloud auth application-default login -``` - -3. Write code as if already authenticated. - -For more information about setting up authentication for a local development environment, see -[Set up Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-dev). - -## Credential Lookup - -The google-cloud-oracle_database-v1 library provides several mechanisms to configure your system. -Generally, using Application Default Credentials to facilitate automatic -credentials discovery is the easist method. But if you need to explicitly specify -credentials, there are several methods available to you. - -Credentials are accepted in the following ways, in the following order or precedence: - -1. Credentials specified in method arguments -2. Credentials specified in configuration -3. Credentials pointed to or included in environment variables -4. Credentials found in local ADC file -5. Credentials returned by the metadata server for the attached service account (GCP) - -### Configuration - -You can configure a path to a JSON credentials file, either for an individual client object or -globally, for all client objects. The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -To configure a credentials file for an individual client initialization: - -```ruby -require "google/cloud/oracle_database/v1" - -client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = "path/to/credentialfile.json" -end -``` - -To configure a credentials file globally for all clients: - -```ruby -require "google/cloud/oracle_database/v1" - -::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config| - config.credentials = "path/to/credentialfile.json" -end - -client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new -``` - -### Environment Variables - -You can also use an environment variable to provide a JSON credentials file. -The environment variable can contain a path to the credentials file or, for -environments such as Docker containers where writing files is not encouraged, -you can include the credentials file itself. - -The JSON file can contain credentials created for -[workload identity federation](https://cloud.google.com/iam/docs/workload-identity-federation), -[workforce identity federation](https://cloud.google.com/iam/docs/workforce-identity-federation), or a -[service account key](https://cloud.google.com/docs/authentication/provide-credentials-adc#local-key). - -Note: Service account keys are a security risk if not managed correctly. You should -[choose a more secure alternative to service account keys](https://cloud.google.com/docs/authentication#auth-decision-tree) -whenever possible. - -The environment variables that google-cloud-oracle_database-v1 -checks for credentials are: - -* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents -* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file - -```ruby -require "google/cloud/oracle_database/v1" - -ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json" - -client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new -``` - -### Local ADC file - -You can set up a local ADC file with your user credentials for authentication during -development. If credentials are not provided in code or in environment variables, -then the local ADC credentials are discovered. - -Follow the steps in [Quickstart](#quickstart) to set up a local ADC file. - -### Google Cloud Platform environments - -When running on Google Cloud Platform (GCP), including Google Compute Engine -(GCE), Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud -Functions (GCF) and Cloud Run, credentials are retrieved from the attached -service account automatically. Code should be written as if already authenticated. - -For more information, see -[Set up ADC for Google Cloud services](https://cloud.google.com/docs/authentication/provide-credentials-adc#attached-sa). diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/CHANGELOG.md b/owl-bot-staging/google-cloud-oracle_database-v1/CHANGELOG.md deleted file mode 100644 index f88957a62ba2..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Release History - diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/Gemfile b/owl-bot-staging/google-cloud-oracle_database-v1/Gemfile deleted file mode 100644 index 1d08558908d8..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/Gemfile +++ /dev/null @@ -1,14 +0,0 @@ -source "https://rubygems.org" - -gemspec - -gem "google-style", "~> 1.32.0" -gem "irb", "~> 1.17" -gem "minitest", "~> 6.0.2" -gem "minitest-focus", "~> 1.4" -gem "minitest-mock", "~> 5.27" -gem "minitest-rg", "~> 5.3" -gem "ostruct", "~> 0.5.5" -gem "rake", ">= 13.0" -gem "redcarpet", "~> 3.6" -gem "yard", "~> 0.9" diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/LICENSE.md b/owl-bot-staging/google-cloud-oracle_database-v1/LICENSE.md deleted file mode 100644 index c261857ba6ad..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/LICENSE.md +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/README.md b/owl-bot-staging/google-cloud-oracle_database-v1/README.md deleted file mode 100644 index 1f1ce0b8ea51..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/README.md +++ /dev/null @@ -1,154 +0,0 @@ -# Ruby Client for the Oracle Database@Google Cloud V1 API - -The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. - -The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. - -https://github.com/googleapis/google-cloud-ruby - -This gem is a _versioned_ client. It provides basic client classes for a -specific version of the Oracle Database@Google Cloud V1 API. Most users should consider using -the main client gem, -[google-cloud-oracle_database](https://rubygems.org/gems/google-cloud-oracle_database). -See the section below titled *Which client should I use?* for more information. - -## Installation - -``` -$ gem install google-cloud-oracle_database-v1 -``` - -## Before You Begin - -In order to use this library, you first need to go through the following steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project) -1. [Enable the API.](https://console.cloud.google.com/apis/library/oracledatabase.googleapis.com) -1. [Set up authentication.](AUTHENTICATION.md) - -## Quick Start - -```ruby -require "google/cloud/oracle_database/v1" - -client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new -request = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new # (request fields as keyword arguments...) -response = client.list_cloud_exadata_infrastructures request -``` - -View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-oracle_database-v1/latest) -for class and method documentation. - -See also the [Product Documentation](https://cloud.google.com/oracle/database/docs) -for general usage information. - -## Debug Logging - -This library comes with opt-in Debug Logging that can help you troubleshoot -your application's integration with the API. When logging is activated, key -events such as requests and responses, along with data payloads and metadata -such as headers and client configuration, are logged to the standard error -stream. - -**WARNING:** Client Library Debug Logging includes your data payloads in -plaintext, which could include sensitive data such as PII for yourself or your -customers, private keys, or other security data that could be compromising if -leaked. Always practice good data hygiene with your application logs, and follow -the principle of least access. Google also recommends that Client Library Debug -Logging be enabled only temporarily during active debugging, and not used -permanently in production. - -To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS` -to the value `all`. Alternatively, you can set the value to a comma-delimited -list of client library gem names. This will select the default logging behavior, -which writes logs to the standard error stream. On a local workstation, this may -result in logs appearing on the console. When running on a Google Cloud hosting -service such as [Google Cloud Run](https://cloud.google.com/run), this generally -results in logs appearing alongside your application logs in the -[Google Cloud Logging](https://cloud.google.com/logging/) service. - -You can customize logging by modifying the `logger` configuration when -constructing a client object. For example: - -```ruby -require "google/cloud/oracle_database/v1" -require "logger" - -client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.logger = Logger.new "my-app.log" -end -``` - -## Google Cloud Samples - -To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples). - -## Supported Ruby Versions - -This library is supported on Ruby 3.0+. - -Google provides official support for Ruby versions that are actively supported -by Ruby Core—that is, Ruby versions that are either in normal maintenance or -in security maintenance, and not end of life. Older versions of Ruby _may_ -still work, but are unsupported and not recommended. See -https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby -support schedule. - -## Which client should I use? - -Most modern Ruby client libraries for Google APIs come in two flavors: the main -client library with a name such as `google-cloud-oracle_database`, -and lower-level _versioned_ client libraries with names such as -`google-cloud-oracle_database-v1`. -_In most cases, you should install the main client._ - -### What's the difference between the main client and a versioned client? - -A _versioned client_ provides a basic set of data types and client classes for -a _single version_ of a specific service. (That is, for a service with multiple -versions, there might be a separate versioned client for each service version.) -Most versioned clients are written and maintained by a code generator. - -The _main client_ is designed to provide you with the _recommended_ client -interfaces for the service. There will be only one main client for any given -service, even a service with multiple versions. The main client includes -factory methods for constructing the client objects we recommend for most -users. In some cases, those will be classes provided by an underlying versioned -client; in other cases, they will be handwritten higher-level client objects -with additional capabilities, convenience methods, or best practices built in. -Generally, the main client will default to a recommended service version, -although in some cases you can override this if you need to talk to a specific -service version. - -### Why would I want to use the main client? - -We recommend that most users install the main client gem for a service. You can -identify this gem as the one _without_ a version in its name, e.g. -`google-cloud-oracle_database`. -The main client is recommended because it will embody the best practices for -accessing the service, and may also provide more convenient interfaces or -tighter integration into frameworks and third-party libraries. In addition, the -documentation and samples published by Google will generally demonstrate use of -the main client. - -### Why would I want to use a versioned client? - -You can use a versioned client if you are content with a possibly lower-level -class interface, you explicitly want to avoid features provided by the main -client, or you want to access a specific service version not be covered by the -main client. You can identify versioned client gems because the service version -is part of the name, e.g. `google-cloud-oracle_database-v1`. - -### What about the google-apis- clients? - -Client library gems with names that begin with `google-apis-` are based on an -older code generation technology. They talk to a REST/JSON backend (whereas -most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may -not offer the same performance, features, and ease of use provided by more -modern clients. - -The `google-apis-` clients have wide coverage across Google services, so you -might need to use one if there is no modern client available for the service. -However, if a modern client is available, we generally recommend it over the -older `google-apis-` clients. diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/Rakefile b/owl-bot-staging/google-cloud-oracle_database-v1/Rakefile deleted file mode 100644 index 1d5a8d1e2052..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/Rakefile +++ /dev/null @@ -1,169 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "bundler/setup" -require "bundler/gem_tasks" - -require "rubocop/rake_task" -RuboCop::RakeTask.new - -require "rake/testtask" -desc "Run tests." -Rake::TestTask.new do |t| - t.libs << "test" - t.test_files = FileList["test/**/*_test.rb"] - t.warning = false -end - -desc "Runs the smoke tests." -Rake::TestTask.new :smoke_test do |t| - t.test_files = FileList["acceptance/**/*smoke_test.rb"] - t.warning = false -end - -# Acceptance tests -desc "Run the google-cloud-oracle_database-v1 acceptance tests." -task :acceptance, :project, :keyfile do |t, args| - project = args[:project] - project ||= - ENV["GOOGLE_CLOUD_TEST_PROJECT"] || - ENV["GCLOUD_TEST_PROJECT"] - keyfile = args[:keyfile] - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE"] || - ENV["GCLOUD_TEST_KEYFILE"] - if keyfile - keyfile = File.read keyfile - else - keyfile ||= - ENV["GOOGLE_CLOUD_TEST_KEYFILE_JSON"] || - ENV["GCLOUD_TEST_KEYFILE_JSON"] - end - if project.nil? || keyfile.nil? - fail "You must provide a project and keyfile. e.g. rake acceptance[test123, /path/to/keyfile.json] or GOOGLE_CLOUD_TEST_PROJECT=test123 GOOGLE_CLOUD_TEST_KEYFILE=/path/to/keyfile.json rake acceptance" - end - require "google/cloud/oracle_database/v1/oracle_database/credentials" - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Credentials.env_vars.each do |path| - ENV[path] = nil - end - ENV["GOOGLE_CLOUD_PROJECT"] = project - ENV["GOOGLE_CLOUD_TEST_PROJECT"] = project - ENV["GOOGLE_CLOUD_KEYFILE_JSON"] = keyfile - - Rake::Task["acceptance:run"].invoke -end - -namespace :acceptance do - task :run do - if File.directory? "acceptance" - Rake::Task[:smoke_test].invoke - else - puts "The google-cloud-oracle_database-v1 gem has no acceptance tests." - end - end - - desc "Run acceptance cleanup." - task :cleanup do - end -end - -task :samples do - Rake::Task["samples:latest"].invoke -end - -namespace :samples do - task :latest do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "not_master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-oracle_database-v1 gem has no samples to test." - end - end - - task :master do - if File.directory? "samples" - Dir.chdir "samples" do - Bundler.with_clean_env do - ENV["GOOGLE_CLOUD_SAMPLES_TEST"] = "master" - sh "bundle update" - sh "bundle exec rake test" - end - end - else - puts "The google-cloud-oracle_database-v1 gem has no samples to test." - end - end -end - -require "yard" -require "yard/rake/yardoc_task" -YARD::Rake::YardocTask.new do |y| - y.options << "--fail-on-warning" -end - -desc "Run yard-doctest example tests." -task :doctest do - puts "The google-cloud-oracle_database-v1 gem does not have doctest tests." -end - -desc "Run the CI build" -task :ci do - header "BUILDING google-cloud-oracle_database-v1" - header "google-cloud-oracle_database-v1 rubocop", "*" - Rake::Task[:rubocop].invoke - header "google-cloud-oracle_database-v1 yard", "*" - Rake::Task[:yard].invoke - header "google-cloud-oracle_database-v1 test", "*" - Rake::Task[:test].invoke -end - -namespace :ci do - desc "Run the CI build, with smoke tests." - task :smoke_test do - Rake::Task[:ci].invoke - header "google-cloud-oracle_database-v1 smoke_test", "*" - Rake::Task[:smoke_test].invoke - end - desc "Run the CI build, with acceptance tests." - task :acceptance do - Rake::Task[:ci].invoke - header "google-cloud-oracle_database-v1 acceptance", "*" - Rake::Task[:acceptance].invoke - end - task :a do - # This is a handy shortcut to save typing - Rake::Task["ci:acceptance"].invoke - end -end - -task default: :test - -def header str, token = "#" - line_length = str.length + 8 - puts "" - puts token * line_length - puts "#{token * 3} #{str} #{token * 3}" - puts token * line_length - puts "" -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/gapic_metadata.json b/owl-bot-staging/google-cloud-oracle_database-v1/gapic_metadata.json deleted file mode 100644 index 9e05cdb0dd0e..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/gapic_metadata.json +++ /dev/null @@ -1,423 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "ruby", - "protoPackage": "google.cloud.oracledatabase.v1", - "libraryPackage": "::Google::Cloud::OracleDatabase::V1", - "services": { - "OracleDatabase": { - "clients": { - "grpc": { - "libraryClient": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client", - "rpcs": { - "ListCloudExadataInfrastructures": { - "methods": [ - "list_cloud_exadata_infrastructures" - ] - }, - "GetCloudExadataInfrastructure": { - "methods": [ - "get_cloud_exadata_infrastructure" - ] - }, - "CreateCloudExadataInfrastructure": { - "methods": [ - "create_cloud_exadata_infrastructure" - ] - }, - "DeleteCloudExadataInfrastructure": { - "methods": [ - "delete_cloud_exadata_infrastructure" - ] - }, - "ListCloudVmClusters": { - "methods": [ - "list_cloud_vm_clusters" - ] - }, - "GetCloudVmCluster": { - "methods": [ - "get_cloud_vm_cluster" - ] - }, - "CreateCloudVmCluster": { - "methods": [ - "create_cloud_vm_cluster" - ] - }, - "DeleteCloudVmCluster": { - "methods": [ - "delete_cloud_vm_cluster" - ] - }, - "ListEntitlements": { - "methods": [ - "list_entitlements" - ] - }, - "ListDbServers": { - "methods": [ - "list_db_servers" - ] - }, - "ListDbNodes": { - "methods": [ - "list_db_nodes" - ] - }, - "ListGiVersions": { - "methods": [ - "list_gi_versions" - ] - }, - "ListMinorVersions": { - "methods": [ - "list_minor_versions" - ] - }, - "ListDbSystemShapes": { - "methods": [ - "list_db_system_shapes" - ] - }, - "ListAutonomousDatabases": { - "methods": [ - "list_autonomous_databases" - ] - }, - "GetAutonomousDatabase": { - "methods": [ - "get_autonomous_database" - ] - }, - "CreateAutonomousDatabase": { - "methods": [ - "create_autonomous_database" - ] - }, - "UpdateAutonomousDatabase": { - "methods": [ - "update_autonomous_database" - ] - }, - "DeleteAutonomousDatabase": { - "methods": [ - "delete_autonomous_database" - ] - }, - "RestoreAutonomousDatabase": { - "methods": [ - "restore_autonomous_database" - ] - }, - "GenerateAutonomousDatabaseWallet": { - "methods": [ - "generate_autonomous_database_wallet" - ] - }, - "ListAutonomousDbVersions": { - "methods": [ - "list_autonomous_db_versions" - ] - }, - "ListAutonomousDatabaseCharacterSets": { - "methods": [ - "list_autonomous_database_character_sets" - ] - }, - "ListAutonomousDatabaseBackups": { - "methods": [ - "list_autonomous_database_backups" - ] - }, - "StopAutonomousDatabase": { - "methods": [ - "stop_autonomous_database" - ] - }, - "StartAutonomousDatabase": { - "methods": [ - "start_autonomous_database" - ] - }, - "RestartAutonomousDatabase": { - "methods": [ - "restart_autonomous_database" - ] - }, - "SwitchoverAutonomousDatabase": { - "methods": [ - "switchover_autonomous_database" - ] - }, - "FailoverAutonomousDatabase": { - "methods": [ - "failover_autonomous_database" - ] - }, - "ListOdbNetworks": { - "methods": [ - "list_odb_networks" - ] - }, - "GetOdbNetwork": { - "methods": [ - "get_odb_network" - ] - }, - "CreateOdbNetwork": { - "methods": [ - "create_odb_network" - ] - }, - "DeleteOdbNetwork": { - "methods": [ - "delete_odb_network" - ] - }, - "ListOdbSubnets": { - "methods": [ - "list_odb_subnets" - ] - }, - "GetOdbSubnet": { - "methods": [ - "get_odb_subnet" - ] - }, - "CreateOdbSubnet": { - "methods": [ - "create_odb_subnet" - ] - }, - "DeleteOdbSubnet": { - "methods": [ - "delete_odb_subnet" - ] - }, - "ListExadbVmClusters": { - "methods": [ - "list_exadb_vm_clusters" - ] - }, - "GetExadbVmCluster": { - "methods": [ - "get_exadb_vm_cluster" - ] - }, - "CreateExadbVmCluster": { - "methods": [ - "create_exadb_vm_cluster" - ] - }, - "DeleteExadbVmCluster": { - "methods": [ - "delete_exadb_vm_cluster" - ] - }, - "UpdateExadbVmCluster": { - "methods": [ - "update_exadb_vm_cluster" - ] - }, - "RemoveVirtualMachineExadbVmCluster": { - "methods": [ - "remove_virtual_machine_exadb_vm_cluster" - ] - }, - "ListExascaleDbStorageVaults": { - "methods": [ - "list_exascale_db_storage_vaults" - ] - }, - "GetExascaleDbStorageVault": { - "methods": [ - "get_exascale_db_storage_vault" - ] - }, - "CreateExascaleDbStorageVault": { - "methods": [ - "create_exascale_db_storage_vault" - ] - }, - "DeleteExascaleDbStorageVault": { - "methods": [ - "delete_exascale_db_storage_vault" - ] - }, - "ListDbSystemInitialStorageSizes": { - "methods": [ - "list_db_system_initial_storage_sizes" - ] - }, - "ListDatabases": { - "methods": [ - "list_databases" - ] - }, - "GetDatabase": { - "methods": [ - "get_database" - ] - }, - "ListPluggableDatabases": { - "methods": [ - "list_pluggable_databases" - ] - }, - "GetPluggableDatabase": { - "methods": [ - "get_pluggable_database" - ] - }, - "ListDbSystems": { - "methods": [ - "list_db_systems" - ] - }, - "GetDbSystem": { - "methods": [ - "get_db_system" - ] - }, - "CreateDbSystem": { - "methods": [ - "create_db_system" - ] - }, - "DeleteDbSystem": { - "methods": [ - "delete_db_system" - ] - }, - "ListGoldengateDeployments": { - "methods": [ - "list_goldengate_deployments" - ] - }, - "GetGoldengateDeployment": { - "methods": [ - "get_goldengate_deployment" - ] - }, - "CreateGoldengateDeployment": { - "methods": [ - "create_goldengate_deployment" - ] - }, - "DeleteGoldengateDeployment": { - "methods": [ - "delete_goldengate_deployment" - ] - }, - "StopGoldengateDeployment": { - "methods": [ - "stop_goldengate_deployment" - ] - }, - "StartGoldengateDeployment": { - "methods": [ - "start_goldengate_deployment" - ] - }, - "ListGoldengateConnections": { - "methods": [ - "list_goldengate_connections" - ] - }, - "GetGoldengateConnection": { - "methods": [ - "get_goldengate_connection" - ] - }, - "CreateGoldengateConnection": { - "methods": [ - "create_goldengate_connection" - ] - }, - "DeleteGoldengateConnection": { - "methods": [ - "delete_goldengate_connection" - ] - }, - "GetGoldengateDeploymentVersion": { - "methods": [ - "get_goldengate_deployment_version" - ] - }, - "ListGoldengateDeploymentVersions": { - "methods": [ - "list_goldengate_deployment_versions" - ] - }, - "GetGoldengateDeploymentType": { - "methods": [ - "get_goldengate_deployment_type" - ] - }, - "ListGoldengateDeploymentTypes": { - "methods": [ - "list_goldengate_deployment_types" - ] - }, - "GetGoldengateDeploymentEnvironment": { - "methods": [ - "get_goldengate_deployment_environment" - ] - }, - "ListGoldengateDeploymentEnvironments": { - "methods": [ - "list_goldengate_deployment_environments" - ] - }, - "GetGoldengateConnectionType": { - "methods": [ - "get_goldengate_connection_type" - ] - }, - "ListGoldengateConnectionTypes": { - "methods": [ - "list_goldengate_connection_types" - ] - }, - "ListDbVersions": { - "methods": [ - "list_db_versions" - ] - }, - "ListDatabaseCharacterSets": { - "methods": [ - "list_database_character_sets" - ] - }, - "ListGoldengateConnectionAssignments": { - "methods": [ - "list_goldengate_connection_assignments" - ] - }, - "GetGoldengateConnectionAssignment": { - "methods": [ - "get_goldengate_connection_assignment" - ] - }, - "CreateGoldengateConnectionAssignment": { - "methods": [ - "create_goldengate_connection_assignment" - ] - }, - "DeleteGoldengateConnectionAssignment": { - "methods": [ - "delete_goldengate_connection_assignment" - ] - }, - "TestGoldengateConnectionAssignment": { - "methods": [ - "test_goldengate_connection_assignment" - ] - } - } - } - } - } - } -} diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/google-cloud-oracle_database-v1.gemspec b/owl-bot-staging/google-cloud-oracle_database-v1/google-cloud-oracle_database-v1.gemspec deleted file mode 100644 index 2e12f8ded024..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/google-cloud-oracle_database-v1.gemspec +++ /dev/null @@ -1,29 +0,0 @@ -# -*- ruby -*- -# encoding: utf-8 - -require File.expand_path("lib/google/cloud/oracle_database/v1/version", __dir__) - -Gem::Specification.new do |gem| - gem.name = "google-cloud-oracle_database-v1" - gem.version = Google::Cloud::OracleDatabase::V1::VERSION - - gem.authors = ["Google LLC"] - gem.email = "googleapis-packages@google.com" - gem.description = "The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. Note that google-cloud-oracle_database-v1 is a version-specific client library. For most uses, we recommend installing the main client library google-cloud-oracle_database instead. See the readme for more details." - gem.summary = "The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases." - gem.homepage = "https://github.com/googleapis/google-cloud-ruby" - gem.license = "Apache-2.0" - - gem.platform = Gem::Platform::RUBY - - gem.files = `git ls-files -- lib/*`.split("\n") + - `git ls-files -- proto_docs/*`.split("\n") + - ["README.md", "LICENSE.md", "AUTHENTICATION.md", ".yardopts"] - gem.require_paths = ["lib"] - - gem.required_ruby_version = ">= 3.2" - - gem.add_dependency "gapic-common", "~> 1.2" - gem.add_dependency "google-cloud-errors", "~> 1.0" - gem.add_dependency "google-cloud-location", "~> 1.0" -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google-cloud-oracle_database-v1.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google-cloud-oracle_database-v1.rb deleted file mode 100644 index 7ca77b21c9bb..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google-cloud-oracle_database-v1.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# This gem does not autoload during Bundler.require. To load this gem, -# issue explicit require statements for the packages desired, e.g.: -# require "google/cloud/oracle_database/v1" diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1.rb deleted file mode 100644 index b3c381d14fcf..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1.rb +++ /dev/null @@ -1,45 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/oracle_database/v1/oracle_database" -require "google/cloud/oracle_database/v1/version" - -module Google - module Cloud - module OracleDatabase - ## - # API client module. - # - # @example Load this package, including all its services, and instantiate a gRPC client - # - # require "google/cloud/oracle_database/v1" - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # @example Load this package, including all its services, and instantiate a REST client - # - # require "google/cloud/oracle_database/v1" - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - module V1 - end - end - end -end - -helper_path = ::File.join __dir__, "v1", "_helpers.rb" -require "google/cloud/oracle_database/v1/_helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/bindings_override.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/bindings_override.rb deleted file mode 100644 index 8e311260b1b4..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/bindings_override.rb +++ /dev/null @@ -1,75 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" - -module Google - module Cloud - module OracleDatabase - ## - # @example Loading just the REST part of this package, including all its services, and instantiating a REST client - # - # require "google/cloud/oracle_database/v1/rest" - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - module V1 - ## - # @private - # Initialize the mixin bindings configuration - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "OracleDatabase"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - - default_config = ::Gapic::Rest::HttpBindingOverrideConfiguration.new parent_config - default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [ - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ - - Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( - uri_method: :get, - uri_template: "/v1/{name}/locations", - matches: [ - ["name", %r{^projects/[^/]+/?$}, false] - ], - body: nil - ) - ] - default_config - end - yield @configure if block_given? - @configure - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database.rb deleted file mode 100644 index 86384858b5be..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/common" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/oracle_database/v1/version" - -require "google/cloud/oracle_database/v1/oracle_database/credentials" -require "google/cloud/oracle_database/v1/oracle_database/paths" -require "google/cloud/oracle_database/v1/oracle_database/operations" -require "google/cloud/oracle_database/v1/oracle_database/client" -require "google/cloud/oracle_database/v1/oracle_database/rest" - -module Google - module Cloud - module OracleDatabase - module V1 - ## - # Service describing handlers for resources - # - # @example Load this service and instantiate a gRPC client - # - # require "google/cloud/oracle_database/v1/oracle_database" - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # @example Load this service and instantiate a REST client - # - # require "google/cloud/oracle_database/v1/oracle_database/rest" - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - module OracleDatabase - end - end - end - end -end - -helper_path = ::File.join __dir__, "oracle_database", "helpers.rb" -require "google/cloud/oracle_database/v1/oracle_database/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb deleted file mode 100644 index 01d99caa183e..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/client.rb +++ /dev/null @@ -1,9331 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/oracledatabase/v1/oracledatabase_pb" -require "google/cloud/location" - -module Google - module Cloud - module OracleDatabase - module V1 - module OracleDatabase - ## - # Client for the OracleDatabase service. - # - # Service describing handlers for resources - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :oracle_database_stub - - ## - # Configure the OracleDatabase Client class. - # - # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all OracleDatabase clients - # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "OracleDatabase", "V1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config.rpcs.list_cloud_exadata_infrastructures.timeout = 60.0 - default_config.rpcs.list_cloud_exadata_infrastructures.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_cloud_exadata_infrastructure.timeout = 60.0 - default_config.rpcs.get_cloud_exadata_infrastructure.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_cloud_vm_clusters.timeout = 60.0 - default_config.rpcs.list_cloud_vm_clusters.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_cloud_vm_cluster.timeout = 60.0 - default_config.rpcs.get_cloud_vm_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_entitlements.timeout = 60.0 - default_config.rpcs.list_entitlements.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_servers.timeout = 60.0 - default_config.rpcs.list_db_servers.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_nodes.timeout = 60.0 - default_config.rpcs.list_db_nodes.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_gi_versions.timeout = 60.0 - default_config.rpcs.list_gi_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_minor_versions.timeout = 60.0 - default_config.rpcs.list_minor_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_system_shapes.timeout = 60.0 - default_config.rpcs.list_db_system_shapes.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_autonomous_databases.timeout = 60.0 - default_config.rpcs.list_autonomous_databases.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_autonomous_database.timeout = 60.0 - default_config.rpcs.get_autonomous_database.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_autonomous_db_versions.timeout = 60.0 - default_config.rpcs.list_autonomous_db_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_autonomous_database_character_sets.timeout = 60.0 - default_config.rpcs.list_autonomous_database_character_sets.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_autonomous_database_backups.timeout = 60.0 - default_config.rpcs.list_autonomous_database_backups.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_odb_networks.timeout = 60.0 - default_config.rpcs.list_odb_networks.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_odb_network.timeout = 60.0 - default_config.rpcs.get_odb_network.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_odb_subnets.timeout = 60.0 - default_config.rpcs.list_odb_subnets.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_odb_subnet.timeout = 60.0 - default_config.rpcs.get_odb_subnet.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_exadb_vm_clusters.timeout = 60.0 - default_config.rpcs.list_exadb_vm_clusters.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_exadb_vm_cluster.timeout = 60.0 - default_config.rpcs.get_exadb_vm_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_exascale_db_storage_vaults.timeout = 60.0 - default_config.rpcs.list_exascale_db_storage_vaults.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_exascale_db_storage_vault.timeout = 60.0 - default_config.rpcs.get_exascale_db_storage_vault.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_system_initial_storage_sizes.timeout = 60.0 - default_config.rpcs.list_db_system_initial_storage_sizes.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_databases.timeout = 60.0 - default_config.rpcs.list_databases.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_database.timeout = 60.0 - default_config.rpcs.get_database.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_pluggable_databases.timeout = 60.0 - default_config.rpcs.list_pluggable_databases.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_pluggable_database.timeout = 60.0 - default_config.rpcs.get_pluggable_database.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_systems.timeout = 60.0 - default_config.rpcs.list_db_systems.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_db_system.timeout = 60.0 - default_config.rpcs.get_db_system.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_deployments.timeout = 60.0 - default_config.rpcs.list_goldengate_deployments.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_goldengate_deployment.timeout = 60.0 - default_config.rpcs.get_goldengate_deployment.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_connections.timeout = 60.0 - default_config.rpcs.list_goldengate_connections.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_goldengate_connection.timeout = 60.0 - default_config.rpcs.get_goldengate_connection.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_deployment_versions.timeout = 60.0 - default_config.rpcs.list_goldengate_deployment_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_deployment_types.timeout = 60.0 - default_config.rpcs.list_goldengate_deployment_types.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_deployment_environments.timeout = 60.0 - default_config.rpcs.list_goldengate_deployment_environments.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_connection_types.timeout = 60.0 - default_config.rpcs.list_goldengate_connection_types.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_versions.timeout = 60.0 - default_config.rpcs.list_db_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_database_character_sets.timeout = 60.0 - default_config.rpcs.list_database_character_sets.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_connection_assignments.timeout = 60.0 - default_config.rpcs.list_goldengate_connection_assignments.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_goldengate_connection_assignment.timeout = 60.0 - default_config.rpcs.get_goldengate_connection_assignment.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the OracleDatabase Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @oracle_database_stub.universe_domain - end - - ## - # Create a new OracleDatabase client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the OracleDatabase client. - # @yieldparam config [Client::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/cloud/oracledatabase/v1/oracledatabase_services_pb" - - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @oracle_database_stub = ::Gapic::ServiceStub.new( - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool, - logger: @config.logger - ) - - @oracle_database_stub.stub_logger&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @oracle_database_stub.endpoint - config.universe_domain = @oracle_database_stub.universe_domain - config.logger = @oracle_database_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Client] - # - attr_reader :location_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @oracle_database_stub.logger - end - - # Service calls - - ## - # Lists Exadata Infrastructures in a given project and location. - # - # @overload list_cloud_exadata_infrastructures(request, options = nil) - # Pass arguments to `list_cloud_exadata_infrastructures` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_cloud_exadata_infrastructures` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for CloudExadataInfrastructure in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Exadata infrastructures will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new - # - # # Call the list_cloud_exadata_infrastructures method. - # result = client.list_cloud_exadata_infrastructures request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. - # p item - # end - # - def list_cloud_exadata_infrastructures request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_cloud_exadata_infrastructures.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_cloud_exadata_infrastructures.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_cloud_exadata_infrastructures.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_cloud_exadata_infrastructures, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_cloud_exadata_infrastructures, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single Exadata Infrastructure. - # - # @overload get_cloud_exadata_infrastructure(request, options = nil) - # Pass arguments to `get_cloud_exadata_infrastructure` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_cloud_exadata_infrastructure(name: nil) - # Pass arguments to `get_cloud_exadata_infrastructure` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Cloud Exadata Infrastructure in the following - # format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new - # - # # Call the get_cloud_exadata_infrastructure method. - # result = client.get_cloud_exadata_infrastructure request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. - # p result - # - def get_cloud_exadata_infrastructure request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_cloud_exadata_infrastructure.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_cloud_exadata_infrastructure.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_cloud_exadata_infrastructure.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_cloud_exadata_infrastructure, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Exadata Infrastructure in a given project and location. - # - # @overload create_cloud_exadata_infrastructure(request, options = nil) - # Pass arguments to `create_cloud_exadata_infrastructure` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_cloud_exadata_infrastructure(parent: nil, cloud_exadata_infrastructure_id: nil, cloud_exadata_infrastructure: nil, request_id: nil) - # Pass arguments to `create_cloud_exadata_infrastructure` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for CloudExadataInfrastructure in the following - # format: projects/\\{project}/locations/\\{location}. - # @param cloud_exadata_infrastructure_id [::String] - # Required. The ID of the Exadata Infrastructure to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param cloud_exadata_infrastructure [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure, ::Hash] - # Required. Details of the Exadata Infrastructure instance to create. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new - # - # # Call the create_cloud_exadata_infrastructure method. - # result = client.create_cloud_exadata_infrastructure request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_cloud_exadata_infrastructure request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_cloud_exadata_infrastructure.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_cloud_exadata_infrastructure.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_cloud_exadata_infrastructure.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_cloud_exadata_infrastructure, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Exadata Infrastructure. - # - # @overload delete_cloud_exadata_infrastructure(request, options = nil) - # Pass arguments to `delete_cloud_exadata_infrastructure` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_cloud_exadata_infrastructure(name: nil, request_id: nil, force: nil) - # Pass arguments to `delete_cloud_exadata_infrastructure` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Cloud Exadata Infrastructure in the following - # format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @param force [::Boolean] - # Optional. If set to true, all VM clusters for this Exadata Infrastructure - # will be deleted. An Exadata Infrastructure can only be deleted once all its - # VM clusters have been deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new - # - # # Call the delete_cloud_exadata_infrastructure method. - # result = client.delete_cloud_exadata_infrastructure request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_cloud_exadata_infrastructure request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_cloud_exadata_infrastructure.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_cloud_exadata_infrastructure.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_cloud_exadata_infrastructure.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_cloud_exadata_infrastructure, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the VM Clusters in a given project and location. - # - # @overload list_cloud_vm_clusters(request, options = nil) - # Pass arguments to `list_cloud_vm_clusters` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_cloud_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_cloud_vm_clusters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The number of VM clusters to return. - # If unspecified, at most 50 VM clusters will be returned. - # The maximum value is 1,000. - # @param page_token [::String] - # Optional. A token identifying the page of results the server returns. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new - # - # # Call the list_cloud_vm_clusters method. - # result = client.list_cloud_vm_clusters request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudVmCluster. - # p item - # end - # - def list_cloud_vm_clusters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_cloud_vm_clusters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_cloud_vm_clusters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_cloud_vm_clusters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_cloud_vm_clusters, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_cloud_vm_clusters, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single VM Cluster. - # - # @overload get_cloud_vm_cluster(request, options = nil) - # Pass arguments to `get_cloud_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_cloud_vm_cluster(name: nil) - # Pass arguments to `get_cloud_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Cloud VM Cluster in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new - # - # # Call the get_cloud_vm_cluster method. - # result = client.get_cloud_vm_cluster request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudVmCluster. - # p result - # - def get_cloud_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_cloud_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_cloud_vm_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_cloud_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_cloud_vm_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new VM Cluster in a given project and location. - # - # @overload create_cloud_vm_cluster(request, options = nil) - # Pass arguments to `create_cloud_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_cloud_vm_cluster(parent: nil, cloud_vm_cluster_id: nil, cloud_vm_cluster: nil, request_id: nil) - # Pass arguments to `create_cloud_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @param cloud_vm_cluster_id [::String] - # Required. The ID of the VM Cluster to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @param cloud_vm_cluster [::Google::Cloud::OracleDatabase::V1::CloudVmCluster, ::Hash] - # Required. The resource being created - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new - # - # # Call the create_cloud_vm_cluster method. - # result = client.create_cloud_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_cloud_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_cloud_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_cloud_vm_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_cloud_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_cloud_vm_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single VM Cluster. - # - # @overload delete_cloud_vm_cluster(request, options = nil) - # Pass arguments to `delete_cloud_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_cloud_vm_cluster(name: nil, request_id: nil, force: nil) - # Pass arguments to `delete_cloud_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Cloud VM Cluster in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @param force [::Boolean] - # Optional. If set to true, all child resources for the VM Cluster will be - # deleted. A VM Cluster can only be deleted once all its child resources have - # been deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new - # - # # Call the delete_cloud_vm_cluster method. - # result = client.delete_cloud_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_cloud_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_cloud_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_cloud_vm_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_cloud_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_cloud_vm_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the entitlements in a given project. - # - # @overload list_entitlements(request, options = nil) - # Pass arguments to `list_entitlements` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_entitlements(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_entitlements` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the entitlement in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 entitlements will be returned. - # The maximum value is 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new - # - # # Call the list_entitlements method. - # result = client.list_entitlements request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Entitlement. - # p item - # end - # - def list_entitlements request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_entitlements.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_entitlements.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_entitlements.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_entitlements, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_entitlements, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the database servers of an Exadata Infrastructure instance. - # - # @overload list_db_servers(request, options = nil) - # Pass arguments to `list_db_servers` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbServersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_db_servers(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_db_servers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for database server in the following format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloudExadataInfrastructure}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 db servers will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new - # - # # Call the list_db_servers method. - # result = client.list_db_servers request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbServer. - # p item - # end - # - def list_db_servers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_db_servers.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_db_servers.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_db_servers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_db_servers, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_servers, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the database nodes of a VM Cluster. - # - # @overload list_db_nodes(request, options = nil) - # Pass arguments to `list_db_nodes` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_db_nodes(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_db_nodes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for database node in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}. - # . - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 db nodes will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the node should return. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new - # - # # Call the list_db_nodes method. - # result = client.list_db_nodes request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbNode. - # p item - # end - # - def list_db_nodes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_db_nodes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_db_nodes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_db_nodes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_db_nodes, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_nodes, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the valid Oracle Grid Infrastructure (GI) versions for the given - # project and location. - # - # @overload list_gi_versions(request, options = nil) - # Pass arguments to `list_gi_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_gi_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for Grid Infrastructure Version in the following - # format: Format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions - # will be returned. The maximum value is 1000; values above 1000 will be - # reset to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # shape, gcp_oracle_zone and gi_version fields are supported in this format: - # `shape="{shape}"`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new - # - # # Call the list_gi_versions method. - # result = client.list_gi_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GiVersion. - # p item - # end - # - def list_gi_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_gi_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_gi_versions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_gi_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_gi_versions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_gi_versions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the valid minor versions for the given - # project, location, gi version and shape family. - # - # @overload list_minor_versions(request, options = nil) - # Pass arguments to `list_minor_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_minor_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_minor_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the MinorVersion resource with the format: - # projects/\\{project}/locations/\\{location}/giVersions/\\{gi_version} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 System Versions will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # Only shapeFamily and gcp_oracle_zone_id are supported in this format: - # `shape_family="{shapeFamily}" AND - # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new - # - # # Call the list_minor_versions method. - # result = client.list_minor_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::MinorVersion. - # p item - # end - # - def list_minor_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_minor_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_minor_versions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_minor_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_minor_versions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_minor_versions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the database system shapes available for the project and location. - # - # @overload list_db_system_shapes(request, options = nil) - # Pass arguments to `list_db_system_shapes` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_db_system_shapes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for Database System Shapes in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 database system shapes will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # gcp_oracle_zone_id field is supported in this format: - # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new - # - # # Call the list_db_system_shapes method. - # result = client.list_db_system_shapes request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemShape. - # p item - # end - # - def list_db_system_shapes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_db_system_shapes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_db_system_shapes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_db_system_shapes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_db_system_shapes, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_system_shapes, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the Autonomous Databases in a given project and location. - # - # @overload list_autonomous_databases(request, options = nil) - # Pass arguments to `list_autonomous_databases` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_autonomous_databases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_autonomous_databases` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous Database will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new - # - # # Call the list_autonomous_databases method. - # result = client.list_autonomous_databases request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase. - # p item - # end - # - def list_autonomous_databases request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_autonomous_databases.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_autonomous_databases.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_autonomous_databases.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_autonomous_databases, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_autonomous_databases, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the details of a single Autonomous Database. - # - # @overload get_autonomous_database(request, options = nil) - # Pass arguments to `get_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_autonomous_database(name: nil) - # Pass arguments to `get_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new - # - # # Call the get_autonomous_database method. - # result = client.get_autonomous_database request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabase. - # p result - # - def get_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_autonomous_database, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Autonomous Database in a given project and location. - # - # @overload create_autonomous_database(request, options = nil) - # Pass arguments to `create_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_autonomous_database(parent: nil, autonomous_database_id: nil, autonomous_database: nil, request_id: nil) - # Pass arguments to `create_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @param autonomous_database_id [::String] - # Required. The ID of the Autonomous Database to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash] - # Required. The Autonomous Database being created. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new - # - # # Call the create_autonomous_database method. - # result = client.create_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the parameters of a single Autonomous Database. - # - # @overload update_autonomous_database(request, options = nil) - # Pass arguments to `update_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_autonomous_database(update_mask: nil, autonomous_database: nil, request_id: nil) - # Pass arguments to `update_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # 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. - # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash] - # Required. The resource being updated - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new - # - # # Call the update_autonomous_database method. - # result = client.update_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.autonomous_database&.name - header_params["autonomous_database.name"] = request.autonomous_database.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :update_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Autonomous Database. - # - # @overload delete_autonomous_database(request, options = nil) - # Pass arguments to `delete_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_autonomous_database(name: nil, request_id: nil) - # Pass arguments to `delete_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new - # - # # Call the delete_autonomous_database method. - # result = client.delete_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Restores a single Autonomous Database. - # - # @overload restore_autonomous_database(request, options = nil) - # Pass arguments to `restore_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload restore_autonomous_database(name: nil, restore_time: nil) - # Pass arguments to `restore_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param restore_time [::Google::Protobuf::Timestamp, ::Hash] - # Required. The time and date to restore the database to. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new - # - # # Call the restore_autonomous_database method. - # result = client.restore_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def restore_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.restore_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.restore_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.restore_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :restore_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Generates a wallet for an Autonomous Database. - # - # @overload generate_autonomous_database_wallet(request, options = nil) - # Pass arguments to `generate_autonomous_database_wallet` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload generate_autonomous_database_wallet(name: nil, type: nil, is_regional: nil, password: nil) - # Pass arguments to `generate_autonomous_database_wallet` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param type [::Google::Cloud::OracleDatabase::V1::GenerateType] - # Optional. The type of wallet generation for the Autonomous Database. The - # default value is SINGLE. - # @param is_regional [::Boolean] - # Optional. True when requesting regional connection strings in PDB connect - # info, applicable to cross-region Data Guard only. - # @param password [::String] - # Required. The password used to encrypt the keys inside the wallet. The - # password must be a minimum of 8 characters. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new - # - # # Call the generate_autonomous_database_wallet method. - # result = client.generate_autonomous_database_wallet request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse. - # p result - # - def generate_autonomous_database_wallet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.generate_autonomous_database_wallet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.generate_autonomous_database_wallet.timeout, - metadata: metadata, - retry_policy: @config.rpcs.generate_autonomous_database_wallet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :generate_autonomous_database_wallet, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the available Autonomous Database versions for a project and - # location. - # - # @overload list_autonomous_db_versions(request, options = nil) - # Pass arguments to `list_autonomous_db_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_autonomous_db_versions(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_autonomous_db_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Versions will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new - # - # # Call the list_autonomous_db_versions method. - # result = client.list_autonomous_db_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion. - # p item - # end - # - def list_autonomous_db_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_autonomous_db_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_autonomous_db_versions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_autonomous_db_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_autonomous_db_versions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_autonomous_db_versions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Autonomous Database Character Sets in a given project and location. - # - # @overload list_autonomous_database_character_sets(request, options = nil) - # Pass arguments to `list_autonomous_database_character_sets` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_autonomous_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_autonomous_database_character_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Character Sets will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # **character_set_type** field is supported in the following format: - # `character_set_type="{characterSetType}"`. Accepted values include - # `DATABASE` and `NATIONAL`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new - # - # # Call the list_autonomous_database_character_sets method. - # result = client.list_autonomous_database_character_sets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet. - # p item - # end - # - def list_autonomous_database_character_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_autonomous_database_character_sets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_autonomous_database_character_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_autonomous_database_character_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_autonomous_database_character_sets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_character_sets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the long-term and automatic backups of an Autonomous Database. - # - # @overload list_autonomous_database_backups(request, options = nil) - # Pass arguments to `list_autonomous_database_backups` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_autonomous_database_backups(parent: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_autonomous_database_backups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for ListAutonomousDatabaseBackups in the - # following format: projects/\\{project}/locations/\\{location}. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # **autonomous_database_id** field is supported in the following format: - # `autonomous_database_id="{autonomous_database_id}"`. The accepted values - # must be a valid Autonomous Database ID, limited to the naming - # restrictions of the ID: ^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$). - # The ID must start with a letter, end with a letter or a number, and be - # a maximum of 63 characters. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Backups will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new - # - # # Call the list_autonomous_database_backups method. - # result = client.list_autonomous_database_backups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup. - # p item - # end - # - def list_autonomous_database_backups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_autonomous_database_backups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_autonomous_database_backups.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_autonomous_database_backups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_autonomous_database_backups, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_backups, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Stops an Autonomous Database. - # - # @overload stop_autonomous_database(request, options = nil) - # Pass arguments to `stop_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload stop_autonomous_database(name: nil) - # Pass arguments to `stop_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new - # - # # Call the stop_autonomous_database method. - # result = client.stop_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def stop_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.stop_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.stop_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.stop_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :stop_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts an Autonomous Database. - # - # @overload start_autonomous_database(request, options = nil) - # Pass arguments to `start_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload start_autonomous_database(name: nil) - # Pass arguments to `start_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new - # - # # Call the start_autonomous_database method. - # result = client.start_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def start_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.start_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.start_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.start_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :start_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Restarts an Autonomous Database. - # - # @overload restart_autonomous_database(request, options = nil) - # Pass arguments to `restart_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload restart_autonomous_database(name: nil) - # Pass arguments to `restart_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new - # - # # Call the restart_autonomous_database method. - # result = client.restart_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def restart_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.restart_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.restart_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.restart_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :restart_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Initiates a switchover of specified autonomous database to the associated - # peer database. - # - # @overload switchover_autonomous_database(request, options = nil) - # Pass arguments to `switchover_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload switchover_autonomous_database(name: nil, peer_autonomous_database: nil) - # Pass arguments to `switchover_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param peer_autonomous_database [::String] - # Optional. The peer database name to switch over to. Required for - # cross-region standby, and must be omitted for in-region Data Guard. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new - # - # # Call the switchover_autonomous_database method. - # result = client.switchover_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def switchover_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.switchover_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.switchover_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.switchover_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :switchover_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Initiates a failover to target autonomous database from the associated - # primary database. - # - # @overload failover_autonomous_database(request, options = nil) - # Pass arguments to `failover_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload failover_autonomous_database(name: nil, peer_autonomous_database: nil) - # Pass arguments to `failover_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param peer_autonomous_database [::String] - # Optional. The peer database name to fail over to. Required for cross-region - # standby, and must be omitted for in-region Data Guard. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new - # - # # Call the failover_autonomous_database method. - # result = client.failover_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def failover_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.failover_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.failover_autonomous_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.failover_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :failover_autonomous_database, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the ODB Networks in a given project and location. - # - # @overload list_odb_networks(request, options = nil) - # Pass arguments to `list_odb_networks` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_odb_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_odb_networks` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the ODB Network in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ODB Networks will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new - # - # # Call the list_odb_networks method. - # result = client.list_odb_networks request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbNetwork. - # p item - # end - # - def list_odb_networks request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_odb_networks.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_odb_networks.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_odb_networks.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_odb_networks, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_odb_networks, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single ODB Network. - # - # @overload get_odb_network(request, options = nil) - # Pass arguments to `get_odb_network` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_odb_network(name: nil) - # Pass arguments to `get_odb_network` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the OdbNetwork in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::OdbNetwork] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new - # - # # Call the get_odb_network method. - # result = client.get_odb_network request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbNetwork. - # p result - # - def get_odb_network request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_odb_network.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_odb_network.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_odb_network.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_odb_network, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ODB Network in a given project and location. - # - # @overload create_odb_network(request, options = nil) - # Pass arguments to `create_odb_network` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_odb_network(parent: nil, odb_network_id: nil, odb_network: nil, request_id: nil) - # Pass arguments to `create_odb_network` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the OdbNetwork in the following format: - # projects/\\{project}/locations/\\{location}. - # @param odb_network_id [::String] - # Required. The ID of the OdbNetwork to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @param odb_network [::Google::Cloud::OracleDatabase::V1::OdbNetwork, ::Hash] - # Required. Details of the OdbNetwork instance to create. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new - # - # # Call the create_odb_network method. - # result = client.create_odb_network request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_odb_network request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_odb_network.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_odb_network.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_odb_network.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_odb_network, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ODB Network. - # - # @overload delete_odb_network(request, options = nil) - # Pass arguments to `delete_odb_network` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_odb_network(name: nil, request_id: nil) - # Pass arguments to `delete_odb_network` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new - # - # # Call the delete_odb_network method. - # result = client.delete_odb_network request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_odb_network request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_odb_network.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_odb_network.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_odb_network.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_odb_network, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the ODB Subnets in a given ODB Network. - # - # @overload list_odb_subnets(request, options = nil) - # Pass arguments to `list_odb_subnets` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_odb_subnets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_odb_subnets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ODB Networks will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new - # - # # Call the list_odb_subnets method. - # result = client.list_odb_subnets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbSubnet. - # p item - # end - # - def list_odb_subnets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_odb_subnets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_odb_subnets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_odb_subnets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_odb_subnets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_odb_subnets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single ODB Subnet. - # - # @overload get_odb_subnet(request, options = nil) - # Pass arguments to `get_odb_subnet` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_odb_subnet(name: nil) - # Pass arguments to `get_odb_subnet` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::OdbSubnet] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new - # - # # Call the get_odb_subnet method. - # result = client.get_odb_subnet request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbSubnet. - # p result - # - def get_odb_subnet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_odb_subnet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_odb_subnet.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_odb_subnet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_odb_subnet, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ODB Subnet in a given ODB Network. - # - # @overload create_odb_subnet(request, options = nil) - # Pass arguments to `create_odb_subnet` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_odb_subnet(parent: nil, odb_subnet_id: nil, odb_subnet: nil, request_id: nil) - # Pass arguments to `create_odb_subnet` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @param odb_subnet_id [::String] - # Required. The ID of the OdbSubnet to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @param odb_subnet [::Google::Cloud::OracleDatabase::V1::OdbSubnet, ::Hash] - # Required. Details of the OdbSubnet instance to create. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new - # - # # Call the create_odb_subnet method. - # result = client.create_odb_subnet request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_odb_subnet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_odb_subnet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_odb_subnet.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_odb_subnet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_odb_subnet, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ODB Subnet. - # - # @overload delete_odb_subnet(request, options = nil) - # Pass arguments to `delete_odb_subnet` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_odb_subnet(name: nil, request_id: nil) - # Pass arguments to `delete_odb_subnet` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new - # - # # Call the delete_odb_subnet method. - # result = client.delete_odb_subnet request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_odb_subnet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_odb_subnet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_odb_subnet.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_odb_subnet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_odb_subnet, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the Exadb (Exascale) VM Clusters for the given project and - # location. - # - # @overload list_exadb_vm_clusters(request, options = nil) - # Pass arguments to `list_exadb_vm_clusters` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_exadb_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_exadb_vm_clusters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for ExadbVmClusters in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ExadbVmClusters will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new - # - # # Call the list_exadb_vm_clusters method. - # result = client.list_exadb_vm_clusters request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster. - # p item - # end - # - def list_exadb_vm_clusters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_exadb_vm_clusters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_exadb_vm_clusters.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_exadb_vm_clusters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_exadb_vm_clusters, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_exadb_vm_clusters, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single Exadb (Exascale) VM Cluster. - # - # @overload get_exadb_vm_cluster(request, options = nil) - # Pass arguments to `get_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_exadb_vm_cluster(name: nil) - # Pass arguments to `get_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new - # - # # Call the get_exadb_vm_cluster method. - # result = client.get_exadb_vm_cluster request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExadbVmCluster. - # p result - # - def get_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_exadb_vm_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_exadb_vm_cluster, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Exadb (Exascale) VM Cluster resource. - # - # @overload create_exadb_vm_cluster(request, options = nil) - # Pass arguments to `create_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_exadb_vm_cluster(parent: nil, exadb_vm_cluster_id: nil, exadb_vm_cluster: nil, request_id: nil) - # Pass arguments to `create_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the ExadbVmCluster in the following - # format: projects/\\{project}/locations/\\{location}. - # @param exadb_vm_cluster_id [::String] - # Required. The ID of the ExadbVmCluster to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new - # - # # Call the create_exadb_vm_cluster method. - # result = client.create_exadb_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_exadb_vm_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_exadb_vm_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Exadb (Exascale) VM Cluster. - # - # @overload delete_exadb_vm_cluster(request, options = nil) - # Pass arguments to `delete_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_exadb_vm_cluster(name: nil, request_id: nil) - # Pass arguments to `delete_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new - # - # # Call the delete_exadb_vm_cluster method. - # result = client.delete_exadb_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_exadb_vm_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_exadb_vm_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to - # existing exadb vm cluster, only pass the node count. - # - # @overload update_exadb_vm_cluster(request, options = nil) - # Pass arguments to `update_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload update_exadb_vm_cluster(update_mask: nil, exadb_vm_cluster: nil, request_id: nil) - # Pass arguments to `update_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # 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. - # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash] - # Required. The resource being updated. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new - # - # # Call the update_exadb_vm_cluster method. - # result = client.update_exadb_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.update_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.exadb_vm_cluster&.name - header_params["exadb_vm_cluster.name"] = request.exadb_vm_cluster.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.update_exadb_vm_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.update_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :update_exadb_vm_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Removes virtual machines from an existing exadb vm cluster. - # - # @overload remove_virtual_machine_exadb_vm_cluster(request, options = nil) - # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload remove_virtual_machine_exadb_vm_cluster(name: nil, request_id: nil, hostnames: nil) - # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @param hostnames [::Array<::String>] - # Required. The list of host names of db nodes to be removed from the - # ExadbVmCluster. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new - # - # # Call the remove_virtual_machine_exadb_vm_cluster method. - # result = client.remove_virtual_machine_exadb_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def remove_virtual_machine_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.remove_virtual_machine_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.timeout, - metadata: metadata, - retry_policy: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :remove_virtual_machine_exadb_vm_cluster, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the ExascaleDB Storage Vaults for the given project and - # location. - # - # @overload list_exascale_db_storage_vaults(request, options = nil) - # Pass arguments to `list_exascale_db_storage_vaults` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_exascale_db_storage_vaults(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_exascale_db_storage_vaults` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for ExascaleDbStorageVault in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ExascaleDbStorageVaults will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Filter - # the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. Order - # results as specified in https://google.aip.dev/132. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new - # - # # Call the list_exascale_db_storage_vaults method. - # result = client.list_exascale_db_storage_vaults request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. - # p item - # end - # - def list_exascale_db_storage_vaults request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_exascale_db_storage_vaults.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_exascale_db_storage_vaults.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_exascale_db_storage_vaults.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_exascale_db_storage_vaults, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_exascale_db_storage_vaults, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single ExascaleDB Storage Vault. - # - # @overload get_exascale_db_storage_vault(request, options = nil) - # Pass arguments to `get_exascale_db_storage_vault` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_exascale_db_storage_vault(name: nil) - # Pass arguments to `get_exascale_db_storage_vault` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExascaleDbStorageVault in the following format: - # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new - # - # # Call the get_exascale_db_storage_vault method. - # result = client.get_exascale_db_storage_vault request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. - # p result - # - def get_exascale_db_storage_vault request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_exascale_db_storage_vault.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_exascale_db_storage_vault.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_exascale_db_storage_vault.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_exascale_db_storage_vault, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ExascaleDB Storage Vault resource. - # - # @overload create_exascale_db_storage_vault(request, options = nil) - # Pass arguments to `create_exascale_db_storage_vault` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_exascale_db_storage_vault(parent: nil, exascale_db_storage_vault_id: nil, exascale_db_storage_vault: nil, request_id: nil) - # Pass arguments to `create_exascale_db_storage_vault` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the ExascaleDbStorageVault in the - # following format: projects/\\{project}/locations/\\{location}. - # @param exascale_db_storage_vault_id [::String] - # Required. The ID of the ExascaleDbStorageVault to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param exascale_db_storage_vault [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new - # - # # Call the create_exascale_db_storage_vault method. - # result = client.create_exascale_db_storage_vault request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_exascale_db_storage_vault request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_exascale_db_storage_vault.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_exascale_db_storage_vault.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_exascale_db_storage_vault.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_exascale_db_storage_vault, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ExascaleDB Storage Vault. - # - # @overload delete_exascale_db_storage_vault(request, options = nil) - # Pass arguments to `delete_exascale_db_storage_vault` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_exascale_db_storage_vault(name: nil, request_id: nil) - # Pass arguments to `delete_exascale_db_storage_vault` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExascaleDbStorageVault in the following format: - # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new - # - # # Call the delete_exascale_db_storage_vault method. - # result = client.delete_exascale_db_storage_vault request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_exascale_db_storage_vault request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_exascale_db_storage_vault.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_exascale_db_storage_vault.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_exascale_db_storage_vault.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_exascale_db_storage_vault, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the DbSystemInitialStorageSizes for the given project and - # location. - # - # @overload list_db_system_initial_storage_sizes(request, options = nil) - # Pass arguments to `list_db_system_initial_storage_sizes` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_db_system_initial_storage_sizes(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_db_system_initial_storage_sizes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the DbSystemInitialStorageSize resource with - # the format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be - # returned. The maximum value is 1000; values above 1000 will be reset to - # 1000. - # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new - # - # # Call the list_db_system_initial_storage_sizes method. - # result = client.list_db_system_initial_storage_sizes request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize. - # p item - # end - # - def list_db_system_initial_storage_sizes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_db_system_initial_storage_sizes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_db_system_initial_storage_sizes.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_db_system_initial_storage_sizes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_db_system_initial_storage_sizes, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_system_initial_storage_sizes, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the Databases for the given project, location and DbSystem. - # - # @overload list_databases(request, options = nil) - # Pass arguments to `list_databases` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_databases(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_databases` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource name in the following format: - # projects/\\{project}/locations/\\{region} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 Databases will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. list for - # container databases is supported only with a valid dbSystem (full resource - # name) filter in this format: - # `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new - # - # # Call the list_databases method. - # result = client.list_databases request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Database. - # p item - # end - # - def list_databases request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_databases.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_databases.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_databases.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_databases, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_databases, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single Database. - # - # @overload get_database(request, options = nil) - # Pass arguments to `get_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_database(name: nil) - # Pass arguments to `get_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Database resource in the following format: - # projects/\\{project}/locations/\\{region}/databases/\\{database} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::Database] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::Database] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new - # - # # Call the get_database method. - # result = client.get_database request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::Database. - # p result - # - def get_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_database, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the PluggableDatabases for the given project, location and - # Container Database. - # - # @overload list_pluggable_databases(request, options = nil) - # Pass arguments to `list_pluggable_databases` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_pluggable_databases(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_pluggable_databases` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent, which owns this collection of PluggableDatabases. - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of PluggableDatabases to return. The service - # may return fewer than this value. - # @param page_token [::String] - # Optional. A page token, received from a previous `ListPluggableDatabases` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListPluggableDatabases` - # must match the call that provided the page token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. List for - # pluggable databases is supported only with a valid container database (full - # resource name) filter in this format: - # `database="projects/{project}/locations/{location}/databases/{database}"` - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new - # - # # Call the list_pluggable_databases method. - # result = client.list_pluggable_databases request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::PluggableDatabase. - # p item - # end - # - def list_pluggable_databases request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_pluggable_databases.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_pluggable_databases.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_pluggable_databases.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_pluggable_databases, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_pluggable_databases, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single PluggableDatabase. - # - # @overload get_pluggable_database(request, options = nil) - # Pass arguments to `get_pluggable_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_pluggable_database(name: nil) - # Pass arguments to `get_pluggable_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the PluggableDatabase resource in the following - # format: - # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new - # - # # Call the get_pluggable_database method. - # result = client.get_pluggable_database request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::PluggableDatabase. - # p result - # - def get_pluggable_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_pluggable_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_pluggable_database.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_pluggable_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_pluggable_database, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the DbSystems for the given project and location. - # - # @overload list_db_systems(request, options = nil) - # Pass arguments to `list_db_systems` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_db_systems(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_db_systems` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for DbSystems in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 DbSystems will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new - # - # # Call the list_db_systems method. - # result = client.list_db_systems request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystem. - # p item - # end - # - def list_db_systems request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_db_systems.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_db_systems.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_db_systems.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_db_systems, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_systems, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single DbSystem. - # - # @overload get_db_system(request, options = nil) - # Pass arguments to `get_db_system` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_db_system(name: nil) - # Pass arguments to `get_db_system` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::DbSystem] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::DbSystem] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new - # - # # Call the get_db_system method. - # result = client.get_db_system request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::DbSystem. - # p result - # - def get_db_system request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_db_system.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_db_system.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_db_system.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_db_system, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new DbSystem in a given project and location. - # - # @overload create_db_system(request, options = nil) - # Pass arguments to `create_db_system` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_db_system(parent: nil, db_system_id: nil, db_system: nil, request_id: nil) - # Pass arguments to `create_db_system` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}. - # @param db_system_id [::String] - # Required. The ID of the DbSystem to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param db_system [::Google::Cloud::OracleDatabase::V1::DbSystem, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new - # - # # Call the create_db_system method. - # result = client.create_db_system request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_db_system request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_db_system.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_db_system.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_db_system.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_db_system, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single DbSystem. - # - # @overload delete_db_system(request, options = nil) - # Pass arguments to `delete_db_system` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_db_system(name: nil, request_id: nil) - # Pass arguments to `delete_db_system` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new - # - # # Call the delete_db_system method. - # result = client.delete_db_system request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_db_system request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_db_system.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_db_system.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_db_system.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_db_system, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the GoldengateDeployments for the given project and location. - # - # @overload list_goldengate_deployments(request, options = nil) - # Pass arguments to `list_goldengate_deployments` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_goldengate_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_goldengate_deployments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for GoldengateDeployments in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 GoldengateDeployments will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous ListGoldengateDeployments - # call. Provide this to retrieve the subsequent page. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new - # - # # Call the list_goldengate_deployments method. - # result = client.list_goldengate_deployments request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment. - # p item - # end - # - def list_goldengate_deployments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_goldengate_deployments.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_goldengate_deployments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_goldengate_deployments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_goldengate_deployments, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployments, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateDeployment. - # - # @overload get_goldengate_deployment(request, options = nil) - # Pass arguments to `get_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_goldengate_deployment(name: nil) - # Pass arguments to `get_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateDeployment in the following format: - # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new - # - # # Call the get_goldengate_deployment method. - # result = client.get_goldengate_deployment request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeployment. - # p result - # - def get_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_goldengate_deployment, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new GoldengateDeployment in a given project and location. - # - # @overload create_goldengate_deployment(request, options = nil) - # Pass arguments to `create_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_goldengate_deployment(parent: nil, goldengate_deployment_id: nil, goldengate_deployment: nil, request_id: nil) - # Pass arguments to `create_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the GoldengateDeployment in the following - # format: projects/\\{project}/locations/\\{location}. - # @param goldengate_deployment_id [::String] - # Required. The ID of the GoldengateDeployment to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param goldengate_deployment [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new - # - # # Call the create_goldengate_deployment method. - # result = client.create_goldengate_deployment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_goldengate_deployment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_goldengate_deployment, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single GoldengateDeployment. - # - # @overload delete_goldengate_deployment(request, options = nil) - # Pass arguments to `delete_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_goldengate_deployment(name: nil, request_id: nil) - # Pass arguments to `delete_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateDeployment in the following format: - # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new - # - # # Call the delete_goldengate_deployment method. - # result = client.delete_goldengate_deployment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_goldengate_deployment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_goldengate_deployment, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Stops a single GoldengateDeployment. - # - # @overload stop_goldengate_deployment(request, options = nil) - # Pass arguments to `stop_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload stop_goldengate_deployment(name: nil) - # Pass arguments to `stop_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Goldengate Deployment in the following format: - # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new - # - # # Call the stop_goldengate_deployment method. - # result = client.stop_goldengate_deployment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def stop_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.stop_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.stop_goldengate_deployment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.stop_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :stop_goldengate_deployment, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts a single GoldengateDeployment. - # - # @overload start_goldengate_deployment(request, options = nil) - # Pass arguments to `start_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload start_goldengate_deployment(name: nil) - # Pass arguments to `start_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Goldengate Deployment in the following format: - # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new - # - # # Call the start_goldengate_deployment method. - # result = client.start_goldengate_deployment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def start_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.start_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.start_goldengate_deployment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.start_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :start_goldengate_deployment, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the GoldengateConnections for the given project and location. - # - # @overload list_goldengate_connections(request, options = nil) - # Pass arguments to `list_goldengate_connections` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_goldengate_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_goldengate_connections` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for GoldengateConnections in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 GoldengateConnections will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous ListGoldengateConnections - # call. Provide this to retrieve the subsequent page. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new - # - # # Call the list_goldengate_connections method. - # result = client.list_goldengate_connections request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnection. - # p item - # end - # - def list_goldengate_connections request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_goldengate_connections.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_goldengate_connections.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_goldengate_connections.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_goldengate_connections, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connections, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateConnection. - # - # @overload get_goldengate_connection(request, options = nil) - # Pass arguments to `get_goldengate_connection` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_goldengate_connection(name: nil) - # Pass arguments to `get_goldengate_connection` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateConnection in the following format: - # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new - # - # # Call the get_goldengate_connection method. - # result = client.get_goldengate_connection request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnection. - # p result - # - def get_goldengate_connection request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_goldengate_connection.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_goldengate_connection.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_goldengate_connection.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_goldengate_connection, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new GoldengateConnection in a given project and location. - # - # @overload create_goldengate_connection(request, options = nil) - # Pass arguments to `create_goldengate_connection` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_goldengate_connection(parent: nil, goldengate_connection_id: nil, goldengate_connection: nil, request_id: nil) - # Pass arguments to `create_goldengate_connection` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the GoldengateConnection in the following - # format: projects/\\{project}/locations/\\{location}. - # @param goldengate_connection_id [::String] - # Required. The ID of the GoldengateConnection to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param goldengate_connection [::Google::Cloud::OracleDatabase::V1::GoldengateConnection, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new - # - # # Call the create_goldengate_connection method. - # result = client.create_goldengate_connection request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_goldengate_connection request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_goldengate_connection.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_goldengate_connection.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_goldengate_connection.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_goldengate_connection, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single GoldengateConnection. - # - # @overload delete_goldengate_connection(request, options = nil) - # Pass arguments to `delete_goldengate_connection` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_goldengate_connection(name: nil, request_id: nil) - # Pass arguments to `delete_goldengate_connection` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateConnection in the following format: - # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new - # - # # Call the delete_goldengate_connection method. - # result = client.delete_goldengate_connection request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_goldengate_connection request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_goldengate_connection.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_goldengate_connection.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_goldengate_connection, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateDeploymentVersion. - # - # @overload get_goldengate_deployment_version(request, options = nil) - # Pass arguments to `get_goldengate_deployment_version` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_goldengate_deployment_version(name: nil) - # Pass arguments to `get_goldengate_deployment_version` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateDeploymentVersion to retrieve. - # Format: - # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new - # - # # Call the get_goldengate_deployment_version method. - # result = client.get_goldengate_deployment_version request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. - # p result - # - def get_goldengate_deployment_version request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_goldengate_deployment_version.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_version.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_goldengate_deployment_version.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_goldengate_deployment_version, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldengateDeploymentVersions in a given project and location. - # - # @overload list_goldengate_deployment_versions(request, options = nil) - # Pass arguments to `list_goldengate_deployment_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_goldengate_deployment_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_goldengate_deployment_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Parent value for ListGoldengateDeploymentVersionsRequest - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. Requested page size. Server may return fewer items than - # requested. If unspecified, server will pick an appropriate default. The - # maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Either - # the deployment_id and deployment_type fields must be specified in the - # format: `deployment_id="id"` or `deployment_type="DATABASE_ORACLE"`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new - # - # # Call the list_goldengate_deployment_versions method. - # result = client.list_goldengate_deployment_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. - # p item - # end - # - def list_goldengate_deployment_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_goldengate_deployment_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_versions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_goldengate_deployment_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_goldengate_deployment_versions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_versions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldenGateDeploymentType. - # - # @overload get_goldengate_deployment_type(request, options = nil) - # Pass arguments to `get_goldengate_deployment_type` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_goldengate_deployment_type(name: nil) - # Pass arguments to `get_goldengate_deployment_type` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateDeploymentType to retrieve. - # Format: - # projects/\\{project}/locations/\\{location}/goldengateDeploymentTypes/\\{goldengate_deployment_type} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new - # - # # Call the get_goldengate_deployment_type method. - # result = client.get_goldengate_deployment_type request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. - # p result - # - def get_goldengate_deployment_type request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_goldengate_deployment_type.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_type.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_goldengate_deployment_type.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_goldengate_deployment_type, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldenGateDeploymentTypes in a given project and location. - # - # @overload list_goldengate_deployment_types(request, options = nil) - # Pass arguments to `list_goldengate_deployment_types` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_goldengate_deployment_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_goldengate_deployment_types` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource. - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. Requested page size. Server may return fewer items than - # requested. If unspecified, server will pick an appropriate default. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Either - # the deployment_type and ogg_version fields must be specified in the format: - # `deployment_type="DATABASE_ORACLE"` or `ogg_version="version"`. - # Allowed values for deployment_type are: `DATABASE_ORACLE`, `BIGDATA`, - # `DATABASE_MICROSOFT_SQLSERVER`, `DATABASE_MYSQL`, `DATABASE_POSTGRESQL`, - # `DATABASE_DB2ZOS`, `DATABASE_DB2I`, `GGSA`, `DATA_TRANSFORMS`. - # @param order_by [::String] - # Optional. Hint for how to order the results - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new - # - # # Call the list_goldengate_deployment_types method. - # result = client.list_goldengate_deployment_types request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. - # p item - # end - # - def list_goldengate_deployment_types request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_goldengate_deployment_types.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_types.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_goldengate_deployment_types.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_goldengate_deployment_types, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_types, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateDeploymentEnvironment. - # - # @overload get_goldengate_deployment_environment(request, options = nil) - # Pass arguments to `get_goldengate_deployment_environment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_goldengate_deployment_environment(name: nil) - # Pass arguments to `get_goldengate_deployment_environment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the resource with the format: - # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new - # - # # Call the get_goldengate_deployment_environment method. - # result = client.get_goldengate_deployment_environment request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. - # p result - # - def get_goldengate_deployment_environment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_goldengate_deployment_environment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_environment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_goldengate_deployment_environment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_goldengate_deployment_environment, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldengateDeploymentEnvironments in a given project and location. - # - # @overload list_goldengate_deployment_environments(request, options = nil) - # Pass arguments to `list_goldengate_deployment_environments` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_goldengate_deployment_environments(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_goldengate_deployment_environments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent, which owns this collection of - # GoldengateDeploymentEnvironments. Format: - # projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 deployment environments will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new - # - # # Call the list_goldengate_deployment_environments method. - # result = client.list_goldengate_deployment_environments request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. - # p item - # end - # - def list_goldengate_deployment_environments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_goldengate_deployment_environments.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_environments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_goldengate_deployment_environments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_goldengate_deployment_environments, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_environments, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateConnectionType. - # - # @overload get_goldengate_connection_type(request, options = nil) - # Pass arguments to `get_goldengate_connection_type` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_goldengate_connection_type(name: nil) - # Pass arguments to `get_goldengate_connection_type` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the resource in the format: - # projects/\\{project}/locations/\\{location}/goldengateConnectionTypes/\\{goldengate_connection_type} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new - # - # # Call the get_goldengate_connection_type method. - # result = client.get_goldengate_connection_type request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. - # p result - # - def get_goldengate_connection_type request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_goldengate_connection_type.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_type.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_goldengate_connection_type.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_goldengate_connection_type, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldengateConnectionTypes in a given project and location. - # - # @overload list_goldengate_connection_types(request, options = nil) - # Pass arguments to `list_goldengate_connection_types` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_goldengate_connection_types(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_goldengate_connection_types` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Parent value for ListGoldengateConnectionTypesRequest - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. Requested page size. Server may return fewer items than - # requested. If unspecified, server will pick an appropriate default. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. The - # connection_type field must be specified in the format: - # `connection_type="ORACLE"`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new - # - # # Call the list_goldengate_connection_types method. - # result = client.list_goldengate_connection_types request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. - # p item - # end - # - def list_goldengate_connection_types request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_goldengate_connection_types.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_types.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_goldengate_connection_types.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_goldengate_connection_types, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_types, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List DbVersions for the given project and location. - # - # @overload list_db_versions(request, options = nil) - # Pass arguments to `list_db_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_db_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the DbVersion resource with the - # format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 DbVersions will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @param filter [::String] - # Optional. Filter expression that matches a subset of the DbVersions to - # show. The supported filter for dbSystem creation is `db_system_shape = - # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no - # filter is provided, all DbVersions will be returned. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new - # - # # Call the list_db_versions method. - # result = client.list_db_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. - # p item - # end - # - def list_db_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_db_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_db_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_db_versions, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_db_versions, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List DatabaseCharacterSets for the given project and location. - # - # @overload list_database_character_sets(request, options = nil) - # Pass arguments to `list_database_character_sets` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for DatabaseCharacterSets in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of DatabaseCharacterSets to return. The - # service may return fewer than this value. If unspecified, at most 50 - # DatabaseCharacterSets will be returned. The maximum value is 1000; values - # above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent - # page. - # - # When paginating, all other parameters provided to - # `ListDatabaseCharacterSets` must match the call that provided the page - # token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # **character_set_type** field is supported in the following format: - # `character_set_type="{characterSetType}"`. Accepted values include - # `DATABASE` and `NATIONAL`. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new - # - # # Call the list_database_character_sets method. - # result = client.list_database_character_sets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. - # p item - # end - # - def list_database_character_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_database_character_sets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_database_character_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_database_character_sets, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldengateConnectionAssignments in a given project and location. - # - # @overload list_goldengate_connection_assignments(request, options = nil) - # Pass arguments to `list_goldengate_connection_assignments` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_goldengate_connection_assignments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_goldengate_connection_assignments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the GoldengateConnectionAssignments. - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of GoldengateConnectionAssignments to return. - # The service may return fewer than this value. If unspecified, at most 50 - # GoldengateConnectionAssignments will be returned. The maximum value is - # 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListGoldengateConnectionAssignments` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `ListGoldengateConnectionAssignments` must match the call that provided - # the page token. - # @param filter [::String] - # Optional. A filter expression that filters GoldengateConnectionAssignments - # listed in the response. - # @param order_by [::String] - # Optional. A comma-separated list of fields to order by, sorted in ascending - # order. Use "DESC" after a field name for descending. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new - # - # # Call the list_goldengate_connection_assignments method. - # result = client.list_goldengate_connection_assignments request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. - # p item - # end - # - def list_goldengate_connection_assignments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_goldengate_connection_assignments.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_assignments.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_goldengate_connection_assignments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :list_goldengate_connection_assignments, request, options: options do |response, operation| - response = ::Gapic::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_assignments, request, response, operation, options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateConnectionAssignment. - # - # @overload get_goldengate_connection_assignment(request, options = nil) - # Pass arguments to `get_goldengate_connection_assignment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_goldengate_connection_assignment(name: nil) - # Pass arguments to `get_goldengate_connection_assignment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateConnectionAssignment to retrieve. - # Format: - # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new - # - # # Call the get_goldengate_connection_assignment method. - # result = client.get_goldengate_connection_assignment request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. - # p result - # - def get_goldengate_connection_assignment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_goldengate_connection_assignment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_assignment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_goldengate_connection_assignment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :get_goldengate_connection_assignment, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new GoldengateConnectionAssignment in a given project and - # location. - # - # @overload create_goldengate_connection_assignment(request, options = nil) - # Pass arguments to `create_goldengate_connection_assignment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload create_goldengate_connection_assignment(parent: nil, goldengate_connection_assignment_id: nil, goldengate_connection_assignment: nil, request_id: nil) - # Pass arguments to `create_goldengate_connection_assignment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this GoldengateConnectionAssignment - # will be created. Format: projects/\\{project}/locations/\\{location} - # @param goldengate_connection_assignment_id [::String] - # Required. The ID of the GoldengateConnectionAssignment to create. - # @param goldengate_connection_assignment [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment, ::Hash] - # Required. The GoldengateConnectionAssignment to create. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new - # - # # Call the create_goldengate_connection_assignment method. - # result = client.create_goldengate_connection_assignment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_goldengate_connection_assignment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.create_goldengate_connection_assignment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.parent - header_params["parent"] = request.parent - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.create_goldengate_connection_assignment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.create_goldengate_connection_assignment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :create_goldengate_connection_assignment, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single GoldengateConnectionAssignment. - # - # @overload delete_goldengate_connection_assignment(request, options = nil) - # Pass arguments to `delete_goldengate_connection_assignment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_goldengate_connection_assignment(name: nil, request_id: nil) - # Pass arguments to `delete_goldengate_connection_assignment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateConnectionAssignment to delete. - # Format: - # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes after the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new - # - # # Call the delete_goldengate_connection_assignment method. - # result = client.delete_goldengate_connection_assignment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_goldengate_connection_assignment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_goldengate_connection_assignment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection_assignment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_goldengate_connection_assignment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :delete_goldengate_connection_assignment, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Tests a single GoldengateConnectionAssignment. - # - # @overload test_goldengate_connection_assignment(request, options = nil) - # Pass arguments to `test_goldengate_connection_assignment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload test_goldengate_connection_assignment(name: nil, type: nil) - # Pass arguments to `test_goldengate_connection_assignment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the connection assignment for which to test connection. - # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} - # @param type [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest::TestType] - # Optional. The type of the test of the assigned connection. - # The only type actually supported is DEFAULT. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new - # - # # Call the test_goldengate_connection_assignment method. - # result = client.test_goldengate_connection_assignment request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse. - # p result - # - def test_goldengate_connection_assignment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.test_goldengate_connection_assignment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.test_goldengate_connection_assignment.timeout, - metadata: metadata, - retry_policy: @config.rpcs.test_goldengate_connection_assignment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.call_rpc :test_goldengate_connection_assignment, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the OracleDatabase API. - # - # This class represents the configuration for OracleDatabase, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_cloud_exadata_infrastructures to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the OracleDatabase API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_cloud_exadata_infrastructures` - # @return [::Gapic::Config::Method] - # - attr_reader :list_cloud_exadata_infrastructures - ## - # RPC-specific configuration for `get_cloud_exadata_infrastructure` - # @return [::Gapic::Config::Method] - # - attr_reader :get_cloud_exadata_infrastructure - ## - # RPC-specific configuration for `create_cloud_exadata_infrastructure` - # @return [::Gapic::Config::Method] - # - attr_reader :create_cloud_exadata_infrastructure - ## - # RPC-specific configuration for `delete_cloud_exadata_infrastructure` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_cloud_exadata_infrastructure - ## - # RPC-specific configuration for `list_cloud_vm_clusters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_cloud_vm_clusters - ## - # RPC-specific configuration for `get_cloud_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :get_cloud_vm_cluster - ## - # RPC-specific configuration for `create_cloud_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :create_cloud_vm_cluster - ## - # RPC-specific configuration for `delete_cloud_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_cloud_vm_cluster - ## - # RPC-specific configuration for `list_entitlements` - # @return [::Gapic::Config::Method] - # - attr_reader :list_entitlements - ## - # RPC-specific configuration for `list_db_servers` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_servers - ## - # RPC-specific configuration for `list_db_nodes` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_nodes - ## - # RPC-specific configuration for `list_gi_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_gi_versions - ## - # RPC-specific configuration for `list_minor_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_minor_versions - ## - # RPC-specific configuration for `list_db_system_shapes` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_system_shapes - ## - # RPC-specific configuration for `list_autonomous_databases` - # @return [::Gapic::Config::Method] - # - attr_reader :list_autonomous_databases - ## - # RPC-specific configuration for `get_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :get_autonomous_database - ## - # RPC-specific configuration for `create_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :create_autonomous_database - ## - # RPC-specific configuration for `update_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :update_autonomous_database - ## - # RPC-specific configuration for `delete_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_autonomous_database - ## - # RPC-specific configuration for `restore_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :restore_autonomous_database - ## - # RPC-specific configuration for `generate_autonomous_database_wallet` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_autonomous_database_wallet - ## - # RPC-specific configuration for `list_autonomous_db_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_autonomous_db_versions - ## - # RPC-specific configuration for `list_autonomous_database_character_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_autonomous_database_character_sets - ## - # RPC-specific configuration for `list_autonomous_database_backups` - # @return [::Gapic::Config::Method] - # - attr_reader :list_autonomous_database_backups - ## - # RPC-specific configuration for `stop_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :stop_autonomous_database - ## - # RPC-specific configuration for `start_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :start_autonomous_database - ## - # RPC-specific configuration for `restart_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :restart_autonomous_database - ## - # RPC-specific configuration for `switchover_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :switchover_autonomous_database - ## - # RPC-specific configuration for `failover_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :failover_autonomous_database - ## - # RPC-specific configuration for `list_odb_networks` - # @return [::Gapic::Config::Method] - # - attr_reader :list_odb_networks - ## - # RPC-specific configuration for `get_odb_network` - # @return [::Gapic::Config::Method] - # - attr_reader :get_odb_network - ## - # RPC-specific configuration for `create_odb_network` - # @return [::Gapic::Config::Method] - # - attr_reader :create_odb_network - ## - # RPC-specific configuration for `delete_odb_network` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_odb_network - ## - # RPC-specific configuration for `list_odb_subnets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_odb_subnets - ## - # RPC-specific configuration for `get_odb_subnet` - # @return [::Gapic::Config::Method] - # - attr_reader :get_odb_subnet - ## - # RPC-specific configuration for `create_odb_subnet` - # @return [::Gapic::Config::Method] - # - attr_reader :create_odb_subnet - ## - # RPC-specific configuration for `delete_odb_subnet` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_odb_subnet - ## - # RPC-specific configuration for `list_exadb_vm_clusters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_exadb_vm_clusters - ## - # RPC-specific configuration for `get_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :get_exadb_vm_cluster - ## - # RPC-specific configuration for `create_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :create_exadb_vm_cluster - ## - # RPC-specific configuration for `delete_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_exadb_vm_cluster - ## - # RPC-specific configuration for `update_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :update_exadb_vm_cluster - ## - # RPC-specific configuration for `remove_virtual_machine_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_virtual_machine_exadb_vm_cluster - ## - # RPC-specific configuration for `list_exascale_db_storage_vaults` - # @return [::Gapic::Config::Method] - # - attr_reader :list_exascale_db_storage_vaults - ## - # RPC-specific configuration for `get_exascale_db_storage_vault` - # @return [::Gapic::Config::Method] - # - attr_reader :get_exascale_db_storage_vault - ## - # RPC-specific configuration for `create_exascale_db_storage_vault` - # @return [::Gapic::Config::Method] - # - attr_reader :create_exascale_db_storage_vault - ## - # RPC-specific configuration for `delete_exascale_db_storage_vault` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_exascale_db_storage_vault - ## - # RPC-specific configuration for `list_db_system_initial_storage_sizes` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_system_initial_storage_sizes - ## - # RPC-specific configuration for `list_databases` - # @return [::Gapic::Config::Method] - # - attr_reader :list_databases - ## - # RPC-specific configuration for `get_database` - # @return [::Gapic::Config::Method] - # - attr_reader :get_database - ## - # RPC-specific configuration for `list_pluggable_databases` - # @return [::Gapic::Config::Method] - # - attr_reader :list_pluggable_databases - ## - # RPC-specific configuration for `get_pluggable_database` - # @return [::Gapic::Config::Method] - # - attr_reader :get_pluggable_database - ## - # RPC-specific configuration for `list_db_systems` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_systems - ## - # RPC-specific configuration for `get_db_system` - # @return [::Gapic::Config::Method] - # - attr_reader :get_db_system - ## - # RPC-specific configuration for `create_db_system` - # @return [::Gapic::Config::Method] - # - attr_reader :create_db_system - ## - # RPC-specific configuration for `delete_db_system` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_db_system - ## - # RPC-specific configuration for `list_goldengate_deployments` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_deployments - ## - # RPC-specific configuration for `get_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_deployment - ## - # RPC-specific configuration for `create_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :create_goldengate_deployment - ## - # RPC-specific configuration for `delete_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_goldengate_deployment - ## - # RPC-specific configuration for `stop_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :stop_goldengate_deployment - ## - # RPC-specific configuration for `start_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :start_goldengate_deployment - ## - # RPC-specific configuration for `list_goldengate_connections` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_connections - ## - # RPC-specific configuration for `get_goldengate_connection` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_connection - ## - # RPC-specific configuration for `create_goldengate_connection` - # @return [::Gapic::Config::Method] - # - attr_reader :create_goldengate_connection - ## - # RPC-specific configuration for `delete_goldengate_connection` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_goldengate_connection - ## - # RPC-specific configuration for `get_goldengate_deployment_version` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_deployment_version - ## - # RPC-specific configuration for `list_goldengate_deployment_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_deployment_versions - ## - # RPC-specific configuration for `get_goldengate_deployment_type` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_deployment_type - ## - # RPC-specific configuration for `list_goldengate_deployment_types` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_deployment_types - ## - # RPC-specific configuration for `get_goldengate_deployment_environment` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_deployment_environment - ## - # RPC-specific configuration for `list_goldengate_deployment_environments` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_deployment_environments - ## - # RPC-specific configuration for `get_goldengate_connection_type` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_connection_type - ## - # RPC-specific configuration for `list_goldengate_connection_types` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_connection_types - ## - # RPC-specific configuration for `list_db_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_versions - ## - # RPC-specific configuration for `list_database_character_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_database_character_sets - ## - # RPC-specific configuration for `list_goldengate_connection_assignments` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_connection_assignments - ## - # RPC-specific configuration for `get_goldengate_connection_assignment` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_connection_assignment - ## - # RPC-specific configuration for `create_goldengate_connection_assignment` - # @return [::Gapic::Config::Method] - # - attr_reader :create_goldengate_connection_assignment - ## - # RPC-specific configuration for `delete_goldengate_connection_assignment` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_goldengate_connection_assignment - ## - # RPC-specific configuration for `test_goldengate_connection_assignment` - # @return [::Gapic::Config::Method] - # - attr_reader :test_goldengate_connection_assignment - - # @private - def initialize parent_rpcs = nil - list_cloud_exadata_infrastructures_config = parent_rpcs.list_cloud_exadata_infrastructures if parent_rpcs.respond_to? :list_cloud_exadata_infrastructures - @list_cloud_exadata_infrastructures = ::Gapic::Config::Method.new list_cloud_exadata_infrastructures_config - get_cloud_exadata_infrastructure_config = parent_rpcs.get_cloud_exadata_infrastructure if parent_rpcs.respond_to? :get_cloud_exadata_infrastructure - @get_cloud_exadata_infrastructure = ::Gapic::Config::Method.new get_cloud_exadata_infrastructure_config - create_cloud_exadata_infrastructure_config = parent_rpcs.create_cloud_exadata_infrastructure if parent_rpcs.respond_to? :create_cloud_exadata_infrastructure - @create_cloud_exadata_infrastructure = ::Gapic::Config::Method.new create_cloud_exadata_infrastructure_config - delete_cloud_exadata_infrastructure_config = parent_rpcs.delete_cloud_exadata_infrastructure if parent_rpcs.respond_to? :delete_cloud_exadata_infrastructure - @delete_cloud_exadata_infrastructure = ::Gapic::Config::Method.new delete_cloud_exadata_infrastructure_config - list_cloud_vm_clusters_config = parent_rpcs.list_cloud_vm_clusters if parent_rpcs.respond_to? :list_cloud_vm_clusters - @list_cloud_vm_clusters = ::Gapic::Config::Method.new list_cloud_vm_clusters_config - get_cloud_vm_cluster_config = parent_rpcs.get_cloud_vm_cluster if parent_rpcs.respond_to? :get_cloud_vm_cluster - @get_cloud_vm_cluster = ::Gapic::Config::Method.new get_cloud_vm_cluster_config - create_cloud_vm_cluster_config = parent_rpcs.create_cloud_vm_cluster if parent_rpcs.respond_to? :create_cloud_vm_cluster - @create_cloud_vm_cluster = ::Gapic::Config::Method.new create_cloud_vm_cluster_config - delete_cloud_vm_cluster_config = parent_rpcs.delete_cloud_vm_cluster if parent_rpcs.respond_to? :delete_cloud_vm_cluster - @delete_cloud_vm_cluster = ::Gapic::Config::Method.new delete_cloud_vm_cluster_config - list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements - @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config - list_db_servers_config = parent_rpcs.list_db_servers if parent_rpcs.respond_to? :list_db_servers - @list_db_servers = ::Gapic::Config::Method.new list_db_servers_config - list_db_nodes_config = parent_rpcs.list_db_nodes if parent_rpcs.respond_to? :list_db_nodes - @list_db_nodes = ::Gapic::Config::Method.new list_db_nodes_config - list_gi_versions_config = parent_rpcs.list_gi_versions if parent_rpcs.respond_to? :list_gi_versions - @list_gi_versions = ::Gapic::Config::Method.new list_gi_versions_config - list_minor_versions_config = parent_rpcs.list_minor_versions if parent_rpcs.respond_to? :list_minor_versions - @list_minor_versions = ::Gapic::Config::Method.new list_minor_versions_config - list_db_system_shapes_config = parent_rpcs.list_db_system_shapes if parent_rpcs.respond_to? :list_db_system_shapes - @list_db_system_shapes = ::Gapic::Config::Method.new list_db_system_shapes_config - list_autonomous_databases_config = parent_rpcs.list_autonomous_databases if parent_rpcs.respond_to? :list_autonomous_databases - @list_autonomous_databases = ::Gapic::Config::Method.new list_autonomous_databases_config - get_autonomous_database_config = parent_rpcs.get_autonomous_database if parent_rpcs.respond_to? :get_autonomous_database - @get_autonomous_database = ::Gapic::Config::Method.new get_autonomous_database_config - create_autonomous_database_config = parent_rpcs.create_autonomous_database if parent_rpcs.respond_to? :create_autonomous_database - @create_autonomous_database = ::Gapic::Config::Method.new create_autonomous_database_config - update_autonomous_database_config = parent_rpcs.update_autonomous_database if parent_rpcs.respond_to? :update_autonomous_database - @update_autonomous_database = ::Gapic::Config::Method.new update_autonomous_database_config - delete_autonomous_database_config = parent_rpcs.delete_autonomous_database if parent_rpcs.respond_to? :delete_autonomous_database - @delete_autonomous_database = ::Gapic::Config::Method.new delete_autonomous_database_config - restore_autonomous_database_config = parent_rpcs.restore_autonomous_database if parent_rpcs.respond_to? :restore_autonomous_database - @restore_autonomous_database = ::Gapic::Config::Method.new restore_autonomous_database_config - generate_autonomous_database_wallet_config = parent_rpcs.generate_autonomous_database_wallet if parent_rpcs.respond_to? :generate_autonomous_database_wallet - @generate_autonomous_database_wallet = ::Gapic::Config::Method.new generate_autonomous_database_wallet_config - list_autonomous_db_versions_config = parent_rpcs.list_autonomous_db_versions if parent_rpcs.respond_to? :list_autonomous_db_versions - @list_autonomous_db_versions = ::Gapic::Config::Method.new list_autonomous_db_versions_config - list_autonomous_database_character_sets_config = parent_rpcs.list_autonomous_database_character_sets if parent_rpcs.respond_to? :list_autonomous_database_character_sets - @list_autonomous_database_character_sets = ::Gapic::Config::Method.new list_autonomous_database_character_sets_config - list_autonomous_database_backups_config = parent_rpcs.list_autonomous_database_backups if parent_rpcs.respond_to? :list_autonomous_database_backups - @list_autonomous_database_backups = ::Gapic::Config::Method.new list_autonomous_database_backups_config - stop_autonomous_database_config = parent_rpcs.stop_autonomous_database if parent_rpcs.respond_to? :stop_autonomous_database - @stop_autonomous_database = ::Gapic::Config::Method.new stop_autonomous_database_config - start_autonomous_database_config = parent_rpcs.start_autonomous_database if parent_rpcs.respond_to? :start_autonomous_database - @start_autonomous_database = ::Gapic::Config::Method.new start_autonomous_database_config - restart_autonomous_database_config = parent_rpcs.restart_autonomous_database if parent_rpcs.respond_to? :restart_autonomous_database - @restart_autonomous_database = ::Gapic::Config::Method.new restart_autonomous_database_config - switchover_autonomous_database_config = parent_rpcs.switchover_autonomous_database if parent_rpcs.respond_to? :switchover_autonomous_database - @switchover_autonomous_database = ::Gapic::Config::Method.new switchover_autonomous_database_config - failover_autonomous_database_config = parent_rpcs.failover_autonomous_database if parent_rpcs.respond_to? :failover_autonomous_database - @failover_autonomous_database = ::Gapic::Config::Method.new failover_autonomous_database_config - list_odb_networks_config = parent_rpcs.list_odb_networks if parent_rpcs.respond_to? :list_odb_networks - @list_odb_networks = ::Gapic::Config::Method.new list_odb_networks_config - get_odb_network_config = parent_rpcs.get_odb_network if parent_rpcs.respond_to? :get_odb_network - @get_odb_network = ::Gapic::Config::Method.new get_odb_network_config - create_odb_network_config = parent_rpcs.create_odb_network if parent_rpcs.respond_to? :create_odb_network - @create_odb_network = ::Gapic::Config::Method.new create_odb_network_config - delete_odb_network_config = parent_rpcs.delete_odb_network if parent_rpcs.respond_to? :delete_odb_network - @delete_odb_network = ::Gapic::Config::Method.new delete_odb_network_config - list_odb_subnets_config = parent_rpcs.list_odb_subnets if parent_rpcs.respond_to? :list_odb_subnets - @list_odb_subnets = ::Gapic::Config::Method.new list_odb_subnets_config - get_odb_subnet_config = parent_rpcs.get_odb_subnet if parent_rpcs.respond_to? :get_odb_subnet - @get_odb_subnet = ::Gapic::Config::Method.new get_odb_subnet_config - create_odb_subnet_config = parent_rpcs.create_odb_subnet if parent_rpcs.respond_to? :create_odb_subnet - @create_odb_subnet = ::Gapic::Config::Method.new create_odb_subnet_config - delete_odb_subnet_config = parent_rpcs.delete_odb_subnet if parent_rpcs.respond_to? :delete_odb_subnet - @delete_odb_subnet = ::Gapic::Config::Method.new delete_odb_subnet_config - list_exadb_vm_clusters_config = parent_rpcs.list_exadb_vm_clusters if parent_rpcs.respond_to? :list_exadb_vm_clusters - @list_exadb_vm_clusters = ::Gapic::Config::Method.new list_exadb_vm_clusters_config - get_exadb_vm_cluster_config = parent_rpcs.get_exadb_vm_cluster if parent_rpcs.respond_to? :get_exadb_vm_cluster - @get_exadb_vm_cluster = ::Gapic::Config::Method.new get_exadb_vm_cluster_config - create_exadb_vm_cluster_config = parent_rpcs.create_exadb_vm_cluster if parent_rpcs.respond_to? :create_exadb_vm_cluster - @create_exadb_vm_cluster = ::Gapic::Config::Method.new create_exadb_vm_cluster_config - delete_exadb_vm_cluster_config = parent_rpcs.delete_exadb_vm_cluster if parent_rpcs.respond_to? :delete_exadb_vm_cluster - @delete_exadb_vm_cluster = ::Gapic::Config::Method.new delete_exadb_vm_cluster_config - update_exadb_vm_cluster_config = parent_rpcs.update_exadb_vm_cluster if parent_rpcs.respond_to? :update_exadb_vm_cluster - @update_exadb_vm_cluster = ::Gapic::Config::Method.new update_exadb_vm_cluster_config - remove_virtual_machine_exadb_vm_cluster_config = parent_rpcs.remove_virtual_machine_exadb_vm_cluster if parent_rpcs.respond_to? :remove_virtual_machine_exadb_vm_cluster - @remove_virtual_machine_exadb_vm_cluster = ::Gapic::Config::Method.new remove_virtual_machine_exadb_vm_cluster_config - list_exascale_db_storage_vaults_config = parent_rpcs.list_exascale_db_storage_vaults if parent_rpcs.respond_to? :list_exascale_db_storage_vaults - @list_exascale_db_storage_vaults = ::Gapic::Config::Method.new list_exascale_db_storage_vaults_config - get_exascale_db_storage_vault_config = parent_rpcs.get_exascale_db_storage_vault if parent_rpcs.respond_to? :get_exascale_db_storage_vault - @get_exascale_db_storage_vault = ::Gapic::Config::Method.new get_exascale_db_storage_vault_config - create_exascale_db_storage_vault_config = parent_rpcs.create_exascale_db_storage_vault if parent_rpcs.respond_to? :create_exascale_db_storage_vault - @create_exascale_db_storage_vault = ::Gapic::Config::Method.new create_exascale_db_storage_vault_config - delete_exascale_db_storage_vault_config = parent_rpcs.delete_exascale_db_storage_vault if parent_rpcs.respond_to? :delete_exascale_db_storage_vault - @delete_exascale_db_storage_vault = ::Gapic::Config::Method.new delete_exascale_db_storage_vault_config - list_db_system_initial_storage_sizes_config = parent_rpcs.list_db_system_initial_storage_sizes if parent_rpcs.respond_to? :list_db_system_initial_storage_sizes - @list_db_system_initial_storage_sizes = ::Gapic::Config::Method.new list_db_system_initial_storage_sizes_config - list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases - @list_databases = ::Gapic::Config::Method.new list_databases_config - get_database_config = parent_rpcs.get_database if parent_rpcs.respond_to? :get_database - @get_database = ::Gapic::Config::Method.new get_database_config - list_pluggable_databases_config = parent_rpcs.list_pluggable_databases if parent_rpcs.respond_to? :list_pluggable_databases - @list_pluggable_databases = ::Gapic::Config::Method.new list_pluggable_databases_config - get_pluggable_database_config = parent_rpcs.get_pluggable_database if parent_rpcs.respond_to? :get_pluggable_database - @get_pluggable_database = ::Gapic::Config::Method.new get_pluggable_database_config - list_db_systems_config = parent_rpcs.list_db_systems if parent_rpcs.respond_to? :list_db_systems - @list_db_systems = ::Gapic::Config::Method.new list_db_systems_config - get_db_system_config = parent_rpcs.get_db_system if parent_rpcs.respond_to? :get_db_system - @get_db_system = ::Gapic::Config::Method.new get_db_system_config - create_db_system_config = parent_rpcs.create_db_system if parent_rpcs.respond_to? :create_db_system - @create_db_system = ::Gapic::Config::Method.new create_db_system_config - delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system - @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config - list_goldengate_deployments_config = parent_rpcs.list_goldengate_deployments if parent_rpcs.respond_to? :list_goldengate_deployments - @list_goldengate_deployments = ::Gapic::Config::Method.new list_goldengate_deployments_config - get_goldengate_deployment_config = parent_rpcs.get_goldengate_deployment if parent_rpcs.respond_to? :get_goldengate_deployment - @get_goldengate_deployment = ::Gapic::Config::Method.new get_goldengate_deployment_config - create_goldengate_deployment_config = parent_rpcs.create_goldengate_deployment if parent_rpcs.respond_to? :create_goldengate_deployment - @create_goldengate_deployment = ::Gapic::Config::Method.new create_goldengate_deployment_config - delete_goldengate_deployment_config = parent_rpcs.delete_goldengate_deployment if parent_rpcs.respond_to? :delete_goldengate_deployment - @delete_goldengate_deployment = ::Gapic::Config::Method.new delete_goldengate_deployment_config - stop_goldengate_deployment_config = parent_rpcs.stop_goldengate_deployment if parent_rpcs.respond_to? :stop_goldengate_deployment - @stop_goldengate_deployment = ::Gapic::Config::Method.new stop_goldengate_deployment_config - start_goldengate_deployment_config = parent_rpcs.start_goldengate_deployment if parent_rpcs.respond_to? :start_goldengate_deployment - @start_goldengate_deployment = ::Gapic::Config::Method.new start_goldengate_deployment_config - list_goldengate_connections_config = parent_rpcs.list_goldengate_connections if parent_rpcs.respond_to? :list_goldengate_connections - @list_goldengate_connections = ::Gapic::Config::Method.new list_goldengate_connections_config - get_goldengate_connection_config = parent_rpcs.get_goldengate_connection if parent_rpcs.respond_to? :get_goldengate_connection - @get_goldengate_connection = ::Gapic::Config::Method.new get_goldengate_connection_config - create_goldengate_connection_config = parent_rpcs.create_goldengate_connection if parent_rpcs.respond_to? :create_goldengate_connection - @create_goldengate_connection = ::Gapic::Config::Method.new create_goldengate_connection_config - delete_goldengate_connection_config = parent_rpcs.delete_goldengate_connection if parent_rpcs.respond_to? :delete_goldengate_connection - @delete_goldengate_connection = ::Gapic::Config::Method.new delete_goldengate_connection_config - get_goldengate_deployment_version_config = parent_rpcs.get_goldengate_deployment_version if parent_rpcs.respond_to? :get_goldengate_deployment_version - @get_goldengate_deployment_version = ::Gapic::Config::Method.new get_goldengate_deployment_version_config - list_goldengate_deployment_versions_config = parent_rpcs.list_goldengate_deployment_versions if parent_rpcs.respond_to? :list_goldengate_deployment_versions - @list_goldengate_deployment_versions = ::Gapic::Config::Method.new list_goldengate_deployment_versions_config - get_goldengate_deployment_type_config = parent_rpcs.get_goldengate_deployment_type if parent_rpcs.respond_to? :get_goldengate_deployment_type - @get_goldengate_deployment_type = ::Gapic::Config::Method.new get_goldengate_deployment_type_config - list_goldengate_deployment_types_config = parent_rpcs.list_goldengate_deployment_types if parent_rpcs.respond_to? :list_goldengate_deployment_types - @list_goldengate_deployment_types = ::Gapic::Config::Method.new list_goldengate_deployment_types_config - get_goldengate_deployment_environment_config = parent_rpcs.get_goldengate_deployment_environment if parent_rpcs.respond_to? :get_goldengate_deployment_environment - @get_goldengate_deployment_environment = ::Gapic::Config::Method.new get_goldengate_deployment_environment_config - list_goldengate_deployment_environments_config = parent_rpcs.list_goldengate_deployment_environments if parent_rpcs.respond_to? :list_goldengate_deployment_environments - @list_goldengate_deployment_environments = ::Gapic::Config::Method.new list_goldengate_deployment_environments_config - get_goldengate_connection_type_config = parent_rpcs.get_goldengate_connection_type if parent_rpcs.respond_to? :get_goldengate_connection_type - @get_goldengate_connection_type = ::Gapic::Config::Method.new get_goldengate_connection_type_config - list_goldengate_connection_types_config = parent_rpcs.list_goldengate_connection_types if parent_rpcs.respond_to? :list_goldengate_connection_types - @list_goldengate_connection_types = ::Gapic::Config::Method.new list_goldengate_connection_types_config - list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions - @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config - list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets - @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config - list_goldengate_connection_assignments_config = parent_rpcs.list_goldengate_connection_assignments if parent_rpcs.respond_to? :list_goldengate_connection_assignments - @list_goldengate_connection_assignments = ::Gapic::Config::Method.new list_goldengate_connection_assignments_config - get_goldengate_connection_assignment_config = parent_rpcs.get_goldengate_connection_assignment if parent_rpcs.respond_to? :get_goldengate_connection_assignment - @get_goldengate_connection_assignment = ::Gapic::Config::Method.new get_goldengate_connection_assignment_config - create_goldengate_connection_assignment_config = parent_rpcs.create_goldengate_connection_assignment if parent_rpcs.respond_to? :create_goldengate_connection_assignment - @create_goldengate_connection_assignment = ::Gapic::Config::Method.new create_goldengate_connection_assignment_config - delete_goldengate_connection_assignment_config = parent_rpcs.delete_goldengate_connection_assignment if parent_rpcs.respond_to? :delete_goldengate_connection_assignment - @delete_goldengate_connection_assignment = ::Gapic::Config::Method.new delete_goldengate_connection_assignment_config - test_goldengate_connection_assignment_config = parent_rpcs.test_goldengate_connection_assignment if parent_rpcs.respond_to? :test_goldengate_connection_assignment - @test_goldengate_connection_assignment = ::Gapic::Config::Method.new test_goldengate_connection_assignment_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb deleted file mode 100644 index 8cf0dcf36d98..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/credentials.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "googleauth" - -module Google - module Cloud - module OracleDatabase - module V1 - module OracleDatabase - # Credentials for the OracleDatabase API. - class Credentials < ::Google::Auth::Credentials - self.scope = [ - "https://www.googleapis.com/auth/cloud-platform" - ] - self.env_vars = [ - "GOOGLE_CLOUD_CREDENTIALS", - "GOOGLE_CLOUD_KEYFILE", - "GCLOUD_KEYFILE", - "GOOGLE_CLOUD_CREDENTIALS_JSON", - "GOOGLE_CLOUD_KEYFILE_JSON", - "GCLOUD_KEYFILE_JSON" - ] - self.paths = [ - "~/.config/google_cloud/application_default_credentials.json" - ] - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb deleted file mode 100644 index 6319605163d9..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/operations.rb +++ /dev/null @@ -1,841 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" -require "google/longrunning/operations_pb" - -module Google - module Cloud - module OracleDatabase - module V1 - module OracleDatabase - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the OracleDatabase Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the OracleDatabase Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # These require statements are intentionally placed here to initialize - # the gRPC module only when it's required. - # See https://github.com/googleapis/toolkit/issues/446 - require "gapic/grpc" - require "google/longrunning/operations_services_pb" - - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = ::Gapic::ServiceStub.new( - ::Google::Longrunning::Operations::Stub, - credentials: credentials, - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - channel_args: @config.channel_args, - interceptors: @config.interceptors, - channel_pool_config: @config.channel_pool - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::PagedEnumerable<::Gapic::Operation>] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::PagedEnumerable<::Gapic::Operation>] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :list_operations, request, options: options do |response, operation| - wrap_lro_operation = ->(op_response) { ::Gapic::Operation.new op_response, @operations_client } - response = ::Gapic::PagedEnumerable.new @operations_stub, :list_operations, request, response, operation, options, format_resource: wrap_lro_operation - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :get_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes 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`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts 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`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Google::Protobuf::Empty] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - header_params = {} - if request.name - header_params["name"] = request.name - end - - request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&") - metadata[:"x-goog-request-params"] ||= request_params_header - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation| - yield response, operation if block_given? - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Waits until the specified long-running operation is done or reaches at most - # a specified timeout, returning the latest state. If the operation is - # already done, the latest state is immediately returned. If the timeout - # specified is greater than the default HTTP/RPC timeout, the HTTP/RPC - # timeout is used. If the server does not support this method, it returns - # `google.rpc.Code.UNIMPLEMENTED`. - # Note that this method is on a best-effort basis. It may return the latest - # state before the specified timeout (including immediately), meaning even an - # immediate response is no guarantee that the operation is done. - # - # @overload wait_operation(request, options = nil) - # Pass arguments to `wait_operation` via a request object, either of type - # {::Google::Longrunning::WaitOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::WaitOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. - # - # @overload wait_operation(name: nil, timeout: nil) - # Pass arguments to `wait_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to wait on. - # @param timeout [::Google::Protobuf::Duration, ::Hash] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - # - # @yield [response, operation] Access the result along with the RPC operation - # @yieldparam response [::Gapic::Operation] - # @yieldparam operation [::GRPC::ActiveCall::Operation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the RPC is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::WaitOperationRequest.new - # - # # Call the wait_operation method. - # result = client.wait_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def wait_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::WaitOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - metadata = @config.rpcs.wait_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION - metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.wait_operation.timeout, - metadata: metadata, - retry_policy: @config.rpcs.wait_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation| - response = ::Gapic::Operation.new response, @operations_client, options: options - yield response, operation if block_given? - throw :response, response - end - rescue ::GRPC::BadStatus => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations API. - # - # This class represents the configuration for Operations, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`GRPC::Core::Channel`) a gRPC channel with included credentials - # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object - # * (`nil`) indicating no credentials - # - # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials - # is deprecated. Providing an unvalidated credential configuration to - # Google APIs can compromise the security of your systems and data. - # - # @example - # - # # The recommended way to provide credentials is to use the `make_creds` method - # # on the appropriate credentials class for your environment. - # - # require "googleauth" - # - # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds( - # json_key_io: ::File.open("/path/to/keyfile.json") - # ) - # - # client = ::Google::Longrunning::Operations::Client.new do |config| - # config.credentials = credentials - # end - # - # @note Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] channel_args - # Extra parameters passed to the gRPC channel. Note: this is ignored if a - # `GRPC::Core::Channel` object is provided as the credential. - # @return [::Hash] - # @!attribute [rw] interceptors - # An array of interceptors that are run before calls are executed. - # @return [::Array<::GRPC::ClientInterceptor>] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional gRPC headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil) - config_attr :interceptors, nil, ::Array, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration for the channel pool - # @return [::Gapic::ServiceStub::ChannelPool::Configuration] - # - def channel_pool - @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - ## - # RPC-specific configuration for `wait_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :wait_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - wait_operation_config = parent_rpcs.wait_operation if parent_rpcs.respond_to? :wait_operation - @wait_operation = ::Gapic::Config::Method.new wait_operation_config - - yield self if block_given? - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb deleted file mode 100644 index c3ceeacf7397..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/paths.rb +++ /dev/null @@ -1,451 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - module OracleDatabase - # Path helper methods for the OracleDatabase API. - module Paths - ## - # Create a fully-qualified AutonomousDatabase resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}` - # - # @param project [String] - # @param location [String] - # @param autonomous_database [String] - # - # @return [::String] - def autonomous_database_path project:, location:, autonomous_database: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/autonomousDatabases/#{autonomous_database}" - end - - ## - # Create a fully-qualified CloudExadataInfrastructure resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}` - # - # @param project [String] - # @param location [String] - # @param cloud_exadata_infrastructure [String] - # - # @return [::String] - def cloud_exadata_infrastructure_path project:, location:, cloud_exadata_infrastructure: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/cloudExadataInfrastructures/#{cloud_exadata_infrastructure}" - end - - ## - # Create a fully-qualified CloudVmCluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}` - # - # @param project [String] - # @param location [String] - # @param cloud_vm_cluster [String] - # - # @return [::String] - def cloud_vm_cluster_path project:, location:, cloud_vm_cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/cloudVmClusters/#{cloud_vm_cluster}" - end - - ## - # Create a fully-qualified CryptoKey resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` - # - # @param project [String] - # @param location [String] - # @param key_ring [String] - # @param crypto_key [String] - # - # @return [::String] - def crypto_key_path project:, location:, key_ring:, crypto_key: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/" - - "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}" - end - - ## - # Create a fully-qualified Database resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/databases/{database}` - # - # @param project [String] - # @param location [String] - # @param database [String] - # - # @return [::String] - def database_path project:, location:, database: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/databases/#{database}" - end - - ## - # Create a fully-qualified DbSystem resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/dbSystems/{db_system}` - # - # @param project [String] - # @param location [String] - # @param db_system [String] - # - # @return [::String] - def db_system_path project:, location:, db_system: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/dbSystems/#{db_system}" - end - - ## - # Create a fully-qualified ExadbVmCluster resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}` - # - # @param project [String] - # @param location [String] - # @param exadb_vm_cluster [String] - # - # @return [::String] - def exadb_vm_cluster_path project:, location:, exadb_vm_cluster: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/exadbVmClusters/#{exadb_vm_cluster}" - end - - ## - # Create a fully-qualified ExascaleDbStorageVault resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}` - # - # @param project [String] - # @param location [String] - # @param exascale_db_storage_vault [String] - # - # @return [::String] - def exascale_db_storage_vault_path project:, location:, exascale_db_storage_vault: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/exascaleDbStorageVaults/#{exascale_db_storage_vault}" - end - - ## - # Create a fully-qualified GiVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/giVersions/{gi_version}` - # - # @param project [String] - # @param location [String] - # @param gi_version [String] - # - # @return [::String] - def gi_version_path project:, location:, gi_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/giVersions/#{gi_version}" - end - - ## - # Create a fully-qualified GoldengateConnection resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/goldengateConnections/{goldengate_connection}` - # - # @param project [String] - # @param location [String] - # @param goldengate_connection [String] - # - # @return [::String] - def goldengate_connection_path project:, location:, goldengate_connection: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/goldengateConnections/#{goldengate_connection}" - end - - ## - # Create a fully-qualified GoldengateConnectionAssignment resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/goldengateConnectionAssignments/{goldengate_connection_assignment}` - # - # @param project [String] - # @param location [String] - # @param goldengate_connection_assignment [String] - # - # @return [::String] - def goldengate_connection_assignment_path project:, location:, goldengate_connection_assignment: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/goldengateConnectionAssignments/#{goldengate_connection_assignment}" - end - - ## - # Create a fully-qualified GoldengateConnectionType resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}` - # - # @param project [String] - # @param location [String] - # @param goldengate_connection_type [String] - # - # @return [::String] - def goldengate_connection_type_path project:, location:, goldengate_connection_type: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/goldengateConnectionTypes/#{goldengate_connection_type}" - end - - ## - # Create a fully-qualified GoldengateDeployment resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/goldengateDeployments/{goldengate_deployment}` - # - # @param project [String] - # @param location [String] - # @param goldengate_deployment [String] - # - # @return [::String] - def goldengate_deployment_path project:, location:, goldengate_deployment: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/goldengateDeployments/#{goldengate_deployment}" - end - - ## - # Create a fully-qualified GoldengateDeploymentEnvironment resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}` - # - # @param project [String] - # @param location [String] - # @param goldengate_deployment_environment [String] - # - # @return [::String] - def goldengate_deployment_environment_path project:, location:, goldengate_deployment_environment: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/goldengateDeploymentEnvironments/#{goldengate_deployment_environment}" - end - - ## - # Create a fully-qualified GoldengateDeploymentType resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}` - # - # @param project [String] - # @param location [String] - # @param goldengate_deployment_type [String] - # - # @return [::String] - def goldengate_deployment_type_path project:, location:, goldengate_deployment_type: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/goldengateDeploymentTypes/#{goldengate_deployment_type}" - end - - ## - # Create a fully-qualified GoldengateDeploymentVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}` - # - # @param project [String] - # @param location [String] - # @param goldengate_deployment_version [String] - # - # @return [::String] - def goldengate_deployment_version_path project:, location:, goldengate_deployment_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/goldengateDeploymentVersions/#{goldengate_deployment_version}" - end - - ## - # Create a fully-qualified Location resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}` - # - # @param project [String] - # @param location [String] - # - # @return [::String] - def location_path project:, location: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/locations/#{location}" - end - - ## - # Create a fully-qualified Network resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/global/networks/{network}` - # - # @param project [String] - # @param network [String] - # - # @return [::String] - def network_path project:, network: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - - "projects/#{project}/global/networks/#{network}" - end - - ## - # Create a fully-qualified OdbNetwork resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/odbNetworks/{odb_network}` - # - # @param project [String] - # @param location [String] - # @param odb_network [String] - # - # @return [::String] - def odb_network_path project:, location:, odb_network: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/odbNetworks/#{odb_network}" - end - - ## - # Create a fully-qualified OdbSubnet resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}` - # - # @param project [String] - # @param location [String] - # @param odb_network [String] - # @param odb_subnet [String] - # - # @return [::String] - def odb_subnet_path project:, location:, odb_network:, odb_subnet: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - raise ::ArgumentError, "odb_network cannot contain /" if odb_network.to_s.include? "/" - - "projects/#{project}/locations/#{location}/odbNetworks/#{odb_network}/odbSubnets/#{odb_subnet}" - end - - ## - # Create a fully-qualified PluggableDatabase resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/locations/{location}/pluggableDatabases/{pluggable_database}` - # - # @param project [String] - # @param location [String] - # @param pluggable_database [String] - # - # @return [::String] - def pluggable_database_path project:, location:, pluggable_database: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - - "projects/#{project}/locations/#{location}/pluggableDatabases/#{pluggable_database}" - end - - ## - # Create a fully-qualified SecretVersion resource string. - # - # The resource will be in the following format: - # - # `projects/{project}/secrets/{secret}/versions/{secret_version}` - # - # @param project [String] - # @param secret [String] - # @param secret_version [String] - # - # @return [::String] - def secret_version_path project:, secret:, secret_version: - raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/" - - "projects/#{project}/secrets/#{secret}/versions/#{secret_version}" - end - - extend self - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb deleted file mode 100644 index 05bbcd80a48e..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/rest" -require "gapic/config" -require "gapic/config/method" - -require "google/cloud/oracle_database/v1/version" -require "google/cloud/oracle_database/v1/bindings_override" - -require "google/cloud/oracle_database/v1/oracle_database/credentials" -require "google/cloud/oracle_database/v1/oracle_database/paths" -require "google/cloud/oracle_database/v1/oracle_database/rest/operations" -require "google/cloud/oracle_database/v1/oracle_database/rest/client" - -module Google - module Cloud - module OracleDatabase - module V1 - ## - # Service describing handlers for resources - # - # To load this service and instantiate a REST client: - # - # require "google/cloud/oracle_database/v1/oracle_database/rest" - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - module OracleDatabase - # Client for the REST transport - module Rest - end - end - end - end - end -end - -helper_path = ::File.join __dir__, "rest", "helpers.rb" -require "google/cloud/oracle_database/v1/oracle_database/rest/helpers" if ::File.file? helper_path diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb deleted file mode 100644 index 27ca944e9d8d..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/client.rb +++ /dev/null @@ -1,8729 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/errors" -require "google/cloud/oracledatabase/v1/oracledatabase_pb" -require "google/cloud/oracle_database/v1/oracle_database/rest/service_stub" -require "google/cloud/location/rest" - -module Google - module Cloud - module OracleDatabase - module V1 - module OracleDatabase - module Rest - ## - # REST client for the OracleDatabase service. - # - # Service describing handlers for resources - # - class Client - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$" - - include Paths - - # @private - attr_reader :oracle_database_stub - - ## - # Configure the OracleDatabase Client class. - # - # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @example - # - # # Modify the configuration for all OracleDatabase clients - # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def self.configure - @configure ||= begin - namespace = ["Google", "Cloud", "OracleDatabase", "V1"] - parent_config = while namespace.any? - parent_name = namespace.join "::" - parent_const = const_get parent_name - break parent_const.configure if parent_const.respond_to? :configure - namespace.pop - end - default_config = Client::Configuration.new parent_config - - default_config.timeout = 60.0 - - default_config.rpcs.list_cloud_exadata_infrastructures.timeout = 60.0 - default_config.rpcs.list_cloud_exadata_infrastructures.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_cloud_exadata_infrastructure.timeout = 60.0 - default_config.rpcs.get_cloud_exadata_infrastructure.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_cloud_vm_clusters.timeout = 60.0 - default_config.rpcs.list_cloud_vm_clusters.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_cloud_vm_cluster.timeout = 60.0 - default_config.rpcs.get_cloud_vm_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_entitlements.timeout = 60.0 - default_config.rpcs.list_entitlements.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_servers.timeout = 60.0 - default_config.rpcs.list_db_servers.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_nodes.timeout = 60.0 - default_config.rpcs.list_db_nodes.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_gi_versions.timeout = 60.0 - default_config.rpcs.list_gi_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_minor_versions.timeout = 60.0 - default_config.rpcs.list_minor_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_system_shapes.timeout = 60.0 - default_config.rpcs.list_db_system_shapes.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_autonomous_databases.timeout = 60.0 - default_config.rpcs.list_autonomous_databases.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_autonomous_database.timeout = 60.0 - default_config.rpcs.get_autonomous_database.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_autonomous_db_versions.timeout = 60.0 - default_config.rpcs.list_autonomous_db_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_autonomous_database_character_sets.timeout = 60.0 - default_config.rpcs.list_autonomous_database_character_sets.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_autonomous_database_backups.timeout = 60.0 - default_config.rpcs.list_autonomous_database_backups.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_odb_networks.timeout = 60.0 - default_config.rpcs.list_odb_networks.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_odb_network.timeout = 60.0 - default_config.rpcs.get_odb_network.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_odb_subnets.timeout = 60.0 - default_config.rpcs.list_odb_subnets.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_odb_subnet.timeout = 60.0 - default_config.rpcs.get_odb_subnet.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_exadb_vm_clusters.timeout = 60.0 - default_config.rpcs.list_exadb_vm_clusters.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_exadb_vm_cluster.timeout = 60.0 - default_config.rpcs.get_exadb_vm_cluster.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_exascale_db_storage_vaults.timeout = 60.0 - default_config.rpcs.list_exascale_db_storage_vaults.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_exascale_db_storage_vault.timeout = 60.0 - default_config.rpcs.get_exascale_db_storage_vault.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_system_initial_storage_sizes.timeout = 60.0 - default_config.rpcs.list_db_system_initial_storage_sizes.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_databases.timeout = 60.0 - default_config.rpcs.list_databases.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_database.timeout = 60.0 - default_config.rpcs.get_database.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_pluggable_databases.timeout = 60.0 - default_config.rpcs.list_pluggable_databases.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_pluggable_database.timeout = 60.0 - default_config.rpcs.get_pluggable_database.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_systems.timeout = 60.0 - default_config.rpcs.list_db_systems.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_db_system.timeout = 60.0 - default_config.rpcs.get_db_system.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_deployments.timeout = 60.0 - default_config.rpcs.list_goldengate_deployments.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_goldengate_deployment.timeout = 60.0 - default_config.rpcs.get_goldengate_deployment.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_connections.timeout = 60.0 - default_config.rpcs.list_goldengate_connections.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_goldengate_connection.timeout = 60.0 - default_config.rpcs.get_goldengate_connection.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_deployment_versions.timeout = 60.0 - default_config.rpcs.list_goldengate_deployment_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_deployment_types.timeout = 60.0 - default_config.rpcs.list_goldengate_deployment_types.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_deployment_environments.timeout = 60.0 - default_config.rpcs.list_goldengate_deployment_environments.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_connection_types.timeout = 60.0 - default_config.rpcs.list_goldengate_connection_types.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_db_versions.timeout = 60.0 - default_config.rpcs.list_db_versions.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_database_character_sets.timeout = 60.0 - default_config.rpcs.list_database_character_sets.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.list_goldengate_connection_assignments.timeout = 60.0 - default_config.rpcs.list_goldengate_connection_assignments.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config.rpcs.get_goldengate_connection_assignment.timeout = 60.0 - default_config.rpcs.get_goldengate_connection_assignment.retry_policy = { - initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14, 4] - } - - default_config - end - yield @configure if block_given? - @configure - end - - ## - # Configure the OracleDatabase Client instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Client.configure}. - # - # See {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration} - # for a description of the configuration fields. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Client::Configuration] - # - # @return [Client::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @oracle_database_stub.universe_domain - end - - ## - # Create a new OracleDatabase REST client object. - # - # @example - # - # # Create a client using the default configuration - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a client using a custom configuration - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - # config.timeout = 10.0 - # end - # - # @yield [config] Configure the OracleDatabase client. - # @yieldparam config [Client::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Client.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - # Use self-signed JWT if the endpoint is unchanged from default, - # but only if the default endpoint does not have a region prefix. - enable_self_signed_jwt = @config.endpoint.nil? || - (@config.endpoint == Configuration::DEFAULT_ENDPOINT && - !@config.endpoint.split(".").first.include?("-")) - credentials ||= Credentials.default scope: @config.scope, - enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Operations.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @config.endpoint - config.universe_domain = @config.universe_domain - end - - @oracle_database_stub = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials, - logger: @config.logger - ) - - @oracle_database_stub.logger(stub: true)&.info do |entry| - entry.set_system_name - entry.set_service - entry.message = "Created client for #{entry.service}" - entry.set_credentials_fields credentials - entry.set "customEndpoint", @config.endpoint if @config.endpoint - entry.set "defaultTimeout", @config.timeout if @config.timeout - entry.set "quotaProject", @quota_project_id if @quota_project_id - end - - @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config| - config.credentials = credentials - config.quota_project = @quota_project_id - config.endpoint = @oracle_database_stub.endpoint - config.universe_domain = @oracle_database_stub.universe_domain - config.bindings_override = @config.bindings_override - config.logger = @oracle_database_stub.logger if config.respond_to? :logger= - end - end - - ## - # Get the associated client for long-running operations. - # - # @return [::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Operations] - # - attr_reader :operations_client - - ## - # Get the associated client for mix-in of the Locations. - # - # @return [Google::Cloud::Location::Locations::Rest::Client] - # - attr_reader :location_client - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger - @oracle_database_stub.logger - end - - # Service calls - - ## - # Lists Exadata Infrastructures in a given project and location. - # - # @overload list_cloud_exadata_infrastructures(request, options = nil) - # Pass arguments to `list_cloud_exadata_infrastructures` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_cloud_exadata_infrastructures(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_cloud_exadata_infrastructures` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for CloudExadataInfrastructure in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Exadata infrastructures will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new - # - # # Call the list_cloud_exadata_infrastructures method. - # result = client.list_cloud_exadata_infrastructures request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. - # p item - # end - # - def list_cloud_exadata_infrastructures request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_cloud_exadata_infrastructures.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_cloud_exadata_infrastructures.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_cloud_exadata_infrastructures.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_cloud_exadata_infrastructures request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_cloud_exadata_infrastructures, "cloud_exadata_infrastructures", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single Exadata Infrastructure. - # - # @overload get_cloud_exadata_infrastructure(request, options = nil) - # Pass arguments to `get_cloud_exadata_infrastructure` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_cloud_exadata_infrastructure(name: nil) - # Pass arguments to `get_cloud_exadata_infrastructure` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Cloud Exadata Infrastructure in the following - # format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new - # - # # Call the get_cloud_exadata_infrastructure method. - # result = client.get_cloud_exadata_infrastructure request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. - # p result - # - def get_cloud_exadata_infrastructure request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_cloud_exadata_infrastructure.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_cloud_exadata_infrastructure.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_cloud_exadata_infrastructure.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_cloud_exadata_infrastructure request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Exadata Infrastructure in a given project and location. - # - # @overload create_cloud_exadata_infrastructure(request, options = nil) - # Pass arguments to `create_cloud_exadata_infrastructure` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_cloud_exadata_infrastructure(parent: nil, cloud_exadata_infrastructure_id: nil, cloud_exadata_infrastructure: nil, request_id: nil) - # Pass arguments to `create_cloud_exadata_infrastructure` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for CloudExadataInfrastructure in the following - # format: projects/\\{project}/locations/\\{location}. - # @param cloud_exadata_infrastructure_id [::String] - # Required. The ID of the Exadata Infrastructure to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param cloud_exadata_infrastructure [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure, ::Hash] - # Required. Details of the Exadata Infrastructure instance to create. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new - # - # # Call the create_cloud_exadata_infrastructure method. - # result = client.create_cloud_exadata_infrastructure request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_cloud_exadata_infrastructure request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_cloud_exadata_infrastructure.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_cloud_exadata_infrastructure.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_cloud_exadata_infrastructure.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_cloud_exadata_infrastructure request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Exadata Infrastructure. - # - # @overload delete_cloud_exadata_infrastructure(request, options = nil) - # Pass arguments to `delete_cloud_exadata_infrastructure` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_cloud_exadata_infrastructure(name: nil, request_id: nil, force: nil) - # Pass arguments to `delete_cloud_exadata_infrastructure` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Cloud Exadata Infrastructure in the following - # format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @param force [::Boolean] - # Optional. If set to true, all VM clusters for this Exadata Infrastructure - # will be deleted. An Exadata Infrastructure can only be deleted once all its - # VM clusters have been deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new - # - # # Call the delete_cloud_exadata_infrastructure method. - # result = client.delete_cloud_exadata_infrastructure request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_cloud_exadata_infrastructure request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_cloud_exadata_infrastructure.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_cloud_exadata_infrastructure.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_cloud_exadata_infrastructure.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_cloud_exadata_infrastructure request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the VM Clusters in a given project and location. - # - # @overload list_cloud_vm_clusters(request, options = nil) - # Pass arguments to `list_cloud_vm_clusters` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_cloud_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_cloud_vm_clusters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The number of VM clusters to return. - # If unspecified, at most 50 VM clusters will be returned. - # The maximum value is 1,000. - # @param page_token [::String] - # Optional. A token identifying the page of results the server returns. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new - # - # # Call the list_cloud_vm_clusters method. - # result = client.list_cloud_vm_clusters request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudVmCluster. - # p item - # end - # - def list_cloud_vm_clusters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_cloud_vm_clusters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_cloud_vm_clusters.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_cloud_vm_clusters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_cloud_vm_clusters request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_cloud_vm_clusters, "cloud_vm_clusters", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single VM Cluster. - # - # @overload get_cloud_vm_cluster(request, options = nil) - # Pass arguments to `get_cloud_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_cloud_vm_cluster(name: nil) - # Pass arguments to `get_cloud_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Cloud VM Cluster in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new - # - # # Call the get_cloud_vm_cluster method. - # result = client.get_cloud_vm_cluster request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudVmCluster. - # p result - # - def get_cloud_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_cloud_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_cloud_vm_cluster.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_cloud_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_cloud_vm_cluster request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new VM Cluster in a given project and location. - # - # @overload create_cloud_vm_cluster(request, options = nil) - # Pass arguments to `create_cloud_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_cloud_vm_cluster(parent: nil, cloud_vm_cluster_id: nil, cloud_vm_cluster: nil, request_id: nil) - # Pass arguments to `create_cloud_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @param cloud_vm_cluster_id [::String] - # Required. The ID of the VM Cluster to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @param cloud_vm_cluster [::Google::Cloud::OracleDatabase::V1::CloudVmCluster, ::Hash] - # Required. The resource being created - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new - # - # # Call the create_cloud_vm_cluster method. - # result = client.create_cloud_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_cloud_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_cloud_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_cloud_vm_cluster.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_cloud_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_cloud_vm_cluster request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single VM Cluster. - # - # @overload delete_cloud_vm_cluster(request, options = nil) - # Pass arguments to `delete_cloud_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_cloud_vm_cluster(name: nil, request_id: nil, force: nil) - # Pass arguments to `delete_cloud_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Cloud VM Cluster in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @param force [::Boolean] - # Optional. If set to true, all child resources for the VM Cluster will be - # deleted. A VM Cluster can only be deleted once all its child resources have - # been deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new - # - # # Call the delete_cloud_vm_cluster method. - # result = client.delete_cloud_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_cloud_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_cloud_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_cloud_vm_cluster.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_cloud_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_cloud_vm_cluster request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the entitlements in a given project. - # - # @overload list_entitlements(request, options = nil) - # Pass arguments to `list_entitlements` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_entitlements(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_entitlements` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the entitlement in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 entitlements will be returned. - # The maximum value is 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Entitlement>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new - # - # # Call the list_entitlements method. - # result = client.list_entitlements request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Entitlement. - # p item - # end - # - def list_entitlements request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_entitlements.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_entitlements.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_entitlements.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_entitlements request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_entitlements, "entitlements", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the database servers of an Exadata Infrastructure instance. - # - # @overload list_db_servers(request, options = nil) - # Pass arguments to `list_db_servers` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbServersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_db_servers(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_db_servers` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for database server in the following format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloudExadataInfrastructure}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 db servers will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbServer>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new - # - # # Call the list_db_servers method. - # result = client.list_db_servers request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbServer. - # p item - # end - # - def list_db_servers request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_db_servers.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_db_servers.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_db_servers.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_db_servers request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_servers, "db_servers", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the database nodes of a VM Cluster. - # - # @overload list_db_nodes(request, options = nil) - # Pass arguments to `list_db_nodes` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_db_nodes(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_db_nodes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for database node in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}. - # . - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 db nodes will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the node should return. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbNode>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new - # - # # Call the list_db_nodes method. - # result = client.list_db_nodes request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbNode. - # p item - # end - # - def list_db_nodes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_db_nodes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_db_nodes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_db_nodes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_db_nodes request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_nodes, "db_nodes", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the valid Oracle Grid Infrastructure (GI) versions for the given - # project and location. - # - # @overload list_gi_versions(request, options = nil) - # Pass arguments to `list_gi_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_gi_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_gi_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for Grid Infrastructure Version in the following - # format: Format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions - # will be returned. The maximum value is 1000; values above 1000 will be - # reset to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # shape, gcp_oracle_zone and gi_version fields are supported in this format: - # `shape="{shape}"`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GiVersion>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new - # - # # Call the list_gi_versions method. - # result = client.list_gi_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GiVersion. - # p item - # end - # - def list_gi_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_gi_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_gi_versions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_gi_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_gi_versions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_gi_versions, "gi_versions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the valid minor versions for the given - # project, location, gi version and shape family. - # - # @overload list_minor_versions(request, options = nil) - # Pass arguments to `list_minor_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_minor_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_minor_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the MinorVersion resource with the format: - # projects/\\{project}/locations/\\{location}/giVersions/\\{gi_version} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 System Versions will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # Only shapeFamily and gcp_oracle_zone_id are supported in this format: - # `shape_family="{shapeFamily}" AND - # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::MinorVersion>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new - # - # # Call the list_minor_versions method. - # result = client.list_minor_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::MinorVersion. - # p item - # end - # - def list_minor_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_minor_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_minor_versions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_minor_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_minor_versions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_minor_versions, "minor_versions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the database system shapes available for the project and location. - # - # @overload list_db_system_shapes(request, options = nil) - # Pass arguments to `list_db_system_shapes` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_db_system_shapes(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_db_system_shapes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for Database System Shapes in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 database system shapes will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # gcp_oracle_zone_id field is supported in this format: - # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new - # - # # Call the list_db_system_shapes method. - # result = client.list_db_system_shapes request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemShape. - # p item - # end - # - def list_db_system_shapes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_db_system_shapes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_db_system_shapes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_db_system_shapes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_db_system_shapes request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_system_shapes, "db_system_shapes", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the Autonomous Databases in a given project and location. - # - # @overload list_autonomous_databases(request, options = nil) - # Pass arguments to `list_autonomous_databases` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_autonomous_databases(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_autonomous_databases` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous Database will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new - # - # # Call the list_autonomous_databases method. - # result = client.list_autonomous_databases request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase. - # p item - # end - # - def list_autonomous_databases request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_autonomous_databases.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_autonomous_databases.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_autonomous_databases.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_autonomous_databases request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_databases, "autonomous_databases", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the details of a single Autonomous Database. - # - # @overload get_autonomous_database(request, options = nil) - # Pass arguments to `get_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_autonomous_database(name: nil) - # Pass arguments to `get_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new - # - # # Call the get_autonomous_database method. - # result = client.get_autonomous_database request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabase. - # p result - # - def get_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_autonomous_database request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Autonomous Database in a given project and location. - # - # @overload create_autonomous_database(request, options = nil) - # Pass arguments to `create_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_autonomous_database(parent: nil, autonomous_database_id: nil, autonomous_database: nil, request_id: nil) - # Pass arguments to `create_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @param autonomous_database_id [::String] - # Required. The ID of the Autonomous Database to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash] - # Required. The Autonomous Database being created. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new - # - # # Call the create_autonomous_database method. - # result = client.create_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates the parameters of a single Autonomous Database. - # - # @overload update_autonomous_database(request, options = nil) - # Pass arguments to `update_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_autonomous_database(update_mask: nil, autonomous_database: nil, request_id: nil) - # Pass arguments to `update_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # 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. - # @param autonomous_database [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase, ::Hash] - # Required. The resource being updated - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new - # - # # Call the update_autonomous_database method. - # result = client.update_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.update_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Autonomous Database. - # - # @overload delete_autonomous_database(request, options = nil) - # Pass arguments to `delete_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_autonomous_database(name: nil, request_id: nil) - # Pass arguments to `delete_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new - # - # # Call the delete_autonomous_database method. - # result = client.delete_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Restores a single Autonomous Database. - # - # @overload restore_autonomous_database(request, options = nil) - # Pass arguments to `restore_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload restore_autonomous_database(name: nil, restore_time: nil) - # Pass arguments to `restore_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param restore_time [::Google::Protobuf::Timestamp, ::Hash] - # Required. The time and date to restore the database to. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new - # - # # Call the restore_autonomous_database method. - # result = client.restore_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def restore_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.restore_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.restore_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.restore_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.restore_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Generates a wallet for an Autonomous Database. - # - # @overload generate_autonomous_database_wallet(request, options = nil) - # Pass arguments to `generate_autonomous_database_wallet` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload generate_autonomous_database_wallet(name: nil, type: nil, is_regional: nil, password: nil) - # Pass arguments to `generate_autonomous_database_wallet` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param type [::Google::Cloud::OracleDatabase::V1::GenerateType] - # Optional. The type of wallet generation for the Autonomous Database. The - # default value is SINGLE. - # @param is_regional [::Boolean] - # Optional. True when requesting regional connection strings in PDB connect - # info, applicable to cross-region Data Guard only. - # @param password [::String] - # Required. The password used to encrypt the keys inside the wallet. The - # password must be a minimum of 8 characters. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new - # - # # Call the generate_autonomous_database_wallet method. - # result = client.generate_autonomous_database_wallet request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse. - # p result - # - def generate_autonomous_database_wallet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.generate_autonomous_database_wallet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.generate_autonomous_database_wallet.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.generate_autonomous_database_wallet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.generate_autonomous_database_wallet request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the available Autonomous Database versions for a project and - # location. - # - # @overload list_autonomous_db_versions(request, options = nil) - # Pass arguments to `list_autonomous_db_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_autonomous_db_versions(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_autonomous_db_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Versions will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new - # - # # Call the list_autonomous_db_versions method. - # result = client.list_autonomous_db_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion. - # p item - # end - # - def list_autonomous_db_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_autonomous_db_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_autonomous_db_versions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_autonomous_db_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_autonomous_db_versions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_db_versions, "autonomous_db_versions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists Autonomous Database Character Sets in a given project and location. - # - # @overload list_autonomous_database_character_sets(request, options = nil) - # Pass arguments to `list_autonomous_database_character_sets` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_autonomous_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_autonomous_database_character_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Character Sets will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # **character_set_type** field is supported in the following format: - # `character_set_type="{characterSetType}"`. Accepted values include - # `DATABASE` and `NATIONAL`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new - # - # # Call the list_autonomous_database_character_sets method. - # result = client.list_autonomous_database_character_sets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet. - # p item - # end - # - def list_autonomous_database_character_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_autonomous_database_character_sets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_autonomous_database_character_sets.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_autonomous_database_character_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_autonomous_database_character_sets request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_character_sets, "autonomous_database_character_sets", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the long-term and automatic backups of an Autonomous Database. - # - # @overload list_autonomous_database_backups(request, options = nil) - # Pass arguments to `list_autonomous_database_backups` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_autonomous_database_backups(parent: nil, filter: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_autonomous_database_backups` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for ListAutonomousDatabaseBackups in the - # following format: projects/\\{project}/locations/\\{location}. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # **autonomous_database_id** field is supported in the following format: - # `autonomous_database_id="{autonomous_database_id}"`. The accepted values - # must be a valid Autonomous Database ID, limited to the naming - # restrictions of the ID: ^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$). - # The ID must start with a letter, end with a letter or a number, and be - # a maximum of 63 characters. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Backups will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new - # - # # Call the list_autonomous_database_backups method. - # result = client.list_autonomous_database_backups request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup. - # p item - # end - # - def list_autonomous_database_backups request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_autonomous_database_backups.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_autonomous_database_backups.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_autonomous_database_backups.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_autonomous_database_backups request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_autonomous_database_backups, "autonomous_database_backups", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Stops an Autonomous Database. - # - # @overload stop_autonomous_database(request, options = nil) - # Pass arguments to `stop_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload stop_autonomous_database(name: nil) - # Pass arguments to `stop_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new - # - # # Call the stop_autonomous_database method. - # result = client.stop_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def stop_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.stop_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.stop_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.stop_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.stop_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts an Autonomous Database. - # - # @overload start_autonomous_database(request, options = nil) - # Pass arguments to `start_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload start_autonomous_database(name: nil) - # Pass arguments to `start_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new - # - # # Call the start_autonomous_database method. - # result = client.start_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def start_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.start_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.start_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.start_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.start_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Restarts an Autonomous Database. - # - # @overload restart_autonomous_database(request, options = nil) - # Pass arguments to `restart_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload restart_autonomous_database(name: nil) - # Pass arguments to `restart_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new - # - # # Call the restart_autonomous_database method. - # result = client.restart_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def restart_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.restart_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.restart_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.restart_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.restart_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Initiates a switchover of specified autonomous database to the associated - # peer database. - # - # @overload switchover_autonomous_database(request, options = nil) - # Pass arguments to `switchover_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload switchover_autonomous_database(name: nil, peer_autonomous_database: nil) - # Pass arguments to `switchover_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param peer_autonomous_database [::String] - # Optional. The peer database name to switch over to. Required for - # cross-region standby, and must be omitted for in-region Data Guard. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new - # - # # Call the switchover_autonomous_database method. - # result = client.switchover_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def switchover_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.switchover_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.switchover_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.switchover_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.switchover_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Initiates a failover to target autonomous database from the associated - # primary database. - # - # @overload failover_autonomous_database(request, options = nil) - # Pass arguments to `failover_autonomous_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload failover_autonomous_database(name: nil, peer_autonomous_database: nil) - # Pass arguments to `failover_autonomous_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @param peer_autonomous_database [::String] - # Optional. The peer database name to fail over to. Required for cross-region - # standby, and must be omitted for in-region Data Guard. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new - # - # # Call the failover_autonomous_database method. - # result = client.failover_autonomous_database request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def failover_autonomous_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.failover_autonomous_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.failover_autonomous_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.failover_autonomous_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.failover_autonomous_database request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists the ODB Networks in a given project and location. - # - # @overload list_odb_networks(request, options = nil) - # Pass arguments to `list_odb_networks` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_odb_networks(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_odb_networks` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the ODB Network in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ODB Networks will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new - # - # # Call the list_odb_networks method. - # result = client.list_odb_networks request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbNetwork. - # p item - # end - # - def list_odb_networks request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_odb_networks.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_odb_networks.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_odb_networks.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_odb_networks request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_odb_networks, "odb_networks", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single ODB Network. - # - # @overload get_odb_network(request, options = nil) - # Pass arguments to `get_odb_network` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_odb_network(name: nil) - # Pass arguments to `get_odb_network` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the OdbNetwork in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbNetwork] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new - # - # # Call the get_odb_network method. - # result = client.get_odb_network request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbNetwork. - # p result - # - def get_odb_network request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_odb_network.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_odb_network.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_odb_network.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_odb_network request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ODB Network in a given project and location. - # - # @overload create_odb_network(request, options = nil) - # Pass arguments to `create_odb_network` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_odb_network(parent: nil, odb_network_id: nil, odb_network: nil, request_id: nil) - # Pass arguments to `create_odb_network` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the OdbNetwork in the following format: - # projects/\\{project}/locations/\\{location}. - # @param odb_network_id [::String] - # Required. The ID of the OdbNetwork to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @param odb_network [::Google::Cloud::OracleDatabase::V1::OdbNetwork, ::Hash] - # Required. Details of the OdbNetwork instance to create. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new - # - # # Call the create_odb_network method. - # result = client.create_odb_network request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_odb_network request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_odb_network.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_odb_network.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_odb_network.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_odb_network request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ODB Network. - # - # @overload delete_odb_network(request, options = nil) - # Pass arguments to `delete_odb_network` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_odb_network(name: nil, request_id: nil) - # Pass arguments to `delete_odb_network` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new - # - # # Call the delete_odb_network method. - # result = client.delete_odb_network request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_odb_network request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_odb_network.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_odb_network.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_odb_network.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_odb_network request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the ODB Subnets in a given ODB Network. - # - # @overload list_odb_subnets(request, options = nil) - # Pass arguments to `list_odb_subnets` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_odb_subnets(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_odb_subnets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ODB Networks will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new - # - # # Call the list_odb_subnets method. - # result = client.list_odb_subnets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbSubnet. - # p item - # end - # - def list_odb_subnets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_odb_subnets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_odb_subnets.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_odb_subnets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_odb_subnets request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_odb_subnets, "odb_subnets", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single ODB Subnet. - # - # @overload get_odb_subnet(request, options = nil) - # Pass arguments to `get_odb_subnet` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_odb_subnet(name: nil) - # Pass arguments to `get_odb_subnet` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbSubnet] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new - # - # # Call the get_odb_subnet method. - # result = client.get_odb_subnet request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbSubnet. - # p result - # - def get_odb_subnet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_odb_subnet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_odb_subnet.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_odb_subnet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_odb_subnet request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ODB Subnet in a given ODB Network. - # - # @overload create_odb_subnet(request, options = nil) - # Pass arguments to `create_odb_subnet` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_odb_subnet(parent: nil, odb_subnet_id: nil, odb_subnet: nil, request_id: nil) - # Pass arguments to `create_odb_subnet` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @param odb_subnet_id [::String] - # Required. The ID of the OdbSubnet to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @param odb_subnet [::Google::Cloud::OracleDatabase::V1::OdbSubnet, ::Hash] - # Required. Details of the OdbSubnet instance to create. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new - # - # # Call the create_odb_subnet method. - # result = client.create_odb_subnet request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_odb_subnet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_odb_subnet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_odb_subnet.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_odb_subnet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_odb_subnet request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ODB Subnet. - # - # @overload delete_odb_subnet(request, options = nil) - # Pass arguments to `delete_odb_subnet` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_odb_subnet(name: nil, request_id: nil) - # Pass arguments to `delete_odb_subnet` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new - # - # # Call the delete_odb_subnet method. - # result = client.delete_odb_subnet request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_odb_subnet request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_odb_subnet.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_odb_subnet.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_odb_subnet.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_odb_subnet request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the Exadb (Exascale) VM Clusters for the given project and - # location. - # - # @overload list_exadb_vm_clusters(request, options = nil) - # Pass arguments to `list_exadb_vm_clusters` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_exadb_vm_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_exadb_vm_clusters` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for ExadbVmClusters in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ExadbVmClusters will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new - # - # # Call the list_exadb_vm_clusters method. - # result = client.list_exadb_vm_clusters request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster. - # p item - # end - # - def list_exadb_vm_clusters request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_exadb_vm_clusters.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_exadb_vm_clusters.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_exadb_vm_clusters.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_exadb_vm_clusters request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_exadb_vm_clusters, "exadb_vm_clusters", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single Exadb (Exascale) VM Cluster. - # - # @overload get_exadb_vm_cluster(request, options = nil) - # Pass arguments to `get_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_exadb_vm_cluster(name: nil) - # Pass arguments to `get_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new - # - # # Call the get_exadb_vm_cluster method. - # result = client.get_exadb_vm_cluster request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExadbVmCluster. - # p result - # - def get_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_exadb_vm_cluster.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_exadb_vm_cluster request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new Exadb (Exascale) VM Cluster resource. - # - # @overload create_exadb_vm_cluster(request, options = nil) - # Pass arguments to `create_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_exadb_vm_cluster(parent: nil, exadb_vm_cluster_id: nil, exadb_vm_cluster: nil, request_id: nil) - # Pass arguments to `create_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the ExadbVmCluster in the following - # format: projects/\\{project}/locations/\\{location}. - # @param exadb_vm_cluster_id [::String] - # Required. The ID of the ExadbVmCluster to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new - # - # # Call the create_exadb_vm_cluster method. - # result = client.create_exadb_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_exadb_vm_cluster.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_exadb_vm_cluster request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single Exadb (Exascale) VM Cluster. - # - # @overload delete_exadb_vm_cluster(request, options = nil) - # Pass arguments to `delete_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_exadb_vm_cluster(name: nil, request_id: nil) - # Pass arguments to `delete_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new - # - # # Call the delete_exadb_vm_cluster method. - # result = client.delete_exadb_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_exadb_vm_cluster.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_exadb_vm_cluster request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to - # existing exadb vm cluster, only pass the node count. - # - # @overload update_exadb_vm_cluster(request, options = nil) - # Pass arguments to `update_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload update_exadb_vm_cluster(update_mask: nil, exadb_vm_cluster: nil, request_id: nil) - # Pass arguments to `update_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param update_mask [::Google::Protobuf::FieldMask, ::Hash] - # 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. - # @param exadb_vm_cluster [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster, ::Hash] - # Required. The resource being updated. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new - # - # # Call the update_exadb_vm_cluster method. - # result = client.update_exadb_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def update_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.update_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.update_exadb_vm_cluster.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.update_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.update_exadb_vm_cluster request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Removes virtual machines from an existing exadb vm cluster. - # - # @overload remove_virtual_machine_exadb_vm_cluster(request, options = nil) - # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload remove_virtual_machine_exadb_vm_cluster(name: nil, request_id: nil, hostnames: nil) - # Pass arguments to `remove_virtual_machine_exadb_vm_cluster` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @param hostnames [::Array<::String>] - # Required. The list of host names of db nodes to be removed from the - # ExadbVmCluster. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new - # - # # Call the remove_virtual_machine_exadb_vm_cluster method. - # result = client.remove_virtual_machine_exadb_vm_cluster request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def remove_virtual_machine_exadb_vm_cluster request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.remove_virtual_machine_exadb_vm_cluster.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.remove_virtual_machine_exadb_vm_cluster.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.remove_virtual_machine_exadb_vm_cluster request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the ExascaleDB Storage Vaults for the given project and - # location. - # - # @overload list_exascale_db_storage_vaults(request, options = nil) - # Pass arguments to `list_exascale_db_storage_vaults` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_exascale_db_storage_vaults(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_exascale_db_storage_vaults` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for ExascaleDbStorageVault in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ExascaleDbStorageVaults will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Filter - # the list as specified in https://google.aip.dev/160. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. Order - # results as specified in https://google.aip.dev/132. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new - # - # # Call the list_exascale_db_storage_vaults method. - # result = client.list_exascale_db_storage_vaults request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. - # p item - # end - # - def list_exascale_db_storage_vaults request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_exascale_db_storage_vaults.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_exascale_db_storage_vaults.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_exascale_db_storage_vaults.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_exascale_db_storage_vaults request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_exascale_db_storage_vaults, "exascale_db_storage_vaults", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single ExascaleDB Storage Vault. - # - # @overload get_exascale_db_storage_vault(request, options = nil) - # Pass arguments to `get_exascale_db_storage_vault` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_exascale_db_storage_vault(name: nil) - # Pass arguments to `get_exascale_db_storage_vault` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExascaleDbStorageVault in the following format: - # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new - # - # # Call the get_exascale_db_storage_vault method. - # result = client.get_exascale_db_storage_vault request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. - # p result - # - def get_exascale_db_storage_vault request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_exascale_db_storage_vault.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_exascale_db_storage_vault.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_exascale_db_storage_vault.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_exascale_db_storage_vault request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new ExascaleDB Storage Vault resource. - # - # @overload create_exascale_db_storage_vault(request, options = nil) - # Pass arguments to `create_exascale_db_storage_vault` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_exascale_db_storage_vault(parent: nil, exascale_db_storage_vault_id: nil, exascale_db_storage_vault: nil, request_id: nil) - # Pass arguments to `create_exascale_db_storage_vault` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the ExascaleDbStorageVault in the - # following format: projects/\\{project}/locations/\\{location}. - # @param exascale_db_storage_vault_id [::String] - # Required. The ID of the ExascaleDbStorageVault to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param exascale_db_storage_vault [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new - # - # # Call the create_exascale_db_storage_vault method. - # result = client.create_exascale_db_storage_vault request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_exascale_db_storage_vault request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_exascale_db_storage_vault.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_exascale_db_storage_vault.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_exascale_db_storage_vault.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_exascale_db_storage_vault request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single ExascaleDB Storage Vault. - # - # @overload delete_exascale_db_storage_vault(request, options = nil) - # Pass arguments to `delete_exascale_db_storage_vault` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_exascale_db_storage_vault(name: nil, request_id: nil) - # Pass arguments to `delete_exascale_db_storage_vault` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the ExascaleDbStorageVault in the following format: - # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new - # - # # Call the delete_exascale_db_storage_vault method. - # result = client.delete_exascale_db_storage_vault request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_exascale_db_storage_vault request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_exascale_db_storage_vault.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_exascale_db_storage_vault.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_exascale_db_storage_vault.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_exascale_db_storage_vault request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the DbSystemInitialStorageSizes for the given project and - # location. - # - # @overload list_db_system_initial_storage_sizes(request, options = nil) - # Pass arguments to `list_db_system_initial_storage_sizes` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_db_system_initial_storage_sizes(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_db_system_initial_storage_sizes` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the DbSystemInitialStorageSize resource with - # the format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be - # returned. The maximum value is 1000; values above 1000 will be reset to - # 1000. - # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new - # - # # Call the list_db_system_initial_storage_sizes method. - # result = client.list_db_system_initial_storage_sizes request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize. - # p item - # end - # - def list_db_system_initial_storage_sizes request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_db_system_initial_storage_sizes.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_db_system_initial_storage_sizes.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_db_system_initial_storage_sizes.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_db_system_initial_storage_sizes request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_system_initial_storage_sizes, "db_system_initial_storage_sizes", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the Databases for the given project, location and DbSystem. - # - # @overload list_databases(request, options = nil) - # Pass arguments to `list_databases` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_databases(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_databases` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource name in the following format: - # projects/\\{project}/locations/\\{region} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 Databases will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. list for - # container databases is supported only with a valid dbSystem (full resource - # name) filter in this format: - # `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::Database>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new - # - # # Call the list_databases method. - # result = client.list_databases request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::Database. - # p item - # end - # - def list_databases request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_databases.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_databases.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_databases.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_databases request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_databases, "databases", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single Database. - # - # @overload get_database(request, options = nil) - # Pass arguments to `get_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_database(name: nil) - # Pass arguments to `get_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Database resource in the following format: - # projects/\\{project}/locations/\\{region}/databases/\\{database} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::Database] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::Database] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new - # - # # Call the get_database method. - # result = client.get_database request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::Database. - # p result - # - def get_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_database request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the PluggableDatabases for the given project, location and - # Container Database. - # - # @overload list_pluggable_databases(request, options = nil) - # Pass arguments to `list_pluggable_databases` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_pluggable_databases(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_pluggable_databases` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent, which owns this collection of PluggableDatabases. - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of PluggableDatabases to return. The service - # may return fewer than this value. - # @param page_token [::String] - # Optional. A page token, received from a previous `ListPluggableDatabases` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListPluggableDatabases` - # must match the call that provided the page token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. List for - # pluggable databases is supported only with a valid container database (full - # resource name) filter in this format: - # `database="projects/{project}/locations/{location}/databases/{database}"` - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new - # - # # Call the list_pluggable_databases method. - # result = client.list_pluggable_databases request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::PluggableDatabase. - # p item - # end - # - def list_pluggable_databases request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_pluggable_databases.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_pluggable_databases.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_pluggable_databases.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_pluggable_databases request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_pluggable_databases, "pluggable_databases", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single PluggableDatabase. - # - # @overload get_pluggable_database(request, options = nil) - # Pass arguments to `get_pluggable_database` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_pluggable_database(name: nil) - # Pass arguments to `get_pluggable_database` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the PluggableDatabase resource in the following - # format: - # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new - # - # # Call the get_pluggable_database method. - # result = client.get_pluggable_database request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::PluggableDatabase. - # p result - # - def get_pluggable_database request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_pluggable_database.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_pluggable_database.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_pluggable_database.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_pluggable_database request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the DbSystems for the given project and location. - # - # @overload list_db_systems(request, options = nil) - # Pass arguments to `list_db_systems` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_db_systems(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_db_systems` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for DbSystems in the following format: - # projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 DbSystems will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbSystem>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new - # - # # Call the list_db_systems method. - # result = client.list_db_systems request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystem. - # p item - # end - # - def list_db_systems request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_db_systems.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_db_systems.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_db_systems.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_db_systems request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_systems, "db_systems", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single DbSystem. - # - # @overload get_db_system(request, options = nil) - # Pass arguments to `get_db_system` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_db_system(name: nil) - # Pass arguments to `get_db_system` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::DbSystem] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::DbSystem] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new - # - # # Call the get_db_system method. - # result = client.get_db_system request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::DbSystem. - # p result - # - def get_db_system request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_db_system.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_db_system.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_db_system.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_db_system request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new DbSystem in a given project and location. - # - # @overload create_db_system(request, options = nil) - # Pass arguments to `create_db_system` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_db_system(parent: nil, db_system_id: nil, db_system: nil, request_id: nil) - # Pass arguments to `create_db_system` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}. - # @param db_system_id [::String] - # Required. The ID of the DbSystem to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param db_system [::Google::Cloud::OracleDatabase::V1::DbSystem, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new - # - # # Call the create_db_system method. - # result = client.create_db_system request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_db_system request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_db_system.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_db_system.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_db_system.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_db_system request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single DbSystem. - # - # @overload delete_db_system(request, options = nil) - # Pass arguments to `delete_db_system` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_db_system(name: nil, request_id: nil) - # Pass arguments to `delete_db_system` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new - # - # # Call the delete_db_system method. - # result = client.delete_db_system request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_db_system request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_db_system.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_db_system.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_db_system.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_db_system request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the GoldengateDeployments for the given project and location. - # - # @overload list_goldengate_deployments(request, options = nil) - # Pass arguments to `list_goldengate_deployments` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_goldengate_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_goldengate_deployments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for GoldengateDeployments in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 GoldengateDeployments will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous ListGoldengateDeployments - # call. Provide this to retrieve the subsequent page. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeployment>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new - # - # # Call the list_goldengate_deployments method. - # result = client.list_goldengate_deployments request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment. - # p item - # end - # - def list_goldengate_deployments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_goldengate_deployments.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_goldengate_deployments.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_goldengate_deployments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_goldengate_deployments request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployments, "goldengate_deployments", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateDeployment. - # - # @overload get_goldengate_deployment(request, options = nil) - # Pass arguments to `get_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_goldengate_deployment(name: nil) - # Pass arguments to `get_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateDeployment in the following format: - # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new - # - # # Call the get_goldengate_deployment method. - # result = client.get_goldengate_deployment request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeployment. - # p result - # - def get_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_goldengate_deployment request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new GoldengateDeployment in a given project and location. - # - # @overload create_goldengate_deployment(request, options = nil) - # Pass arguments to `create_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_goldengate_deployment(parent: nil, goldengate_deployment_id: nil, goldengate_deployment: nil, request_id: nil) - # Pass arguments to `create_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the GoldengateDeployment in the following - # format: projects/\\{project}/locations/\\{location}. - # @param goldengate_deployment_id [::String] - # Required. The ID of the GoldengateDeployment to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param goldengate_deployment [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new - # - # # Call the create_goldengate_deployment method. - # result = client.create_goldengate_deployment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_goldengate_deployment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_goldengate_deployment request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single GoldengateDeployment. - # - # @overload delete_goldengate_deployment(request, options = nil) - # Pass arguments to `delete_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_goldengate_deployment(name: nil, request_id: nil) - # Pass arguments to `delete_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateDeployment in the following format: - # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new - # - # # Call the delete_goldengate_deployment method. - # result = client.delete_goldengate_deployment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_goldengate_deployment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_goldengate_deployment request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Stops a single GoldengateDeployment. - # - # @overload stop_goldengate_deployment(request, options = nil) - # Pass arguments to `stop_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload stop_goldengate_deployment(name: nil) - # Pass arguments to `stop_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Goldengate Deployment in the following format: - # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new - # - # # Call the stop_goldengate_deployment method. - # result = client.stop_goldengate_deployment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def stop_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.stop_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.stop_goldengate_deployment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.stop_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.stop_goldengate_deployment request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts a single GoldengateDeployment. - # - # @overload start_goldengate_deployment(request, options = nil) - # Pass arguments to `start_goldengate_deployment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload start_goldengate_deployment(name: nil) - # Pass arguments to `start_goldengate_deployment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the Goldengate Deployment in the following format: - # projects/\\{project}/locations/\\{location}/goldengateDeployments/\\{goldengate_deployment}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new - # - # # Call the start_goldengate_deployment method. - # result = client.start_goldengate_deployment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def start_goldengate_deployment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.start_goldengate_deployment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.start_goldengate_deployment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.start_goldengate_deployment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.start_goldengate_deployment request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists all the GoldengateConnections for the given project and location. - # - # @overload list_goldengate_connections(request, options = nil) - # Pass arguments to `list_goldengate_connections` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_goldengate_connections(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_goldengate_connections` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for GoldengateConnections in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 GoldengateConnections will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous ListGoldengateConnections - # call. Provide this to retrieve the subsequent page. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. - # @param order_by [::String] - # Optional. An expression for ordering the results of the request. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnection>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new - # - # # Call the list_goldengate_connections method. - # result = client.list_goldengate_connections request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnection. - # p item - # end - # - def list_goldengate_connections request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_goldengate_connections.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_goldengate_connections.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_goldengate_connections.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_goldengate_connections request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connections, "goldengate_connections", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateConnection. - # - # @overload get_goldengate_connection(request, options = nil) - # Pass arguments to `get_goldengate_connection` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_goldengate_connection(name: nil) - # Pass arguments to `get_goldengate_connection` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateConnection in the following format: - # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new - # - # # Call the get_goldengate_connection method. - # result = client.get_goldengate_connection request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnection. - # p result - # - def get_goldengate_connection request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_goldengate_connection.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_goldengate_connection.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_goldengate_connection.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_goldengate_connection request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new GoldengateConnection in a given project and location. - # - # @overload create_goldengate_connection(request, options = nil) - # Pass arguments to `create_goldengate_connection` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_goldengate_connection(parent: nil, goldengate_connection_id: nil, goldengate_connection: nil, request_id: nil) - # Pass arguments to `create_goldengate_connection` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The value for parent of the GoldengateConnection in the following - # format: projects/\\{project}/locations/\\{location}. - # @param goldengate_connection_id [::String] - # Required. The ID of the GoldengateConnection to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @param goldengate_connection [::Google::Cloud::OracleDatabase::V1::GoldengateConnection, ::Hash] - # Required. The resource being created. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new - # - # # Call the create_goldengate_connection method. - # result = client.create_goldengate_connection request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_goldengate_connection request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_goldengate_connection.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_goldengate_connection.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_goldengate_connection.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_goldengate_connection request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single GoldengateConnection. - # - # @overload delete_goldengate_connection(request, options = nil) - # Pass arguments to `delete_goldengate_connection` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_goldengate_connection(name: nil, request_id: nil) - # Pass arguments to `delete_goldengate_connection` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateConnection in the following format: - # projects/\\{project}/locations/\\{location}/goldengateConnections/\\{goldengate_connection}. - # @param request_id [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new - # - # # Call the delete_goldengate_connection method. - # result = client.delete_goldengate_connection request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_goldengate_connection request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_goldengate_connection.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_goldengate_connection.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_goldengate_connection request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateDeploymentVersion. - # - # @overload get_goldengate_deployment_version(request, options = nil) - # Pass arguments to `get_goldengate_deployment_version` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_goldengate_deployment_version(name: nil) - # Pass arguments to `get_goldengate_deployment_version` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateDeploymentVersion to retrieve. - # Format: - # projects/\\{project}/locations/\\{location}/goldengateDeploymentVersions/\\{goldengate_deployment_version} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new - # - # # Call the get_goldengate_deployment_version method. - # result = client.get_goldengate_deployment_version request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. - # p result - # - def get_goldengate_deployment_version request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_goldengate_deployment_version.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_version.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_goldengate_deployment_version.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_goldengate_deployment_version request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldengateDeploymentVersions in a given project and location. - # - # @overload list_goldengate_deployment_versions(request, options = nil) - # Pass arguments to `list_goldengate_deployment_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_goldengate_deployment_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_goldengate_deployment_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Parent value for ListGoldengateDeploymentVersionsRequest - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. Requested page size. Server may return fewer items than - # requested. If unspecified, server will pick an appropriate default. The - # maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Either - # the deployment_id and deployment_type fields must be specified in the - # format: `deployment_id="id"` or `deployment_type="DATABASE_ORACLE"`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new - # - # # Call the list_goldengate_deployment_versions method. - # result = client.list_goldengate_deployment_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion. - # p item - # end - # - def list_goldengate_deployment_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_goldengate_deployment_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_versions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_goldengate_deployment_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_goldengate_deployment_versions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_versions, "goldengate_deployment_versions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldenGateDeploymentType. - # - # @overload get_goldengate_deployment_type(request, options = nil) - # Pass arguments to `get_goldengate_deployment_type` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_goldengate_deployment_type(name: nil) - # Pass arguments to `get_goldengate_deployment_type` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateDeploymentType to retrieve. - # Format: - # projects/\\{project}/locations/\\{location}/goldengateDeploymentTypes/\\{goldengate_deployment_type} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new - # - # # Call the get_goldengate_deployment_type method. - # result = client.get_goldengate_deployment_type request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. - # p result - # - def get_goldengate_deployment_type request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_goldengate_deployment_type.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_type.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_goldengate_deployment_type.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_goldengate_deployment_type request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldenGateDeploymentTypes in a given project and location. - # - # @overload list_goldengate_deployment_types(request, options = nil) - # Pass arguments to `list_goldengate_deployment_types` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_goldengate_deployment_types(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_goldengate_deployment_types` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource. - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. Requested page size. Server may return fewer items than - # requested. If unspecified, server will pick an appropriate default. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Either - # the deployment_type and ogg_version fields must be specified in the format: - # `deployment_type="DATABASE_ORACLE"` or `ogg_version="version"`. - # Allowed values for deployment_type are: `DATABASE_ORACLE`, `BIGDATA`, - # `DATABASE_MICROSOFT_SQLSERVER`, `DATABASE_MYSQL`, `DATABASE_POSTGRESQL`, - # `DATABASE_DB2ZOS`, `DATABASE_DB2I`, `GGSA`, `DATA_TRANSFORMS`. - # @param order_by [::String] - # Optional. Hint for how to order the results - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new - # - # # Call the list_goldengate_deployment_types method. - # result = client.list_goldengate_deployment_types request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType. - # p item - # end - # - def list_goldengate_deployment_types request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_goldengate_deployment_types.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_types.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_goldengate_deployment_types.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_goldengate_deployment_types request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_types, "goldengate_deployment_types", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateDeploymentEnvironment. - # - # @overload get_goldengate_deployment_environment(request, options = nil) - # Pass arguments to `get_goldengate_deployment_environment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_goldengate_deployment_environment(name: nil) - # Pass arguments to `get_goldengate_deployment_environment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the resource with the format: - # projects/\\{project}/locations/\\{location}/goldengateDeploymentEnvironments/\\{goldengate_deployment_environment} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new - # - # # Call the get_goldengate_deployment_environment method. - # result = client.get_goldengate_deployment_environment request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. - # p result - # - def get_goldengate_deployment_environment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_goldengate_deployment_environment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_goldengate_deployment_environment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_goldengate_deployment_environment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_goldengate_deployment_environment request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldengateDeploymentEnvironments in a given project and location. - # - # @overload list_goldengate_deployment_environments(request, options = nil) - # Pass arguments to `list_goldengate_deployment_environments` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_goldengate_deployment_environments(parent: nil, page_size: nil, page_token: nil) - # Pass arguments to `list_goldengate_deployment_environments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent, which owns this collection of - # GoldengateDeploymentEnvironments. Format: - # projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 deployment environments will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new - # - # # Call the list_goldengate_deployment_environments method. - # result = client.list_goldengate_deployment_environments request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment. - # p item - # end - # - def list_goldengate_deployment_environments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_goldengate_deployment_environments.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_goldengate_deployment_environments.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_goldengate_deployment_environments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_goldengate_deployment_environments request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_deployment_environments, "goldengate_deployment_environments", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateConnectionType. - # - # @overload get_goldengate_connection_type(request, options = nil) - # Pass arguments to `get_goldengate_connection_type` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_goldengate_connection_type(name: nil) - # Pass arguments to `get_goldengate_connection_type` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the resource in the format: - # projects/\\{project}/locations/\\{location}/goldengateConnectionTypes/\\{goldengate_connection_type} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new - # - # # Call the get_goldengate_connection_type method. - # result = client.get_goldengate_connection_type request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. - # p result - # - def get_goldengate_connection_type request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_goldengate_connection_type.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_type.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_goldengate_connection_type.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_goldengate_connection_type request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldengateConnectionTypes in a given project and location. - # - # @overload list_goldengate_connection_types(request, options = nil) - # Pass arguments to `list_goldengate_connection_types` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_goldengate_connection_types(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_goldengate_connection_types` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. Parent value for ListGoldengateConnectionTypesRequest - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. Requested page size. Server may return fewer items than - # requested. If unspecified, server will pick an appropriate default. - # @param page_token [::String] - # Optional. A token identifying a page of results the server should return. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. The - # connection_type field must be specified in the format: - # `connection_type="ORACLE"`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new - # - # # Call the list_goldengate_connection_types method. - # result = client.list_goldengate_connection_types request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType. - # p item - # end - # - def list_goldengate_connection_types request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_goldengate_connection_types.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_types.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_goldengate_connection_types.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_goldengate_connection_types request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_types, "goldengate_connection_types", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List DbVersions for the given project and location. - # - # @overload list_db_versions(request, options = nil) - # Pass arguments to `list_db_versions` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_db_versions(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_db_versions` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the DbVersion resource with the - # format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 DbVersions will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @param page_token [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @param filter [::String] - # Optional. Filter expression that matches a subset of the DbVersions to - # show. The supported filter for dbSystem creation is `db_system_shape = - # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no - # filter is provided, all DbVersions will be returned. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DbVersion>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new - # - # # Call the list_db_versions method. - # result = client.list_db_versions request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. - # p item - # end - # - def list_db_versions request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_db_versions.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_db_versions.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_db_versions.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_db_versions request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_db_versions, "db_versions", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # List DatabaseCharacterSets for the given project and location. - # - # @overload list_database_character_sets(request, options = nil) - # Pass arguments to `list_database_character_sets` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_database_character_sets(parent: nil, page_size: nil, page_token: nil, filter: nil) - # Pass arguments to `list_database_character_sets` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for DatabaseCharacterSets in the following - # format: projects/\\{project}/locations/\\{location}. - # @param page_size [::Integer] - # Optional. The maximum number of DatabaseCharacterSets to return. The - # service may return fewer than this value. If unspecified, at most 50 - # DatabaseCharacterSets will be returned. The maximum value is 1000; values - # above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent - # page. - # - # When paginating, all other parameters provided to - # `ListDatabaseCharacterSets` must match the call that provided the page - # token. - # @param filter [::String] - # Optional. An expression for filtering the results of the request. Only the - # **character_set_type** field is supported in the following format: - # `character_set_type="{characterSetType}"`. Accepted values include - # `DATABASE` and `NATIONAL`. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new - # - # # Call the list_database_character_sets method. - # result = client.list_database_character_sets request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. - # p item - # end - # - def list_database_character_sets request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_database_character_sets.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_database_character_sets.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_database_character_sets.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_database_character_sets request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_database_character_sets, "database_character_sets", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Lists GoldengateConnectionAssignments in a given project and location. - # - # @overload list_goldengate_connection_assignments(request, options = nil) - # Pass arguments to `list_goldengate_connection_assignments` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_goldengate_connection_assignments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil) - # Pass arguments to `list_goldengate_connection_assignments` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent value for the GoldengateConnectionAssignments. - # Format: projects/\\{project}/locations/\\{location} - # @param page_size [::Integer] - # Optional. The maximum number of GoldengateConnectionAssignments to return. - # The service may return fewer than this value. If unspecified, at most 50 - # GoldengateConnectionAssignments will be returned. The maximum value is - # 1000; values above 1000 will be coerced to 1000. - # @param page_token [::String] - # Optional. A page token, received from a previous - # `ListGoldengateConnectionAssignments` call. Provide this to retrieve the - # subsequent page. - # - # When paginating, all other parameters provided to - # `ListGoldengateConnectionAssignments` must match the call that provided - # the page token. - # @param filter [::String] - # Optional. A filter expression that filters GoldengateConnectionAssignments - # listed in the response. - # @param order_by [::String] - # Optional. A comma-separated list of fields to order by, sorted in ascending - # order. Use "DESC" after a field name for descending. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment>] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new - # - # # Call the list_goldengate_connection_assignments method. - # result = client.list_goldengate_connection_assignments request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. - # p item - # end - # - def list_goldengate_connection_assignments request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_goldengate_connection_assignments.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_goldengate_connection_assignments.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_goldengate_connection_assignments.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.list_goldengate_connection_assignments request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @oracle_database_stub, :list_goldengate_connection_assignments, "goldengate_connection_assignments", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets details of a single GoldengateConnectionAssignment. - # - # @overload get_goldengate_connection_assignment(request, options = nil) - # Pass arguments to `get_goldengate_connection_assignment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_goldengate_connection_assignment(name: nil) - # Pass arguments to `get_goldengate_connection_assignment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateConnectionAssignment to retrieve. - # Format: - # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new - # - # # Call the get_goldengate_connection_assignment method. - # result = client.get_goldengate_connection_assignment request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment. - # p result - # - def get_goldengate_connection_assignment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_goldengate_connection_assignment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_goldengate_connection_assignment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_goldengate_connection_assignment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.get_goldengate_connection_assignment request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Creates a new GoldengateConnectionAssignment in a given project and - # location. - # - # @overload create_goldengate_connection_assignment(request, options = nil) - # Pass arguments to `create_goldengate_connection_assignment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload create_goldengate_connection_assignment(parent: nil, goldengate_connection_assignment_id: nil, goldengate_connection_assignment: nil, request_id: nil) - # Pass arguments to `create_goldengate_connection_assignment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param parent [::String] - # Required. The parent resource where this GoldengateConnectionAssignment - # will be created. Format: projects/\\{project}/locations/\\{location} - # @param goldengate_connection_assignment_id [::String] - # Required. The ID of the GoldengateConnectionAssignment to create. - # @param goldengate_connection_assignment [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment, ::Hash] - # Required. The GoldengateConnectionAssignment to create. - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new - # - # # Call the create_goldengate_connection_assignment method. - # result = client.create_goldengate_connection_assignment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def create_goldengate_connection_assignment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.create_goldengate_connection_assignment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.create_goldengate_connection_assignment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.create_goldengate_connection_assignment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.create_goldengate_connection_assignment request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes a single GoldengateConnectionAssignment. - # - # @overload delete_goldengate_connection_assignment(request, options = nil) - # Pass arguments to `delete_goldengate_connection_assignment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_goldengate_connection_assignment(name: nil, request_id: nil) - # Pass arguments to `delete_goldengate_connection_assignment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. The name of the GoldengateConnectionAssignment to delete. - # Format: - # projects/\\{project}/locations/\\{location}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} - # @param request_id [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes after the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new - # - # # Call the delete_goldengate_connection_assignment method. - # result = client.delete_goldengate_connection_assignment request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def delete_goldengate_connection_assignment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_goldengate_connection_assignment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_goldengate_connection_assignment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_goldengate_connection_assignment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.delete_goldengate_connection_assignment request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Tests a single GoldengateConnectionAssignment. - # - # @overload test_goldengate_connection_assignment(request, options = nil) - # Pass arguments to `test_goldengate_connection_assignment` via a request object, either of type - # {::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest} or an equivalent Hash. - # - # @param request [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload test_goldengate_connection_assignment(name: nil, type: nil) - # Pass arguments to `test_goldengate_connection_assignment` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # Required. Name of the connection assignment for which to test connection. - # projects/\\{project}/locations/\\{region}/goldengateConnectionAssignments/\\{goldengate_connection_assignment} - # @param type [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest::TestType] - # Optional. The type of the test of the assigned connection. - # The only type actually supported is DEFAULT. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/cloud/oracle_database/v1" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new - # - # # Call the test_goldengate_connection_assignment method. - # result = client.test_goldengate_connection_assignment request - # - # # The returned object is of type Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse. - # p result - # - def test_goldengate_connection_assignment request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.test_goldengate_connection_assignment.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.test_goldengate_connection_assignment.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.test_goldengate_connection_assignment.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @oracle_database_stub.test_goldengate_connection_assignment request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the OracleDatabase REST API. - # - # This class represents the configuration for OracleDatabase REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_cloud_exadata_infrastructures to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_cloud_exadata_infrastructures.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - - # @private - # Overrides for http bindings for the RPCs of this service - # are only used when this service is used as mixin, and only - # by the host service. - # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}] - config_attr :bindings_override, {}, ::Hash, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the OracleDatabase API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_cloud_exadata_infrastructures` - # @return [::Gapic::Config::Method] - # - attr_reader :list_cloud_exadata_infrastructures - ## - # RPC-specific configuration for `get_cloud_exadata_infrastructure` - # @return [::Gapic::Config::Method] - # - attr_reader :get_cloud_exadata_infrastructure - ## - # RPC-specific configuration for `create_cloud_exadata_infrastructure` - # @return [::Gapic::Config::Method] - # - attr_reader :create_cloud_exadata_infrastructure - ## - # RPC-specific configuration for `delete_cloud_exadata_infrastructure` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_cloud_exadata_infrastructure - ## - # RPC-specific configuration for `list_cloud_vm_clusters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_cloud_vm_clusters - ## - # RPC-specific configuration for `get_cloud_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :get_cloud_vm_cluster - ## - # RPC-specific configuration for `create_cloud_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :create_cloud_vm_cluster - ## - # RPC-specific configuration for `delete_cloud_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_cloud_vm_cluster - ## - # RPC-specific configuration for `list_entitlements` - # @return [::Gapic::Config::Method] - # - attr_reader :list_entitlements - ## - # RPC-specific configuration for `list_db_servers` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_servers - ## - # RPC-specific configuration for `list_db_nodes` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_nodes - ## - # RPC-specific configuration for `list_gi_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_gi_versions - ## - # RPC-specific configuration for `list_minor_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_minor_versions - ## - # RPC-specific configuration for `list_db_system_shapes` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_system_shapes - ## - # RPC-specific configuration for `list_autonomous_databases` - # @return [::Gapic::Config::Method] - # - attr_reader :list_autonomous_databases - ## - # RPC-specific configuration for `get_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :get_autonomous_database - ## - # RPC-specific configuration for `create_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :create_autonomous_database - ## - # RPC-specific configuration for `update_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :update_autonomous_database - ## - # RPC-specific configuration for `delete_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_autonomous_database - ## - # RPC-specific configuration for `restore_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :restore_autonomous_database - ## - # RPC-specific configuration for `generate_autonomous_database_wallet` - # @return [::Gapic::Config::Method] - # - attr_reader :generate_autonomous_database_wallet - ## - # RPC-specific configuration for `list_autonomous_db_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_autonomous_db_versions - ## - # RPC-specific configuration for `list_autonomous_database_character_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_autonomous_database_character_sets - ## - # RPC-specific configuration for `list_autonomous_database_backups` - # @return [::Gapic::Config::Method] - # - attr_reader :list_autonomous_database_backups - ## - # RPC-specific configuration for `stop_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :stop_autonomous_database - ## - # RPC-specific configuration for `start_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :start_autonomous_database - ## - # RPC-specific configuration for `restart_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :restart_autonomous_database - ## - # RPC-specific configuration for `switchover_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :switchover_autonomous_database - ## - # RPC-specific configuration for `failover_autonomous_database` - # @return [::Gapic::Config::Method] - # - attr_reader :failover_autonomous_database - ## - # RPC-specific configuration for `list_odb_networks` - # @return [::Gapic::Config::Method] - # - attr_reader :list_odb_networks - ## - # RPC-specific configuration for `get_odb_network` - # @return [::Gapic::Config::Method] - # - attr_reader :get_odb_network - ## - # RPC-specific configuration for `create_odb_network` - # @return [::Gapic::Config::Method] - # - attr_reader :create_odb_network - ## - # RPC-specific configuration for `delete_odb_network` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_odb_network - ## - # RPC-specific configuration for `list_odb_subnets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_odb_subnets - ## - # RPC-specific configuration for `get_odb_subnet` - # @return [::Gapic::Config::Method] - # - attr_reader :get_odb_subnet - ## - # RPC-specific configuration for `create_odb_subnet` - # @return [::Gapic::Config::Method] - # - attr_reader :create_odb_subnet - ## - # RPC-specific configuration for `delete_odb_subnet` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_odb_subnet - ## - # RPC-specific configuration for `list_exadb_vm_clusters` - # @return [::Gapic::Config::Method] - # - attr_reader :list_exadb_vm_clusters - ## - # RPC-specific configuration for `get_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :get_exadb_vm_cluster - ## - # RPC-specific configuration for `create_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :create_exadb_vm_cluster - ## - # RPC-specific configuration for `delete_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_exadb_vm_cluster - ## - # RPC-specific configuration for `update_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :update_exadb_vm_cluster - ## - # RPC-specific configuration for `remove_virtual_machine_exadb_vm_cluster` - # @return [::Gapic::Config::Method] - # - attr_reader :remove_virtual_machine_exadb_vm_cluster - ## - # RPC-specific configuration for `list_exascale_db_storage_vaults` - # @return [::Gapic::Config::Method] - # - attr_reader :list_exascale_db_storage_vaults - ## - # RPC-specific configuration for `get_exascale_db_storage_vault` - # @return [::Gapic::Config::Method] - # - attr_reader :get_exascale_db_storage_vault - ## - # RPC-specific configuration for `create_exascale_db_storage_vault` - # @return [::Gapic::Config::Method] - # - attr_reader :create_exascale_db_storage_vault - ## - # RPC-specific configuration for `delete_exascale_db_storage_vault` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_exascale_db_storage_vault - ## - # RPC-specific configuration for `list_db_system_initial_storage_sizes` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_system_initial_storage_sizes - ## - # RPC-specific configuration for `list_databases` - # @return [::Gapic::Config::Method] - # - attr_reader :list_databases - ## - # RPC-specific configuration for `get_database` - # @return [::Gapic::Config::Method] - # - attr_reader :get_database - ## - # RPC-specific configuration for `list_pluggable_databases` - # @return [::Gapic::Config::Method] - # - attr_reader :list_pluggable_databases - ## - # RPC-specific configuration for `get_pluggable_database` - # @return [::Gapic::Config::Method] - # - attr_reader :get_pluggable_database - ## - # RPC-specific configuration for `list_db_systems` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_systems - ## - # RPC-specific configuration for `get_db_system` - # @return [::Gapic::Config::Method] - # - attr_reader :get_db_system - ## - # RPC-specific configuration for `create_db_system` - # @return [::Gapic::Config::Method] - # - attr_reader :create_db_system - ## - # RPC-specific configuration for `delete_db_system` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_db_system - ## - # RPC-specific configuration for `list_goldengate_deployments` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_deployments - ## - # RPC-specific configuration for `get_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_deployment - ## - # RPC-specific configuration for `create_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :create_goldengate_deployment - ## - # RPC-specific configuration for `delete_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_goldengate_deployment - ## - # RPC-specific configuration for `stop_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :stop_goldengate_deployment - ## - # RPC-specific configuration for `start_goldengate_deployment` - # @return [::Gapic::Config::Method] - # - attr_reader :start_goldengate_deployment - ## - # RPC-specific configuration for `list_goldengate_connections` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_connections - ## - # RPC-specific configuration for `get_goldengate_connection` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_connection - ## - # RPC-specific configuration for `create_goldengate_connection` - # @return [::Gapic::Config::Method] - # - attr_reader :create_goldengate_connection - ## - # RPC-specific configuration for `delete_goldengate_connection` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_goldengate_connection - ## - # RPC-specific configuration for `get_goldengate_deployment_version` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_deployment_version - ## - # RPC-specific configuration for `list_goldengate_deployment_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_deployment_versions - ## - # RPC-specific configuration for `get_goldengate_deployment_type` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_deployment_type - ## - # RPC-specific configuration for `list_goldengate_deployment_types` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_deployment_types - ## - # RPC-specific configuration for `get_goldengate_deployment_environment` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_deployment_environment - ## - # RPC-specific configuration for `list_goldengate_deployment_environments` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_deployment_environments - ## - # RPC-specific configuration for `get_goldengate_connection_type` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_connection_type - ## - # RPC-specific configuration for `list_goldengate_connection_types` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_connection_types - ## - # RPC-specific configuration for `list_db_versions` - # @return [::Gapic::Config::Method] - # - attr_reader :list_db_versions - ## - # RPC-specific configuration for `list_database_character_sets` - # @return [::Gapic::Config::Method] - # - attr_reader :list_database_character_sets - ## - # RPC-specific configuration for `list_goldengate_connection_assignments` - # @return [::Gapic::Config::Method] - # - attr_reader :list_goldengate_connection_assignments - ## - # RPC-specific configuration for `get_goldengate_connection_assignment` - # @return [::Gapic::Config::Method] - # - attr_reader :get_goldengate_connection_assignment - ## - # RPC-specific configuration for `create_goldengate_connection_assignment` - # @return [::Gapic::Config::Method] - # - attr_reader :create_goldengate_connection_assignment - ## - # RPC-specific configuration for `delete_goldengate_connection_assignment` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_goldengate_connection_assignment - ## - # RPC-specific configuration for `test_goldengate_connection_assignment` - # @return [::Gapic::Config::Method] - # - attr_reader :test_goldengate_connection_assignment - - # @private - def initialize parent_rpcs = nil - list_cloud_exadata_infrastructures_config = parent_rpcs.list_cloud_exadata_infrastructures if parent_rpcs.respond_to? :list_cloud_exadata_infrastructures - @list_cloud_exadata_infrastructures = ::Gapic::Config::Method.new list_cloud_exadata_infrastructures_config - get_cloud_exadata_infrastructure_config = parent_rpcs.get_cloud_exadata_infrastructure if parent_rpcs.respond_to? :get_cloud_exadata_infrastructure - @get_cloud_exadata_infrastructure = ::Gapic::Config::Method.new get_cloud_exadata_infrastructure_config - create_cloud_exadata_infrastructure_config = parent_rpcs.create_cloud_exadata_infrastructure if parent_rpcs.respond_to? :create_cloud_exadata_infrastructure - @create_cloud_exadata_infrastructure = ::Gapic::Config::Method.new create_cloud_exadata_infrastructure_config - delete_cloud_exadata_infrastructure_config = parent_rpcs.delete_cloud_exadata_infrastructure if parent_rpcs.respond_to? :delete_cloud_exadata_infrastructure - @delete_cloud_exadata_infrastructure = ::Gapic::Config::Method.new delete_cloud_exadata_infrastructure_config - list_cloud_vm_clusters_config = parent_rpcs.list_cloud_vm_clusters if parent_rpcs.respond_to? :list_cloud_vm_clusters - @list_cloud_vm_clusters = ::Gapic::Config::Method.new list_cloud_vm_clusters_config - get_cloud_vm_cluster_config = parent_rpcs.get_cloud_vm_cluster if parent_rpcs.respond_to? :get_cloud_vm_cluster - @get_cloud_vm_cluster = ::Gapic::Config::Method.new get_cloud_vm_cluster_config - create_cloud_vm_cluster_config = parent_rpcs.create_cloud_vm_cluster if parent_rpcs.respond_to? :create_cloud_vm_cluster - @create_cloud_vm_cluster = ::Gapic::Config::Method.new create_cloud_vm_cluster_config - delete_cloud_vm_cluster_config = parent_rpcs.delete_cloud_vm_cluster if parent_rpcs.respond_to? :delete_cloud_vm_cluster - @delete_cloud_vm_cluster = ::Gapic::Config::Method.new delete_cloud_vm_cluster_config - list_entitlements_config = parent_rpcs.list_entitlements if parent_rpcs.respond_to? :list_entitlements - @list_entitlements = ::Gapic::Config::Method.new list_entitlements_config - list_db_servers_config = parent_rpcs.list_db_servers if parent_rpcs.respond_to? :list_db_servers - @list_db_servers = ::Gapic::Config::Method.new list_db_servers_config - list_db_nodes_config = parent_rpcs.list_db_nodes if parent_rpcs.respond_to? :list_db_nodes - @list_db_nodes = ::Gapic::Config::Method.new list_db_nodes_config - list_gi_versions_config = parent_rpcs.list_gi_versions if parent_rpcs.respond_to? :list_gi_versions - @list_gi_versions = ::Gapic::Config::Method.new list_gi_versions_config - list_minor_versions_config = parent_rpcs.list_minor_versions if parent_rpcs.respond_to? :list_minor_versions - @list_minor_versions = ::Gapic::Config::Method.new list_minor_versions_config - list_db_system_shapes_config = parent_rpcs.list_db_system_shapes if parent_rpcs.respond_to? :list_db_system_shapes - @list_db_system_shapes = ::Gapic::Config::Method.new list_db_system_shapes_config - list_autonomous_databases_config = parent_rpcs.list_autonomous_databases if parent_rpcs.respond_to? :list_autonomous_databases - @list_autonomous_databases = ::Gapic::Config::Method.new list_autonomous_databases_config - get_autonomous_database_config = parent_rpcs.get_autonomous_database if parent_rpcs.respond_to? :get_autonomous_database - @get_autonomous_database = ::Gapic::Config::Method.new get_autonomous_database_config - create_autonomous_database_config = parent_rpcs.create_autonomous_database if parent_rpcs.respond_to? :create_autonomous_database - @create_autonomous_database = ::Gapic::Config::Method.new create_autonomous_database_config - update_autonomous_database_config = parent_rpcs.update_autonomous_database if parent_rpcs.respond_to? :update_autonomous_database - @update_autonomous_database = ::Gapic::Config::Method.new update_autonomous_database_config - delete_autonomous_database_config = parent_rpcs.delete_autonomous_database if parent_rpcs.respond_to? :delete_autonomous_database - @delete_autonomous_database = ::Gapic::Config::Method.new delete_autonomous_database_config - restore_autonomous_database_config = parent_rpcs.restore_autonomous_database if parent_rpcs.respond_to? :restore_autonomous_database - @restore_autonomous_database = ::Gapic::Config::Method.new restore_autonomous_database_config - generate_autonomous_database_wallet_config = parent_rpcs.generate_autonomous_database_wallet if parent_rpcs.respond_to? :generate_autonomous_database_wallet - @generate_autonomous_database_wallet = ::Gapic::Config::Method.new generate_autonomous_database_wallet_config - list_autonomous_db_versions_config = parent_rpcs.list_autonomous_db_versions if parent_rpcs.respond_to? :list_autonomous_db_versions - @list_autonomous_db_versions = ::Gapic::Config::Method.new list_autonomous_db_versions_config - list_autonomous_database_character_sets_config = parent_rpcs.list_autonomous_database_character_sets if parent_rpcs.respond_to? :list_autonomous_database_character_sets - @list_autonomous_database_character_sets = ::Gapic::Config::Method.new list_autonomous_database_character_sets_config - list_autonomous_database_backups_config = parent_rpcs.list_autonomous_database_backups if parent_rpcs.respond_to? :list_autonomous_database_backups - @list_autonomous_database_backups = ::Gapic::Config::Method.new list_autonomous_database_backups_config - stop_autonomous_database_config = parent_rpcs.stop_autonomous_database if parent_rpcs.respond_to? :stop_autonomous_database - @stop_autonomous_database = ::Gapic::Config::Method.new stop_autonomous_database_config - start_autonomous_database_config = parent_rpcs.start_autonomous_database if parent_rpcs.respond_to? :start_autonomous_database - @start_autonomous_database = ::Gapic::Config::Method.new start_autonomous_database_config - restart_autonomous_database_config = parent_rpcs.restart_autonomous_database if parent_rpcs.respond_to? :restart_autonomous_database - @restart_autonomous_database = ::Gapic::Config::Method.new restart_autonomous_database_config - switchover_autonomous_database_config = parent_rpcs.switchover_autonomous_database if parent_rpcs.respond_to? :switchover_autonomous_database - @switchover_autonomous_database = ::Gapic::Config::Method.new switchover_autonomous_database_config - failover_autonomous_database_config = parent_rpcs.failover_autonomous_database if parent_rpcs.respond_to? :failover_autonomous_database - @failover_autonomous_database = ::Gapic::Config::Method.new failover_autonomous_database_config - list_odb_networks_config = parent_rpcs.list_odb_networks if parent_rpcs.respond_to? :list_odb_networks - @list_odb_networks = ::Gapic::Config::Method.new list_odb_networks_config - get_odb_network_config = parent_rpcs.get_odb_network if parent_rpcs.respond_to? :get_odb_network - @get_odb_network = ::Gapic::Config::Method.new get_odb_network_config - create_odb_network_config = parent_rpcs.create_odb_network if parent_rpcs.respond_to? :create_odb_network - @create_odb_network = ::Gapic::Config::Method.new create_odb_network_config - delete_odb_network_config = parent_rpcs.delete_odb_network if parent_rpcs.respond_to? :delete_odb_network - @delete_odb_network = ::Gapic::Config::Method.new delete_odb_network_config - list_odb_subnets_config = parent_rpcs.list_odb_subnets if parent_rpcs.respond_to? :list_odb_subnets - @list_odb_subnets = ::Gapic::Config::Method.new list_odb_subnets_config - get_odb_subnet_config = parent_rpcs.get_odb_subnet if parent_rpcs.respond_to? :get_odb_subnet - @get_odb_subnet = ::Gapic::Config::Method.new get_odb_subnet_config - create_odb_subnet_config = parent_rpcs.create_odb_subnet if parent_rpcs.respond_to? :create_odb_subnet - @create_odb_subnet = ::Gapic::Config::Method.new create_odb_subnet_config - delete_odb_subnet_config = parent_rpcs.delete_odb_subnet if parent_rpcs.respond_to? :delete_odb_subnet - @delete_odb_subnet = ::Gapic::Config::Method.new delete_odb_subnet_config - list_exadb_vm_clusters_config = parent_rpcs.list_exadb_vm_clusters if parent_rpcs.respond_to? :list_exadb_vm_clusters - @list_exadb_vm_clusters = ::Gapic::Config::Method.new list_exadb_vm_clusters_config - get_exadb_vm_cluster_config = parent_rpcs.get_exadb_vm_cluster if parent_rpcs.respond_to? :get_exadb_vm_cluster - @get_exadb_vm_cluster = ::Gapic::Config::Method.new get_exadb_vm_cluster_config - create_exadb_vm_cluster_config = parent_rpcs.create_exadb_vm_cluster if parent_rpcs.respond_to? :create_exadb_vm_cluster - @create_exadb_vm_cluster = ::Gapic::Config::Method.new create_exadb_vm_cluster_config - delete_exadb_vm_cluster_config = parent_rpcs.delete_exadb_vm_cluster if parent_rpcs.respond_to? :delete_exadb_vm_cluster - @delete_exadb_vm_cluster = ::Gapic::Config::Method.new delete_exadb_vm_cluster_config - update_exadb_vm_cluster_config = parent_rpcs.update_exadb_vm_cluster if parent_rpcs.respond_to? :update_exadb_vm_cluster - @update_exadb_vm_cluster = ::Gapic::Config::Method.new update_exadb_vm_cluster_config - remove_virtual_machine_exadb_vm_cluster_config = parent_rpcs.remove_virtual_machine_exadb_vm_cluster if parent_rpcs.respond_to? :remove_virtual_machine_exadb_vm_cluster - @remove_virtual_machine_exadb_vm_cluster = ::Gapic::Config::Method.new remove_virtual_machine_exadb_vm_cluster_config - list_exascale_db_storage_vaults_config = parent_rpcs.list_exascale_db_storage_vaults if parent_rpcs.respond_to? :list_exascale_db_storage_vaults - @list_exascale_db_storage_vaults = ::Gapic::Config::Method.new list_exascale_db_storage_vaults_config - get_exascale_db_storage_vault_config = parent_rpcs.get_exascale_db_storage_vault if parent_rpcs.respond_to? :get_exascale_db_storage_vault - @get_exascale_db_storage_vault = ::Gapic::Config::Method.new get_exascale_db_storage_vault_config - create_exascale_db_storage_vault_config = parent_rpcs.create_exascale_db_storage_vault if parent_rpcs.respond_to? :create_exascale_db_storage_vault - @create_exascale_db_storage_vault = ::Gapic::Config::Method.new create_exascale_db_storage_vault_config - delete_exascale_db_storage_vault_config = parent_rpcs.delete_exascale_db_storage_vault if parent_rpcs.respond_to? :delete_exascale_db_storage_vault - @delete_exascale_db_storage_vault = ::Gapic::Config::Method.new delete_exascale_db_storage_vault_config - list_db_system_initial_storage_sizes_config = parent_rpcs.list_db_system_initial_storage_sizes if parent_rpcs.respond_to? :list_db_system_initial_storage_sizes - @list_db_system_initial_storage_sizes = ::Gapic::Config::Method.new list_db_system_initial_storage_sizes_config - list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases - @list_databases = ::Gapic::Config::Method.new list_databases_config - get_database_config = parent_rpcs.get_database if parent_rpcs.respond_to? :get_database - @get_database = ::Gapic::Config::Method.new get_database_config - list_pluggable_databases_config = parent_rpcs.list_pluggable_databases if parent_rpcs.respond_to? :list_pluggable_databases - @list_pluggable_databases = ::Gapic::Config::Method.new list_pluggable_databases_config - get_pluggable_database_config = parent_rpcs.get_pluggable_database if parent_rpcs.respond_to? :get_pluggable_database - @get_pluggable_database = ::Gapic::Config::Method.new get_pluggable_database_config - list_db_systems_config = parent_rpcs.list_db_systems if parent_rpcs.respond_to? :list_db_systems - @list_db_systems = ::Gapic::Config::Method.new list_db_systems_config - get_db_system_config = parent_rpcs.get_db_system if parent_rpcs.respond_to? :get_db_system - @get_db_system = ::Gapic::Config::Method.new get_db_system_config - create_db_system_config = parent_rpcs.create_db_system if parent_rpcs.respond_to? :create_db_system - @create_db_system = ::Gapic::Config::Method.new create_db_system_config - delete_db_system_config = parent_rpcs.delete_db_system if parent_rpcs.respond_to? :delete_db_system - @delete_db_system = ::Gapic::Config::Method.new delete_db_system_config - list_goldengate_deployments_config = parent_rpcs.list_goldengate_deployments if parent_rpcs.respond_to? :list_goldengate_deployments - @list_goldengate_deployments = ::Gapic::Config::Method.new list_goldengate_deployments_config - get_goldengate_deployment_config = parent_rpcs.get_goldengate_deployment if parent_rpcs.respond_to? :get_goldengate_deployment - @get_goldengate_deployment = ::Gapic::Config::Method.new get_goldengate_deployment_config - create_goldengate_deployment_config = parent_rpcs.create_goldengate_deployment if parent_rpcs.respond_to? :create_goldengate_deployment - @create_goldengate_deployment = ::Gapic::Config::Method.new create_goldengate_deployment_config - delete_goldengate_deployment_config = parent_rpcs.delete_goldengate_deployment if parent_rpcs.respond_to? :delete_goldengate_deployment - @delete_goldengate_deployment = ::Gapic::Config::Method.new delete_goldengate_deployment_config - stop_goldengate_deployment_config = parent_rpcs.stop_goldengate_deployment if parent_rpcs.respond_to? :stop_goldengate_deployment - @stop_goldengate_deployment = ::Gapic::Config::Method.new stop_goldengate_deployment_config - start_goldengate_deployment_config = parent_rpcs.start_goldengate_deployment if parent_rpcs.respond_to? :start_goldengate_deployment - @start_goldengate_deployment = ::Gapic::Config::Method.new start_goldengate_deployment_config - list_goldengate_connections_config = parent_rpcs.list_goldengate_connections if parent_rpcs.respond_to? :list_goldengate_connections - @list_goldengate_connections = ::Gapic::Config::Method.new list_goldengate_connections_config - get_goldengate_connection_config = parent_rpcs.get_goldengate_connection if parent_rpcs.respond_to? :get_goldengate_connection - @get_goldengate_connection = ::Gapic::Config::Method.new get_goldengate_connection_config - create_goldengate_connection_config = parent_rpcs.create_goldengate_connection if parent_rpcs.respond_to? :create_goldengate_connection - @create_goldengate_connection = ::Gapic::Config::Method.new create_goldengate_connection_config - delete_goldengate_connection_config = parent_rpcs.delete_goldengate_connection if parent_rpcs.respond_to? :delete_goldengate_connection - @delete_goldengate_connection = ::Gapic::Config::Method.new delete_goldengate_connection_config - get_goldengate_deployment_version_config = parent_rpcs.get_goldengate_deployment_version if parent_rpcs.respond_to? :get_goldengate_deployment_version - @get_goldengate_deployment_version = ::Gapic::Config::Method.new get_goldengate_deployment_version_config - list_goldengate_deployment_versions_config = parent_rpcs.list_goldengate_deployment_versions if parent_rpcs.respond_to? :list_goldengate_deployment_versions - @list_goldengate_deployment_versions = ::Gapic::Config::Method.new list_goldengate_deployment_versions_config - get_goldengate_deployment_type_config = parent_rpcs.get_goldengate_deployment_type if parent_rpcs.respond_to? :get_goldengate_deployment_type - @get_goldengate_deployment_type = ::Gapic::Config::Method.new get_goldengate_deployment_type_config - list_goldengate_deployment_types_config = parent_rpcs.list_goldengate_deployment_types if parent_rpcs.respond_to? :list_goldengate_deployment_types - @list_goldengate_deployment_types = ::Gapic::Config::Method.new list_goldengate_deployment_types_config - get_goldengate_deployment_environment_config = parent_rpcs.get_goldengate_deployment_environment if parent_rpcs.respond_to? :get_goldengate_deployment_environment - @get_goldengate_deployment_environment = ::Gapic::Config::Method.new get_goldengate_deployment_environment_config - list_goldengate_deployment_environments_config = parent_rpcs.list_goldengate_deployment_environments if parent_rpcs.respond_to? :list_goldengate_deployment_environments - @list_goldengate_deployment_environments = ::Gapic::Config::Method.new list_goldengate_deployment_environments_config - get_goldengate_connection_type_config = parent_rpcs.get_goldengate_connection_type if parent_rpcs.respond_to? :get_goldengate_connection_type - @get_goldengate_connection_type = ::Gapic::Config::Method.new get_goldengate_connection_type_config - list_goldengate_connection_types_config = parent_rpcs.list_goldengate_connection_types if parent_rpcs.respond_to? :list_goldengate_connection_types - @list_goldengate_connection_types = ::Gapic::Config::Method.new list_goldengate_connection_types_config - list_db_versions_config = parent_rpcs.list_db_versions if parent_rpcs.respond_to? :list_db_versions - @list_db_versions = ::Gapic::Config::Method.new list_db_versions_config - list_database_character_sets_config = parent_rpcs.list_database_character_sets if parent_rpcs.respond_to? :list_database_character_sets - @list_database_character_sets = ::Gapic::Config::Method.new list_database_character_sets_config - list_goldengate_connection_assignments_config = parent_rpcs.list_goldengate_connection_assignments if parent_rpcs.respond_to? :list_goldengate_connection_assignments - @list_goldengate_connection_assignments = ::Gapic::Config::Method.new list_goldengate_connection_assignments_config - get_goldengate_connection_assignment_config = parent_rpcs.get_goldengate_connection_assignment if parent_rpcs.respond_to? :get_goldengate_connection_assignment - @get_goldengate_connection_assignment = ::Gapic::Config::Method.new get_goldengate_connection_assignment_config - create_goldengate_connection_assignment_config = parent_rpcs.create_goldengate_connection_assignment if parent_rpcs.respond_to? :create_goldengate_connection_assignment - @create_goldengate_connection_assignment = ::Gapic::Config::Method.new create_goldengate_connection_assignment_config - delete_goldengate_connection_assignment_config = parent_rpcs.delete_goldengate_connection_assignment if parent_rpcs.respond_to? :delete_goldengate_connection_assignment - @delete_goldengate_connection_assignment = ::Gapic::Config::Method.new delete_goldengate_connection_assignment_config - test_goldengate_connection_assignment_config = parent_rpcs.test_goldengate_connection_assignment if parent_rpcs.respond_to? :test_goldengate_connection_assignment - @test_goldengate_connection_assignment = ::Gapic::Config::Method.new test_goldengate_connection_assignment_config - - yield self if block_given? - end - end - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb deleted file mode 100644 index 74a11c0caaec..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/operations.rb +++ /dev/null @@ -1,925 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "gapic/operation" - -module Google - module Cloud - module OracleDatabase - module V1 - module OracleDatabase - module Rest - # Service that implements Longrunning Operations API. - class Operations - # @private - API_VERSION = "" - - # @private - DEFAULT_ENDPOINT_TEMPLATE = "oracledatabase.$UNIVERSE_DOMAIN$" - - # @private - attr_reader :operations_stub - - ## - # Configuration for the OracleDatabase Operations API. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def self.configure - @configure ||= Operations::Configuration.new - yield @configure if block_given? - @configure - end - - ## - # Configure the OracleDatabase Operations instance. - # - # The configuration is set to the derived mode, meaning that values can be changed, - # but structural changes (adding new fields, etc.) are not allowed. Structural changes - # should be made on {Operations.configure}. - # - # @yield [config] Configure the Operations client. - # @yieldparam config [Operations::Configuration] - # - # @return [Operations::Configuration] - # - def configure - yield @config if block_given? - @config - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @operations_stub.universe_domain - end - - ## - # Create a new Operations client object. - # - # @yield [config] Configure the Client client. - # @yieldparam config [Operations::Configuration] - # - def initialize - # Create the configuration object - @config = Configuration.new Operations.configure - - # Yield the configuration if needed - yield @config if block_given? - - # Create credentials - credentials = @config.credentials - credentials ||= Credentials.default scope: @config.scope - if credentials.is_a?(::String) || credentials.is_a?(::Hash) - credentials = Credentials.new credentials, scope: @config.scope - end - - @quota_project_id = @config.quota_project - @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id - - @operations_stub = OperationsServiceStub.new( - endpoint: @config.endpoint, - endpoint_template: DEFAULT_ENDPOINT_TEMPLATE, - universe_domain: @config.universe_domain, - credentials: credentials - ) - - # Used by an LRO wrapper for some methods of this service - @operations_client = self - end - - # Service calls - - ## - # Lists operations that match the specified filter in the request. If the - # server doesn't support this method, it returns `UNIMPLEMENTED`. - # - # @overload list_operations(request, options = nil) - # Pass arguments to `list_operations` via a request object, either of type - # {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::ListOperationsRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload list_operations(name: nil, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil) - # Pass arguments to `list_operations` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation's parent resource. - # @param filter [::String] - # The standard list filter. - # @param page_size [::Integer] - # The standard list page size. - # @param page_token [::String] - # The standard list page token. - # @param return_partial_success [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::ListOperationsRequest.new - # - # # Call the list_operations method. - # result = client.list_operations request - # - # # The returned object is of type Gapic::PagedEnumerable. You can iterate - # # over elements, and API calls will be issued to fetch pages as needed. - # result.each do |item| - # # Each element is of type ::Google::Longrunning::Operation. - # p item - # end - # - def list_operations request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::ListOperationsRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.list_operations.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.list_operations.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.list_operations.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.list_operations request, options do |result, operation| - result = ::Gapic::Rest::PagedEnumerable.new @operations_stub, :list_operations, "operations", request, result, options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Gets the latest state of a long-running operation. Clients can use this - # method to poll the operation result at intervals as recommended by the API - # service. - # - # @overload get_operation(request, options = nil) - # Pass arguments to `get_operation` via a request object, either of type - # {::Google::Longrunning::GetOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::GetOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload get_operation(name: nil) - # Pass arguments to `get_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Gapic::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Gapic::Operation] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::GetOperationRequest.new - # - # # Call the get_operation method. - # result = client.get_operation request - # - # # The returned object is of type Gapic::Operation. You can use it to - # # check the status of an operation, cancel it, or wait for results. - # # Here is how to wait for a response. - # result.wait_until_done! timeout: 60 - # if result.response? - # p result.response - # else - # puts "No response received." - # end - # - def get_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::GetOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.get_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.get_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.get_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.get_operation request, options do |result, operation| - result = ::Gapic::Operation.new result, @operations_client, options: options - yield result, operation if block_given? - throw :response, result - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Deletes 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`. - # - # @overload delete_operation(request, options = nil) - # Pass arguments to `delete_operation` via a request object, either of type - # {::Google::Longrunning::DeleteOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::DeleteOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload delete_operation(name: nil) - # Pass arguments to `delete_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be deleted. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::DeleteOperationRequest.new - # - # # Call the delete_operation method. - # result = client.delete_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def delete_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::DeleteOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.delete_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.delete_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.delete_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.delete_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Starts 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`. Clients can use - # Operations.GetOperation or - # other methods to check whether the cancellation succeeded or whether the - # operation completed despite cancellation. On successful cancellation, - # the operation is not deleted; instead, it becomes an operation with - # an {::Google::Longrunning::Operation#error Operation.error} value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to - # `Code.CANCELLED`. - # - # @overload cancel_operation(request, options = nil) - # Pass arguments to `cancel_operation` via a request object, either of type - # {::Google::Longrunning::CancelOperationRequest} or an equivalent Hash. - # - # @param request [::Google::Longrunning::CancelOperationRequest, ::Hash] - # A request object representing the call parameters. Required. To specify no - # parameters, or to keep all the default parameter values, pass an empty Hash. - # @param options [::Gapic::CallOptions, ::Hash] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @overload cancel_operation(name: nil) - # Pass arguments to `cancel_operation` via keyword arguments. Note that at - # least one keyword argument is required. To specify no parameters, or to keep all - # the default parameter values, pass an empty Hash as a request object (see above). - # - # @param name [::String] - # The name of the operation resource to be cancelled. - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # - # @raise [::Google::Cloud::Error] if the REST call is aborted. - # - # @example Basic example - # require "google/longrunning" - # - # # Create a client object. The client can be reused for multiple calls. - # client = Google::Longrunning::Operations::Rest::Client.new - # - # # Create a request. To set request fields, pass in keyword arguments. - # request = Google::Longrunning::CancelOperationRequest.new - # - # # Call the cancel_operation method. - # result = client.cancel_operation request - # - # # The returned object is of type Google::Protobuf::Empty. - # p result - # - def cancel_operation request, options = nil - raise ::ArgumentError, "request must be provided" if request.nil? - - request = ::Gapic::Protobuf.coerce request, to: ::Google::Longrunning::CancelOperationRequest - - # Converts hash and nil to an options object - options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h - - # Customize the options with defaults - call_metadata = @config.rpcs.cancel_operation.metadata.to_h - - # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers - call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \ - lib_name: @config.lib_name, lib_version: @config.lib_version, - gapic_version: ::Google::Cloud::OracleDatabase::V1::VERSION, - transports_version_send: [:rest] - - call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty? - call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id - - options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout, - metadata: call_metadata, - retry_policy: @config.rpcs.cancel_operation.retry_policy - - options.apply_defaults timeout: @config.timeout, - metadata: @config.metadata, - retry_policy: @config.retry_policy - - @operations_stub.cancel_operation request, options do |result, operation| - yield result, operation if block_given? - end - rescue ::Gapic::Rest::Error => e - raise ::Google::Cloud::Error.from_error(e) - end - - ## - # Configuration class for the Operations REST API. - # - # This class represents the configuration for Operations REST, - # providing control over timeouts, retry behavior, logging, transport - # parameters, and other low-level controls. Certain parameters can also be - # applied individually to specific RPCs. See - # {::Google::Longrunning::Operations::Rest::Client::Configuration::Rpcs} - # for a list of RPCs that can be configured independently. - # - # Configuration can be applied globally to all clients, or to a single client - # on construction. - # - # @example - # - # # Modify the global config, setting the timeout for - # # list_operations to 20 seconds, - # # and all remaining timeouts to 10 seconds. - # ::Google::Longrunning::Operations::Rest::Client.configure do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # # Apply the above configuration only to a new client. - # client = ::Google::Longrunning::Operations::Rest::Client.new do |config| - # config.timeout = 10.0 - # config.rpcs.list_operations.timeout = 20.0 - # end - # - # @!attribute [rw] endpoint - # A custom service endpoint, as a hostname or hostname:port. The default is - # nil, indicating to use the default endpoint in the current universe domain. - # @return [::String,nil] - # @!attribute [rw] credentials - # Credentials to send with calls. You may provide any of the following types: - # * (`String`) The path to a service account key file in JSON format - # * (`Hash`) A service account key as a Hash - # * (`Google::Auth::Credentials`) A googleauth credentials object - # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials)) - # * (`Signet::OAuth2::Client`) A signet oauth2 client object - # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client)) - # * (`nil`) indicating no credentials - # - # Warning: If you accept a credential configuration (JSON file or Hash) from an - # external source for authentication to Google Cloud, you must validate it before - # providing it to a Google API client library. Providing an unvalidated credential - # configuration to Google APIs can compromise the security of your systems and data. - # For more information, refer to [Validate credential configurations from external - # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials). - # @return [::Object] - # @!attribute [rw] scope - # The OAuth scopes - # @return [::Array<::String>] - # @!attribute [rw] lib_name - # The library name as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] lib_version - # The library version as recorded in instrumentation and logging - # @return [::String] - # @!attribute [rw] timeout - # The call timeout in seconds. - # @return [::Numeric] - # @!attribute [rw] metadata - # Additional headers to be sent with the call. - # @return [::Hash{::Symbol=>::String}] - # @!attribute [rw] retry_policy - # The retry policy. The value is a hash with the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # @return [::Hash] - # @!attribute [rw] quota_project - # A separate project against which to charge quota. - # @return [::String] - # @!attribute [rw] universe_domain - # The universe domain within which to make requests. This determines the - # default endpoint URL. The default value of nil uses the environment - # universe (usually the default "googleapis.com" universe). - # @return [::String,nil] - # @!attribute [rw] logger - # A custom logger to use for request/response debug logging, or the value - # `:default` (the default) to construct a default logger, or `nil` to - # explicitly disable logging. - # @return [::Logger,:default,nil] - # - class Configuration - extend ::Gapic::Config - - # @private - # The endpoint specific to the default "googleapis.com" universe. Deprecated. - DEFAULT_ENDPOINT = "oracledatabase.googleapis.com" - - config_attr :endpoint, nil, ::String, nil - config_attr :credentials, nil do |value| - allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil] - allowed.any? { |klass| klass === value } - end - config_attr :scope, nil, ::String, ::Array, nil - config_attr :lib_name, nil, ::String, nil - config_attr :lib_version, nil, ::String, nil - config_attr :timeout, nil, ::Numeric, nil - config_attr :metadata, nil, ::Hash, nil - config_attr :retry_policy, nil, ::Hash, ::Proc, nil - config_attr :quota_project, nil, ::String, nil - config_attr :universe_domain, nil, ::String, nil - config_attr :logger, :default, ::Logger, nil, :default - - # @private - def initialize parent_config = nil - @parent_config = parent_config unless parent_config.nil? - - yield self if block_given? - end - - ## - # Configurations for individual RPCs - # @return [Rpcs] - # - def rpcs - @rpcs ||= begin - parent_rpcs = nil - parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs) - Rpcs.new parent_rpcs - end - end - - ## - # Configuration RPC class for the Operations API. - # - # Includes fields providing the configuration for each RPC in this service. - # Each configuration object is of type `Gapic::Config::Method` and includes - # the following configuration fields: - # - # * `timeout` (*type:* `Numeric`) - The call timeout in seconds - # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers - # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields - # include the following keys: - # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds. - # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds. - # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier. - # * `:retry_codes` (*type:* `Array`) - The error codes that should - # trigger a retry. - # - class Rpcs - ## - # RPC-specific configuration for `list_operations` - # @return [::Gapic::Config::Method] - # - attr_reader :list_operations - ## - # RPC-specific configuration for `get_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :get_operation - ## - # RPC-specific configuration for `delete_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :delete_operation - ## - # RPC-specific configuration for `cancel_operation` - # @return [::Gapic::Config::Method] - # - attr_reader :cancel_operation - - # @private - def initialize parent_rpcs = nil - list_operations_config = parent_rpcs.list_operations if parent_rpcs.respond_to? :list_operations - @list_operations = ::Gapic::Config::Method.new list_operations_config - get_operation_config = parent_rpcs.get_operation if parent_rpcs.respond_to? :get_operation - @get_operation = ::Gapic::Config::Method.new get_operation_config - delete_operation_config = parent_rpcs.delete_operation if parent_rpcs.respond_to? :delete_operation - @delete_operation = ::Gapic::Config::Method.new delete_operation_config - cancel_operation_config = parent_rpcs.cancel_operation if parent_rpcs.respond_to? :cancel_operation - @cancel_operation = ::Gapic::Config::Method.new cancel_operation_config - - yield self if block_given? - end - end - end - end - - ## - # @private - # REST service stub for the Longrunning Operations API. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - class OperationsServiceStub - def initialize endpoint:, endpoint_template:, universe_domain:, credentials: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials - end - - ## - # Baseline implementation for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::ListOperationsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::ListOperationsResponse] - # A result object deserialized from the server's reply - def list_operations request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_operations", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::ListOperationsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def get_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def delete_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Protobuf::Empty] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Protobuf::Empty] - # A result object deserialized from the server's reply - def cancel_operation request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "cancel_operation", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_operations REST call - # - # @param request_pb [::Google::Longrunning::ListOperationsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_operations_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}/operations", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_operation REST call - # - # @param request_pb [::Google::Longrunning::GetOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_operation REST call - # - # @param request_pb [::Google::Longrunning::DeleteOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the cancel_operation REST call - # - # @param request_pb [::Google::Longrunning::CancelOperationRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_cancel_operation_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:cancel", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb deleted file mode 100644 index b2004bddb044..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/oracle_database/rest/service_stub.rb +++ /dev/null @@ -1,5053 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/oracledatabase/v1/oracledatabase_pb" - -module Google - module Cloud - module OracleDatabase - module V1 - module OracleDatabase - module Rest - ## - # REST service stub for the OracleDatabase service. - # Service stub contains baseline method implementations - # including transcoding, making the REST call, and deserialing the response. - # - class ServiceStub - # @private - def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger: - # These require statements are intentionally placed here to initialize - # the REST modules only when it's required. - require "gapic/rest" - - @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, - endpoint_template: endpoint_template, - universe_domain: universe_domain, - credentials: credentials, - numeric_enums: true, - service_name: self.class, - raise_faraday_errors: false, - logger: logger - end - - ## - # The effective universe domain - # - # @return [String] - # - def universe_domain - @client_stub.universe_domain - end - - ## - # The effective endpoint - # - # @return [String] - # - def endpoint - @client_stub.endpoint - end - - ## - # The logger used for request/response debug logging. - # - # @return [Logger] - # - def logger stub: false - stub ? @client_stub.stub_logger : @client_stub.logger - end - - ## - # Baseline implementation for the list_cloud_exadata_infrastructures REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse] - # A result object deserialized from the server's reply - def list_cloud_exadata_infrastructures request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_cloud_exadata_infrastructures_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_cloud_exadata_infrastructures", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_cloud_exadata_infrastructure REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] - # A result object deserialized from the server's reply - def get_cloud_exadata_infrastructure request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_cloud_exadata_infrastructure_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_cloud_exadata_infrastructure", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_cloud_exadata_infrastructure REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_cloud_exadata_infrastructure request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_cloud_exadata_infrastructure_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_cloud_exadata_infrastructure", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_cloud_exadata_infrastructure REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_cloud_exadata_infrastructure request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_cloud_exadata_infrastructure_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_cloud_exadata_infrastructure", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_cloud_vm_clusters REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse] - # A result object deserialized from the server's reply - def list_cloud_vm_clusters request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_cloud_vm_clusters_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_cloud_vm_clusters", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_cloud_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] - # A result object deserialized from the server's reply - def get_cloud_vm_cluster request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_cloud_vm_cluster_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_cloud_vm_cluster", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::CloudVmCluster.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_cloud_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_cloud_vm_cluster request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_cloud_vm_cluster_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_cloud_vm_cluster", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_cloud_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_cloud_vm_cluster request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_cloud_vm_cluster_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_cloud_vm_cluster", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_entitlements REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse] - # A result object deserialized from the server's reply - def list_entitlements request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_entitlements_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_entitlements", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_db_servers REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbServersResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListDbServersResponse] - # A result object deserialized from the server's reply - def list_db_servers request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_db_servers_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_db_servers", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_db_nodes REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse] - # A result object deserialized from the server's reply - def list_db_nodes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_db_nodes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_db_nodes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_gi_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse] - # A result object deserialized from the server's reply - def list_gi_versions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_gi_versions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_gi_versions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_minor_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse] - # A result object deserialized from the server's reply - def list_minor_versions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_minor_versions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_minor_versions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_db_system_shapes REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse] - # A result object deserialized from the server's reply - def list_db_system_shapes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_db_system_shapes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_db_system_shapes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_autonomous_databases REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse] - # A result object deserialized from the server's reply - def list_autonomous_databases request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_databases_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_autonomous_databases", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] - # A result object deserialized from the server's reply - def get_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def update_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the restore_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def restore_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_restore_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "restore_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the generate_autonomous_database_wallet REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse] - # A result object deserialized from the server's reply - def generate_autonomous_database_wallet request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_generate_autonomous_database_wallet_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "generate_autonomous_database_wallet", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_autonomous_db_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse] - # A result object deserialized from the server's reply - def list_autonomous_db_versions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_db_versions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_autonomous_db_versions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_autonomous_database_character_sets REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse] - # A result object deserialized from the server's reply - def list_autonomous_database_character_sets request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_database_character_sets_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_autonomous_database_character_sets", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_autonomous_database_backups REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse] - # A result object deserialized from the server's reply - def list_autonomous_database_backups request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_autonomous_database_backups_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_autonomous_database_backups", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the stop_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def stop_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_stop_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "stop_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the start_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def start_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_start_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "start_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the restart_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def restart_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_restart_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "restart_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the switchover_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def switchover_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_switchover_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "switchover_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the failover_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def failover_autonomous_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_failover_autonomous_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "failover_autonomous_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_odb_networks REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse] - # A result object deserialized from the server's reply - def list_odb_networks request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_odb_networks_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_odb_networks", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_odb_network REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbNetwork] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork] - # A result object deserialized from the server's reply - def get_odb_network request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_odb_network_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_odb_network", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::OdbNetwork.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_odb_network REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_odb_network request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_odb_network_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_odb_network", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_odb_network REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_odb_network request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_odb_network_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_odb_network", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_odb_subnets REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse] - # A result object deserialized from the server's reply - def list_odb_subnets request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_odb_subnets_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_odb_subnets", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_odb_subnet REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::OdbSubnet] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet] - # A result object deserialized from the server's reply - def get_odb_subnet request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_odb_subnet_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_odb_subnet", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::OdbSubnet.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_odb_subnet REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_odb_subnet request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_odb_subnet_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_odb_subnet", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_odb_subnet REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_odb_subnet request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_odb_subnet_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_odb_subnet", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_exadb_vm_clusters REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse] - # A result object deserialized from the server's reply - def list_exadb_vm_clusters request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_exadb_vm_clusters_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_exadb_vm_clusters", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] - # A result object deserialized from the server's reply - def get_exadb_vm_cluster request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_exadb_vm_cluster_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_exadb_vm_cluster", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_exadb_vm_cluster request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_exadb_vm_cluster_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_exadb_vm_cluster", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_exadb_vm_cluster request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_exadb_vm_cluster_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_exadb_vm_cluster", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the update_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def update_exadb_vm_cluster request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_update_exadb_vm_cluster_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "update_exadb_vm_cluster", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the remove_virtual_machine_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def remove_virtual_machine_exadb_vm_cluster request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_remove_virtual_machine_exadb_vm_cluster_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "remove_virtual_machine_exadb_vm_cluster", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_exascale_db_storage_vaults REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse] - # A result object deserialized from the server's reply - def list_exascale_db_storage_vaults request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_exascale_db_storage_vaults_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_exascale_db_storage_vaults", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_exascale_db_storage_vault REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] - # A result object deserialized from the server's reply - def get_exascale_db_storage_vault request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_exascale_db_storage_vault_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_exascale_db_storage_vault", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_exascale_db_storage_vault REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_exascale_db_storage_vault request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_exascale_db_storage_vault_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_exascale_db_storage_vault", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_exascale_db_storage_vault REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_exascale_db_storage_vault request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_exascale_db_storage_vault_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_exascale_db_storage_vault", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_db_system_initial_storage_sizes REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse] - # A result object deserialized from the server's reply - def list_db_system_initial_storage_sizes request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_db_system_initial_storage_sizes_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_db_system_initial_storage_sizes", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_databases REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse] - # A result object deserialized from the server's reply - def list_databases request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_databases_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_databases", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::Database] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::Database] - # A result object deserialized from the server's reply - def get_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::Database.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_pluggable_databases REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse] - # A result object deserialized from the server's reply - def list_pluggable_databases request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_pluggable_databases_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_pluggable_databases", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_pluggable_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabase] - # A result object deserialized from the server's reply - def get_pluggable_database request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_pluggable_database_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_pluggable_database", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::PluggableDatabase.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_db_systems REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse] - # A result object deserialized from the server's reply - def list_db_systems request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_db_systems_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_db_systems", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_db_system REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::DbSystem] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::DbSystem] - # A result object deserialized from the server's reply - def get_db_system request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_db_system_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_db_system", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::DbSystem.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_db_system REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_db_system request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_db_system_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_db_system", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_db_system REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_db_system request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_db_system_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_db_system", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_goldengate_deployments REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse] - # A result object deserialized from the server's reply - def list_goldengate_deployments request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployments_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_goldengate_deployments", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeployment] - # A result object deserialized from the server's reply - def get_goldengate_deployment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_goldengate_deployment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_goldengate_deployment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_deployment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_goldengate_deployment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_goldengate_deployment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_deployment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_goldengate_deployment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the stop_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def stop_goldengate_deployment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_stop_goldengate_deployment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "stop_goldengate_deployment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the start_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def start_goldengate_deployment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_start_goldengate_deployment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "start_goldengate_deployment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_goldengate_connections REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse] - # A result object deserialized from the server's reply - def list_goldengate_connections request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connections_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_goldengate_connections", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_goldengate_connection REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnection] - # A result object deserialized from the server's reply - def get_goldengate_connection request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_goldengate_connection", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_goldengate_connection REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_goldengate_connection request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_connection_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_goldengate_connection", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_goldengate_connection REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_goldengate_connection request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_connection_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_goldengate_connection", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_goldengate_deployment_version REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion] - # A result object deserialized from the server's reply - def get_goldengate_deployment_version request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_version_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_goldengate_deployment_version", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_goldengate_deployment_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse] - # A result object deserialized from the server's reply - def list_goldengate_deployment_versions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_versions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_goldengate_deployment_versions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_goldengate_deployment_type REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType] - # A result object deserialized from the server's reply - def get_goldengate_deployment_type request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_type_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_goldengate_deployment_type", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_goldengate_deployment_types REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse] - # A result object deserialized from the server's reply - def list_goldengate_deployment_types request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_types_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_goldengate_deployment_types", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_goldengate_deployment_environment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment] - # A result object deserialized from the server's reply - def get_goldengate_deployment_environment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_deployment_environment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_goldengate_deployment_environment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_goldengate_deployment_environments REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse] - # A result object deserialized from the server's reply - def list_goldengate_deployment_environments request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_deployment_environments_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_goldengate_deployment_environments", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_goldengate_connection_type REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType] - # A result object deserialized from the server's reply - def get_goldengate_connection_type request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_type_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_goldengate_connection_type", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_goldengate_connection_types REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse] - # A result object deserialized from the server's reply - def list_goldengate_connection_types request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connection_types_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_goldengate_connection_types", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_db_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse] - # A result object deserialized from the server's reply - def list_db_versions request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_db_versions_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_db_versions", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_database_character_sets REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse] - # A result object deserialized from the server's reply - def list_database_character_sets request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_database_character_sets_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_database_character_sets", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the list_goldengate_connection_assignments REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse] - # A result object deserialized from the server's reply - def list_goldengate_connection_assignments request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_list_goldengate_connection_assignments_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "list_goldengate_connection_assignments", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the get_goldengate_connection_assignment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment] - # A result object deserialized from the server's reply - def get_goldengate_connection_assignment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_get_goldengate_connection_assignment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "get_goldengate_connection_assignment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the create_goldengate_connection_assignment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def create_goldengate_connection_assignment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_create_goldengate_connection_assignment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "create_goldengate_connection_assignment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the delete_goldengate_connection_assignment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Longrunning::Operation] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Longrunning::Operation] - # A result object deserialized from the server's reply - def delete_goldengate_connection_assignment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_delete_goldengate_connection_assignment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "delete_goldengate_connection_assignment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # Baseline implementation for the test_goldengate_connection_assignment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest] - # A request object representing the call parameters. Required. - # @param options [::Gapic::CallOptions] - # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. - # - # @yield [result, operation] Access the result along with the TransportOperation object - # @yieldparam result [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] - # @yieldparam operation [::Gapic::Rest::TransportOperation] - # - # @return [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse] - # A result object deserialized from the server's reply - def test_goldengate_connection_assignment request_pb, options = nil - raise ::ArgumentError, "request must be provided" if request_pb.nil? - - verb, uri, query_string_params, body = ServiceStub.transcode_test_goldengate_connection_assignment_request request_pb - query_string_params = if query_string_params.any? - query_string_params.to_h { |p| p.split "=", 2 } - else - {} - end - - response = @client_stub.make_http_request( - verb, - uri: uri, - body: body || "", - params: query_string_params, - method_name: "test_goldengate_connection_assignment", - options: options - ) - operation = ::Gapic::Rest::TransportOperation.new response - result = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.decode_json response.body, ignore_unknown_fields: true - catch :response do - yield result, operation if block_given? - result - end - end - - ## - # @private - # - # GRPC transcoding helper method for the list_cloud_exadata_infrastructures REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_cloud_exadata_infrastructures_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/cloudExadataInfrastructures", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_cloud_exadata_infrastructure REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_cloud_exadata_infrastructure_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_cloud_exadata_infrastructure REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_cloud_exadata_infrastructure_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/cloudExadataInfrastructures", - body: "cloud_exadata_infrastructure", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_cloud_exadata_infrastructure REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_cloud_exadata_infrastructure_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_cloud_vm_clusters REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_cloud_vm_clusters_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/cloudVmClusters", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_cloud_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_cloud_vm_cluster_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_cloud_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_cloud_vm_cluster_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/cloudVmClusters", - body: "cloud_vm_cluster", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_cloud_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_cloud_vm_cluster_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_entitlements REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_entitlements_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/entitlements", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_db_servers REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbServersRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_db_servers_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbServers", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/cloudExadataInfrastructures/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_db_nodes REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_db_nodes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbNodes", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/cloudVmClusters/[^/]+/?$}, false] - ] - ) - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbNodes", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_gi_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_gi_versions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/giVersions", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_minor_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_minor_versions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/minorVersions", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/giVersions/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_db_system_shapes REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_db_system_shapes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbSystemShapes", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_autonomous_databases REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_autonomous_databases_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/autonomousDatabases", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/autonomousDatabases", - body: "autonomous_database", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{autonomous_database.name}", - body: "autonomous_database", - matches: [ - ["autonomous_database.name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the restore_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_restore_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:restore", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the generate_autonomous_database_wallet REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_generate_autonomous_database_wallet_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:generateWallet", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_autonomous_db_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_autonomous_db_versions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/autonomousDbVersions", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_autonomous_database_character_sets REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_autonomous_database_character_sets_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/autonomousDatabaseCharacterSets", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_autonomous_database_backups REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_autonomous_database_backups_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/autonomousDatabaseBackups", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the stop_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_stop_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:stop", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the start_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_start_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:start", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the restart_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_restart_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:restart", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the switchover_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_switchover_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:switchover", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the failover_autonomous_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_failover_autonomous_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:failover", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/autonomousDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_odb_networks REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_odb_networks_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/odbNetworks", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_odb_network REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_odb_network_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_odb_network REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_odb_network_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/odbNetworks", - body: "odb_network", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_odb_network REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_odb_network_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_odb_subnets REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_odb_subnets_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/odbSubnets", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_odb_subnet REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_odb_subnet_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_odb_subnet REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_odb_subnet_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/odbSubnets", - body: "odb_subnet", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_odb_subnet REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_odb_subnet_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_exadb_vm_clusters REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_exadb_vm_clusters_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/exadbVmClusters", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_exadb_vm_cluster_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_exadb_vm_cluster_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/exadbVmClusters", - body: "exadb_vm_cluster", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_exadb_vm_cluster_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the update_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_update_exadb_vm_cluster_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :patch, - uri_template: "/v1/{exadb_vm_cluster.name}", - body: "exadb_vm_cluster", - matches: [ - ["exadb_vm_cluster.name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the remove_virtual_machine_exadb_vm_cluster REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_remove_virtual_machine_exadb_vm_cluster_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:removeVirtualMachine", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_exascale_db_storage_vaults REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_exascale_db_storage_vaults_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/exascaleDbStorageVaults", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_exascale_db_storage_vault REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_exascale_db_storage_vault_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_exascale_db_storage_vault REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_exascale_db_storage_vault_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/exascaleDbStorageVaults", - body: "exascale_db_storage_vault", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_exascale_db_storage_vault REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_exascale_db_storage_vault_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/exascaleDbStorageVaults/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_db_system_initial_storage_sizes REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_db_system_initial_storage_sizes_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbSystemInitialStorageSizes", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_databases REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_databases_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/databases", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/databases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_pluggable_databases REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_pluggable_databases_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/pluggableDatabases", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_pluggable_database REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_pluggable_database_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/pluggableDatabases/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_db_systems REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_db_systems_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbSystems", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_db_system REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_db_system_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_db_system REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_db_system_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/dbSystems", - body: "db_system", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_db_system REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_db_system_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_goldengate_deployments REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_goldengate_deployments_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/goldengateDeployments", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_goldengate_deployment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_goldengate_deployment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/goldengateDeployments", - body: "goldengate_deployment", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_goldengate_deployment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the stop_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_stop_goldengate_deployment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:stop", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the start_goldengate_deployment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_start_goldengate_deployment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:start", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeployments/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_goldengate_connections REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_goldengate_connections_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/goldengateConnections", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_goldengate_connection REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_goldengate_connection_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnections/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_goldengate_connection REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_goldengate_connection_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/goldengateConnections", - body: "goldengate_connection", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_goldengate_connection REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_goldengate_connection_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnections/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_goldengate_deployment_version REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_goldengate_deployment_version_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentVersions/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_goldengate_deployment_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_goldengate_deployment_versions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/goldengateDeploymentVersions", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_goldengate_deployment_type REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_goldengate_deployment_type_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentTypes/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_goldengate_deployment_types REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_goldengate_deployment_types_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/goldengateDeploymentTypes", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_goldengate_deployment_environment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_goldengate_deployment_environment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateDeploymentEnvironments/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_goldengate_deployment_environments REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_goldengate_deployment_environments_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/goldengateDeploymentEnvironments", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_goldengate_connection_type REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_goldengate_connection_type_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionTypes/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_goldengate_connection_types REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_goldengate_connection_types_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/goldengateConnectionTypes", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_db_versions REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_db_versions_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/dbVersions", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_database_character_sets REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_database_character_sets_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/databaseCharacterSets", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the list_goldengate_connection_assignments REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_list_goldengate_connection_assignments_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{parent}/goldengateConnectionAssignments", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the get_goldengate_connection_assignment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_get_goldengate_connection_assignment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :get, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the create_goldengate_connection_assignment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_create_goldengate_connection_assignment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{parent}/goldengateConnectionAssignments", - body: "goldengate_connection_assignment", - matches: [ - ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the delete_goldengate_connection_assignment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_delete_goldengate_connection_assignment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :delete, - uri_template: "/v1/{name}", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - - ## - # @private - # - # GRPC transcoding helper method for the test_goldengate_connection_assignment REST call - # - # @param request_pb [::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest] - # A request object representing the call parameters. Required. - # @return [Array(String, [String, nil], Hash{String => String})] - # Uri, Body, Query string parameters - def self.transcode_test_goldengate_connection_assignment_request request_pb - transcoder = Gapic::Rest::GrpcTranscoder.new - .with_bindings( - uri_method: :post, - uri_template: "/v1/{name}:test", - body: "*", - matches: [ - ["name", %r{^projects/[^/]+/locations/[^/]+/goldengateConnectionAssignments/[^/]+/?$}, false] - ] - ) - transcoder.transcode request_pb - end - end - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/rest.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/rest.rb deleted file mode 100644 index b868c499e65f..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/rest.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "google/cloud/oracle_database/v1/oracle_database/rest" -require "google/cloud/oracle_database/v1/bindings_override" -require "google/cloud/oracle_database/v1/version" - -module Google - module Cloud - module OracleDatabase - ## - # To load just the REST part of this package, including all its services, and instantiate a REST client: - # - # @example - # - # require "google/cloud/oracle_database/v1/rest" - # client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new - # - module V1 - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/version.rb deleted file mode 100644 index 46ab3c0683b4..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracle_database/v1/version.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - VERSION = "0.0.1" - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb deleted file mode 100644 index e8ce2b0977af..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_database_character_set_pb.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/autonomous_database_character_set.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nFgoogle/cloud/oracledatabase/v1/autonomous_database_character_set.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x88\x04\n\x1e\x41utonomousDatabaseCharacterSet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12p\n\x12\x63haracter_set_type\x18\x02 \x01(\x0e\x32O.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetTypeB\x03\xe0\x41\x03\x12\x1a\n\rcharacter_set\x18\x03 \x01(\tB\x03\xe0\x41\x03\"R\n\x10\x43haracterSetType\x12\"\n\x1e\x43HARACTER_SET_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x41TABASE\x10\x01\x12\x0c\n\x08NATIONAL\x10\x02:\xf0\x01\xea\x41\xec\x01\n.google.cloud.oracledatabase.v1.AutonomousDatabase.LabelsEntryB\x03\xe0\x41\x01\x12:\n\x07network\x18\t \x01(\tB)\xe0\x41\x01\xe0\x41\x05\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x14\n\x04\x63idr\x18\n \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12H\n\x0bodb_network\x18\x10 \x01(\tB3\xe0\x41\x01\xe0\x41\x05\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x46\n\nodb_subnet\x18\x11 \x01(\tB2\xe0\x41\x01\xe0\x41\x05\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12K\n\rsource_config\x18\x0b \x01(\x0b\x32,.google.cloud.oracledatabase.v1.SourceConfigB\x06\xe0\x41\x01\xe0\x41\x05\x12[\n\x19peer_autonomous_databases\x18\x0c \x03(\tB8\xe0\x41\x03\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x34\n\x0b\x63reate_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12X\n%disaster_recovery_supported_locations\x18\x0f \x03(\tB)\xe0\x41\x03\xfa\x41#\n!locations.googleapis.com/Location\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xb2\x01\xea\x41\xae\x01\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Qprojects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}*\x13\x61utonomousDatabases2\x12\x61utonomousDatabase\"\x99\x01\n\x0cSourceConfig\x12U\n\x13\x61utonomous_database\x18\x01 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x32\n%automatic_backups_replication_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xe0)\n\x1c\x41utonomousDatabaseProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\rcompute_count\x18\x02 \x01(\x02\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x1e\n\x0e\x63pu_core_count\x18\x03 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12$\n\x14\x64\x61ta_storage_size_tb\x18\x04 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12$\n\x14\x64\x61ta_storage_size_gb\x18? \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12G\n\x0b\x64\x62_workload\x18\x05 \x01(\x0e\x32*.google.cloud.oracledatabase.v1.DBWorkloadB\x06\xe0\x41\x02\xe0\x41\x05\x12h\n\ndb_edition\x18\x06 \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEditionB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1d\n\rcharacter_set\x18\x08 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1f\n\x0fn_character_set\x18\t \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12#\n\x13private_endpoint_ip\x18\n \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12&\n\x16private_endpoint_label\x18\x0b \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1a\n\ndb_version\x18\x0c \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\'\n\x17is_auto_scaling_enabled\x18\x0e \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12/\n\x1fis_storage_auto_scaling_enabled\x18\x0f \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x66\n\x0clicense_type\x18\x10 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseTypeB\x06\xe0\x41\x02\xe0\x41\x05\x12R\n\x11\x63ustomer_contacts\x18\x11 \x03(\x0b\x32/.google.cloud.oracledatabase.v1.CustomerContactB\x06\xe0\x41\x01\xe0\x41\x05\x12\x19\n\tsecret_id\x18\x12 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x18\n\x08vault_id\x18\x13 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x7f\n\x19maintenance_schedule_type\x18\x14 \x01(\x0e\x32T.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleTypeB\x06\xe0\x41\x01\xe0\x41\x05\x12(\n\x18mtls_connection_required\x18\" \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12,\n\x1c\x62\x61\x63kup_retention_period_days\x18\x39 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12-\n actual_used_data_storage_size_tb\x18\x15 \x01(\x01\x42\x03\xe0\x41\x03\x12&\n\x19\x61llocated_storage_size_tb\x18\x16 \x01(\x01\x42\x03\xe0\x41\x03\x12Q\n\x0c\x61pex_details\x18\x17 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.AutonomousDatabaseApexB\x03\xe0\x41\x03\x12\x32\n are_primary_allowlisted_ips_used\x18\x18 \x01(\x08\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12\x1e\n\x11lifecycle_details\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x1a \x01(\x0e\x32%.google.cloud.oracledatabase.v1.StateB\x03\xe0\x41\x03\x12-\n autonomous_container_database_id\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12\'\n\x1a\x61vailable_upgrade_versions\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x64\n\x12\x63onnection_strings\x18\x1d \x01(\x0b\x32\x43.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStringsB\x03\xe0\x41\x03\x12^\n\x0f\x63onnection_urls\x18\x1e \x01(\x0b\x32@.google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrlsB\x03\xe0\x41\x03\x12\x45\n\x1d\x66\x61iled_data_recovery_duration\x18\x1f \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1d\n\x10memory_table_gbs\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12*\n\x1bis_local_data_guard_enabled\x18! \x01(\x08\x42\x05\x18\x01\xe0\x41\x03\x12:\n+local_adg_auto_failover_max_data_loss_limit\x18# \x01(\x05\x42\x05\x18\x01\xe0\x41\x03\x12_\n\x10local_standby_db\x18$ \x01(\x0b\x32@.google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummaryB\x03\xe0\x41\x03\x12/\n\"memory_per_oracle_compute_unit_gbs\x18% \x01(\x05\x42\x03\xe0\x41\x03\x12\x81\x01\n\x1clocal_disaster_recovery_type\x18& \x01(\x0e\x32V.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryTypeB\x03\xe0\x41\x03\x12h\n\x0f\x64\x61ta_safe_state\x18\' \x01(\x0e\x32J.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeStateB\x03\xe0\x41\x03\x12|\n\x19\x64\x61tabase_management_state\x18( \x01(\x0e\x32T.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementStateB\x03\xe0\x41\x03\x12]\n\topen_mode\x18) \x01(\x0e\x32\x45.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenModeB\x03\xe0\x41\x03\x12_\n\x19operations_insights_state\x18* \x01(\x0e\x32\x37.google.cloud.oracledatabase.v1.OperationsInsightsStateB\x03\xe0\x41\x03\x12\x18\n\x0bpeer_db_ids\x18+ \x03(\tB\x03\xe0\x41\x03\x12k\n\x10permission_level\x18, \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevelB\x03\xe0\x41\x03\x12\x1d\n\x10private_endpoint\x18- \x01(\tB\x03\xe0\x41\x03\x12k\n\x10refreshable_mode\x18. \x01(\x0e\x32L.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableModeB\x03\xe0\x41\x03\x12m\n\x11refreshable_state\x18/ \x01(\x0e\x32M.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableStateB\x03\xe0\x41\x03\x12T\n\x04role\x18\x30 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RoleB\x03\xe0\x41\x03\x12\x63\n\x1bscheduled_operation_details\x18@ \x03(\x0b\x32\x39.google.cloud.oracledatabase.v1.ScheduledOperationDetailsB\x03\xe0\x41\x03\x12\"\n\x15sql_web_developer_url\x18\x32 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17supported_clone_regions\x18\x33 \x03(\tB\x03\xe0\x41\x03\x12\'\n\x1aused_data_storage_size_tbs\x18\x35 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\x36 \x01(\tB\x03\xe0\x41\x03\x12/\n\"total_auto_backup_storage_size_gbs\x18; \x01(\x02\x42\x03\xe0\x41\x03\x12\x43\n\x1anext_long_term_backup_time\x18< \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x45\n\x1c\x64\x61ta_guard_role_changed_time\x18= \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n#disaster_recovery_role_changed_time\x18> \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x16maintenance_begin_time\x18\x41 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12=\n\x14maintenance_end_time\x18\x42 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\x0f\x61llowlisted_ips\x18\x43 \x03(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12J\n\x0e\x65ncryption_key\x18\x44 \x01(\x0b\x32-.google.cloud.oracledatabase.v1.EncryptionKeyB\x03\xe0\x41\x01\x12\x66\n\x1e\x65ncryption_key_history_entries\x18\x45 \x03(\x0b\x32\x39.google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntryB\x03\xe0\x41\x03\x12 \n\x13service_agent_email\x18\x46 \x01(\tB\x03\xe0\x41\x03\x12*\n\x18local_data_guard_enabled\x18G \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12\x46\n4local_adg_auto_failover_max_data_loss_limit_duration\x18H \x01(\x05\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\"a\n\x0f\x44\x61tabaseEdition\x12 \n\x1c\x44\x41TABASE_EDITION_UNSPECIFIED\x10\x00\x12\x14\n\x10STANDARD_EDITION\x10\x01\x12\x16\n\x12\x45NTERPRISE_EDITION\x10\x02\"]\n\x0bLicenseType\x12\x1c\n\x18LICENSE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\\\n\x17MaintenanceScheduleType\x12)\n%MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45\x41RLY\x10\x01\x12\x0b\n\x07REGULAR\x10\x02\"w\n\x19LocalDisasterRecoveryType\x12,\n(LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41\x44G\x10\x01\x12\x10\n\x0c\x42\x41\x43KUP_BASED\x10\x02\x12\x11\n\rNOT_AVAILABLE\x10\x03\"\x84\x01\n\rDataSafeState\x12\x1f\n\x1b\x44\x41TA_SAFE_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bREGISTERING\x10\x01\x12\x0e\n\nREGISTERED\x10\x02\x12\x11\n\rDEREGISTERING\x10\x03\x12\x12\n\x0eNOT_REGISTERED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\"\xaa\x01\n\x17\x44\x61tabaseManagementState\x12)\n%DATABASE_MANAGEMENT_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06\"D\n\x08OpenMode\x12\x19\n\x15OPEN_MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\"U\n\x0fPermissionLevel\x12 \n\x1cPERMISSION_LEVEL_UNSPECIFIED\x10\x00\x12\x0e\n\nRESTRICTED\x10\x01\x12\x10\n\x0cUNRESTRICTED\x10\x02\"N\n\x0fRefreshableMode\x12 \n\x1cREFRESHABLE_MODE_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATIC\x10\x01\x12\n\n\x06MANUAL\x10\x02\"Y\n\x10RefreshableState\x12!\n\x1dREFRESHABLE_STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nREFRESHING\x10\x01\x12\x12\n\x0eNOT_REFRESHING\x10\x02\"s\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PRIMARY\x10\x01\x12\x0b\n\x07STANDBY\x10\x02\x12\x14\n\x10\x44ISABLED_STANDBY\x10\x03\x12\x0f\n\x0b\x42\x41\x43KUP_COPY\x10\x04\x12\x14\n\x10SNAPSHOT_STANDBY\x10\x05\x42#\n!_are_primary_allowlisted_ips_usedB\x1b\n\x19_local_data_guard_enabledB7\n5_local_adg_auto_failover_max_data_loss_limit_duration\"\xa1\x01\n\x19\x45ncryptionKeyHistoryEntry\x12J\n\x0e\x65ncryption_key\x18\x01 \x01(\x0b\x32-.google.cloud.oracledatabase.v1.EncryptionKeyB\x03\xe0\x41\x03\x12\x38\n\x0f\x61\x63tivation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xe8\x01\n\rEncryptionKey\x12M\n\x08provider\x18\x01 \x01(\x0e\x32\x36.google.cloud.oracledatabase.v1.EncryptionKey.ProviderB\x03\xe0\x41\x01\x12:\n\x07kms_key\x18\x02 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"L\n\x08Provider\x12\x18\n\x14PROVIDER_UNSPECIFIED\x10\x00\x12\x12\n\x0eGOOGLE_MANAGED\x10\x01\x12\x12\n\x0eORACLE_MANAGED\x10\x02\"N\n\x16\x41utonomousDatabaseApex\x12\x19\n\x0c\x61pex_version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cords_version\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xaa\x02\n#AutonomousDatabaseConnectionStrings\x12Y\n\x16\x61ll_connection_strings\x18\x01 \x01(\x0b\x32\x34.google.cloud.oracledatabase.v1.AllConnectionStringsB\x03\xe0\x41\x03\x12\x16\n\tdedicated\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04high\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03low\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06medium\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12V\n\x08profiles\x18\x06 \x03(\x0b\x32?.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfileB\x03\xe0\x41\x03\"\xb2\t\n\x1f\x44\x61tabaseConnectionStringProfile\x12j\n\x0e\x63onsumer_group\x18\x01 \x01(\x0e\x32M.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroupB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x64\n\x0bhost_format\x18\x03 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormatB\x03\xe0\x41\x03\x12\x18\n\x0bis_regional\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12_\n\x08protocol\x18\x05 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ProtocolB\x03\xe0\x41\x03\x12\x66\n\x0csession_mode\x18\x06 \x01(\x0e\x32K.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionModeB\x03\xe0\x41\x03\x12h\n\rsyntax_format\x18\x07 \x01(\x0e\x32L.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormatB\x03\xe0\x41\x03\x12r\n\x12tls_authentication\x18\x08 \x01(\x0e\x32Q.google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthenticationB\x03\xe0\x41\x03\x12\x12\n\x05value\x18\t \x01(\tB\x03\xe0\x41\x03\"d\n\rConsumerGroup\x12\x1e\n\x1a\x43ONSUMER_GROUP_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x07\n\x03LOW\x10\x03\x12\x06\n\x02TP\x10\x04\x12\x0c\n\x08TPURGENT\x10\x05\";\n\nHostFormat\x12\x1b\n\x17HOST_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46QDN\x10\x01\x12\x06\n\x02IP\x10\x02\"7\n\x08Protocol\x12\x18\n\x14PROTOCOL_UNSPECIFIED\x10\x00\x12\x07\n\x03TCP\x10\x01\x12\x08\n\x04TCPS\x10\x02\"E\n\x0bSessionMode\x12\x1c\n\x18SESSION_MODE_UNSPECIFIED\x10\x00\x12\n\n\x06\x44IRECT\x10\x01\x12\x0c\n\x08INDIRECT\x10\x02\"Y\n\x0cSyntaxFormat\x12\x1d\n\x19SYNTAX_FORMAT_UNSPECIFIED\x10\x00\x12\x08\n\x04LONG\x10\x01\x12\r\n\tEZCONNECT\x10\x02\x12\x11\n\rEZCONNECTPLUS\x10\x03\"O\n\x11TLSAuthentication\x12\"\n\x1eTLS_AUTHENTICATION_UNSPECIFIED\x10\x00\x12\n\n\x06SERVER\x10\x01\x12\n\n\x06MUTUAL\x10\x02\"P\n\x14\x41llConnectionStrings\x12\x11\n\x04high\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03low\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06medium\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xad\x02\n AutonomousDatabaseConnectionUrls\x12\x15\n\x08\x61pex_uri\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17\x64\x61tabase_transforms_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10graph_studio_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12*\n\x1dmachine_learning_notebook_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x31\n$machine_learning_user_management_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0cmongo_db_uri\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08ords_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsql_dev_web_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\"\xcd\x02\n AutonomousDatabaseStandbySummary\x12\x39\n\x11lag_time_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1e\n\x11lifecycle_details\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32%.google.cloud.oracledatabase.v1.StateB\x03\xe0\x41\x03\x12\x45\n\x1c\x64\x61ta_guard_role_changed_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12L\n#disaster_recovery_role_changed_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xae\x01\n\x19ScheduledOperationDetails\x12\x30\n\x0b\x64\x61y_of_week\x18\x01 \x01(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x03\x12/\n\nstart_time\x18\x04 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x03\x12.\n\tstop_time\x18\x05 \x01(\x0b\x32\x16.google.type.TimeOfDayB\x03\xe0\x41\x03*B\n\x0cGenerateType\x12\x1d\n\x19GENERATE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\n\n\x06SINGLE\x10\x02*\xab\x03\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08STOPPING\x10\x03\x12\x0b\n\x07STOPPED\x10\x04\x12\x0c\n\x08STARTING\x10\x05\x12\x0f\n\x0bTERMINATING\x10\x06\x12\x0e\n\nTERMINATED\x10\x07\x12\x0f\n\x0bUNAVAILABLE\x10\x08\x12\x17\n\x13RESTORE_IN_PROGRESS\x10\t\x12\x12\n\x0eRESTORE_FAILED\x10\n\x12\x16\n\x12\x42\x41\x43KUP_IN_PROGRESS\x10\x0b\x12\x15\n\x11SCALE_IN_PROGRESS\x10\x0c\x12\x1d\n\x19\x41VAILABLE_NEEDS_ATTENTION\x10\r\x12\x0c\n\x08UPDATING\x10\x0e\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x0f\x12\x0e\n\nRESTARTING\x10\x10\x12\x0e\n\nRECREATING\x10\x11\x12\x1b\n\x17ROLE_CHANGE_IN_PROGRESS\x10\x12\x12\r\n\tUPGRADING\x10\x13\x12\x10\n\x0cINACCESSIBLE\x10\x14\x12\x0b\n\x07STANDBY\x10\x15*\xaa\x01\n\x17OperationsInsightsState\x12)\n%OPERATIONS_INSIGHTS_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06*N\n\nDBWorkload\x12\x1b\n\x17\x44\x42_WORKLOAD_UNSPECIFIED\x10\x00\x12\x08\n\x04OLTP\x10\x01\x12\x06\n\x02\x44W\x10\x02\x12\x07\n\x03\x41JD\x10\x03\x12\x08\n\x04\x41PEX\x10\x04\x42\xf1\x01\n\"com.google.cloud.oracledatabase.v1B\x17\x41utonomousDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - AutonomousDatabase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabase").msgclass - SourceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.SourceConfig").msgclass - AutonomousDatabaseProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties").msgclass - AutonomousDatabaseProperties::DatabaseEdition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition").enummodule - AutonomousDatabaseProperties::LicenseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType").enummodule - AutonomousDatabaseProperties::MaintenanceScheduleType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType").enummodule - AutonomousDatabaseProperties::LocalDisasterRecoveryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType").enummodule - AutonomousDatabaseProperties::DataSafeState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState").enummodule - AutonomousDatabaseProperties::DatabaseManagementState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState").enummodule - AutonomousDatabaseProperties::OpenMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode").enummodule - AutonomousDatabaseProperties::PermissionLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel").enummodule - AutonomousDatabaseProperties::RefreshableMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode").enummodule - AutonomousDatabaseProperties::RefreshableState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState").enummodule - AutonomousDatabaseProperties::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role").enummodule - EncryptionKeyHistoryEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.EncryptionKeyHistoryEntry").msgclass - EncryptionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.EncryptionKey").msgclass - EncryptionKey::Provider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.EncryptionKey.Provider").enummodule - AutonomousDatabaseApex = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseApex").msgclass - AutonomousDatabaseConnectionStrings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings").msgclass - DatabaseConnectionStringProfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile").msgclass - DatabaseConnectionStringProfile::ConsumerGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup").enummodule - DatabaseConnectionStringProfile::HostFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat").enummodule - DatabaseConnectionStringProfile::Protocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol").enummodule - DatabaseConnectionStringProfile::SessionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode").enummodule - DatabaseConnectionStringProfile::SyntaxFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat").enummodule - DatabaseConnectionStringProfile::TLSAuthentication = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication").enummodule - AllConnectionStrings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AllConnectionStrings").msgclass - AutonomousDatabaseConnectionUrls = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls").msgclass - AutonomousDatabaseStandbySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary").msgclass - ScheduledOperationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ScheduledOperationDetails").msgclass - GenerateType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GenerateType").enummodule - State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.State").enummodule - OperationsInsightsState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OperationsInsightsState").enummodule - DBWorkload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DBWorkload").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb deleted file mode 100644 index bedf6a362cb2..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_backup_pb.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/autonomous_db_backup.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n9google/cloud/oracledatabase/v1/autonomous_db_backup.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xda\x04\n\x18\x41utonomousDatabaseBackup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12U\n\x13\x61utonomous_database\x18\x02 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12[\n\nproperties\x18\x04 \x01(\x0b\x32\x42.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupPropertiesB\x03\xe0\x41\x01\x12Y\n\x06labels\x18\x05 \x03(\x0b\x32\x44.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xd1\x01\xea\x41\xcd\x01\n6oracledatabase.googleapis.com/AutonomousDatabaseBackup\x12^projects/{project}/locations/{location}/autonomousDatabaseBackups/{autonomous_database_backup}*\x19\x61utonomousDatabaseBackups2\x18\x61utonomousDatabaseBackup\"\xf2\x07\n\"AutonomousDatabaseBackupProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15retention_period_days\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0e\x63ompartment_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x64\x61tabase_size_tb\x18\x04 \x01(\x02\x42\x03\xe0\x41\x03\x12\x17\n\ndb_version\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12 \n\x13is_long_term_backup\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12 \n\x13is_automatic_backup\x18\x07 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\ris_restorable\x18\x08 \x01(\x08\x42\x03\xe0\x41\x03\x12\x19\n\x0ckey_store_id\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10key_store_wallet\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nkms_key_id\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12kms_key_version_id\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11lifecycle_details\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x66\n\x0flifecycle_state\x18\x0e \x01(\x0e\x32H.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.StateB\x03\xe0\x41\x03\x12\x14\n\x07size_tb\x18\x0f \x01(\x02\x42\x03\xe0\x41\x03\x12<\n\x13\x61vailable_till_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Z\n\x04type\x18\x13 \x01(\x0e\x32G.google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.TypeB\x03\xe0\x41\x03\x12\x15\n\x08vault_id\x18\x14 \x01(\tB\x03\xe0\x41\x01\"m\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x12\x0b\n\x07\x44\x45LETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08UPDATING\x10\x07\"F\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINCREMENTAL\x10\x01\x12\x08\n\x04\x46ULL\x10\x02\x12\r\n\tLONG_TERM\x10\x03\x42\xf1\x01\n\"com.google.cloud.oracledatabase.v1B\x17\x41utonomousDbBackupProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - AutonomousDatabaseBackup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseBackup").msgclass - AutonomousDatabaseBackupProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties").msgclass - AutonomousDatabaseBackupProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State").enummodule - AutonomousDatabaseBackupProperties::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb deleted file mode 100644 index f6b11887ea0a..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/autonomous_db_version_pb.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/autonomous_db_version.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/cloud/oracledatabase/v1/autonomous_database_pb' - - -descriptor_data = "\n:google/cloud/oracledatabase/v1/autonomous_db_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/oracledatabase/v1/autonomous_database.proto\"\xda\x02\n\x13\x41utonomousDbVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07version\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x44\n\x0b\x64\x62_workload\x18\x04 \x01(\x0e\x32*.google.cloud.oracledatabase.v1.DBWorkloadB\x03\xe0\x41\x03\x12\x19\n\x0cworkload_uri\x18\x05 \x01(\tB\x03\xe0\x41\x03:\xb8\x01\xea\x41\xb4\x01\n1oracledatabase.googleapis.com/AutonomousDbVersion\x12Tprojects/{project}/locations/{location}/autonomousDbVersions/{autonomous_db_version}*\x14\x61utonomousDbVersions2\x13\x61utonomousDbVersionB\xf2\x01\n\"com.google.cloud.oracledatabase.v1B\x18\x41utonomousDbVersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - AutonomousDbVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.AutonomousDbVersion").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/common_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/common_pb.rb deleted file mode 100644 index 67f8e8a7253c..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/common_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/common.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n+google/cloud/oracledatabase/v1/common.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\"%\n\x0f\x43ustomerContact\x12\x12\n\x05\x65mail\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\x93\x02\n\x11IdentityConnector\x12 \n\x13service_agent_email\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12`\n\x10\x63onnection_state\x18\x02 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.IdentityConnector.ConnectionStateB\x03\xe0\x41\x03\"z\n\x0f\x43onnectionState\x12 \n\x1c\x43ONNECTION_STATE_UNSPECIFIED\x10\x00\x12\r\n\tCONNECTED\x10\x01\x12\x17\n\x13PARTIALLY_CONNECTED\x10\x02\x12\x10\n\x0c\x44ISCONNECTED\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x9b\x01\n\x1b\x44\x61taCollectionOptionsCommon\x12*\n\x1dis_diagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12)\n\x1cis_health_monitoring_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12%\n\x18is_incident_logs_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01*]\n\x0c\x43omputeModel\x12\x1d\n\x19\x43OMPUTE_MODEL_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43OMPUTE_MODEL_ECPU\x10\x01\x12\x16\n\x12\x43OMPUTE_MODEL_OCPU\x10\x02\x42\xe5\x01\n\"com.google.cloud.oracledatabase.v1B\x0b\x43ommonProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - CustomerContact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CustomerContact").msgclass - IdentityConnector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IdentityConnector").msgclass - IdentityConnector::ConnectionState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.IdentityConnector.ConnectionState").enummodule - DataCollectionOptionsCommon = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DataCollectionOptionsCommon").msgclass - ComputeModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ComputeModel").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb deleted file mode 100644 index b444310405ac..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_character_set_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/database_character_set.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n;google/cloud/oracledatabase/v1/database_character_set.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc1\x03\n\x14\x44\x61tabaseCharacterSet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x66\n\x12\x63haracter_set_type\x18\x02 \x01(\x0e\x32\x45.google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetTypeB\x03\xe0\x41\x03\x12\x1a\n\rcharacter_set\x18\x03 \x01(\tB\x03\xe0\x41\x03\"R\n\x10\x43haracterSetType\x12\"\n\x1e\x43HARACTER_SET_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x41TABASE\x10\x01\x12\x0c\n\x08NATIONAL\x10\x02:\xbd\x01\xea\x41\xb9\x01\n2oracledatabase.googleapis.com/DatabaseCharacterSet\x12Vprojects/{project}/locations/{location}/databaseCharacterSets/{database_character_set}*\x15\x64\x61tabaseCharacterSets2\x14\x64\x61tabaseCharacterSet\"\xb4\x01\n ListDatabaseCharacterSetsRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32oracledatabase.googleapis.com/DatabaseCharacterSet\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x93\x01\n!ListDatabaseCharacterSetsResponse\x12U\n\x17\x64\x61tabase_character_sets\x18\x01 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.DatabaseCharacterSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xf3\x01\n\"com.google.cloud.oracledatabase.v1B\x19\x44\x61tabaseCharacterSetProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - DatabaseCharacterSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseCharacterSet").msgclass - DatabaseCharacterSet::CharacterSetType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseCharacterSet.CharacterSetType").enummodule - ListDatabaseCharacterSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest").msgclass - ListDatabaseCharacterSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb deleted file mode 100644 index fd06468cdb9f..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/database_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/database.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/cloud/oracledatabase/v1/pluggable_database_pb' -require 'google/protobuf/timestamp_pb' -require 'google/type/dayofweek_pb' - - -descriptor_data = "\n-google/cloud/oracledatabase/v1/database.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x37google/cloud/oracledatabase/v1/pluggable_database.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\"\xcd\x08\n\x08\x44\x61tabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07\x64\x62_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x62_unique_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x61\x64min_password\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12Y\n\x1d\x61\x64min_password_secret_version\x18\x11 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12 \n\x13tde_wallet_password\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12^\n\"tde_wallet_password_secret_version\x18\x12 \x01(\tB2\xe0\x41\x01\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\x12\x1a\n\rcharacter_set\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0encharacter_set\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07oci_url\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\nproperties\x18\n \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DatabasePropertiesB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x61tabase_id\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64\x62_home_name\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x13ops_insights_status\x18\x0e \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatusB\x03\xe0\x41\x03\x12\"\n\x15pluggable_database_id\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12$\n\x17pluggable_database_name\x18\x10 \x01(\tB\x03\xe0\x41\x01\"\xac\x01\n\x18OperationsInsightsStatus\x12*\n&OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06:~\xea\x41{\n&oracledatabase.googleapis.com/Database\x12\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/Database\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"m\n\x15ListDatabasesResponse\x12;\n\tdatabases\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.Database\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - Database = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.Database").msgclass - Database::OperationsInsightsStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus").enummodule - DatabaseProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseProperties").msgclass - DatabaseProperties::DatabaseLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState").enummodule - DbBackupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig").msgclass - DbBackupConfig::BackupDestinationDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationDetails").msgclass - DbBackupConfig::BackupDestinationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig.BackupDestinationType").enummodule - DbBackupConfig::BackupWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig.BackupWindow").enummodule - DbBackupConfig::BackupDeletionPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbBackupConfig.BackupDeletionPolicy").enummodule - GetDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetDatabaseRequest").msgclass - ListDatabasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDatabasesRequest").msgclass - ListDatabasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDatabasesResponse").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_node_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_node_pb.rb deleted file mode 100644 index f2e89492c238..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_node_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/db_node.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n,google/cloud/oracledatabase/v1/db_node.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe0\x02\n\x06\x44\x62Node\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12I\n\nproperties\x18\x03 \x01(\x0b\x32\x30.google.cloud.oracledatabase.v1.DbNodePropertiesB\x03\xe0\x41\x01:\xf7\x01\xea\x41\xf3\x01\n$oracledatabase.googleapis.com/DbNode\x12\\projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node}\x12\\projects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}/dbNodes/{db_node}*\x07\x64\x62Nodes2\x06\x64\x62Node\"\xf6\x03\n\x10\x44\x62NodeProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nocpu_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x16\n\x0ememory_size_gb\x18\x03 \x01(\x05\x12$\n\x17\x64\x62_node_storage_size_gb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0e\x64\x62_server_ocid\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08hostname\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12J\n\x05state\x18\t \x01(\x0e\x32\x36.google.cloud.oracledatabase.v1.DbNodeProperties.StateB\x03\xe0\x41\x03\x12\x1c\n\x14total_cpu_core_count\x18\n \x01(\x05\x12\x34\n\x0b\x63reate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\xa3\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08STOPPING\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\x0c\n\x08STARTING\x10\x06\x12\x0f\n\x0bTERMINATING\x10\x07\x12\x0e\n\nTERMINATED\x10\x08\x12\n\n\x06\x46\x41ILED\x10\tB\xe5\x01\n\"com.google.cloud.oracledatabase.v1B\x0b\x44\x62NodeProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - DbNode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbNode").msgclass - DbNodeProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbNodeProperties").msgclass - DbNodeProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbNodeProperties.State").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_server_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_server_pb.rb deleted file mode 100644 index 3436607e9032..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_server_pb.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/db_server.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n.google/cloud/oracledatabase/v1/db_server.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc3\x02\n\x08\x44\x62Server\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12K\n\nproperties\x18\x03 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DbServerPropertiesB\x03\xe0\x41\x01:\xbb\x01\xea\x41\xb7\x01\n&oracledatabase.googleapis.com/DbServer\x12xprojects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server}*\tdbServers2\x08\x64\x62Server\"\xd3\x03\n\x12\x44\x62ServerProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nocpu_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0emax_ocpu_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0ememory_size_gb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12max_memory_size_gb\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17\x64\x62_node_storage_size_gb\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12(\n\x1bmax_db_node_storage_size_gb\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x15\n\x08vm_count\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12L\n\x05state\x18\t \x01(\x0e\x32\x38.google.cloud.oracledatabase.v1.DbServerProperties.StateB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x62_node_ids\x18\n \x03(\tB\x03\xe0\x41\x03\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0f\n\x0bUNAVAILABLE\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x42\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDbServerProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - DbServer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbServer").msgclass - DbServerProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbServerProperties").msgclass - DbServerProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbServerProperties.State").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb deleted file mode 100644 index 2470f1dfbb80..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\nCgoogle/cloud/oracledatabase/v1/db_system_initial_storage_size.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xee\x02\n\x1a\x44\x62SystemInitialStorageSize\x12\x11\n\x04name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12]\n\nproperties\x18\x03 \x01(\x0b\x32\x44.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizePropertiesB\x03\xe0\x41\x03:\xdd\x01\xea\x41\xd9\x01\n8oracledatabase.googleapis.com/DbSystemInitialStorageSize\x12\x64projects/{project}/locations/{location}/dbSystemInitialStorageSizes/{db_system_initial_storage_size}*\x1b\x64\x62SystemInitialStorageSizes2\x1a\x64\x62SystemInitialStorageSize\"\xcf\x04\n$DbSystemInitialStorageSizeProperties\x12w\n\x12storage_management\x18\x01 \x01(\x0e\x32V.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagementB\x03\xe0\x41\x03\x12g\n\nshape_type\x18\x02 \x01(\x0e\x32N.google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeTypeB\x03\xe0\x41\x03\x12U\n\x14storage_size_details\x18\x03 \x03(\x0b\x32\x32.google.cloud.oracledatabase.v1.StorageSizeDetailsB\x03\xe0\x41\x03\x12h\n\'launch_from_backup_storage_size_details\x18\x04 \x03(\x0b\x32\x32.google.cloud.oracledatabase.v1.StorageSizeDetailsB\x03\xe0\x41\x03\"I\n\x11StorageManagement\x12\"\n\x1eSTORAGE_MANAGEMENT_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41SM\x10\x01\x12\x07\n\x03LVM\x10\x02\"9\n\tShapeType\x12\x1a\n\x16SHAPE_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0cSTANDARD_X86\x10\x01\"b\n\x12StorageSizeDetails\x12%\n\x18\x64\x61ta_storage_size_in_gbs\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18reco_storage_size_in_gbs\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\"\xab\x01\n&ListDbSystemInitialStorageSizesRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/DbSystemInitialStorageSize\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa7\x01\n\'ListDbSystemInitialStorageSizesResponse\x12\x63\n\x1f\x64\x62_system_initial_storage_sizes\x18\x01 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.DbSystemInitialStorageSize\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xf9\x01\n\"com.google.cloud.oracledatabase.v1B\x1f\x44\x62SystemInitialStorageSizeProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - DbSystemInitialStorageSize = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemInitialStorageSize").msgclass - DbSystemInitialStorageSizeProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties").msgclass - DbSystemInitialStorageSizeProperties::StorageManagement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.StorageManagement").enummodule - DbSystemInitialStorageSizeProperties::ShapeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemInitialStorageSizeProperties.ShapeType").enummodule - StorageSizeDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.StorageSizeDetails").msgclass - ListDbSystemInitialStorageSizesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesRequest").msgclass - ListDbSystemInitialStorageSizesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb deleted file mode 100644 index 41caf3c91bbc..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_pb.rb +++ /dev/null @@ -1,42 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/db_system.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/field_info_pb' -require 'google/api/resource_pb' -require 'google/cloud/oracledatabase/v1/database_pb' -require 'google/protobuf/timestamp_pb' -require 'google/type/datetime_pb' - - -descriptor_data = "\n.google/cloud/oracledatabase/v1/db_system.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a-google/cloud/oracledatabase/v1/database.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x93\x05\n\x08\x44\x62System\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12K\n\nproperties\x18\x02 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.DbSystemPropertiesB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x34.google.cloud.oracledatabase.v1.DbSystem.LabelsEntryB\x03\xe0\x41\x01\x12\x45\n\x0bodb_network\x18\x05 \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x06 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1b\n\x0e\x65ntitlement_id\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x7f\xea\x41|\n&oracledatabase.googleapis.com/DbSystem\x12=projects/{project}/locations/{location}/dbSystems/{db_system}*\tdbSystems2\x08\x64\x62System\"\xe4\x0c\n\x12\x44\x62SystemProperties\x12\x12\n\x05shape\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcompute_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12)\n\x1cinitial_data_storage_size_gb\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12i\n\x10\x64\x61tabase_edition\x18\x04 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEditionB\x03\xe0\x41\x02\x12[\n\rlicense_model\x18\x05 \x01(\x0e\x32?.google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModelB\x03\xe0\x41\x02\x12\x1c\n\x0fssh_public_keys\x18\x06 \x03(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fhostname_prefix\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08hostname\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nprivate_ip\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x17\x64\x61ta_collection_options\x18\n \x01(\x0b\x32=.google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystemB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x0b \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\x12g\n\x0flifecycle_state\x18\x0c \x01(\x0e\x32I.google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleStateB\x03\xe0\x41\x03\x12<\n\x07\x64\x62_home\x18\r \x01(\x0b\x32&.google.cloud.oracledatabase.v1.DbHomeB\x03\xe0\x41\x01\x12\x11\n\x04ocid\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0ememory_size_gb\x18\x0f \x01(\x05\x42\x03\xe0\x41\x01\x12[\n\rcompute_model\x18\x10 \x01(\x0e\x32?.google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModelB\x03\xe0\x41\x01\x12!\n\x14\x64\x61ta_storage_size_gb\x18\x11 \x01(\x05\x42\x03\xe0\x41\x01\x12!\n\x14reco_storage_size_gb\x18\x12 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x64omain\x18\x13 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x01\x12O\n\x11\x64\x62_system_options\x18\x15 \x01(\x0b\x32/.google.cloud.oracledatabase.v1.DbSystemOptionsB\x03\xe0\x41\x01\"\x9c\x01\n\x17\x44\x62SystemDatabaseEdition\x12*\n&DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED\x10\x00\x12\x14\n\x10STANDARD_EDITION\x10\x01\x12\x16\n\x12\x45NTERPRISE_EDITION\x10\x02\x12\'\n#ENTERPRISE_EDITION_HIGH_PERFORMANCE\x10\x03\"_\n\x0cLicenseModel\x12\x1d\n\x19LICENSE_MODEL_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\xee\x01\n\x16\x44\x62SystemLifecycleState\x12)\n%DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08MIGRATED\x10\x07\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x08\x12\x13\n\x0fNEEDS_ATTENTION\x10\t\x12\r\n\tUPGRADING\x10\n\"A\n\x0c\x43omputeModel\x12\x1d\n\x19\x43OMPUTE_MODEL_UNSPECIFIED\x10\x00\x12\x08\n\x04\x45\x43PU\x10\x01\x12\x08\n\x04OCPU\x10\x02\"r\n\x1d\x44\x61taCollectionOptionsDbSystem\x12*\n\x1dis_diagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12%\n\x18is_incident_logs_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\xc0\x01\n\x0f\x44\x62SystemOptions\x12\x62\n\x12storage_management\x18\x01 \x01(\x0e\x32\x41.google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagementB\x03\xe0\x41\x01\"I\n\x11StorageManagement\x12\"\n\x1eSTORAGE_MANAGEMENT_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41SM\x10\x01\x12\x07\n\x03LVM\x10\x02\"\xa7\x01\n\x06\x44\x62Home\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\ndb_version\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12?\n\x08\x64\x61tabase\x18\x03 \x01(\x0b\x32(.google.cloud.oracledatabase.v1.DatabaseB\x03\xe0\x41\x02\x12(\n\x1bis_unified_auditing_enabled\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xd5\x01\n\x15\x43reateDbSystemRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbSystem\x12\x19\n\x0c\x64\x62_system_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12@\n\tdb_system\x18\x03 \x01(\x0b\x32(.google.cloud.oracledatabase.v1.DbSystemB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"v\n\x15\x44\x65leteDbSystemRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&oracledatabase.googleapis.com/DbSystem\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"R\n\x12GetDbSystemRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&oracledatabase.googleapis.com/DbSystem\"\xb3\x01\n\x14ListDbSystemsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbSystem\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x15ListDbSystemsResponse\x12<\n\ndb_systems\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.DbSystem\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\tB\xe7\x01\n\"com.google.cloud.oracledatabase.v1B\rDbSystemProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - DbSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystem").msgclass - DbSystemProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties").msgclass - DbSystemProperties::DbSystemDatabaseEdition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemDatabaseEdition").enummodule - DbSystemProperties::LicenseModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties.LicenseModel").enummodule - DbSystemProperties::DbSystemLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties.DbSystemLifecycleState").enummodule - DbSystemProperties::ComputeModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemProperties.ComputeModel").enummodule - DataCollectionOptionsDbSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DataCollectionOptionsDbSystem").msgclass - DbSystemOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemOptions").msgclass - DbSystemOptions::StorageManagement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemOptions.StorageManagement").enummodule - DbHome = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbHome").msgclass - CreateDbSystemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateDbSystemRequest").msgclass - DeleteDbSystemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteDbSystemRequest").msgclass - GetDbSystemRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetDbSystemRequest").msgclass - ListDbSystemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemsRequest").msgclass - ListDbSystemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemsResponse").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb deleted file mode 100644 index a876bf722319..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_system_shape_pb.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/db_system_shape.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n4google/cloud/oracledatabase/v1/db_system_shape.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc5\x04\n\rDbSystemShape\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x12\n\x05shape\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0emin_node_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0emax_node_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11min_storage_count\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11max_storage_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12*\n\x1d\x61vailable_core_count_per_node\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12)\n\x1c\x61vailable_memory_per_node_gb\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19\x61vailable_data_storage_tb\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17min_core_count_per_node\x18\n \x01(\x05\x42\x03\xe0\x41\x01\x12#\n\x16min_memory_per_node_gb\x18\x0b \x01(\x05\x42\x03\xe0\x41\x01\x12,\n\x1fmin_db_node_storage_per_node_gb\x18\x0c \x01(\x05\x42\x03\xe0\x41\x01:\x9a\x01\xea\x41\x96\x01\n+oracledatabase.googleapis.com/DbSystemShape\x12Hprojects/{project}/locations/{location}/dbSystemShapes/{db_system_shape}*\x0e\x64\x62SystemShapes2\rdbSystemShapeB\xec\x01\n\"com.google.cloud.oracledatabase.v1B\x12\x44\x62SystemShapeProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - DbSystemShape = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbSystemShape").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_version_pb.rb deleted file mode 100644 index 52751961ba7a..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/db_version_pb.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/db_version.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n/google/cloud/oracledatabase/v1/db_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf4\x01\n\tDbVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12L\n\nproperties\x18\x02 \x01(\x0b\x32\x33.google.cloud.oracledatabase.v1.DbVersionPropertiesB\x03\xe0\x41\x03:\x85\x01\xea\x41\x81\x01\n\'oracledatabase.googleapis.com/DbVersion\x12?projects/{project}/locations/{location}/dbVersions/{db_version}*\ndbVersions2\tdbVersion\"\xb7\x01\n\x13\x44\x62VersionProperties\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12(\n\x1bis_latest_for_major_version\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12\x19\n\x0csupports_pdb\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x12\"\n\x15is_preview_db_version\x18\x04 \x01(\x08\x42\x03\xe0\x41\x03\x12!\n\x14is_upgrade_supported\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\"\x9e\x01\n\x15ListDbVersionsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/DbVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"q\n\x16ListDbVersionsResponse\x12>\n\x0b\x64\x62_versions\x18\x01 \x03(\x0b\x32).google.cloud.oracledatabase.v1.DbVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xe8\x01\n\"com.google.cloud.oracledatabase.v1B\x0e\x44\x62VersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - DbVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbVersion").msgclass - DbVersionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DbVersionProperties").msgclass - ListDbVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbVersionsRequest").msgclass - ListDbVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbVersionsResponse").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb deleted file mode 100644 index 9a1b39c1f794..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/entitlement_pb.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/entitlement.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n0google/cloud/oracledatabase/v1/entitlement.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x86\x04\n\x0b\x45ntitlement\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12R\n\x15\x63loud_account_details\x18\x02 \x01(\x0b\x32\x33.google.cloud.oracledatabase.v1.CloudAccountDetails\x12\x1b\n\x0e\x65ntitlement_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x05state\x18\x04 \x01(\x0e\x32\x31.google.cloud.oracledatabase.v1.Entitlement.StateB\x03\xe0\x41\x03\"\x9a\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41\x43\x43OUNT_NOT_LINKED\x10\x01\x12\x16\n\x12\x41\x43\x43OUNT_NOT_ACTIVE\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\x15\n\x11\x41\x43\x43OUNT_SUSPENDED\x10\x04\x12\'\n#NOT_APPROVED_IN_PRIVATE_MARKETPLACE\x10\x05:\x8e\x01\xea\x41\x8a\x01\n)oracledatabase.googleapis.com/Entitlement\x12\x42projects/{project}/locations/{location}/entitlements/{entitlement}*\x0c\x65ntitlements2\x0b\x65ntitlement\"\xe5\x01\n\x13\x43loudAccountDetails\x12\x1a\n\rcloud_account\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12&\n\x19\x63loud_account_home_region\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12+\n\x19link_existing_account_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03H\x00\x88\x01\x01\x12&\n\x14\x61\x63\x63ount_creation_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x42\x1c\n\x1a_link_existing_account_uriB\x17\n\x15_account_creation_uriB\xea\x01\n\"com.google.cloud.oracledatabase.v1B\x10\x45ntitlementProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - Entitlement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.Entitlement").msgclass - Entitlement::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.Entitlement.State").enummodule - CloudAccountDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudAccountDetails").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb deleted file mode 100644 index e5f761003eed..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadata_infra_pb.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/exadata_infra.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/field_info_pb' -require 'google/api/resource_pb' -require 'google/cloud/oracledatabase/v1/common_pb' -require 'google/protobuf/timestamp_pb' -require 'google/type/dayofweek_pb' -require 'google/type/month_pb' - - -descriptor_data = "\n2google/cloud/oracledatabase/v1/exadata_infra.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/type/dayofweek.proto\x1a\x17google/type/month.proto\"\x84\x05\n\x1a\x43loudExadataInfrastructure\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fgcp_oracle_zone\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x65ntitlement_id\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12]\n\nproperties\x18\x05 \x01(\x0b\x32\x44.google.cloud.oracledatabase.v1.CloudExadataInfrastructurePropertiesB\x03\xe0\x41\x01\x12[\n\x06labels\x18\x06 \x03(\x0b\x32\x46.google.cloud.oracledatabase.v1.CloudExadataInfrastructure.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xdb\x01\xea\x41\xd7\x01\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x62projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}*\x1b\x63loudExadataInfrastructures2\x1a\x63loudExadataInfrastructure\"\xb5\x0b\n$CloudExadataInfrastructureProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rcompute_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1a\n\rstorage_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x15total_storage_size_gb\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12&\n\x19\x61vailable_storage_size_gb\x18\x05 \x01(\x05\x42\x03\xe0\x41\x03\x12R\n\x12maintenance_window\x18\x06 \x01(\x0b\x32\x31.google.cloud.oracledatabase.v1.MaintenanceWindowB\x03\xe0\x41\x01\x12^\n\x05state\x18\x07 \x01(\x0e\x32J.google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.StateB\x03\xe0\x41\x03\x12\x12\n\x05shape\x18\x08 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07oci_url\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x16\n\tcpu_count\x18\n \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_cpu_count\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12\x1b\n\x0ememory_size_gb\x18\x0c \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rmax_memory_gb\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12$\n\x17\x64\x62_node_storage_size_gb\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12(\n\x1bmax_db_node_storage_size_gb\x18\x0f \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x10 \x01(\x01\x42\x03\xe0\x41\x03\x12 \n\x13max_data_storage_tb\x18\x11 \x01(\x01\x42\x03\xe0\x41\x03\x12$\n\x17\x61\x63tivated_storage_count\x18\x12 \x01(\x05\x42\x03\xe0\x41\x03\x12%\n\x18\x61\x64\x64itional_storage_count\x18\x13 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1e\n\x11\x64\x62_server_version\x18\x14 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16storage_server_version\x18\x15 \x01(\tB\x03\xe0\x41\x03\x12$\n\x17next_maintenance_run_id\x18\x16 \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x19next_maintenance_run_time\x18\x17 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12K\n\"next_security_maintenance_run_time\x18\x18 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12O\n\x11\x63ustomer_contacts\x18\x19 \x03(\x0b\x32/.google.cloud.oracledatabase.v1.CustomerContactB\x03\xe0\x41\x01\x12+\n\x1emonthly_storage_server_version\x18\x1a \x01(\tB\x03\xe0\x41\x03\x12&\n\x19monthly_db_server_version\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12H\n\rcompute_model\x18\x1f \x01(\x0e\x32,.google.cloud.oracledatabase.v1.ComputeModelB\x03\xe0\x41\x03\x12!\n\x14\x64\x61tabase_server_type\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12 \n\x13storage_server_type\x18\x1e \x01(\tB\x03\xe0\x41\x03\"\x97\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"\xa5\x05\n\x11MaintenanceWindow\x12\x66\n\npreference\x18\x01 \x01(\x0e\x32M.google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreferenceB\x03\xe0\x41\x01\x12\'\n\x06months\x18\x02 \x03(\x0e\x32\x12.google.type.MonthB\x03\xe0\x41\x01\x12\x1b\n\x0eweeks_of_month\x18\x03 \x03(\x05\x42\x03\xe0\x41\x01\x12\x31\n\x0c\x64\x61ys_of_week\x18\x04 \x03(\x0e\x32\x16.google.type.DayOfWeekB\x03\xe0\x41\x01\x12\x19\n\x0chours_of_day\x18\x05 \x03(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0elead_time_week\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12Z\n\rpatching_mode\x18\x07 \x01(\x0e\x32>.google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingModeB\x03\xe0\x41\x01\x12\'\n\x1a\x63ustom_action_timeout_mins\x18\x08 \x01(\x05\x42\x03\xe0\x41\x01\x12-\n is_custom_action_timeout_enabled\x18\t \x01(\x08\x42\x03\xe0\x41\x01\"v\n\x1bMaintenanceWindowPreference\x12-\n)MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43USTOM_PREFERENCE\x10\x01\x12\x11\n\rNO_PREFERENCE\x10\x02\"K\n\x0cPatchingMode\x12\x1d\n\x19PATCHING_MODE_UNSPECIFIED\x10\x00\x12\x0b\n\x07ROLLING\x10\x01\x12\x0f\n\x0bNON_ROLLING\x10\x02\x42\xf9\x01\n\"com.google.cloud.oracledatabase.v1B\x1f\x43loudExadataInfrastructureProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - CloudExadataInfrastructure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudExadataInfrastructure").msgclass - CloudExadataInfrastructureProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties").msgclass - CloudExadataInfrastructureProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State").enummodule - MaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.MaintenanceWindow").msgclass - MaintenanceWindow::MaintenanceWindowPreference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference").enummodule - MaintenanceWindow::PatchingMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb deleted file mode 100644 index 357d85708e04..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exadb_vm_cluster_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/exadb_vm_cluster.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/cloud/oracledatabase/v1/common_pb' -require 'google/protobuf/timestamp_pb' -require 'google/type/datetime_pb' - - -descriptor_data = "\n5google/cloud/oracledatabase/v1/exadb_vm_cluster.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x8b\x06\n\x0e\x45xadbVmCluster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12Q\n\nproperties\x18\x02 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.ExadbVmClusterPropertiesB\x03\xe0\x41\x02\x12\x1f\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12O\n\x06labels\x18\x05 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.ExadbVmCluster.LabelsEntryB\x03\xe0\x41\x01\x12H\n\x0bodb_network\x18\x06 \x01(\tB3\xe0\x41\x01\xe0\x41\x05\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x46\n\nodb_subnet\x18\x07 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12M\n\x11\x62\x61\x63kup_odb_subnet\x18\x08 \x01(\tB2\xe0\x41\x02\xe0\x41\x05\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1c\n\x0c\x64isplay_name\x18\t \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65ntitlement_id\x18\x0b \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x01\xea\x41\x9b\x01\n,oracledatabase.googleapis.com/ExadbVmCluster\x12Jprojects/{project}/locations/{location}/exadbVmClusters/{exadb_vm_cluster}*\x0f\x65xadbVmClusters2\x0e\x65xadbVmCluster\"A\n\x1c\x45xadbVmClusterStorageDetails\x12!\n\x14size_in_gbs_per_node\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"\xc7\x0b\n\x18\x45xadbVmClusterProperties\x12\x1c\n\x0c\x63luster_name\x18\x01 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05\x12\x1d\n\rgrid_image_id\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x17\n\nnode_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x02\x12+\n\x1b\x65nabled_ecpu_count_per_node\x18\x14 \x01(\x05\x42\x06\xe0\x41\x02\xe0\x41\x05\x12.\n\x1e\x61\x64\x64itional_ecpu_count_per_node\x18\x15 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x64\n\x16vm_file_system_storage\x18\x06 \x01(\x0b\x32<.google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetailsB\x06\xe0\x41\x02\xe0\x41\x05\x12\x64\n\rlicense_model\x18\x07 \x01(\x0e\x32\x45.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModelB\x06\xe0\x41\x01\xe0\x41\x05\x12\x62\n\x19\x65xascale_db_storage_vault\x18\x08 \x01(\tB?\xe0\x41\x02\xe0\x41\x05\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x1f\n\x0fhostname_prefix\x18\t \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x15\n\x08hostname\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x0fssh_public_keys\x18\x0b \x03(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x64\n\x17\x64\x61ta_collection_options\x18\x0c \x01(\x0b\x32;.google.cloud.oracledatabase.v1.DataCollectionOptionsCommonB\x06\xe0\x41\x01\xe0\x41\x05\x12\x30\n\ttime_zone\x18\r \x01(\x0b\x32\x15.google.type.TimeZoneB\x06\xe0\x41\x01\xe0\x41\x05\x12s\n\x0flifecycle_state\x18\x0e \x01(\x0e\x32U.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleStateB\x03\xe0\x41\x03\x12h\n\x0fshape_attribute\x18\x0f \x01(\x0e\x32G.google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttributeB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1b\n\x0ememory_size_gb\x18\x10 \x01(\x05\x42\x03\xe0\x41\x03\x12&\n\x16scan_listener_port_tcp\x18\x11 \x01(\x05\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x14\n\x07oci_uri\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngi_version\x18\x13 \x01(\tB\x03\xe0\x41\x03\"_\n\x0cLicenseModel\x12\x1d\n\x19LICENSE_MODEL_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"\xc9\x01\n\x1c\x45xadbVmClusterLifecycleState\x12\x30\n,EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"W\n\x0eShapeAttribute\x12\x1f\n\x1bSHAPE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x11\n\rSMART_STORAGE\x10\x01\x12\x11\n\rBLOCK_STORAGE\x10\x02\x42\xed\x01\n\"com.google.cloud.oracledatabase.v1B\x13\x45xadbVmClusterProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - ExadbVmCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmCluster").msgclass - ExadbVmClusterStorageDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterStorageDetails").msgclass - ExadbVmClusterProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterProperties").msgclass - ExadbVmClusterProperties::LicenseModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterProperties.LicenseModel").enummodule - ExadbVmClusterProperties::ExadbVmClusterLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ExadbVmClusterLifecycleState").enummodule - ExadbVmClusterProperties::ShapeAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExadbVmClusterProperties.ShapeAttribute").enummodule - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb deleted file mode 100644 index 928044639293..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb.rb +++ /dev/null @@ -1,36 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/field_info_pb' -require 'google/api/resource_pb' -require 'google/protobuf/timestamp_pb' -require 'google/type/datetime_pb' - - -descriptor_data = "\n>google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\xe5\x04\n\x16\x45xascaleDbStorageVault\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fgcp_oracle_zone\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Y\n\nproperties\x18\x04 \x01(\x0b\x32@.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultPropertiesB\x03\xe0\x41\x02\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65ntitlement_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12W\n\x06labels\x18\x07 \x03(\x0b\x32\x42.google.cloud.oracledatabase.v1.ExascaleDbStorageVault.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\xc8\x01\xea\x41\xc4\x01\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12[projects/{project}/locations/{location}/exascaleDbStorageVaults/{exascale_db_storage_vault}*\x17\x65xascaleDbStorageVaults2\x16\x65xascaleDbStorageVault\"\x85\x07\n ExascaleDbStorageVaultProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12-\n\ttime_zone\x18\x02 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x03\x12\x62\n\x1b\x65xascale_db_storage_details\x18\x03 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.ExascaleDbStorageDetailsB\x03\xe0\x41\x02\x12Z\n\x05state\x18\x04 \x01(\x0e\x32\x46.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.StateB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0evm_cluster_ids\x18\x06 \x03(\tB\x03\xe0\x41\x03\x12\x1d\n\x10vm_cluster_count\x18\t \x01(\x05\x42\x03\xe0\x41\x03\x12+\n\x1e\x61\x64\x64itional_flash_cache_percent\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07oci_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12w\n\x19\x61ttached_shape_attributes\x18\n \x03(\x0e\x32O.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\x03\xe0\x41\x03\x12x\n\x1a\x61vailable_shape_attributes\x18\x0b \x03(\x0e\x32O.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttributeB\x03\xe0\x41\x03\"z\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"W\n\x0eShapeAttribute\x12\x1f\n\x1bSHAPE_ATTRIBUTE_UNSPECIFIED\x10\x00\x12\x11\n\rSMART_STORAGE\x10\x01\x12\x11\n\rBLOCK_STORAGE\x10\x02\"X\n\x18\x45xascaleDbStorageDetails\x12\x1f\n\x12\x61vailable_size_gbs\x18\x01 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1b\n\x0etotal_size_gbs\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\"n\n GetExascaleDbStorageVaultRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\"\xcf\x01\n\"ListExascaleDbStorageVaultsRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xaf\x01\n#ListExascaleDbStorageVaultsResponse\x12Z\n\x1a\x65xascale_db_storage_vaults\x18\x01 \x03(\x0b\x32\x36.google.cloud.oracledatabase.v1.ExascaleDbStorageVault\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\x9f\x02\n#CreateExascaleDbStorageVaultRequest\x12L\n\x06parent\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\x12\x34oracledatabase.googleapis.com/ExascaleDbStorageVault\x12)\n\x1c\x65xascale_db_storage_vault_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12^\n\x19\x65xascale_db_storage_vault\x18\x03 \x01(\x0b\x32\x36.google.cloud.oracledatabase.v1.ExascaleDbStorageVaultB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x92\x01\n#DeleteExascaleDbStorageVaultRequest\x12J\n\x04name\x18\x01 \x01(\tB<\xe0\x41\x02\xfa\x41\x36\n4oracledatabase.googleapis.com/ExascaleDbStorageVault\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x42\xf5\x01\n\"com.google.cloud.oracledatabase.v1B\x1b\x45xascaleDbStorageVaultProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - ExascaleDbStorageVault = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageVault").msgclass - ExascaleDbStorageVaultProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties").msgclass - ExascaleDbStorageVaultProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.State").enummodule - ExascaleDbStorageVaultProperties::ShapeAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageVaultProperties.ShapeAttribute").enummodule - ExascaleDbStorageDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ExascaleDbStorageDetails").msgclass - GetExascaleDbStorageVaultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest").msgclass - ListExascaleDbStorageVaultsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsRequest").msgclass - ListExascaleDbStorageVaultsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse").msgclass - CreateExascaleDbStorageVaultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateExascaleDbStorageVaultRequest").msgclass - DeleteExascaleDbStorageVaultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteExascaleDbStorageVaultRequest").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb deleted file mode 100644 index f3647629f1ad..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/gi_version_pb.rb +++ /dev/null @@ -1,24 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/gi_version.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n/google/cloud/oracledatabase/v1/gi_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xbc\x01\n\tGiVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07version\x18\x02 \x01(\tB\x03\xe0\x41\x01:\x85\x01\xea\x41\x81\x01\n\'oracledatabase.googleapis.com/GiVersion\x12?projects/{project}/locations/{location}/giVersions/{gi_version}*\ngiVersions2\tgiVersionB\xe8\x01\n\"com.google.cloud.oracledatabase.v1B\x0eGiVersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - GiVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GiVersion").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb deleted file mode 100644 index 8a64433d0d40..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/location_metadata_pb.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/location_metadata.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' - - -descriptor_data = "\n6google/cloud/oracledatabase/v1/location_metadata.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\"1\n\x10LocationMetadata\x12\x1d\n\x10gcp_oracle_zones\x18\x02 \x03(\tB\x03\xe0\x41\x03\x42\xef\x01\n\"com.google.cloud.oracledatabase.v1B\x15LocationMetadataProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.LocationMetadata").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb deleted file mode 100644 index f5e9f9821372..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/minor_version_pb.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/minor_version.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' - - -descriptor_data = "\n2google/cloud/oracledatabase/v1/minor_version.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x82\x02\n\x0cMinorVersion\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\rgrid_image_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07version\x18\x03 \x01(\tB\x03\xe0\x41\x01:\xac\x01\xea\x41\xa8\x01\n*oracledatabase.googleapis.com/MinorVersion\x12]projects/{project}/locations/{location}/giVersions/{gi_version}/minorVersions/{minor_version}*\rminorVersions2\x0cminorVersion\"\xa4\x01\n\x18ListMinorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*oracledatabase.googleapis.com/MinorVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"z\n\x19ListMinorVersionsResponse\x12\x44\n\x0eminor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.oracledatabase.v1.MinorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xeb\x01\n\"com.google.cloud.oracledatabase.v1B\x11MinorVersionProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - MinorVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.MinorVersion").msgclass - ListMinorVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListMinorVersionsRequest").msgclass - ListMinorVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListMinorVersionsResponse").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb deleted file mode 100644 index 60485d443994..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_network_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/odb_network.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/field_info_pb' -require 'google/api/resource_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n0google/cloud/oracledatabase/v1/odb_network.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf6\x04\n\nOdbNetwork\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x37\n\x07network\x18\x02 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12K\n\x06labels\x18\x03 \x03(\x0b\x32\x36.google.cloud.oracledatabase.v1.OdbNetwork.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\x05state\x18\x05 \x01(\x0e\x32\x30.google.cloud.oracledatabase.v1.OdbNetwork.StateB\x03\xe0\x41\x03\x12\x1b\n\x0e\x65ntitlement_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fgcp_oracle_zone\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\\\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:\x8a\x01\xea\x41\x86\x01\n(oracledatabase.googleapis.com/OdbNetwork\x12\x41projects/{project}/locations/{location}/odbNetworks/{odb_network}*\x0bodbNetworks2\nodbNetwork\"\xdf\x01\n\x17\x43reateOdbNetworkRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(oracledatabase.googleapis.com/OdbNetwork\x12\x1b\n\x0eodb_network_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x0bodb_network\x18\x03 \x01(\x0b\x32*.google.cloud.oracledatabase.v1.OdbNetworkB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"z\n\x17\x44\x65leteOdbNetworkRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xb7\x01\n\x16ListOdbNetworksRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(oracledatabase.googleapis.com/OdbNetwork\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x17ListOdbNetworksResponse\x12@\n\x0codb_networks\x18\x01 \x03(\x0b\x32*.google.cloud.oracledatabase.v1.OdbNetwork\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"V\n\x14GetOdbNetworkRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetworkB\xe9\x01\n\"com.google.cloud.oracledatabase.v1B\x0fOdbNetworkProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - OdbNetwork = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbNetwork").msgclass - OdbNetwork::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbNetwork.State").enummodule - CreateOdbNetworkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateOdbNetworkRequest").msgclass - DeleteOdbNetworkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest").msgclass - ListOdbNetworksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListOdbNetworksRequest").msgclass - ListOdbNetworksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListOdbNetworksResponse").msgclass - GetOdbNetworkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetOdbNetworkRequest").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb deleted file mode 100644 index 37cef6fd8eca..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/odb_subnet_pb.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/odb_subnet.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/field_info_pb' -require 'google/api/resource_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n/google/cloud/oracledatabase/v1/odb_subnet.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x05\n\tOdbSubnet\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\ncidr_range\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12G\n\x07purpose\x18\x03 \x01(\x0e\x32\x31.google.cloud.oracledatabase.v1.OdbSubnet.PurposeB\x03\xe0\x41\x02\x12J\n\x06labels\x18\x04 \x03(\x0b\x32\x35.google.cloud.oracledatabase.v1.OdbSubnet.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\x06 \x01(\x0e\x32/.google.cloud.oracledatabase.v1.OdbSubnet.StateB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"H\n\x07Purpose\x12\x17\n\x13PURPOSE_UNSPECIFIED\x10\x00\x12\x11\n\rCLIENT_SUBNET\x10\x01\x12\x11\n\rBACKUP_SUBNET\x10\x02\"\\\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:\x9f\x01\xea\x41\x9b\x01\n\'oracledatabase.googleapis.com/OdbSubnet\x12Yprojects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}*\nodbSubnets2\todbSubnet\"\xda\x01\n\x16\x43reateOdbSubnetRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/OdbSubnet\x12\x1a\n\rodb_subnet_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x42\n\nodb_subnet\x18\x03 \x01(\x0b\x32).google.cloud.oracledatabase.v1.OdbSubnetB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"x\n\x16\x44\x65leteOdbSubnetRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xb5\x01\n\x15ListOdbSubnetsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/OdbSubnet\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x86\x01\n\x16ListOdbSubnetsResponse\x12>\n\x0bodb_subnets\x18\x01 \x03(\x0b\x32).google.cloud.oracledatabase.v1.OdbSubnet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"T\n\x13GetOdbSubnetRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnetB\xe8\x01\n\"com.google.cloud.oracledatabase.v1B\x0eOdbSubnetProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - OdbSubnet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbSubnet").msgclass - OdbSubnet::Purpose = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbSubnet.Purpose").enummodule - OdbSubnet::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OdbSubnet.State").enummodule - CreateOdbSubnetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateOdbSubnetRequest").msgclass - DeleteOdbSubnetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteOdbSubnetRequest").msgclass - ListOdbSubnetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListOdbSubnetsRequest").msgclass - ListOdbSubnetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListOdbSubnetsResponse").msgclass - GetOdbSubnetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetOdbSubnetRequest").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb deleted file mode 100644 index 5b0f9bc4db81..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_pb.rb +++ /dev/null @@ -1,107 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/oracledatabase.proto - -require 'google/protobuf' - -require 'google/api/annotations_pb' -require 'google/api/client_pb' -require 'google/api/field_behavior_pb' -require 'google/api/field_info_pb' -require 'google/api/resource_pb' -require 'google/cloud/oracledatabase/v1/autonomous_database_pb' -require 'google/cloud/oracledatabase/v1/autonomous_database_character_set_pb' -require 'google/cloud/oracledatabase/v1/autonomous_db_backup_pb' -require 'google/cloud/oracledatabase/v1/autonomous_db_version_pb' -require 'google/cloud/oracledatabase/v1/database_pb' -require 'google/cloud/oracledatabase/v1/database_character_set_pb' -require 'google/cloud/oracledatabase/v1/db_node_pb' -require 'google/cloud/oracledatabase/v1/db_server_pb' -require 'google/cloud/oracledatabase/v1/db_system_pb' -require 'google/cloud/oracledatabase/v1/db_system_initial_storage_size_pb' -require 'google/cloud/oracledatabase/v1/db_system_shape_pb' -require 'google/cloud/oracledatabase/v1/db_version_pb' -require 'google/cloud/oracledatabase/v1/entitlement_pb' -require 'google/cloud/oracledatabase/v1/exadata_infra_pb' -require 'google/cloud/oracledatabase/v1/exadb_vm_cluster_pb' -require 'google/cloud/oracledatabase/v1/exascale_db_storage_vault_pb' -require 'google/cloud/oracledatabase/v1/gi_version_pb' -require 'google/cloud/oracledatabase/v1/goldengate_connection_pb' -require 'google/cloud/oracledatabase/v1/goldengate_connection_assignment_pb' -require 'google/cloud/oracledatabase/v1/goldengate_connection_type_pb' -require 'google/cloud/oracledatabase/v1/goldengate_deployment_pb' -require 'google/cloud/oracledatabase/v1/goldengate_deployment_environment_pb' -require 'google/cloud/oracledatabase/v1/goldengate_deployment_type_pb' -require 'google/cloud/oracledatabase/v1/goldengate_deployment_version_pb' -require 'google/cloud/oracledatabase/v1/minor_version_pb' -require 'google/cloud/oracledatabase/v1/odb_network_pb' -require 'google/cloud/oracledatabase/v1/odb_subnet_pb' -require 'google/cloud/oracledatabase/v1/pluggable_database_pb' -require 'google/cloud/oracledatabase/v1/vm_cluster_pb' -require 'google/longrunning/operations_pb' -require 'google/protobuf/empty_pb' -require 'google/protobuf/field_mask_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n3google/cloud/oracledatabase/v1/oracledatabase.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/api/field_info.proto\x1a\x19google/api/resource.proto\x1a\x38google/cloud/oracledatabase/v1/autonomous_database.proto\x1a\x46google/cloud/oracledatabase/v1/autonomous_database_character_set.proto\x1a\x39google/cloud/oracledatabase/v1/autonomous_db_backup.proto\x1a:google/cloud/oracledatabase/v1/autonomous_db_version.proto\x1a-google/cloud/oracledatabase/v1/database.proto\x1a;google/cloud/oracledatabase/v1/database_character_set.proto\x1a,google/cloud/oracledatabase/v1/db_node.proto\x1a.google/cloud/oracledatabase/v1/db_server.proto\x1a.google/cloud/oracledatabase/v1/db_system.proto\x1a\x43google/cloud/oracledatabase/v1/db_system_initial_storage_size.proto\x1a\x34google/cloud/oracledatabase/v1/db_system_shape.proto\x1a/google/cloud/oracledatabase/v1/db_version.proto\x1a\x30google/cloud/oracledatabase/v1/entitlement.proto\x1a\x32google/cloud/oracledatabase/v1/exadata_infra.proto\x1a\x35google/cloud/oracledatabase/v1/exadb_vm_cluster.proto\x1a>google/cloud/oracledatabase/v1/exascale_db_storage_vault.proto\x1a/google/cloud/oracledatabase/v1/gi_version.proto\x1a:google/cloud/oracledatabase/v1/goldengate_connection.proto\x1a\x45google/cloud/oracledatabase/v1/goldengate_connection_assignment.proto\x1a?google/cloud/oracledatabase/v1/goldengate_connection_type.proto\x1a:google/cloud/oracledatabase/v1/goldengate_deployment.proto\x1a\x46google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto\x1a?google/cloud/oracledatabase/v1/goldengate_deployment_type.proto\x1a\x42google/cloud/oracledatabase/v1/goldengate_deployment_version.proto\x1a\x32google/cloud/oracledatabase/v1/minor_version.proto\x1a\x30google/cloud/oracledatabase/v1/odb_network.proto\x1a/google/cloud/oracledatabase/v1/odb_subnet.proto\x1a\x37google/cloud/oracledatabase/v1/pluggable_database.proto\x1a/google/cloud/oracledatabase/v1/vm_cluster.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd7\x01\n&ListCloudExadataInfrastructuresRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\'ListCloudExadataInfrastructuresResponse\x12\x61\n\x1d\x63loud_exadata_infrastructures\x18\x01 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"v\n$GetCloudExadataInfrastructureRequest\x12N\n\x04name\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\"\xb1\x02\n\'CreateCloudExadataInfrastructureRequest\x12P\n\x06parent\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\x12\x38oracledatabase.googleapis.com/CloudExadataInfrastructure\x12,\n\x1f\x63loud_exadata_infrastructure_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x65\n\x1c\x63loud_exadata_infrastructure\x18\x03 \x01(\x0b\x32:.google.cloud.oracledatabase.v1.CloudExadataInfrastructureB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xae\x01\n\'DeleteCloudExadataInfrastructureRequest\x12N\n\x04name\x18\x01 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\xa8\x01\n\x1aListCloudVmClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/CloudVmCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\x1bListCloudVmClustersResponse\x12I\n\x11\x63loud_vm_clusters\x18\x01 \x03(\x0b\x32..google.cloud.oracledatabase.v1.CloudVmCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"^\n\x18GetCloudVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/CloudVmCluster\"\xf5\x01\n\x1b\x43reateCloudVmClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/CloudVmCluster\x12 \n\x13\x63loud_vm_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12M\n\x10\x63loud_vm_cluster\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.CloudVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x96\x01\n\x1b\x44\x65leteCloudVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/CloudVmCluster\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x12\n\x05\x66orce\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"\x8d\x01\n\x17ListEntitlementsRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)oracledatabase.googleapis.com/Entitlement\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"v\n\x18ListEntitlementsResponse\x12\x41\n\x0c\x65ntitlements\x18\x01 \x03(\x0b\x32+.google.cloud.oracledatabase.v1.Entitlement\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x87\x01\n\x14ListDbServersRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&oracledatabase.googleapis.com/DbServer\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"n\n\x15ListDbServersResponse\x12<\n\ndb_servers\x18\x01 \x03(\x0b\x32(.google.cloud.oracledatabase.v1.DbServer\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x12ListDbNodesRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$oracledatabase.googleapis.com/DbNode\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"h\n\x13ListDbNodesResponse\x12\x38\n\x08\x64\x62_nodes\x18\x01 \x03(\x0b\x32&.google.cloud.oracledatabase.v1.DbNode\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9e\x01\n\x15ListGiVersionsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'oracledatabase.googleapis.com/GiVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"q\n\x16ListGiVersionsResponse\x12>\n\x0bgi_versions\x18\x01 \x03(\x0b\x32).google.cloud.oracledatabase.v1.GiVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xa6\x01\n\x19ListDbSystemShapesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+oracledatabase.googleapis.com/DbSystemShape\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"~\n\x1aListDbSystemShapesResponse\x12G\n\x10\x64\x62_system_shapes\x18\x01 \x03(\x0b\x32-.google.cloud.oracledatabase.v1.DbSystemShape\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9f\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10percent_complete\x18\x08 \x01(\x01\x42\x03\xe0\x41\x03\"\xc7\x01\n\x1eListAutonomousDatabasesRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30oracledatabase.googleapis.com/AutonomousDatabase\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa1\x01\n\x1fListAutonomousDatabasesResponse\x12P\n\x14\x61utonomous_databases\x18\x01 \x03(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"f\n\x1cGetAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\x87\x02\n\x1f\x43reateAutonomousDatabaseRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30oracledatabase.googleapis.com/AutonomousDatabase\x12#\n\x16\x61utonomous_database_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12T\n\x13\x61utonomous_database\x18\x03 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabaseB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xce\x01\n\x1fUpdateAutonomousDatabaseRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12T\n\x13\x61utonomous_database\x18\x02 \x01(\x0b\x32\x32.google.cloud.oracledatabase.v1.AutonomousDatabaseB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x8a\x01\n\x1f\x44\x65leteAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa1\x01\n RestoreAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12\x35\n\x0crestore_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"g\n\x1dStopAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"h\n\x1eStartAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"j\n RestartAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xc9\x01\n#SwitchoverAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Z\n\x18peer_autonomous_database\x18\x02 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xc7\x01\n!FailoverAutonomousDatabaseRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12Z\n\x18peer_autonomous_database\x18\x02 \x01(\tB8\xe0\x41\x01\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\"\xe3\x01\n\'GenerateAutonomousDatabaseWalletRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0oracledatabase.googleapis.com/AutonomousDatabase\x12?\n\x04type\x18\x02 \x01(\x0e\x32,.google.cloud.oracledatabase.v1.GenerateTypeB\x03\xe0\x41\x01\x12\x18\n\x0bis_regional\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x15\n\x08password\x18\x04 \x01(\tB\x03\xe0\x41\x02\"H\n(GenerateAutonomousDatabaseWalletResponse\x12\x1c\n\x0f\x61rchive_content\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x03\"\x9d\x01\n\x1fListAutonomousDbVersionsRequest\x12I\n\x06parent\x18\x01 \x01(\tB9\xe0\x41\x02\xfa\x41\x33\x12\x31oracledatabase.googleapis.com/AutonomousDbVersion\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n ListAutonomousDbVersionsResponse\x12S\n\x16\x61utonomous_db_versions\x18\x01 \x03(\x0b\x32\x33.google.cloud.oracledatabase.v1.AutonomousDbVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc8\x01\n*ListAutonomousDatabaseCharacterSetsRequest\x12T\n\x06parent\x18\x01 \x01(\tBD\xe0\x41\x02\xfa\x41>\x12.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbc\x01\n$ListAutonomousDatabaseBackupsRequest\x12N\n\x06parent\x18\x01 \x01(\tB>\xe0\x41\x02\xfa\x41\x38\x12\x36oracledatabase.googleapis.com/AutonomousDatabaseBackup\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9f\x01\n%ListAutonomousDatabaseBackupsResponse\x12]\n\x1b\x61utonomous_database_backups\x18\x01 \x03(\x0b\x32\x38.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf5\x01\n\x1b\x43reateExadbVmClusterRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/ExadbVmCluster\x12 \n\x13\x65xadb_vm_cluster_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12M\n\x10\x65xadb_vm_cluster\x18\x03 \x01(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x04 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\x82\x01\n\x1b\x44\x65leteExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\x12\x1f\n\nrequest_id\x18\x02 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"^\n\x18GetExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\"\xbf\x01\n\x1aListExadbVmClustersRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,oracledatabase.googleapis.com/ExadbVmCluster\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x96\x01\n\x1bListExadbVmClustersResponse\x12I\n\x11\x65xadb_vm_clusters\x18\x01 \x03(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmCluster\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xc3\x01\n\x1bUpdateExadbVmClusterRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12M\n\x10\x65xadb_vm_cluster\x18\x02 \x01(\x0b\x32..google.cloud.oracledatabase.v1.ExadbVmClusterB\x03\xe0\x41\x02\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\"\xa8\x01\n)RemoveVirtualMachineExadbVmClusterRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,oracledatabase.googleapis.com/ExadbVmCluster\x12\x1f\n\nrequest_id\x18\x03 \x01(\tB\x0b\xe0\x41\x01\xe2\x8c\xcf\xd7\x08\x02\x08\x01\x12\x16\n\thostnames\x18\x04 \x03(\tB\x03\xe0\x41\x02\x32\x91\x9d\x01\n\x0eOracleDatabase\x12\x84\x02\n\x1fListCloudExadataInfrastructures\x12\x46.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest\x1aG.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse\"P\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x41\x12?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures\x12\xf1\x01\n\x1dGetCloudExadataInfrastructure\x12\x44.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest\x1a:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure\"N\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\x12?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\x12\xea\x02\n CreateCloudExadataInfrastructure\x12G.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41/\n\x1a\x43loudExadataInfrastructure\x12\x11OperationMetadata\xda\x41\x43parent,cloud_exadata_infrastructure,cloud_exadata_infrastructure_id\x82\xd3\xe4\x93\x02_\"?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures:\x1c\x63loud_exadata_infrastructure\x12\x87\x02\n DeleteCloudExadataInfrastructure\x12G.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41*?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}\x12\xd4\x01\n\x13ListCloudVmClusters\x12:.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest\x1a;.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=projects/*/locations/*}/cloudVmClusters\x12\xc1\x01\n\x11GetCloudVmCluster\x12\x38.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest\x1a..google.cloud.oracledatabase.v1.CloudVmCluster\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=projects/*/locations/*/cloudVmClusters/*}\x12\x96\x02\n\x14\x43reateCloudVmCluster\x12;.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41#\n\x0e\x43loudVmCluster\x12\x11OperationMetadata\xda\x41+parent,cloud_vm_cluster,cloud_vm_cluster_id\x82\xd3\xe4\x93\x02G\"3/v1/{parent=projects/*/locations/*}/cloudVmClusters:\x10\x63loud_vm_cluster\x12\xe3\x01\n\x14\x44\x65leteCloudVmCluster\x12;.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest\x1a\x1d.google.longrunning.Operation\"o\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=projects/*/locations/*/cloudVmClusters/*}\x12\xc8\x01\n\x10ListEntitlements\x12\x37.google.cloud.oracledatabase.v1.ListEntitlementsRequest\x1a\x38.google.cloud.oracledatabase.v1.ListEntitlementsResponse\"A\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x32\x12\x30/v1/{parent=projects/*/locations/*}/entitlements\x12\xda\x01\n\rListDbServers\x12\x34.google.cloud.oracledatabase.v1.ListDbServersRequest\x1a\x35.google.cloud.oracledatabase.v1.ListDbServersResponse\"\\\xda\x41\x06parent\x82\xd3\xe4\x93\x02M\x12K/v1/{parent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers\x12\x89\x02\n\x0bListDbNodes\x12\x32.google.cloud.oracledatabase.v1.ListDbNodesRequest\x1a\x33.google.cloud.oracledatabase.v1.ListDbNodesResponse\"\x90\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x80\x01\x12=/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodesZ?\x12=/v1/{parent=projects/*/locations/*/exadbVmClusters/*}/dbNodes\x12\xc0\x01\n\x0eListGiVersions\x12\x35.google.cloud.oracledatabase.v1.ListGiVersionsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListGiVersionsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/giVersions\x12\xd9\x01\n\x11ListMinorVersions\x12\x38.google.cloud.oracledatabase.v1.ListMinorVersionsRequest\x1a\x39.google.cloud.oracledatabase.v1.ListMinorVersionsResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/giVersions/*}/minorVersions\x12\xd0\x01\n\x12ListDbSystemShapes\x12\x39.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest\x1a:.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/dbSystemShapes\x12\xe4\x01\n\x17ListAutonomousDatabases\x12>.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest\x1a?.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}/autonomousDatabases\x12\xd1\x01\n\x15GetAutonomousDatabase\x12<.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest\x1a\x32.google.cloud.oracledatabase.v1.AutonomousDatabase\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{name=projects/*/locations/*/autonomousDatabases/*}\x12\xaf\x02\n\x18\x43reateAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb2\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x31parent,autonomous_database,autonomous_database_id\x82\xd3\xe4\x93\x02N\"7/v1/{parent=projects/*/locations/*}/autonomousDatabases:\x13\x61utonomous_database\x12\xb1\x02\n\x18UpdateAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\xb4\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1f\x61utonomous_database,update_mask\x82\xd3\xe4\x93\x02\x62\x32K/v1/{autonomous_database.name=projects/*/locations/*/autonomousDatabases/*}:\x13\x61utonomous_database\x12\xef\x01\n\x18\x44\x65leteAutonomousDatabase\x12?.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"s\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1/{name=projects/*/locations/*/autonomousDatabases/*}\x12\x87\x02\n\x19RestoreAutonomousDatabase\x12@.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x88\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x11name,restore_time\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore:\x01*\x12\xa9\x02\n GenerateAutonomousDatabaseWallet\x12G.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest\x1aH.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse\"r\xda\x41\x1ename,type,is_regional,password\x82\xd3\xe4\x93\x02K\"F/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet:\x01*\x12\xe8\x01\n\x18ListAutonomousDbVersions\x12?.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest\x1a@.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/v1/{parent=projects/*/locations/*}/autonomousDbVersions\x12\x94\x02\n#ListAutonomousDatabaseCharacterSets\x12J.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest\x1aK.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSets\x12\xfc\x01\n\x1dListAutonomousDatabaseBackups\x12\x44.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest\x1a\x45.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackups\x12\xf0\x01\n\x16StopAutonomousDatabase\x12=.google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\".google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"y\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/autonomousDatabases/*}:start:\x01*\x12\xf9\x01\n\x19RestartAutonomousDatabase\x12@.google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"{\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restart:\x01*\x12\x9c\x02\n\x1cSwitchoverAutonomousDatabase\x12\x43.google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x97\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1dname,peer_autonomous_database\x82\xd3\xe4\x93\x02G\"B/v1/{name=projects/*/locations/*/autonomousDatabases/*}:switchover:\x01*\x12\x96\x02\n\x1a\x46\x61iloverAutonomousDatabase\x12\x41.google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x95\x01\xca\x41\'\n\x12\x41utonomousDatabase\x12\x11OperationMetadata\xda\x41\x1dname,peer_autonomous_database\x82\xd3\xe4\x93\x02\x45\"@/v1/{name=projects/*/locations/*/autonomousDatabases/*}:failover:\x01*\x12\xc4\x01\n\x0fListOdbNetworks\x12\x36.google.cloud.oracledatabase.v1.ListOdbNetworksRequest\x1a\x37.google.cloud.oracledatabase.v1.ListOdbNetworksResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/odbNetworks\x12\xb1\x01\n\rGetOdbNetwork\x12\x34.google.cloud.oracledatabase.v1.GetOdbNetworkRequest\x1a*.google.cloud.oracledatabase.v1.OdbNetwork\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/odbNetworks/*}\x12\xf7\x01\n\x10\x43reateOdbNetwork\x12\x37.google.cloud.oracledatabase.v1.CreateOdbNetworkRequest\x1a\x1d.google.longrunning.Operation\"\x8a\x01\xca\x41\x1f\n\nOdbNetwork\x12\x11OperationMetadata\xda\x41!parent,odb_network,odb_network_id\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/odbNetworks:\x0bodb_network\x12\xd7\x01\n\x10\x44\x65leteOdbNetwork\x12\x37.google.cloud.oracledatabase.v1.DeleteOdbNetworkRequest\x1a\x1d.google.longrunning.Operation\"k\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/odbNetworks/*}\x12\xce\x01\n\x0eListOdbSubnets\x12\x35.google.cloud.oracledatabase.v1.ListOdbSubnetsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListOdbSubnetsResponse\"M\xda\x41\x06parent\x82\xd3\xe4\x93\x02>\x12\x12*\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/databases\x12\xa9\x01\n\x0bGetDatabase\x12\x32.google.cloud.oracledatabase.v1.GetDatabaseRequest\x1a(.google.cloud.oracledatabase.v1.Database\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/databases/*}\x12\xe0\x01\n\x16ListPluggableDatabases\x12=.google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest\x1a>.google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*}/pluggableDatabases\x12\xcd\x01\n\x14GetPluggableDatabase\x12;.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest\x1a\x31.google.cloud.oracledatabase.v1.PluggableDatabase\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/pluggableDatabases/*}\x12\xbc\x01\n\rListDbSystems\x12\x34.google.cloud.oracledatabase.v1.ListDbSystemsRequest\x1a\x35.google.cloud.oracledatabase.v1.ListDbSystemsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/dbSystems\x12\xa9\x01\n\x0bGetDbSystem\x12\x32.google.cloud.oracledatabase.v1.GetDbSystemRequest\x1a(.google.cloud.oracledatabase.v1.DbSystem\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/dbSystems/*}\x12\xe9\x01\n\x0e\x43reateDbSystem\x12\x35.google.cloud.oracledatabase.v1.CreateDbSystemRequest\x1a\x1d.google.longrunning.Operation\"\x80\x01\xca\x41\x1d\n\x08\x44\x62System\x12\x11OperationMetadata\xda\x41\x1dparent,db_system,db_system_id\x82\xd3\xe4\x93\x02:\"-/v1/{parent=projects/*/locations/*}/dbSystems:\tdb_system\x12\xd1\x01\n\x0e\x44\x65leteDbSystem\x12\x35.google.cloud.oracledatabase.v1.DeleteDbSystemRequest\x1a\x1d.google.longrunning.Operation\"i\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/dbSystems/*}\x12\xec\x01\n\x19ListGoldengateDeployments\x12@.google.cloud.oracledatabase.v1.ListGoldengateDeploymentsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListGoldengateDeploymentsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/goldengateDeployments\x12\xd9\x01\n\x17GetGoldengateDeployment\x12>.google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest\x1a\x34.google.cloud.oracledatabase.v1.GoldengateDeployment\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/goldengateDeployments/*}\x12\xbd\x02\n\x1a\x43reateGoldengateDeployment\x12\x41.google.cloud.oracledatabase.v1.CreateGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xbc\x01\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x35parent,goldengate_deployment,goldengate_deployment_id\x82\xd3\xe4\x93\x02R\"9/v1/{parent=projects/*/locations/*}/goldengateDeployments:\x15goldengate_deployment\x12\xf5\x01\n\x1a\x44\x65leteGoldengateDeployment\x12\x41.google.cloud.oracledatabase.v1.DeleteGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/goldengateDeployments/*}\x12\xf8\x01\n\x18StopGoldengateDeployment\x12?.google.cloud.oracledatabase.v1.StopGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"|\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\">/v1/{name=projects/*/locations/*/goldengateDeployments/*}:stop:\x01*\x12\xfb\x01\n\x19StartGoldengateDeployment\x12@.google.cloud.oracledatabase.v1.StartGoldengateDeploymentRequest\x1a\x1d.google.longrunning.Operation\"}\xca\x41)\n\x14GoldengateDeployment\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x44\"?/v1/{name=projects/*/locations/*/goldengateDeployments/*}:start:\x01*\x12\xec\x01\n\x19ListGoldengateConnections\x12@.google.cloud.oracledatabase.v1.ListGoldengateConnectionsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListGoldengateConnectionsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/goldengateConnections\x12\xd9\x01\n\x17GetGoldengateConnection\x12>.google.cloud.oracledatabase.v1.GetGoldengateConnectionRequest\x1a\x34.google.cloud.oracledatabase.v1.GoldengateConnection\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/v1/{name=projects/*/locations/*/goldengateConnections/*}\x12\xbd\x02\n\x1a\x43reateGoldengateConnection\x12\x41.google.cloud.oracledatabase.v1.CreateGoldengateConnectionRequest\x1a\x1d.google.longrunning.Operation\"\xbc\x01\xca\x41)\n\x14GoldengateConnection\x12\x11OperationMetadata\xda\x41\x35parent,goldengate_connection,goldengate_connection_id\x82\xd3\xe4\x93\x02R\"9/v1/{parent=projects/*/locations/*}/goldengateConnections:\x15goldengate_connection\x12\xf5\x01\n\x1a\x44\x65leteGoldengateConnection\x12\x41.google.cloud.oracledatabase.v1.DeleteGoldengateConnectionRequest\x1a\x1d.google.longrunning.Operation\"u\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/v1/{name=projects/*/locations/*/goldengateConnections/*}\x12\xf5\x01\n\x1eGetGoldengateDeploymentVersion\x12\x45.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest\x1a;.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=projects/*/locations/*/goldengateDeploymentVersions/*}\x12\x88\x02\n ListGoldengateDeploymentVersions\x12G.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsRequest\x1aH.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1/{parent=projects/*/locations/*}/goldengateDeploymentVersions\x12\xe9\x01\n\x1bGetGoldengateDeploymentType\x12\x42.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest\x1a\x38.google.cloud.oracledatabase.v1.GoldengateDeploymentType\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/goldengateDeploymentTypes/*}\x12\xfc\x01\n\x1dListGoldengateDeploymentTypes\x12\x44.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesRequest\x1a\x45.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/goldengateDeploymentTypes\x12\x85\x02\n\"GetGoldengateDeploymentEnvironment\x12I.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest\x1a?.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment\"S\xda\x41\x04name\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{name=projects/*/locations/*/goldengateDeploymentEnvironments/*}\x12\x98\x02\n$ListGoldengateDeploymentEnvironments\x12K.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsRequest\x1aL.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsResponse\"U\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x46\x12\x44/v1/{parent=projects/*/locations/*}/goldengateDeploymentEnvironments\x12\xe9\x01\n\x1bGetGoldengateConnectionType\x12\x42.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest\x1a\x38.google.cloud.oracledatabase.v1.GoldengateConnectionType\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=projects/*/locations/*/goldengateConnectionTypes/*}\x12\xfc\x01\n\x1dListGoldengateConnectionTypes\x12\x44.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesRequest\x1a\x45.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=projects/*/locations/*}/goldengateConnectionTypes\x12\xc0\x01\n\x0eListDbVersions\x12\x35.google.cloud.oracledatabase.v1.ListDbVersionsRequest\x1a\x36.google.cloud.oracledatabase.v1.ListDbVersionsResponse\"?\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/dbVersions\x12\xec\x01\n\x19ListDatabaseCharacterSets\x12@.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsRequest\x1a\x41.google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/v1/{parent=projects/*/locations/*}/databaseCharacterSets\x12\x94\x02\n#ListGoldengateConnectionAssignments\x12J.google.cloud.oracledatabase.v1.ListGoldengateConnectionAssignmentsRequest\x1aK.google.cloud.oracledatabase.v1.ListGoldengateConnectionAssignmentsResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{parent=projects/*/locations/*}/goldengateConnectionAssignments\x12\x81\x02\n!GetGoldengateConnectionAssignment\x12H.google.cloud.oracledatabase.v1.GetGoldengateConnectionAssignmentRequest\x1a>.google.cloud.oracledatabase.v1.GoldengateConnectionAssignment\"R\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45\x12\x43/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}\x12\x86\x03\n$CreateGoldengateConnectionAssignment\x12K.google.cloud.oracledatabase.v1.CreateGoldengateConnectionAssignmentRequest\x1a\x1d.google.longrunning.Operation\"\xf1\x01\xca\x41\x33\n\x1eGoldengateConnectionAssignment\x12\x11OperationMetadata\xda\x41Kparent,goldengate_connection_assignment,goldengate_connection_assignment_id\x82\xd3\xe4\x93\x02g\"C/v1/{parent=projects/*/locations/*}/goldengateConnectionAssignments: goldengate_connection_assignment\x12\x93\x02\n$DeleteGoldengateConnectionAssignment\x12K.google.cloud.oracledatabase.v1.DeleteGoldengateConnectionAssignmentRequest\x1a\x1d.google.longrunning.Operation\"\x7f\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45*C/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}\x12\x97\x02\n\"TestGoldengateConnectionAssignment\x12I.google.cloud.oracledatabase.v1.TestGoldengateConnectionAssignmentRequest\x1aJ.google.cloud.oracledatabase.v1.TestGoldengateConnectionAssignmentResponse\"Z\xda\x41\x04name\x82\xd3\xe4\x93\x02M\"H/v1/{name=projects/*/locations/*/goldengateConnectionAssignments/*}:test:\x01*\x1aQ\xca\x41\x1doracledatabase.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9f\x04\n\"com.google.cloud.oracledatabase.v1B\x0bV1mainProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41k\n*secretmanager.googleapis.com/SecretVersion\x12=projects/{project}/secrets/{secret}/versions/{secret_version}b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - ListCloudExadataInfrastructuresRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest").msgclass - ListCloudExadataInfrastructuresResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse").msgclass - GetCloudExadataInfrastructureRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest").msgclass - CreateCloudExadataInfrastructureRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest").msgclass - DeleteCloudExadataInfrastructureRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest").msgclass - ListCloudVmClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListCloudVmClustersRequest").msgclass - ListCloudVmClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListCloudVmClustersResponse").msgclass - GetCloudVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetCloudVmClusterRequest").msgclass - CreateCloudVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest").msgclass - DeleteCloudVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest").msgclass - ListEntitlementsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListEntitlementsRequest").msgclass - ListEntitlementsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListEntitlementsResponse").msgclass - ListDbServersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbServersRequest").msgclass - ListDbServersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbServersResponse").msgclass - ListDbNodesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbNodesRequest").msgclass - ListDbNodesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbNodesResponse").msgclass - ListGiVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGiVersionsRequest").msgclass - ListGiVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListGiVersionsResponse").msgclass - ListDbSystemShapesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemShapesRequest").msgclass - ListDbSystemShapesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListDbSystemShapesResponse").msgclass - OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.OperationMetadata").msgclass - ListAutonomousDatabasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest").msgclass - ListAutonomousDatabasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse").msgclass - GetAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest").msgclass - CreateAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest").msgclass - UpdateAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.UpdateAutonomousDatabaseRequest").msgclass - DeleteAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest").msgclass - RestoreAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest").msgclass - StopAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.StopAutonomousDatabaseRequest").msgclass - StartAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.StartAutonomousDatabaseRequest").msgclass - RestartAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.RestartAutonomousDatabaseRequest").msgclass - SwitchoverAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.SwitchoverAutonomousDatabaseRequest").msgclass - FailoverAutonomousDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.FailoverAutonomousDatabaseRequest").msgclass - GenerateAutonomousDatabaseWalletRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest").msgclass - GenerateAutonomousDatabaseWalletResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse").msgclass - ListAutonomousDbVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest").msgclass - ListAutonomousDbVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse").msgclass - ListAutonomousDatabaseCharacterSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest").msgclass - ListAutonomousDatabaseCharacterSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse").msgclass - ListAutonomousDatabaseBackupsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest").msgclass - ListAutonomousDatabaseBackupsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse").msgclass - CreateExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CreateExadbVmClusterRequest").msgclass - DeleteExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DeleteExadbVmClusterRequest").msgclass - GetExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetExadbVmClusterRequest").msgclass - ListExadbVmClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListExadbVmClustersRequest").msgclass - ListExadbVmClustersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListExadbVmClustersResponse").msgclass - UpdateExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.UpdateExadbVmClusterRequest").msgclass - RemoveVirtualMachineExadbVmClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.RemoveVirtualMachineExadbVmClusterRequest").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb deleted file mode 100644 index 1ea79052e9f6..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/oracledatabase_services_pb.rb +++ /dev/null @@ -1,216 +0,0 @@ -# Generated by the protocol buffer compiler. DO NOT EDIT! -# Source: google/cloud/oracledatabase/v1/oracledatabase.proto for package 'Google.Cloud.OracleDatabase.V1' -# Original file comments: -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -require 'grpc' -require 'google/cloud/oracledatabase/v1/oracledatabase_pb' - -module Google - module Cloud - module OracleDatabase - module V1 - module OracleDatabase - # Service describing handlers for resources - class Service - - include ::GRPC::GenericService - - self.marshal_class_method = :encode - self.unmarshal_class_method = :decode - self.service_name = 'google.cloud.oracledatabase.v1.OracleDatabase' - - # Lists Exadata Infrastructures in a given project and location. - rpc :ListCloudExadataInfrastructures, ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse - # Gets details of a single Exadata Infrastructure. - rpc :GetCloudExadataInfrastructure, ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure - # Creates a new Exadata Infrastructure in a given project and location. - rpc :CreateCloudExadataInfrastructure, ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, ::Google::Longrunning::Operation - # Deletes a single Exadata Infrastructure. - rpc :DeleteCloudExadataInfrastructure, ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, ::Google::Longrunning::Operation - # Lists the VM Clusters in a given project and location. - rpc :ListCloudVmClusters, ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse - # Gets details of a single VM Cluster. - rpc :GetCloudVmCluster, ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, ::Google::Cloud::OracleDatabase::V1::CloudVmCluster - # Creates a new VM Cluster in a given project and location. - rpc :CreateCloudVmCluster, ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, ::Google::Longrunning::Operation - # Deletes a single VM Cluster. - rpc :DeleteCloudVmCluster, ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, ::Google::Longrunning::Operation - # Lists the entitlements in a given project. - rpc :ListEntitlements, ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse - # Lists the database servers of an Exadata Infrastructure instance. - rpc :ListDbServers, ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse - # Lists the database nodes of a VM Cluster. - rpc :ListDbNodes, ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse - # Lists all the valid Oracle Grid Infrastructure (GI) versions for the given - # project and location. - rpc :ListGiVersions, ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse - # Lists all the valid minor versions for the given - # project, location, gi version and shape family. - rpc :ListMinorVersions, ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse - # Lists the database system shapes available for the project and location. - rpc :ListDbSystemShapes, ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse - # Lists the Autonomous Databases in a given project and location. - rpc :ListAutonomousDatabases, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse - # Gets the details of a single Autonomous Database. - rpc :GetAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase - # Creates a new Autonomous Database in a given project and location. - rpc :CreateAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Updates the parameters of a single Autonomous Database. - rpc :UpdateAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Deletes a single Autonomous Database. - rpc :DeleteAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Restores a single Autonomous Database. - rpc :RestoreAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Generates a wallet for an Autonomous Database. - rpc :GenerateAutonomousDatabaseWallet, ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse - # Lists all the available Autonomous Database versions for a project and - # location. - rpc :ListAutonomousDbVersions, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse - # Lists Autonomous Database Character Sets in a given project and location. - rpc :ListAutonomousDatabaseCharacterSets, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse - # Lists the long-term and automatic backups of an Autonomous Database. - rpc :ListAutonomousDatabaseBackups, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse - # Stops an Autonomous Database. - rpc :StopAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Starts an Autonomous Database. - rpc :StartAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Restarts an Autonomous Database. - rpc :RestartAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Initiates a switchover of specified autonomous database to the associated - # peer database. - rpc :SwitchoverAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Initiates a failover to target autonomous database from the associated - # primary database. - rpc :FailoverAutonomousDatabase, ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, ::Google::Longrunning::Operation - # Lists the ODB Networks in a given project and location. - rpc :ListOdbNetworks, ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse - # Gets details of a single ODB Network. - rpc :GetOdbNetwork, ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, ::Google::Cloud::OracleDatabase::V1::OdbNetwork - # Creates a new ODB Network in a given project and location. - rpc :CreateOdbNetwork, ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, ::Google::Longrunning::Operation - # Deletes a single ODB Network. - rpc :DeleteOdbNetwork, ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, ::Google::Longrunning::Operation - # Lists all the ODB Subnets in a given ODB Network. - rpc :ListOdbSubnets, ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse - # Gets details of a single ODB Subnet. - rpc :GetOdbSubnet, ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, ::Google::Cloud::OracleDatabase::V1::OdbSubnet - # Creates a new ODB Subnet in a given ODB Network. - rpc :CreateOdbSubnet, ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, ::Google::Longrunning::Operation - # Deletes a single ODB Subnet. - rpc :DeleteOdbSubnet, ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, ::Google::Longrunning::Operation - # Lists all the Exadb (Exascale) VM Clusters for the given project and - # location. - rpc :ListExadbVmClusters, ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse - # Gets details of a single Exadb (Exascale) VM Cluster. - rpc :GetExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster - # Creates a new Exadb (Exascale) VM Cluster resource. - rpc :CreateExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, ::Google::Longrunning::Operation - # Deletes a single Exadb (Exascale) VM Cluster. - rpc :DeleteExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, ::Google::Longrunning::Operation - # Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to - # existing exadb vm cluster, only pass the node count. - rpc :UpdateExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, ::Google::Longrunning::Operation - # Removes virtual machines from an existing exadb vm cluster. - rpc :RemoveVirtualMachineExadbVmCluster, ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, ::Google::Longrunning::Operation - # Lists all the ExascaleDB Storage Vaults for the given project and - # location. - rpc :ListExascaleDbStorageVaults, ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse - # Gets details of a single ExascaleDB Storage Vault. - rpc :GetExascaleDbStorageVault, ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault - # Creates a new ExascaleDB Storage Vault resource. - rpc :CreateExascaleDbStorageVault, ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, ::Google::Longrunning::Operation - # Deletes a single ExascaleDB Storage Vault. - rpc :DeleteExascaleDbStorageVault, ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, ::Google::Longrunning::Operation - # Lists all the DbSystemInitialStorageSizes for the given project and - # location. - rpc :ListDbSystemInitialStorageSizes, ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse - # Lists all the Databases for the given project, location and DbSystem. - rpc :ListDatabases, ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, ::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse - # Gets details of a single Database. - rpc :GetDatabase, ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, ::Google::Cloud::OracleDatabase::V1::Database - # Lists all the PluggableDatabases for the given project, location and - # Container Database. - rpc :ListPluggableDatabases, ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse - # Gets details of a single PluggableDatabase. - rpc :GetPluggableDatabase, ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, ::Google::Cloud::OracleDatabase::V1::PluggableDatabase - # Lists all the DbSystems for the given project and location. - rpc :ListDbSystems, ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, ::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse - # Gets details of a single DbSystem. - rpc :GetDbSystem, ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, ::Google::Cloud::OracleDatabase::V1::DbSystem - # Creates a new DbSystem in a given project and location. - rpc :CreateDbSystem, ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, ::Google::Longrunning::Operation - # Deletes a single DbSystem. - rpc :DeleteDbSystem, ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, ::Google::Longrunning::Operation - # Lists all the GoldengateDeployments for the given project and location. - rpc :ListGoldengateDeployments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse - # Gets details of a single GoldengateDeployment. - rpc :GetGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment - # Creates a new GoldengateDeployment in a given project and location. - rpc :CreateGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, ::Google::Longrunning::Operation - # Deletes a single GoldengateDeployment. - rpc :DeleteGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, ::Google::Longrunning::Operation - # Stops a single GoldengateDeployment. - rpc :StopGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, ::Google::Longrunning::Operation - # Starts a single GoldengateDeployment. - rpc :StartGoldengateDeployment, ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, ::Google::Longrunning::Operation - # Lists all the GoldengateConnections for the given project and location. - rpc :ListGoldengateConnections, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse - # Gets details of a single GoldengateConnection. - rpc :GetGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnection - # Creates a new GoldengateConnection in a given project and location. - rpc :CreateGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, ::Google::Longrunning::Operation - # Deletes a single GoldengateConnection. - rpc :DeleteGoldengateConnection, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, ::Google::Longrunning::Operation - # Gets details of a single GoldengateDeploymentVersion. - rpc :GetGoldengateDeploymentVersion, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion - # Lists GoldengateDeploymentVersions in a given project and location. - rpc :ListGoldengateDeploymentVersions, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse - # Gets details of a single GoldenGateDeploymentType. - rpc :GetGoldengateDeploymentType, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType - # Lists GoldenGateDeploymentTypes in a given project and location. - rpc :ListGoldengateDeploymentTypes, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse - # Gets details of a single GoldengateDeploymentEnvironment. - rpc :GetGoldengateDeploymentEnvironment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment - # Lists GoldengateDeploymentEnvironments in a given project and location. - rpc :ListGoldengateDeploymentEnvironments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse - # Gets details of a single GoldengateConnectionType. - rpc :GetGoldengateConnectionType, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType - # Lists GoldengateConnectionTypes in a given project and location. - rpc :ListGoldengateConnectionTypes, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse - # List DbVersions for the given project and location. - rpc :ListDbVersions, ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse - # List DatabaseCharacterSets for the given project and location. - rpc :ListDatabaseCharacterSets, ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse - # Lists GoldengateConnectionAssignments in a given project and location. - rpc :ListGoldengateConnectionAssignments, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse - # Gets details of a single GoldengateConnectionAssignment. - rpc :GetGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment - # Creates a new GoldengateConnectionAssignment in a given project and - # location. - rpc :CreateGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, ::Google::Longrunning::Operation - # Deletes a single GoldengateConnectionAssignment. - rpc :DeleteGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, ::Google::Longrunning::Operation - # Tests a single GoldengateConnectionAssignment. - rpc :TestGoldengateConnectionAssignment, ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse - end - - Stub = Service.rpc_stub_class - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb deleted file mode 100644 index a34c1af13fc1..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/pluggable_database_pb.rb +++ /dev/null @@ -1,38 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/pluggable_database.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/protobuf/timestamp_pb' - - -descriptor_data = "\n7google/cloud/oracledatabase/v1/pluggable_database.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf8\x02\n\x11PluggableDatabase\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12T\n\nproperties\x18\x02 \x01(\x0b\x32;.google.cloud.oracledatabase.v1.PluggableDatabasePropertiesB\x03\xe0\x41\x01\x12\x14\n\x07oci_url\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03:\xad\x01\xea\x41\xa9\x01\n/oracledatabase.googleapis.com/PluggableDatabase\x12Oprojects/{project}/locations/{location}/pluggableDatabases/{pluggable_database}*\x12pluggableDatabases2\x11pluggableDatabase\"\x81\x0e\n\x1bPluggableDatabaseProperties\x12\x1b\n\x0e\x63ompartment_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x12\x63onnection_strings\x18\x02 \x01(\x0b\x32\x42.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStringsB\x03\xe0\x41\x01\x12$\n\x17\x63ontainer_database_ocid\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12g\n\x0c\x64\x65\x66ined_tags\x18\x04 \x03(\x0b\x32L.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagsEntryB\x03\xe0\x41\x01\x12i\n\rfreeform_tags\x18\x05 \x03(\x0b\x32M.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.FreeformTagsEntryB\x03\xe0\x41\x01\x12\x11\n\x04ocid\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\ris_restricted\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11lifecycle_details\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12y\n\x0flifecycle_state\x18\t \x01(\x0e\x32[.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleStateB\x03\xe0\x41\x03\x12\x15\n\x08pdb_name\x18\n \x01(\tB\x03\xe0\x41\x02\x12\x66\n\x16pdb_node_level_details\x18\x0b \x03(\x0b\x32\x41.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetailsB\x03\xe0\x41\x01\x12\x61\n\x1a\x64\x61tabase_management_config\x18\r \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.DatabaseManagementConfigB\x03\xe0\x41\x03\x12{\n\x19operations_insights_state\x18\x0e \x01(\x0e\x32S.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsStateB\x03\xe0\x41\x03\x1a\xa3\x01\n\x0f\x44\x65\x66inedTagValue\x12\x63\n\x04tags\x18\x01 \x03(\x0b\x32U.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x7f\n\x10\x44\x65\x66inedTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12Z\n\x05value\x18\x02 \x01(\x0b\x32K.google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue:\x02\x38\x01\x1a\x33\n\x11\x46reeformTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb3\x02\n\x1fPluggableDatabaseLifecycleState\x12\x32\n.PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0e\n\nRELOCATING\x10\x07\x12\r\n\tRELOCATED\x10\x08\x12\x0e\n\nREFRESHING\x10\t\x12\x17\n\x13RESTORE_IN_PROGRESS\x10\n\x12\x12\n\x0eRESTORE_FAILED\x10\x0b\x12\x16\n\x12\x42\x41\x43KUP_IN_PROGRESS\x10\x0c\x12\x0c\n\x08\x44ISABLED\x10\r\"\xaa\x01\n\x17OperationsInsightsState\x12)\n%OPERATIONS_INSIGHTS_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0f\n\x0bNOT_ENABLED\x10\x04\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x05\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x06\"\x9c\x02\n\"PluggableDatabaseConnectionStrings\x12\x81\x01\n\x16\x61ll_connection_strings\x18\x01 \x03(\x0b\x32\\.google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings.AllConnectionStringsEntryB\x03\xe0\x41\x01\x12\x18\n\x0bpdb_default\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1b\n\x0epdb_ip_default\x18\x03 \x01(\tB\x03\xe0\x41\x01\x1a;\n\x19\x41llConnectionStringsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd9\x02\n!PluggableDatabaseNodeLevelDetails\x12\x16\n\tnode_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12s\n\topen_mode\x18\x02 \x01(\x0e\x32[.google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenModeB\x03\xe0\x41\x02\x12\"\n\x15pluggable_database_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x82\x01\n\x19PluggableDatabaseOpenMode\x12,\n(PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED\x10\x00\x12\r\n\tREAD_ONLY\x10\x01\x12\x0e\n\nREAD_WRITE\x10\x02\x12\x0b\n\x07MOUNTED\x10\x03\x12\x0b\n\x07MIGRATE\x10\x04\"\xf2\x03\n\x18\x44\x61tabaseManagementConfig\x12g\n\x10management_state\x18\x01 \x01(\x0e\x32H.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementStateB\x03\xe0\x41\x03\x12\x65\n\x0fmanagement_type\x18\x02 \x01(\x0e\x32G.google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementTypeB\x03\xe0\x41\x03\"\xb9\x01\n\x0fManagementState\x12 \n\x1cMANAGEMENT_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x45NABLING\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02\x12\r\n\tDISABLING\x10\x03\x12\x0c\n\x08\x44ISABLED\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x13\n\x0f\x46\x41ILED_ENABLING\x10\x06\x12\x14\n\x10\x46\x41ILED_DISABLING\x10\x07\x12\x13\n\x0f\x46\x41ILED_UPDATING\x10\x08\"J\n\x0eManagementType\x12\x1f\n\x1bMANAGEMENT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x42\x41SIC\x10\x01\x12\x0c\n\x08\x41\x44VANCED\x10\x02\"d\n\x1bGetPluggableDatabaseRequest\x12\x45\n\x04name\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\n/oracledatabase.googleapis.com/PluggableDatabase\"\xae\x01\n\x1dListPluggableDatabasesRequest\x12G\n\x06parent\x18\x01 \x01(\tB7\xe0\x41\x02\xfa\x41\x31\x12/oracledatabase.googleapis.com/PluggableDatabase\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x89\x01\n\x1eListPluggableDatabasesResponse\x12N\n\x13pluggable_databases\x18\x01 \x03(\x0b\x32\x31.google.cloud.oracledatabase.v1.PluggableDatabase\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\tB\xf0\x01\n\"com.google.cloud.oracledatabase.v1B\x16PluggableDatabaseProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - PluggableDatabase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabase").msgclass - PluggableDatabaseProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseProperties").msgclass - PluggableDatabaseProperties::DefinedTagValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseProperties.DefinedTagValue").msgclass - PluggableDatabaseProperties::PluggableDatabaseLifecycleState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseProperties.PluggableDatabaseLifecycleState").enummodule - PluggableDatabaseProperties::OperationsInsightsState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseProperties.OperationsInsightsState").enummodule - PluggableDatabaseConnectionStrings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseConnectionStrings").msgclass - PluggableDatabaseNodeLevelDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails").msgclass - PluggableDatabaseNodeLevelDetails::PluggableDatabaseOpenMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.PluggableDatabaseNodeLevelDetails.PluggableDatabaseOpenMode").enummodule - DatabaseManagementConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseManagementConfig").msgclass - DatabaseManagementConfig::ManagementState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementState").enummodule - DatabaseManagementConfig::ManagementType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DatabaseManagementConfig.ManagementType").enummodule - GetPluggableDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest").msgclass - ListPluggableDatabasesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListPluggableDatabasesRequest").msgclass - ListPluggableDatabasesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb b/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb deleted file mode 100644 index 47130b36fd86..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/lib/google/cloud/oracledatabase/v1/vm_cluster_pb.rb +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: google/cloud/oracledatabase/v1/vm_cluster.proto - -require 'google/protobuf' - -require 'google/api/field_behavior_pb' -require 'google/api/resource_pb' -require 'google/cloud/oracledatabase/v1/common_pb' -require 'google/protobuf/timestamp_pb' -require 'google/type/datetime_pb' - - -descriptor_data = "\n/google/cloud/oracledatabase/v1/vm_cluster.proto\x12\x1egoogle.cloud.oracledatabase.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a+google/cloud/oracledatabase/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/datetime.proto\"\x82\x08\n\x0e\x43loudVmCluster\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12`\n\x16\x65xadata_infrastructure\x18\x02 \x01(\tB@\xe0\x41\x02\xfa\x41:\n8oracledatabase.googleapis.com/CloudExadataInfrastructure\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\nproperties\x18\x06 \x01(\x0b\x32\x38.google.cloud.oracledatabase.v1.CloudVmClusterPropertiesB\x03\xe0\x41\x01\x12O\n\x06labels\x18\x07 \x03(\x0b\x32:.google.cloud.oracledatabase.v1.CloudVmCluster.LabelsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x63idr\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x1f\n\x12\x62\x61\x63kup_subnet_cidr\x18\n \x01(\tB\x03\xe0\x41\x01\x12\x37\n\x07network\x18\x0b \x01(\tB&\xe0\x41\x01\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x1c\n\x0fgcp_oracle_zone\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x45\n\x0bodb_network\x18\r \x01(\tB0\xe0\x41\x01\xfa\x41*\n(oracledatabase.googleapis.com/OdbNetwork\x12\x43\n\nodb_subnet\x18\x0e \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12J\n\x11\x62\x61\x63kup_odb_subnet\x18\x0f \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'oracledatabase.googleapis.com/OdbSubnet\x12R\n\x12identity_connector\x18\x10 \x01(\x0b\x32\x31.google.cloud.oracledatabase.v1.IdentityConnectorB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9f\x01\xea\x41\x9b\x01\n,oracledatabase.googleapis.com/CloudVmCluster\x12Jprojects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}*\x0f\x63loudVmClusters2\x0e\x63loudVmCluster\"\xe6\x0c\n\x18\x43loudVmClusterProperties\x12\x11\n\x04ocid\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12_\n\x0clicense_type\x18\x02 \x01(\x0e\x32\x44.google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseTypeB\x03\xe0\x41\x02\x12\x17\n\ngi_version\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x04 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\x12\x1c\n\x0fssh_public_keys\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x17\n\nnode_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\x05shape\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nocpu_count\x18\x08 \x01(\x02\x42\x03\xe0\x41\x01\x12\x1b\n\x0ememory_size_gb\x18\t \x01(\x05\x42\x03\xe0\x41\x01\x12$\n\x17\x64\x62_node_storage_size_gb\x18\n \x01(\x05\x42\x03\xe0\x41\x01\x12\x1c\n\x0fstorage_size_gb\x18\x0b \x01(\x05\x42\x03\xe0\x41\x03\x12!\n\x14\x64\x61ta_storage_size_tb\x18\x0c \x01(\x01\x42\x03\xe0\x41\x01\x12\x65\n\x0f\x64isk_redundancy\x18\r \x01(\x0e\x32G.google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancyB\x03\xe0\x41\x01\x12%\n\x18sparse_diskgroup_enabled\x18\x0e \x01(\x08\x42\x03\xe0\x41\x01\x12!\n\x14local_backup_enabled\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\x12\x1c\n\x0fhostname_prefix\x18\x10 \x01(\tB\x03\xe0\x41\x01\x12g\n#diagnostics_data_collection_options\x18\x13 \x01(\x0b\x32\x35.google.cloud.oracledatabase.v1.DataCollectionOptionsB\x03\xe0\x41\x01\x12R\n\x05state\x18\x14 \x01(\x0e\x32>.google.cloud.oracledatabase.v1.CloudVmClusterProperties.StateB\x03\xe0\x41\x03\x12#\n\x16scan_listener_port_tcp\x18\x15 \x01(\x05\x42\x03\xe0\x41\x01\x12\'\n\x1ascan_listener_port_tcp_ssl\x18\x16 \x01(\x05\x42\x03\xe0\x41\x01\x12\x13\n\x06\x64omain\x18\x17 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08scan_dns\x18\x18 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x08hostname\x18\x19 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0e\x63pu_core_count\x18\x1a \x01(\x05\x42\x03\xe0\x41\x02\x12\x1b\n\x0esystem_version\x18\x1b \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bscan_ip_ids\x18\x1c \x03(\tB\x03\xe0\x41\x03\x12\x1f\n\x12scan_dns_record_id\x18\x1d \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07oci_url\x18\x1e \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64\x62_server_ocids\x18\x1f \x03(\tB\x03\xe0\x41\x01\x12\x1b\n\x0e\x63ompartment_id\x18 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0f\x64ns_listener_ip\x18# \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x63luster_name\x18$ \x01(\tB\x03\xe0\x41\x01\x12H\n\rcompute_model\x18% \x01(\x0e\x32,.google.cloud.oracledatabase.v1.ComputeModelB\x03\xe0\x41\x03\"]\n\x0bLicenseType\x12\x1c\n\x18LICENSE_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10LICENSE_INCLUDED\x10\x01\x12\x1a\n\x16\x42RING_YOUR_OWN_LICENSE\x10\x02\"G\n\x0e\x44iskRedundancy\x12\x1f\n\x1b\x44ISK_REDUNDANCY_UNSPECIFIED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06NORMAL\x10\x02\"\x97\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cPROVISIONING\x10\x01\x12\r\n\tAVAILABLE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0f\n\x0bTERMINATING\x10\x04\x12\x0e\n\nTERMINATED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x1b\n\x17MAINTENANCE_IN_PROGRESS\x10\x07\"\x8c\x01\n\x15\x44\x61taCollectionOptions\x12\'\n\x1a\x64iagnostics_events_enabled\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01\x12&\n\x19health_monitoring_enabled\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\"\n\x15incident_logs_enabled\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x42\xed\x01\n\"com.google.cloud.oracledatabase.v1B\x13\x43loudVmClusterProtoP\x01ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb\xaa\x02\x1eGoogle.Cloud.OracleDatabase.V1\xca\x02\x1eGoogle\\Cloud\\OracleDatabase\\V1\xea\x02!Google::Cloud::OracleDatabase::V1b\x06proto3" - -pool = ::Google::Protobuf::DescriptorPool.generated_pool -pool.add_serialized_file(descriptor_data) - -module Google - module Cloud - module OracleDatabase - module V1 - CloudVmCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmCluster").msgclass - CloudVmClusterProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmClusterProperties").msgclass - CloudVmClusterProperties::LicenseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType").enummodule - CloudVmClusterProperties::DiskRedundancy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy").enummodule - CloudVmClusterProperties::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.CloudVmClusterProperties.State").enummodule - DataCollectionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.oracledatabase.v1.DataCollectionOptions").msgclass - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/README.md b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/README.md deleted file mode 100644 index 8039fb55e54d..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# Oracle Database@Google Cloud V1 Protocol Buffer Documentation - -These files are for the YARD documentation of the generated protobuf files. -They are not intended to be required or loaded at runtime. diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb deleted file mode 100644 index 3ab0b096d445..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/client.rb +++ /dev/null @@ -1,593 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Required information for every language. - # @!attribute [rw] reference_docs_uri - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::String] - # Link to automatically generated reference documentation. Example: - # https://cloud.google.com/nodejs/docs/reference/asset/latest - # @!attribute [rw] destinations - # @return [::Array<::Google::Api::ClientLibraryDestination>] - # The destination where API teams want this client library to be published. - # @!attribute [rw] selective_gapic_generation - # @return [::Google::Api::SelectiveGapicGeneration] - # Configuration for which RPCs should be generated in the GAPIC client. - # - # Note: This field should not be used in most cases. - class CommonLanguageSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details about how and where to publish client libraries. - # @!attribute [rw] version - # @return [::String] - # Version of the API to apply these settings to. This is the full protobuf - # package for the API, ending in the version element. - # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". - # @!attribute [rw] launch_stage - # @return [::Google::Api::LaunchStage] - # Launch stage of this version of the API. - # @!attribute [rw] rest_numeric_enums - # @return [::Boolean] - # When using transport=rest, the client request will encode enums as - # numbers rather than strings. - # @!attribute [rw] java_settings - # @return [::Google::Api::JavaSettings] - # Settings for legacy Java features, supported in the Service YAML. - # @!attribute [rw] cpp_settings - # @return [::Google::Api::CppSettings] - # Settings for C++ client libraries. - # @!attribute [rw] php_settings - # @return [::Google::Api::PhpSettings] - # Settings for PHP client libraries. - # @!attribute [rw] python_settings - # @return [::Google::Api::PythonSettings] - # Settings for Python client libraries. - # @!attribute [rw] node_settings - # @return [::Google::Api::NodeSettings] - # Settings for Node client libraries. - # @!attribute [rw] dotnet_settings - # @return [::Google::Api::DotnetSettings] - # Settings for .NET client libraries. - # @!attribute [rw] ruby_settings - # @return [::Google::Api::RubySettings] - # Settings for Ruby client libraries. - # @!attribute [rw] go_settings - # @return [::Google::Api::GoSettings] - # Settings for Go client libraries. - class ClientLibrarySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # This message configures the settings for publishing [Google Cloud Client - # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) - # generated from the service config. - # @!attribute [rw] method_settings - # @return [::Array<::Google::Api::MethodSettings>] - # A list of API method settings, e.g. the behavior for methods that use the - # long-running operation pattern. - # @!attribute [rw] new_issue_uri - # @return [::String] - # Link to a *public* URI where users can report issues. Example: - # https://issuetracker.google.com/issues/new?component=190865&template=1161103 - # @!attribute [rw] documentation_uri - # @return [::String] - # Link to product home page. Example: - # https://cloud.google.com/asset-inventory/docs/overview - # @!attribute [rw] api_short_name - # @return [::String] - # Used as a tracking tag when collecting data about the APIs developer - # relations artifacts like docs, packages delivered to package managers, - # etc. Example: "speech". - # @!attribute [rw] github_label - # @return [::String] - # GitHub label to apply to issues and pull requests opened for this API. - # @!attribute [rw] codeowner_github_teams - # @return [::Array<::String>] - # GitHub teams to be added to CODEOWNERS in the directory in GitHub - # containing source code for the client libraries for this API. - # @!attribute [rw] doc_tag_prefix - # @return [::String] - # A prefix used in sample code when demarking regions to be included in - # documentation. - # @!attribute [rw] organization - # @return [::Google::Api::ClientLibraryOrganization] - # For whom the client library is being published. - # @!attribute [rw] library_settings - # @return [::Array<::Google::Api::ClientLibrarySettings>] - # Client library settings. If the same version string appears multiple - # times in this list, then the last one wins. Settings from earlier - # settings with the same version string are discarded. - # @!attribute [rw] proto_reference_documentation_uri - # @return [::String] - # Optional link to proto reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rpc - # @!attribute [rw] rest_reference_documentation_uri - # @return [::String] - # Optional link to REST reference documentation. Example: - # https://cloud.google.com/pubsub/lite/docs/reference/rest - class Publishing - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Java client libraries. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Java. Clobbers the java_package option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.java.package_name" field - # in gapic.yaml. API teams should use the protobuf java_package option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # java_settings: - # library_package: com.google.cloud.pubsub.v1 - # @!attribute [rw] service_class_names - # @return [::Google::Protobuf::Map{::String => ::String}] - # Configure the Java class name to use instead of the service's for its - # corresponding generated GAPIC client. Keys are fully-qualified - # service names as they appear in the protobuf (including the full - # the language_settings.java.interface_names" field in gapic.yaml. API - # teams should otherwise use the service name as it appears in the - # protobuf. - # - # Example of a YAML configuration:: - # - # publishing: - # java_settings: - # service_class_names: - # - google.pubsub.v1.Publisher: TopicAdmin - # - google.pubsub.v1.Subscriber: SubscriptionAdmin - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class JavaSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class ServiceClassNamesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for C++ client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class CppSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Php client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] library_package - # @return [::String] - # The package name to use in Php. Clobbers the php_namespace option - # set in the protobuf. This should be used **only** by APIs - # who have already set the language_settings.php.package_name" field - # in gapic.yaml. API teams should use the protobuf php_namespace option - # where possible. - # - # Example of a YAML configuration:: - # - # publishing: - # library_settings: - # php_settings: - # library_package: Google\Cloud\PubSub\V1 - class PhpSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Python client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] experimental_features - # @return [::Google::Api::PythonSettings::ExperimentalFeatures] - # Experimental features to be included during client library generation. - class PythonSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Experimental features to be included during client library generation. - # These fields will be deprecated once the feature graduates and is enabled - # by default. - # @!attribute [rw] rest_async_io_enabled - # @return [::Boolean] - # Enables generation of asynchronous REST clients if `rest` transport is - # enabled. By default, asynchronous REST clients will not be generated. - # This feature will be enabled by default 1 month after launching the - # feature in preview packages. - # @!attribute [rw] protobuf_pythonic_types_enabled - # @return [::Boolean] - # Enables generation of protobuf code using new types that are more - # Pythonic which are included in `protobuf>=5.29.x`. This feature will be - # enabled by default 1 month after launching the feature in preview - # packages. - # @!attribute [rw] unversioned_package_disabled - # @return [::Boolean] - # Disables generation of an unversioned Python package for this client - # library. This means that the module names will need to be versioned in - # import statements. For example `import google.cloud.library_v2` instead - # of `import google.cloud.library`. - class ExperimentalFeatures - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Node client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class NodeSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Dotnet client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from original service names to renamed versions. - # This is used when the default generated types - # would cause a naming conflict. (Neither name is - # fully-qualified.) - # Example: Subscriber to SubscriberServiceApi. - # @!attribute [rw] renamed_resources - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map from full resource types to the effective short name - # for the resource. This is used when otherwise resource - # named from different services would cause naming collisions. - # Example entry: - # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" - # @!attribute [rw] ignored_resources - # @return [::Array<::String>] - # List of full resource types to ignore during generation. - # This is typically used for API-specific Location resources, - # which should be handled by the generator as if they were actually - # the common Location resources. - # Example entry: "documentai.googleapis.com/Location" - # @!attribute [rw] forced_namespace_aliases - # @return [::Array<::String>] - # Namespaces which must be aliased in snippets due to - # a known (but non-generator-predictable) naming collision - # @!attribute [rw] handwritten_signatures - # @return [::Array<::String>] - # Method signatures (in the form "service.method(signature)") - # which are provided separately, so shouldn't be generated. - # Snippets *calling* these methods are still generated, however. - class DotnetSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedResourcesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Settings for Ruby client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - class RubySettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Settings for Go client libraries. - # @!attribute [rw] common - # @return [::Google::Api::CommonLanguageSettings] - # Some settings. - # @!attribute [rw] renamed_services - # @return [::Google::Protobuf::Map{::String => ::String}] - # Map of service names to renamed services. Keys are the package relative - # service names and values are the name to be used for the service client - # and call options. - # - # Example: - # - # publishing: - # go_settings: - # renamed_services: - # Publisher: TopicAdmin - class GoSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class RenamedServicesEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Describes the generator configuration for a method. - # @!attribute [rw] selector - # @return [::String] - # The fully qualified name of the method, for which the options below apply. - # This is used to find the method to apply the options. - # - # Example: - # - # publishing: - # method_settings: - # - selector: google.storage.control.v2.StorageControl.CreateFolder - # # method settings for CreateFolder... - # @!attribute [rw] long_running - # @return [::Google::Api::MethodSettings::LongRunning] - # Describes settings to use for long-running operations when generating - # API methods for RPCs. Complements RPCs that use the annotations in - # google/longrunning/operations.proto. - # - # Example of a YAML configuration:: - # - # publishing: - # method_settings: - # - selector: google.cloud.speech.v2.Speech.BatchRecognize - # long_running: - # initial_poll_delay: 60s # 1 minute - # poll_delay_multiplier: 1.5 - # max_poll_delay: 360s # 6 minutes - # total_poll_timeout: 54000s # 90 minutes - # @!attribute [rw] auto_populated_fields - # @return [::Array<::String>] - # List of top-level fields of the request message, that should be - # automatically populated by the client libraries based on their - # (google.api.field_info).format. Currently supported format: UUID4. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.CreateExample - # auto_populated_fields: - # - request_id - # @!attribute [rw] batching - # @return [::Google::Api::BatchingConfigProto] - # Batching configuration for an API method in client libraries. - # - # Example of a YAML configuration: - # - # publishing: - # method_settings: - # - selector: google.example.v1.ExampleService.BatchCreateExample - # batching: - # element_count_threshold: 1000 - # request_byte_threshold: 100000000 - # delay_threshold_millis: 10 - class MethodSettings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Describes settings to use when generating API methods that use the - # long-running operation pattern. - # All default values below are from those used in the client library - # generators (e.g. - # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). - # @!attribute [rw] initial_poll_delay - # @return [::Google::Protobuf::Duration] - # Initial delay after which the first poll request will be made. - # Default value: 5 seconds. - # @!attribute [rw] poll_delay_multiplier - # @return [::Float] - # Multiplier to gradually increase delay between subsequent polls until it - # reaches max_poll_delay. - # Default value: 1.5. - # @!attribute [rw] max_poll_delay - # @return [::Google::Protobuf::Duration] - # Maximum time between two subsequent poll requests. - # Default value: 45 seconds. - # @!attribute [rw] total_poll_timeout - # @return [::Google::Protobuf::Duration] - # Total polling timeout. - # Default value: 5 minutes. - class LongRunning - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # This message is used to configure the generation of a subset of the RPCs in - # a service for client libraries. - # - # Note: This feature should not be used in most cases. - # @!attribute [rw] methods - # @return [::Array<::String>] - # An allowlist of the fully qualified names of RPCs that should be included - # on public client surfaces. - # @!attribute [rw] generate_omitted_as_internal - # @return [::Boolean] - # Setting this to true indicates to the client generators that methods - # that would be excluded from the generation should instead be generated - # in a way that indicates these methods should not be consumed by - # end users. How this is expressed is up to individual language - # implementations to decide. Some examples may be: added annotations, - # obfuscated identifiers, or other language idiomatic patterns. - class SelectiveGapicGeneration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingConfigProto` defines the batching configuration for an API method. - # @!attribute [rw] thresholds - # @return [::Google::Api::BatchingSettingsProto] - # The thresholds which trigger a batched request to be sent. - # @!attribute [rw] batch_descriptor - # @return [::Google::Api::BatchingDescriptorProto] - # The request and response fields used in batching. - class BatchingConfigProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingSettingsProto` specifies a set of batching thresholds, each of - # which acts as a trigger to send a batch of messages as a request. At least - # one threshold must be positive nonzero. - # @!attribute [rw] element_count_threshold - # @return [::Integer] - # The number of elements of a field collected into a batch which, if - # exceeded, causes the batch to be sent. - # @!attribute [rw] request_byte_threshold - # @return [::Integer] - # The aggregated size of the batched field which, if exceeded, causes the - # batch to be sent. This size is computed by aggregating the sizes of the - # request field to be batched, not of the entire request message. - # @!attribute [rw] delay_threshold - # @return [::Google::Protobuf::Duration] - # The duration after which a batch should be sent, starting from the addition - # of the first message to that batch. - # @!attribute [rw] element_count_limit - # @return [::Integer] - # The maximum number of elements collected in a batch that could be accepted - # by server. - # @!attribute [rw] request_byte_limit - # @return [::Integer] - # The maximum size of the request that could be accepted by server. - # @!attribute [rw] flow_control_element_limit - # @return [::Integer] - # The maximum number of elements allowed by flow control. - # @!attribute [rw] flow_control_byte_limit - # @return [::Integer] - # The maximum size of data allowed by flow control. - # @!attribute [rw] flow_control_limit_exceeded_behavior - # @return [::Google::Api::FlowControlLimitExceededBehaviorProto] - # The behavior to take when the flow control limit is exceeded. - class BatchingSettingsProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # `BatchingDescriptorProto` specifies the fields of the request message to be - # used for batching, and, optionally, the fields of the response message to be - # used for demultiplexing. - # @!attribute [rw] batched_field - # @return [::String] - # The repeated field in the request message to be aggregated by batching. - # @!attribute [rw] discriminator_fields - # @return [::Array<::String>] - # A list of the fields in the request message. Two requests will be batched - # together only if the values of every field specified in - # `request_discriminator_fields` is equal between the two requests. - # @!attribute [rw] subresponse_field - # @return [::String] - # Optional. When present, indicates the field in the response message to be - # used to demultiplex the response into multiple response messages, in - # correspondence with the multiple request messages originally batched - # together. - class BatchingDescriptorProto - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The organization for which the client libraries are being published. - # Affects the url where generated docs are published, etc. - module ClientLibraryOrganization - # Not useful. - CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0 - - # Google Cloud Platform Org. - CLOUD = 1 - - # Ads (Advertising) Org. - ADS = 2 - - # Photos Org. - PHOTOS = 3 - - # Street View Org. - STREET_VIEW = 4 - - # Shopping Org. - SHOPPING = 5 - - # Geo Org. - GEO = 6 - - # Generative AI - https://developers.generativeai.google - GENERATIVE_AI = 7 - end - - # To where should client libraries be published? - module ClientLibraryDestination - # Client libraries will neither be generated nor published to package - # managers. - CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0 - - # Generate the client library in a repo under github.com/googleapis, - # but don't publish it to package managers. - GITHUB = 10 - - # Publish the library to package managers like nuget.org and npmjs.com. - PACKAGE_MANAGER = 20 - end - - # The behavior to take when the flow control limit is exceeded. - module FlowControlLimitExceededBehaviorProto - # Default behavior, system-defined. - UNSET_BEHAVIOR = 0 - - # Stop operation, raise error. - THROW_EXCEPTION = 1 - - # Pause operation until limit clears. - BLOCK = 2 - - # Continue operation, disregard limit. - IGNORE = 3 - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_behavior.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_behavior.rb deleted file mode 100644 index 582be187d115..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_behavior.rb +++ /dev/null @@ -1,85 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # An indicator of the behavior of a given field (for example, that a field - # is required in requests, or given as output but ignored as input). - # This **does not** change the behavior in protocol buffers itself; it only - # denotes the behavior and may affect how API tooling handles the field. - # - # Note: This enum **may** receive new values in the future. - module FieldBehavior - # Conventional default for enums. Do not use this. - FIELD_BEHAVIOR_UNSPECIFIED = 0 - - # Specifically denotes a field as optional. - # While all fields in protocol buffers are optional, this may be specified - # for emphasis if appropriate. - OPTIONAL = 1 - - # Denotes a field as required. - # This indicates that the field **must** be provided as part of the request, - # and failure to do so will cause an error (usually `INVALID_ARGUMENT`). - REQUIRED = 2 - - # Denotes a field as output only. - # This indicates that the field is provided in responses, but including the - # field in a request does nothing (the server *must* ignore it and - # *must not* throw an error as a result of the field's presence). - OUTPUT_ONLY = 3 - - # Denotes a field as input only. - # This indicates that the field is provided in requests, and the - # corresponding field is not included in output. - INPUT_ONLY = 4 - - # Denotes a field as immutable. - # This indicates that the field may be set once in a request to create a - # resource, but may not be changed thereafter. - IMMUTABLE = 5 - - # Denotes that a (repeated) field is an unordered list. - # This indicates that the service may provide the elements of the list - # in any arbitrary order, rather than the order the user originally - # provided. Additionally, the list's order may or may not be stable. - UNORDERED_LIST = 6 - - # Denotes that this field returns a non-empty default value if not set. - # This indicates that if the user provides the empty value in a request, - # a non-empty value will be returned. The user will not be aware of what - # non-empty value to expect. - NON_EMPTY_DEFAULT = 7 - - # Denotes that the field in a resource (a message annotated with - # google.api.resource) is used in the resource name to uniquely identify the - # resource. For AIP-compliant APIs, this should only be applied to the - # `name` field on the resource. - # - # This behavior should not be applied to references to other resources within - # the message. - # - # The identifier field of resources often have different field behavior - # depending on the request it is embedded in (e.g. for Create methods name - # is optional and unused, while for Update methods it is required). Instead - # of method-specific annotations, only `IDENTIFIER` is required. - IDENTIFIER = 8 - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_info.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_info.rb deleted file mode 100644 index 0f5acf0a5538..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/field_info.rb +++ /dev/null @@ -1,88 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # Rich semantic information of an API field beyond basic typing. - # @!attribute [rw] format - # @return [::Google::Api::FieldInfo::Format] - # The standard format of a field value. This does not explicitly configure - # any API consumer, just documents the API's format for the field it is - # applied to. - # @!attribute [rw] referenced_types - # @return [::Array<::Google::Api::TypeReference>] - # The type(s) that the annotated, generic field may represent. - # - # Currently, this must only be used on fields of type `google.protobuf.Any`. - # Supporting other generic types may be considered in the future. - class FieldInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The standard format of a field value. The supported formats are all backed - # by either an RFC defined by the IETF or a Google-defined AIP. - module Format - # Default, unspecified value. - FORMAT_UNSPECIFIED = 0 - - # Universally Unique Identifier, version 4, value as defined by - # https://datatracker.ietf.org/doc/html/rfc4122. The value may be - # normalized to entirely lowercase letters. For example, the value - # `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to - # `f47ac10b-58cc-0372-8567-0e02b2c3d479`. - UUID4 = 1 - - # Internet Protocol v4 value as defined by [RFC - # 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be - # condensed, with leading zeros in each octet stripped. For example, - # `001.022.233.040` would be condensed to `1.22.233.40`. - IPV4 = 2 - - # Internet Protocol v6 value as defined by [RFC - # 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be - # normalized to entirely lowercase letters with zeros compressed, following - # [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, - # the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. - IPV6 = 3 - - # An IP address in either v4 or v6 format as described by the individual - # values defined herein. See the comments on the IPV4 and IPV6 types for - # allowed normalizations of each. - IPV4_OR_IPV6 = 4 - end - end - - # A reference to a message type, for use in {::Google::Api::FieldInfo FieldInfo}. - # @!attribute [rw] type_name - # @return [::String] - # The name of the type that the annotated, generic field may represent. - # If the type is in the same protobuf package, the value can be the simple - # message name e.g., `"MyMessage"`. Otherwise, the value must be the - # fully-qualified message name e.g., `"google.library.v1.Book"`. - # - # If the type(s) are unknown to the service (e.g. the field accepts generic - # user input), use the wildcard `"*"` to denote this behavior. - # - # See [AIP-202](https://google.aip.dev/202#type-references) for more details. - class TypeReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/launch_stage.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/launch_stage.rb deleted file mode 100644 index 9392a413fb1b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/launch_stage.rb +++ /dev/null @@ -1,71 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # The launch stage as defined by [Google Cloud Platform - # Launch Stages](https://cloud.google.com/terms/launch-stages). - module LaunchStage - # Do not use this default value. - LAUNCH_STAGE_UNSPECIFIED = 0 - - # The feature is not yet implemented. Users can not use it. - UNIMPLEMENTED = 6 - - # Prelaunch features are hidden from users and are only visible internally. - PRELAUNCH = 7 - - # Early Access features are limited to a closed group of testers. To use - # these features, you must sign up in advance and sign a Trusted Tester - # agreement (which includes confidentiality provisions). These features may - # be unstable, changed in backward-incompatible ways, and are not - # guaranteed to be released. - EARLY_ACCESS = 1 - - # Alpha is a limited availability test for releases before they are cleared - # for widespread use. By Alpha, all significant design issues are resolved - # and we are in the process of verifying functionality. Alpha customers - # need to apply for access, agree to applicable terms, and have their - # projects allowlisted. Alpha releases don't have to be feature complete, - # no SLAs are provided, and there are no technical support obligations, but - # they will be far enough along that customers can actually use them in - # test environments or for limited-use tests -- just like they would in - # normal production cases. - ALPHA = 2 - - # Beta is the point at which we are ready to open a release for any - # customer to use. There are no SLA or technical support obligations in a - # Beta release. Products will be complete from a feature perspective, but - # may have some open outstanding issues. Beta releases are suitable for - # limited production use cases. - BETA = 3 - - # GA features are open to all developers and are considered stable and - # fully qualified for production use. - GA = 4 - - # Deprecated features are scheduled to be shut down and removed. For more - # information, see the "Deprecation Policy" section of our [Terms of - # Service](https://cloud.google.com/terms/) - # and the [Google Cloud Platform Subject to the Deprecation - # Policy](https://cloud.google.com/terms/deprecation) documentation. - DEPRECATED = 5 - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/resource.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/resource.rb deleted file mode 100644 index 25dec4847ac1..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/api/resource.rb +++ /dev/null @@ -1,227 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Api - # A simple descriptor of a resource type. - # - # ResourceDescriptor annotates a resource message (either by means of a - # protobuf annotation or use in the service config), and associates the - # resource's schema, the resource type, and the pattern of the resource name. - # - # Example: - # - # message Topic { - # // Indicates this message defines a resource schema. - # // Declares the resource type in the format of {service}/{kind}. - # // For Kubernetes resources, the format is {api group}/{kind}. - # option (google.api.resource) = { - # type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: "pubsub.googleapis.com/Topic" - # pattern: "projects/{project}/topics/{topic}" - # - # Sometimes, resources have multiple patterns, typically because they can - # live under multiple parents. - # - # Example: - # - # message LogEntry { - # option (google.api.resource) = { - # type: "logging.googleapis.com/LogEntry" - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # }; - # } - # - # The ResourceDescriptor Yaml config will look like: - # - # resources: - # - type: 'logging.googleapis.com/LogEntry' - # pattern: "projects/{project}/logs/{log}" - # pattern: "folders/{folder}/logs/{log}" - # pattern: "organizations/{organization}/logs/{log}" - # pattern: "billingAccounts/{billing_account}/logs/{log}" - # @!attribute [rw] type - # @return [::String] - # The resource type. It must be in the format of - # \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be - # singular and must not include version numbers. - # - # Example: `storage.googleapis.com/Bucket` - # - # The value of the resource_type_kind must follow the regular expression - # /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and - # should use PascalCase (UpperCamelCase). The maximum number of - # characters allowed for the `resource_type_kind` is 100. - # @!attribute [rw] pattern - # @return [::Array<::String>] - # Optional. The relative resource name pattern associated with this resource - # type. The DNS prefix of the full resource name shouldn't be specified here. - # - # The path pattern must follow the syntax, which aligns with HTTP binding - # syntax: - # - # Template = Segment { "/" Segment } ; - # Segment = LITERAL | Variable ; - # Variable = "{" LITERAL "}" ; - # - # Examples: - # - # - "projects/\\{project}/topics/\\{topic}" - # - "projects/\\{project}/knowledgeBases/\\{knowledge_base}" - # - # The components in braces correspond to the IDs for each resource in the - # hierarchy. It is expected that, if multiple patterns are provided, - # the same component name (e.g. "project") refers to IDs of the same - # type of resource. - # @!attribute [rw] name_field - # @return [::String] - # Optional. The field on the resource that designates the resource name - # field. If omitted, this is assumed to be "name". - # @!attribute [rw] history - # @return [::Google::Api::ResourceDescriptor::History] - # Optional. The historical or future-looking state of the resource pattern. - # - # Example: - # - # // The InspectTemplate message originally only supported resource - # // names with organization, and project was added later. - # message InspectTemplate { - # option (google.api.resource) = { - # type: "dlp.googleapis.com/InspectTemplate" - # pattern: - # "organizations/{organization}/inspectTemplates/{inspect_template}" - # pattern: "projects/{project}/inspectTemplates/{inspect_template}" - # history: ORIGINALLY_SINGLE_PATTERN - # }; - # } - # @!attribute [rw] plural - # @return [::String] - # The plural name used in the resource name and permission names, such as - # 'projects' for the resource name of 'projects/\\{project}' and the permission - # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception - # to this is for Nested Collections that have stuttering names, as defined - # in [AIP-122](https://google.aip.dev/122#nested-collections), where the - # collection ID in the resource name pattern does not necessarily directly - # match the `plural` value. - # - # It is the same concept of the `plural` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # - # Note: The plural form is required even for singleton resources. See - # https://aip.dev/156 - # @!attribute [rw] singular - # @return [::String] - # The same concept of the `singular` field in k8s CRD spec - # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ - # Such as "project" for the `resourcemanager.googleapis.com/Project` type. - # @!attribute [rw] style - # @return [::Array<::Google::Api::ResourceDescriptor::Style>] - # Style flag(s) for this resource. - # These indicate that a resource is expected to conform to a given - # style. See the specific style flags for additional information. - class ResourceDescriptor - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # A description of the historical or future-looking state of the - # resource pattern. - module History - # The "unset" value. - HISTORY_UNSPECIFIED = 0 - - # The resource originally had one pattern and launched as such, and - # additional patterns were added later. - ORIGINALLY_SINGLE_PATTERN = 1 - - # The resource has one pattern, but the API owner expects to add more - # later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents - # that from being necessary once there are multiple patterns.) - FUTURE_MULTI_PATTERN = 2 - end - - # A flag representing a specific style that a resource claims to conform to. - module Style - # The unspecified value. Do not use. - STYLE_UNSPECIFIED = 0 - - # This resource is intended to be "declarative-friendly". - # - # Declarative-friendly resources must be more strictly consistent, and - # setting this to true communicates to tools that this resource should - # adhere to declarative-friendly expectations. - # - # Note: This is used by the API linter (linter.aip.dev) to enable - # additional checks. - DECLARATIVE_FRIENDLY = 1 - end - end - - # Defines a proto annotation that describes a string field that refers to - # an API resource. - # @!attribute [rw] type - # @return [::String] - # The resource type that the annotated field references. - # - # Example: - # - # message Subscription { - # string topic = 2 [(google.api.resource_reference) = { - # type: "pubsub.googleapis.com/Topic" - # }]; - # } - # - # Occasionally, a field may reference an arbitrary resource. In this case, - # APIs use the special value * in their resource reference. - # - # Example: - # - # message GetIamPolicyRequest { - # string resource = 2 [(google.api.resource_reference) = { - # type: "*" - # }]; - # } - # @!attribute [rw] child_type - # @return [::String] - # The resource type of a child collection that the annotated field - # references. This is useful for annotating the `parent` field that - # doesn't have a fixed resource type. - # - # Example: - # - # message ListLogEntriesRequest { - # string parent = 1 [(google.api.resource_reference) = { - # child_type: "logging.googleapis.com/LogEntry" - # }; - # } - class ResourceReference - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb deleted file mode 100644 index 0047531880bc..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database.rb +++ /dev/null @@ -1,983 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Autonomous Database resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabase/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Autonomous Database resource in the following - # format: - # projects/\\{project}/locations/\\{region}/autonomousDatabases/\\{autonomous_database} - # @!attribute [rw] database - # @return [::String] - # Optional. Immutable. The name of the Autonomous Database. The database name - # must be unique in the project. The name must begin with a letter and can - # contain a maximum of 30 alphanumeric characters. - # @!attribute [rw] display_name - # @return [::String] - # Optional. Immutable. The display name for the Autonomous Database. The name - # does not have to be unique within your project. - # @!attribute [r] entitlement_id - # @return [::String] - # Output only. The ID of the subscription entitlement associated with the - # Autonomous Database. - # @!attribute [rw] admin_password - # @return [::String] - # Optional. Immutable. The password for the default ADMIN user. - # Note: Only one of `admin_password_secret_version` or `admin_password` can - # be populated. - # @!attribute [rw] admin_password_secret_version - # @return [::String] - # Optional. Immutable. The resource name of a secret version in Secret - # Manager which contains the database admin user's password. Format: - # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of - # `admin_password_secret_version` or `admin_password` can be populated. - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties] - # Optional. The properties of the Autonomous Database. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels or tags associated with the Autonomous Database. - # @!attribute [rw] network - # @return [::String] - # Optional. Immutable. The name of the VPC network used by the Autonomous - # Database in the following format: - # projects/\\{project}/global/networks/\\{network} - # @!attribute [rw] cidr - # @return [::String] - # Optional. Immutable. The subnet CIDR range for the Autonomous Database. - # @!attribute [rw] odb_network - # @return [::String] - # Optional. Immutable. The name of the OdbNetwork associated with the - # Autonomous Database. Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} It is - # optional but if specified, this should match the parent ODBNetwork of the - # OdbSubnet. - # @!attribute [rw] odb_subnet - # @return [::String] - # Optional. Immutable. The name of the OdbSubnet associated with the - # Autonomous Database. Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} - # @!attribute [rw] source_config - # @return [::Google::Cloud::OracleDatabase::V1::SourceConfig] - # Optional. Immutable. The source Autonomous Database configuration for the - # standby Autonomous Database. The source Autonomous Database is configured - # while creating the Peer Autonomous Database and can't be updated after - # creation. - # @!attribute [r] peer_autonomous_databases - # @return [::Array<::String>] - # Output only. The peer Autonomous Database names of the given Autonomous - # Database. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the Autonomous Database was created. - # @!attribute [r] disaster_recovery_supported_locations - # @return [::Array<::String>] - # Output only. List of supported GCP region to clone the Autonomous Database - # for disaster recovery. Format: `project/{project}/locations/{location}`. - class AutonomousDatabase - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The source configuration for the standby Autonomous Database. - # @!attribute [rw] autonomous_database - # @return [::String] - # Optional. The name of the primary Autonomous Database that is used to - # create a Peer Autonomous Database from a source. - # @!attribute [rw] automatic_backups_replication_enabled - # @return [::Boolean] - # Optional. This field specifies if the replication of automatic backups is - # enabled when creating a Data Guard. - class SourceConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The properties of an Autonomous Database. - # @!attribute [r] ocid - # @return [::String] - # Output only. OCID of the Autonomous Database. - # https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle - # @!attribute [rw] compute_count - # @return [::Float] - # Optional. Immutable. The number of compute servers for the Autonomous - # Database. - # @!attribute [rw] cpu_core_count - # @return [::Integer] - # Optional. Immutable. The number of CPU cores to be made available to the - # database. - # @!attribute [rw] data_storage_size_tb - # @return [::Integer] - # Optional. Immutable. The size of the data stored in the database, in - # terabytes. - # @!attribute [rw] data_storage_size_gb - # @return [::Integer] - # Optional. Immutable. The size of the data stored in the database, in - # gigabytes. - # @!attribute [rw] db_workload - # @return [::Google::Cloud::OracleDatabase::V1::DBWorkload] - # Required. Immutable. The workload type of the Autonomous Database. - # @!attribute [rw] db_edition - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::DatabaseEdition] - # Optional. Immutable. The edition of the Autonomous Databases. - # @!attribute [rw] character_set - # @return [::String] - # Optional. Immutable. The character set for the Autonomous Database. The - # default is AL32UTF8. - # @!attribute [rw] n_character_set - # @return [::String] - # Optional. Immutable. The national character set for the Autonomous - # Database. The default is AL16UTF16. - # @!attribute [rw] private_endpoint_ip - # @return [::String] - # Optional. Immutable. The private endpoint IP address for the Autonomous - # Database. - # @!attribute [rw] private_endpoint_label - # @return [::String] - # Optional. Immutable. The private endpoint label for the Autonomous - # Database. - # @!attribute [rw] db_version - # @return [::String] - # Optional. Immutable. The Oracle Database version for the Autonomous - # Database. - # @!attribute [rw] is_auto_scaling_enabled - # @return [::Boolean] - # Optional. Immutable. This field indicates if auto scaling is enabled for - # the Autonomous Database CPU core count. - # @!attribute [rw] is_storage_auto_scaling_enabled - # @return [::Boolean] - # Optional. Immutable. This field indicates if auto scaling is enabled for - # the Autonomous Database storage. - # @!attribute [rw] license_type - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::LicenseType] - # Required. Immutable. The license type used for the Autonomous Database. - # @!attribute [rw] customer_contacts - # @return [::Array<::Google::Cloud::OracleDatabase::V1::CustomerContact>] - # Optional. Immutable. The list of customer contacts. - # @!attribute [rw] secret_id - # @return [::String] - # Optional. Immutable. The ID of the Oracle Cloud Infrastructure vault - # secret. - # @!attribute [rw] vault_id - # @return [::String] - # Optional. Immutable. The ID of the Oracle Cloud Infrastructure vault. - # @!attribute [rw] maintenance_schedule_type - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::MaintenanceScheduleType] - # Optional. Immutable. The maintenance schedule of the Autonomous Database. - # @!attribute [rw] mtls_connection_required - # @return [::Boolean] - # Optional. Immutable. This field specifies if the Autonomous Database - # requires mTLS connections. - # @!attribute [rw] backup_retention_period_days - # @return [::Integer] - # Optional. Immutable. The retention period for the Autonomous Database. This - # field is specified in days, can range from 1 day to 60 days, and has a - # default value of 60 days. - # @!attribute [r] actual_used_data_storage_size_tb - # @return [::Float] - # Output only. The amount of storage currently being used for user and system - # data, in terabytes. - # @!attribute [r] allocated_storage_size_tb - # @return [::Float] - # Output only. The amount of storage currently allocated for the database - # tables and billed for, rounded up in terabytes. - # @!attribute [r] apex_details - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseApex] - # Output only. The details for the Oracle APEX Application Development. - # @!attribute [r] are_primary_allowlisted_ips_used - # @return [::Boolean] - # Output only. This field indicates the status of Data Guard and Access - # control for the Autonomous Database. The field's value is null if Data - # Guard is disabled or Access Control is disabled. The field's value is TRUE - # if both Data Guard and Access Control are enabled, and the Autonomous - # Database is using primary IP access control list (ACL) for standby. The - # field's value is FALSE if both Data Guard and Access Control are enabled, - # and the Autonomous Database is using a different IP access control list - # (ACL) for standby compared to primary. - # @!attribute [r] lifecycle_details - # @return [::String] - # Output only. The details of the current lifestyle state of the Autonomous - # Database. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::State] - # Output only. The current lifecycle state of the Autonomous Database. - # @!attribute [r] autonomous_container_database_id - # @return [::String] - # Output only. The Autonomous Container Database OCID. - # @!attribute [r] available_upgrade_versions - # @return [::Array<::String>] - # Output only. The list of available Oracle Database upgrade versions for an - # Autonomous Database. - # @!attribute [r] connection_strings - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseConnectionStrings] - # Output only. The connection strings used to connect to an Autonomous - # Database. - # @!attribute [r] connection_urls - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseConnectionUrls] - # Output only. The Oracle Connection URLs for an Autonomous Database. - # @!attribute [r] failed_data_recovery_duration - # @return [::Google::Protobuf::Duration] - # Output only. This field indicates the number of seconds of data loss during - # a Data Guard failover. - # @!attribute [r] memory_table_gbs - # @return [::Integer] - # Output only. The memory assigned to in-memory tables in an Autonomous - # Database. - # @!attribute [r] is_local_data_guard_enabled - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Boolean] - # Output only. Deprecated: Please use `local_data_guard_enabled` instead. - # This field indicates whether the Autonomous Database has local (in-region) - # Data Guard enabled. - # @!attribute [r] local_adg_auto_failover_max_data_loss_limit - # @deprecated This field is deprecated and may be removed in the next major version update. - # @return [::Integer] - # Output only. Deprecated: Please use - # `local_adg_auto_failover_max_data_loss_limit_duration` instead. - # This field indicates the maximum data loss limit for an Autonomous - # Database, in seconds. - # @!attribute [r] local_standby_db - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseStandbySummary] - # Output only. The details of the Autonomous Data Guard standby database. - # @!attribute [r] memory_per_oracle_compute_unit_gbs - # @return [::Integer] - # Output only. The amount of memory enabled per ECPU, in gigabytes. - # @!attribute [r] local_disaster_recovery_type - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::LocalDisasterRecoveryType] - # Output only. This field indicates the local disaster recovery (DR) type of - # an Autonomous Database. - # @!attribute [r] data_safe_state - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::DataSafeState] - # Output only. The current state of the Data Safe registration for the - # Autonomous Database. - # @!attribute [r] database_management_state - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::DatabaseManagementState] - # Output only. The current state of database management for the Autonomous - # Database. - # @!attribute [r] open_mode - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::OpenMode] - # Output only. This field indicates the current mode of the Autonomous - # Database. - # @!attribute [r] operations_insights_state - # @return [::Google::Cloud::OracleDatabase::V1::OperationsInsightsState] - # Output only. This field indicates the state of Operations Insights for the - # Autonomous Database. - # @!attribute [r] peer_db_ids - # @return [::Array<::String>] - # Output only. The list of OCIDs of standby databases located in Autonomous - # Data Guard remote regions that are associated with the source database. - # @!attribute [r] permission_level - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::PermissionLevel] - # Output only. The permission level of the Autonomous Database. - # @!attribute [r] private_endpoint - # @return [::String] - # Output only. The private endpoint for the Autonomous Database. - # @!attribute [r] refreshable_mode - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::RefreshableMode] - # Output only. The refresh mode of the cloned Autonomous Database. - # @!attribute [r] refreshable_state - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::RefreshableState] - # Output only. The refresh State of the clone. - # @!attribute [r] role - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseProperties::Role] - # Output only. The Data Guard role of the Autonomous Database. - # @!attribute [r] scheduled_operation_details - # @return [::Array<::Google::Cloud::OracleDatabase::V1::ScheduledOperationDetails>] - # Output only. The list and details of the scheduled operations of the - # Autonomous Database. - # @!attribute [r] sql_web_developer_url - # @return [::String] - # Output only. The SQL Web Developer URL for the Autonomous Database. - # @!attribute [r] supported_clone_regions - # @return [::Array<::String>] - # Output only. The list of available regions that can be used to create a - # clone for the Autonomous Database. - # @!attribute [r] used_data_storage_size_tbs - # @return [::Integer] - # Output only. The storage space used by Autonomous Database, in gigabytes. - # @!attribute [r] oci_url - # @return [::String] - # Output only. The Oracle Cloud Infrastructure link for the Autonomous - # Database. - # @!attribute [r] total_auto_backup_storage_size_gbs - # @return [::Float] - # Output only. The storage space used by automatic backups of Autonomous - # Database, in gigabytes. - # @!attribute [r] next_long_term_backup_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The long term backup schedule of the Autonomous Database. - # @!attribute [r] data_guard_role_changed_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time the Autonomous Data Guard role was changed - # for the standby Autonomous Database. - # @!attribute [r] disaster_recovery_role_changed_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time the Disaster Recovery role was changed for - # the standby Autonomous Database. - # @!attribute [r] maintenance_begin_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time when maintenance will begin. - # @!attribute [r] maintenance_end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time when maintenance will end. - # @!attribute [rw] allowlisted_ips - # @return [::Array<::String>] - # Optional. Immutable. The list of allowlisted IP addresses for the - # Autonomous Database. - # @!attribute [rw] encryption_key - # @return [::Google::Cloud::OracleDatabase::V1::EncryptionKey] - # Optional. The encryption key used to encrypt the Autonomous Database. - # Updating this field will add a new entry in the - # `encryption_key_history_entries` field with the former version. - # @!attribute [r] encryption_key_history_entries - # @return [::Array<::Google::Cloud::OracleDatabase::V1::EncryptionKeyHistoryEntry>] - # Output only. The history of the encryption keys used to encrypt the - # Autonomous Database. - # @!attribute [r] service_agent_email - # @return [::String] - # Output only. An Oracle-managed Google Cloud service account on which - # customers can grant roles to access resources in the customer project. - # @!attribute [rw] local_data_guard_enabled - # @return [::Boolean] - # Optional. Indicates whether the Autonomous Database has a local (in-region) - # standby database. Not applicable to cross-region Data Guard or dedicated - # Exadata infrastructure. - # @!attribute [rw] local_adg_auto_failover_max_data_loss_limit_duration - # @return [::Integer] - # Optional. This field indicates the maximum data loss limit for an - # Autonomous Database, in seconds. - class AutonomousDatabaseProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The editions available for the Autonomous Database. - module DatabaseEdition - # Default unspecified value. - DATABASE_EDITION_UNSPECIFIED = 0 - - # Standard Database Edition - STANDARD_EDITION = 1 - - # Enterprise Database Edition - ENTERPRISE_EDITION = 2 - end - - # The license types available for the Autonomous Database. - module LicenseType - # Unspecified - LICENSE_TYPE_UNSPECIFIED = 0 - - # License included part of offer - LICENSE_INCLUDED = 1 - - # Bring your own license - BRING_YOUR_OWN_LICENSE = 2 - end - - # The available maintenance schedules for the Autonomous Database. - module MaintenanceScheduleType - # Default unspecified value. - MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED = 0 - - # An EARLY maintenance schedule patches the database before - # the regular scheduled maintenance. - EARLY = 1 - - # A REGULAR maintenance schedule follows the normal maintenance cycle. - REGULAR = 2 - end - - # The types of local disaster recovery available for an Autonomous Database. - module LocalDisasterRecoveryType - # Default unspecified value. - LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED = 0 - - # Autonomous Data Guard recovery. - ADG = 1 - - # Backup based recovery. - BACKUP_BASED = 2 - - # Local disaster recovery is not available. - NOT_AVAILABLE = 3 - end - - # Varies states of the Data Safe registration for the Autonomous Database. - module DataSafeState - # Default unspecified value. - DATA_SAFE_STATE_UNSPECIFIED = 0 - - # Registering data safe state. - REGISTERING = 1 - - # Registered data safe state. - REGISTERED = 2 - - # Deregistering data safe state. - DEREGISTERING = 3 - - # Not registered data safe state. - NOT_REGISTERED = 4 - - # Failed data safe state. - FAILED = 5 - end - - # The different states of database management for an Autonomous Database. - module DatabaseManagementState - # Default unspecified value. - DATABASE_MANAGEMENT_STATE_UNSPECIFIED = 0 - - # Enabling Database Management state - ENABLING = 1 - - # Enabled Database Management state - ENABLED = 2 - - # Disabling Database Management state - DISABLING = 3 - - # Not Enabled Database Management state - NOT_ENABLED = 4 - - # Failed enabling Database Management state - FAILED_ENABLING = 5 - - # Failed disabling Database Management state - FAILED_DISABLING = 6 - end - - # This field indicates the modes of an Autonomous Database. - module OpenMode - # Default unspecified value. - OPEN_MODE_UNSPECIFIED = 0 - - # Read Only Mode - READ_ONLY = 1 - - # Read Write Mode - READ_WRITE = 2 - end - - # The types of permission levels for an Autonomous Database. - module PermissionLevel - # Default unspecified value. - PERMISSION_LEVEL_UNSPECIFIED = 0 - - # Restricted mode allows access only by admin users. - RESTRICTED = 1 - - # Normal access. - UNRESTRICTED = 2 - end - - # The refresh mode of the cloned Autonomous Database. - module RefreshableMode - # The default unspecified value. - REFRESHABLE_MODE_UNSPECIFIED = 0 - - # AUTOMATIC indicates that the cloned database is automatically - # refreshed with data from the source Autonomous Database. - AUTOMATIC = 1 - - # MANUAL indicates that the cloned database is manually refreshed with - # data from the source Autonomous Database. - MANUAL = 2 - end - - # The refresh state of the cloned Autonomous Database. - module RefreshableState - # Default unspecified value. - REFRESHABLE_STATE_UNSPECIFIED = 0 - - # Refreshing - REFRESHING = 1 - - # Not refreshed - NOT_REFRESHING = 2 - end - - # The Data Guard role of the Autonomous Database. - module Role - # Default unspecified value. - ROLE_UNSPECIFIED = 0 - - # Primary role - PRIMARY = 1 - - # Standby role - STANDBY = 2 - - # Disabled standby role - DISABLED_STANDBY = 3 - - # Backup copy role - BACKUP_COPY = 4 - - # Snapshot standby role - SNAPSHOT_STANDBY = 5 - end - end - - # The history of the encryption keys used to encrypt the Autonomous Database. - # @!attribute [r] encryption_key - # @return [::Google::Cloud::OracleDatabase::V1::EncryptionKey] - # Output only. The encryption key used to encrypt the Autonomous Database. - # @!attribute [r] activation_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time when the encryption key was activated on the - # Autonomous Database.. - class EncryptionKeyHistoryEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The encryption key used to encrypt the Autonomous Database. - # @!attribute [rw] provider - # @return [::Google::Cloud::OracleDatabase::V1::EncryptionKey::Provider] - # Optional. The provider of the encryption key. - # @!attribute [rw] kms_key - # @return [::String] - # Optional. The KMS key used to encrypt the Autonomous Database. - # This field is required if the provider is GOOGLE_MANAGED. - # The name of the KMS key resource in the following format: - # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. - class EncryptionKey - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The provider of the encryption key. - module Provider - # Default unspecified value. - PROVIDER_UNSPECIFIED = 0 - - # Google Managed KMS key, if selected, please provide the KMS key name. - GOOGLE_MANAGED = 1 - - # Oracle Managed. - ORACLE_MANAGED = 2 - end - end - - # Oracle APEX Application Development. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseApex - # @!attribute [r] apex_version - # @return [::String] - # Output only. The Oracle APEX Application Development version. - # @!attribute [r] ords_version - # @return [::String] - # Output only. The Oracle REST Data Services (ORDS) version. - class AutonomousDatabaseApex - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The connection string used to connect to the Autonomous Database. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionStrings - # @!attribute [r] all_connection_strings - # @return [::Google::Cloud::OracleDatabase::V1::AllConnectionStrings] - # Output only. Returns all connection strings that can be used to connect to - # the Autonomous Database. - # @!attribute [r] dedicated - # @return [::String] - # Output only. The database service provides the least level of resources to - # each SQL statement, but supports the most number of concurrent SQL - # statements. - # @!attribute [r] high - # @return [::String] - # Output only. The database service provides the highest level of resources - # to each SQL statement. - # @!attribute [r] low - # @return [::String] - # Output only. The database service provides the least level of resources to - # each SQL statement. - # @!attribute [r] medium - # @return [::String] - # Output only. The database service provides a lower level of resources to - # each SQL statement. - # @!attribute [r] profiles - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile>] - # Output only. A list of connection string profiles to allow clients to - # group, filter, and select values based on the structured metadata. - class AutonomousDatabaseConnectionStrings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The connection string profile to allow clients to group. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile - # @!attribute [r] consumer_group - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::ConsumerGroup] - # Output only. The current consumer group being used by the connection. - # @!attribute [r] display_name - # @return [::String] - # Output only. The display name for the database connection. - # @!attribute [r] host_format - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::HostFormat] - # Output only. The host name format being currently used in connection - # string. - # @!attribute [r] is_regional - # @return [::Boolean] - # Output only. This field indicates if the connection string is regional and - # is only applicable for cross-region Data Guard. - # @!attribute [r] protocol - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::Protocol] - # Output only. The protocol being used by the connection. - # @!attribute [r] session_mode - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::SessionMode] - # Output only. The current session mode of the connection. - # @!attribute [r] syntax_format - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::SyntaxFormat] - # Output only. The syntax of the connection string. - # @!attribute [r] tls_authentication - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseConnectionStringProfile::TLSAuthentication] - # Output only. This field indicates the TLS authentication type of the - # connection. - # @!attribute [r] value - # @return [::String] - # Output only. The value of the connection string. - class DatabaseConnectionStringProfile - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various consumer groups available in the connection string profile. - module ConsumerGroup - # Default unspecified value. - CONSUMER_GROUP_UNSPECIFIED = 0 - - # High consumer group. - HIGH = 1 - - # Medium consumer group. - MEDIUM = 2 - - # Low consumer group. - LOW = 3 - - # TP consumer group. - TP = 4 - - # TPURGENT consumer group. - TPURGENT = 5 - end - - # The host name format being used in the connection string. - module HostFormat - # Default unspecified value. - HOST_FORMAT_UNSPECIFIED = 0 - - # FQDN - FQDN = 1 - - # IP - IP = 2 - end - - # The protocol being used by the connection. - module Protocol - # Default unspecified value. - PROTOCOL_UNSPECIFIED = 0 - - # Tcp - TCP = 1 - - # Tcps - TCPS = 2 - end - - # The session mode of the connection. - module SessionMode - # Default unspecified value. - SESSION_MODE_UNSPECIFIED = 0 - - # Direct - DIRECT = 1 - - # Indirect - INDIRECT = 2 - end - - # Specifies syntax of the connection string. - module SyntaxFormat - # Default unspecified value. - SYNTAX_FORMAT_UNSPECIFIED = 0 - - # Long - LONG = 1 - - # Ezconnect - EZCONNECT = 2 - - # Ezconnectplus - EZCONNECTPLUS = 3 - end - - # This field indicates the TLS authentication type of the connection. - module TLSAuthentication - # Default unspecified value. - TLS_AUTHENTICATION_UNSPECIFIED = 0 - - # Server - SERVER = 1 - - # Mutual - MUTUAL = 2 - end - end - - # A list of all connection strings that can be used to connect to the - # Autonomous Database. - # @!attribute [r] high - # @return [::String] - # Output only. The database service provides the highest level of resources - # to each SQL statement. - # @!attribute [r] low - # @return [::String] - # Output only. The database service provides the least level of resources to - # each SQL statement. - # @!attribute [r] medium - # @return [::String] - # Output only. The database service provides a lower level of resources to - # each SQL statement. - class AllConnectionStrings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The URLs for accessing Oracle Application Express (APEX) and SQL Developer - # Web with a browser from a Compute instance. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseConnectionUrls - # @!attribute [r] apex_uri - # @return [::String] - # Output only. Oracle Application Express (APEX) URL. - # @!attribute [r] database_transforms_uri - # @return [::String] - # Output only. The URL of the Database Transforms for the Autonomous - # Database. - # @!attribute [r] graph_studio_uri - # @return [::String] - # Output only. The URL of the Graph Studio for the Autonomous Database. - # @!attribute [r] machine_learning_notebook_uri - # @return [::String] - # Output only. The URL of the Oracle Machine Learning (OML) Notebook for the - # Autonomous Database. - # @!attribute [r] machine_learning_user_management_uri - # @return [::String] - # Output only. The URL of Machine Learning user management the Autonomous - # Database. - # @!attribute [r] mongo_db_uri - # @return [::String] - # Output only. The URL of the MongoDB API for the Autonomous Database. - # @!attribute [r] ords_uri - # @return [::String] - # Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for - # the Autonomous Database. - # @!attribute [r] sql_dev_web_uri - # @return [::String] - # Output only. The URL of the Oracle SQL Developer Web for the Autonomous - # Database. - class AutonomousDatabaseConnectionUrls - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Autonomous Data Guard standby database details. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/AutonomousDatabaseStandbySummary - # @!attribute [r] lag_time_duration - # @return [::Google::Protobuf::Duration] - # Output only. The amount of time, in seconds, that the data of the standby - # database lags in comparison to the data of the primary database. - # @!attribute [r] lifecycle_details - # @return [::String] - # Output only. The additional details about the current lifecycle state of - # the Autonomous Database. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::State] - # Output only. The current lifecycle state of the Autonomous Database. - # @!attribute [r] data_guard_role_changed_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time the Autonomous Data Guard role was switched - # for the standby Autonomous Database. - # @!attribute [r] disaster_recovery_role_changed_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time the Disaster Recovery role was switched for - # the standby Autonomous Database. - class AutonomousDatabaseStandbySummary - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details of scheduled operation. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/ScheduledOperationDetails - # @!attribute [r] day_of_week - # @return [::Google::Type::DayOfWeek] - # Output only. Day of week. - # @!attribute [r] start_time - # @return [::Google::Type::TimeOfDay] - # Output only. Auto start time. - # @!attribute [r] stop_time - # @return [::Google::Type::TimeOfDay] - # Output only. Auto stop time. - class ScheduledOperationDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The type of wallet generation. - module GenerateType - # Default unspecified value. - GENERATE_TYPE_UNSPECIFIED = 0 - - # Used to generate wallet for all databases in the region. - ALL = 1 - - # Used to generate wallet for a single database. - SINGLE = 2 - end - - # The various lifecycle states of the Autonomous Database. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # Indicates that the Autonomous Database is in provisioning state. - PROVISIONING = 1 - - # Indicates that the Autonomous Database is in available state. - AVAILABLE = 2 - - # Indicates that the Autonomous Database is in stopping state. - STOPPING = 3 - - # Indicates that the Autonomous Database is in stopped state. - STOPPED = 4 - - # Indicates that the Autonomous Database is in starting state. - STARTING = 5 - - # Indicates that the Autonomous Database is in terminating state. - TERMINATING = 6 - - # Indicates that the Autonomous Database is in terminated state. - TERMINATED = 7 - - # Indicates that the Autonomous Database is in unavailable state. - UNAVAILABLE = 8 - - # Indicates that the Autonomous Database restore is in progress. - RESTORE_IN_PROGRESS = 9 - - # Indicates that the Autonomous Database failed to restore. - RESTORE_FAILED = 10 - - # Indicates that the Autonomous Database backup is in progress. - BACKUP_IN_PROGRESS = 11 - - # Indicates that the Autonomous Database scale is in progress. - SCALE_IN_PROGRESS = 12 - - # Indicates that the Autonomous Database is available but needs attention - # state. - AVAILABLE_NEEDS_ATTENTION = 13 - - # Indicates that the Autonomous Database is in updating state. - UPDATING = 14 - - # Indicates that the Autonomous Database's maintenance is in progress state. - MAINTENANCE_IN_PROGRESS = 15 - - # Indicates that the Autonomous Database is in restarting state. - RESTARTING = 16 - - # Indicates that the Autonomous Database is in recreating state. - RECREATING = 17 - - # Indicates that the Autonomous Database's role change is in progress state. - ROLE_CHANGE_IN_PROGRESS = 18 - - # Indicates that the Autonomous Database is in upgrading state. - UPGRADING = 19 - - # Indicates that the Autonomous Database is in inaccessible state. - INACCESSIBLE = 20 - - # Indicates that the Autonomous Database is in standby state. - STANDBY = 21 - end - - # The state of the Operations Insights for this Autonomous Database. - module OperationsInsightsState - # Default unspecified value. - OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0 - - # Enabling status for operation insights. - ENABLING = 1 - - # Enabled status for operation insights. - ENABLED = 2 - - # Disabling status for operation insights. - DISABLING = 3 - - # Not Enabled status for operation insights. - NOT_ENABLED = 4 - - # Failed enabling status for operation insights. - FAILED_ENABLING = 5 - - # Failed disabling status for operation insights. - FAILED_DISABLING = 6 - end - - # The various states available for the Autonomous Database workload type. - module DBWorkload - # Default unspecified value. - DB_WORKLOAD_UNSPECIFIED = 0 - - # Autonomous Transaction Processing database. - OLTP = 1 - - # Autonomous Data Warehouse database. - DW = 2 - - # Autonomous JSON Database. - AJD = 3 - - # Autonomous Database with the Oracle APEX Application Development workload - # type. - APEX = 4 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb deleted file mode 100644 index 191149d3f77f..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_database_character_set.rb +++ /dev/null @@ -1,57 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Autonomous Database character set resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Autonomous Database Character Set resource in - # the following format: - # projects/\\{project}/locations/\\{region}/autonomousDatabaseCharacterSets/\\{autonomous_database_character_set} - # @!attribute [r] character_set_type - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet::CharacterSetType] - # Output only. The character set type for the Autonomous Database. - # @!attribute [r] character_set - # @return [::String] - # Output only. The character set name for the Autonomous Database which is - # the ID in the resource name. - class AutonomousDatabaseCharacterSet - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of character set an Autonomous Database can have. - module CharacterSetType - # Character set type is not specified. - CHARACTER_SET_TYPE_UNSPECIFIED = 0 - - # Character set type is set to database. - DATABASE = 1 - - # Character set type is set to national. - NATIONAL = 2 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb deleted file mode 100644 index a8945bcaa9f1..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_backup.rb +++ /dev/null @@ -1,175 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Autonomous Database Backup resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseBackup/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Autonomous Database Backup resource with the - # format: - # projects/\\{project}/locations/\\{region}/autonomousDatabaseBackups/\\{autonomous_database_backup} - # @!attribute [rw] autonomous_database - # @return [::String] - # Required. The name of the Autonomous Database resource for which the backup - # is being created. Format: - # projects/\\{project}/locations/\\{region}/autonomousDatabases/\\{autonomous_database} - # @!attribute [rw] display_name - # @return [::String] - # Optional. User friendly name for the Backup. The name does not have to be - # unique. - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackupProperties] - # Optional. Various properties of the backup. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. labels or tags associated with the resource. - class AutonomousDatabaseBackup - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Properties of the Autonomous Database Backup resource. - # @!attribute [r] ocid - # @return [::String] - # Output only. OCID of the Autonomous Database backup. - # https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle - # @!attribute [rw] retention_period_days - # @return [::Integer] - # Optional. Retention period in days for the backup. - # @!attribute [r] compartment_id - # @return [::String] - # Output only. The OCID of the compartment. - # @!attribute [r] database_size_tb - # @return [::Float] - # Output only. The quantity of data in the database, in terabytes. - # @!attribute [r] db_version - # @return [::String] - # Output only. A valid Oracle Database version for Autonomous Database. - # @!attribute [r] is_long_term_backup - # @return [::Boolean] - # Output only. Indicates if the backup is long term backup. - # @!attribute [r] is_automatic_backup - # @return [::Boolean] - # Output only. Indicates if the backup is automatic or user initiated. - # @!attribute [r] is_restorable - # @return [::Boolean] - # Output only. Indicates if the backup can be used to restore the Autonomous - # Database. - # @!attribute [rw] key_store_id - # @return [::String] - # Optional. The OCID of the key store of Oracle Vault. - # @!attribute [rw] key_store_wallet - # @return [::String] - # Optional. The wallet name for Oracle Key Vault. - # @!attribute [rw] kms_key_id - # @return [::String] - # Optional. The OCID of the key container that is used as the master - # encryption key in database transparent data encryption (TDE) operations. - # @!attribute [rw] kms_key_version_id - # @return [::String] - # Optional. The OCID of the key container version that is used in database - # transparent data encryption (TDE) operations KMS Key can have multiple key - # versions. If none is specified, the current key version (latest) of the Key - # Id is used for the operation. Autonomous Database Serverless does not use - # key versions, hence is not applicable for Autonomous Database Serverless - # instances. - # @!attribute [r] lifecycle_details - # @return [::String] - # Output only. Additional information about the current lifecycle state. - # @!attribute [r] lifecycle_state - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackupProperties::State] - # Output only. The lifecycle state of the backup. - # @!attribute [r] size_tb - # @return [::Float] - # Output only. The backup size in terabytes. - # @!attribute [r] available_till_time - # @return [::Google::Protobuf::Timestamp] - # Output only. Timestamp until when the backup will be available. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time the backup completed. - # @!attribute [r] start_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time the backup started. - # @!attribute [r] type - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackupProperties::Type] - # Output only. The type of the backup. - # @!attribute [rw] vault_id - # @return [::String] - # Optional. The OCID of the vault. - class AutonomousDatabaseBackupProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # // The various lifecycle states of the Autonomous Database Backup. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in creating state. - CREATING = 1 - - # Indicates that the resource is in active state. - ACTIVE = 2 - - # Indicates that the resource is in deleting state. - DELETING = 3 - - # Indicates that the resource is in deleted state. - DELETED = 4 - - # Indicates that the resource is in failed state. - FAILED = 6 - - # Indicates that the resource is in updating state. - UPDATING = 7 - end - - # The type of the backup. - module Type - # Default unspecified value. - TYPE_UNSPECIFIED = 0 - - # Incremental backups. - INCREMENTAL = 1 - - # Full backups. - FULL = 2 - - # Long term backups. - LONG_TERM = 3 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb deleted file mode 100644 index 46e97664892a..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/autonomous_db_version.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Autonomous Database version. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDbVersionSummary/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Autonomous Database Version resource with the - # format: - # projects/\\{project}/locations/\\{region}/autonomousDbVersions/\\{autonomous_db_version} - # @!attribute [r] version - # @return [::String] - # Output only. An Oracle Database version for Autonomous Database. - # @!attribute [r] db_workload - # @return [::Google::Cloud::OracleDatabase::V1::DBWorkload] - # Output only. The Autonomous Database workload type. - # @!attribute [r] workload_uri - # @return [::String] - # Output only. A URL that points to a detailed description of the Autonomous - # Database version. - class AutonomousDbVersion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/common.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/common.rb deleted file mode 100644 index d71a8647e850..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/common.rb +++ /dev/null @@ -1,101 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # The CustomerContact reference as defined by Oracle. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/CustomerContact - # @!attribute [rw] email - # @return [::String] - # Required. The email address used by Oracle to send notifications regarding - # databases and infrastructure. - class CustomerContact - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The identity connector details which will allow OCI to securely access - # the resources in the customer project. - # @!attribute [r] service_agent_email - # @return [::String] - # Output only. A google managed service account on which customers can grant - # roles to access resources in the customer project. Example: - # `p176944527254-55-75119d87fd8f@gcp-sa-oci.iam.gserviceaccount.com` - # @!attribute [r] connection_state - # @return [::Google::Cloud::OracleDatabase::V1::IdentityConnector::ConnectionState] - # Output only. The connection state of the identity connector. - class IdentityConnector - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various connection states of the WorkloadIdentityPoolConnection. - module ConnectionState - # Default unspecified value. - CONNECTION_STATE_UNSPECIFIED = 0 - - # The identity pool connection is connected. - CONNECTED = 1 - - # The identity pool connection is partially connected. - PARTIALLY_CONNECTED = 2 - - # The identity pool connection is disconnected. - DISCONNECTED = 3 - - # The identity pool connection is in an unknown state. - UNKNOWN = 4 - end - end - - # Data collection options for diagnostics. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DataCollectionOptions - # @!attribute [rw] is_diagnostics_events_enabled - # @return [::Boolean] - # Optional. Indicates whether to enable data collection for diagnostics. - # @!attribute [rw] is_health_monitoring_enabled - # @return [::Boolean] - # Optional. Indicates whether to enable health monitoring. - # @!attribute [rw] is_incident_logs_enabled - # @return [::Boolean] - # Optional. Indicates whether to enable incident logs and trace collection. - class DataCollectionOptionsCommon - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The compute model of the Exadata Infrastructure, VM Cluster and Autonomous - # Database. - module ComputeModel - # Unspecified compute model. - COMPUTE_MODEL_UNSPECIFIED = 0 - - # Abstract measure of compute resources. ECPUs are based on the number of - # cores elastically allocated from a pool of compute and storage servers. - COMPUTE_MODEL_ECPU = 1 - - # Physical measure of compute resources. OCPUs are based on the physical - # core of a processor. - COMPUTE_MODEL_OCPU = 2 - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb deleted file mode 100644 index 2cd30dc40bd4..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database.rb +++ /dev/null @@ -1,352 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Database resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Database resource in the following format: - # projects/\\{project}/locations/\\{region}/databases/\\{database} - # @!attribute [rw] db_name - # @return [::String] - # Optional. The database name. The name must begin with an alphabetic - # character and can contain a maximum of eight alphanumeric characters. - # Special characters are not permitted. - # @!attribute [rw] db_unique_name - # @return [::String] - # Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up. - # @!attribute [rw] admin_password - # @return [::String] - # Optional. The password for the default ADMIN user. - # Note: Only one of `admin_password_secret_version` or `admin_password` can - # be populated. - # @!attribute [rw] admin_password_secret_version - # @return [::String] - # Optional. The resource name of a secret version in Secret Manager which - # contains the database admin user's password. Format: - # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of - # `admin_password_secret_version` or `admin_password` can be populated. - # @!attribute [rw] tde_wallet_password - # @return [::String] - # Optional. The TDE wallet password for the database. - # Note: Only one of `tde_wallet_password_secret_version` or - # `tde_wallet_password` can be populated. - # @!attribute [rw] tde_wallet_password_secret_version - # @return [::String] - # Optional. The resource name of a secret version in Secret Manager which - # contains the TDE wallet password for the database. Format: - # projects/\\{project}/secrets/\\{secret}/versions/\\{version}. Note: Only one of - # `tde_wallet_password_secret_version` or `tde_wallet_password` can be - # populated. - # @!attribute [rw] character_set - # @return [::String] - # Optional. The character set for the database. The default is AL32UTF8. - # @!attribute [rw] ncharacter_set - # @return [::String] - # Optional. The national character set for the database. The default is - # AL16UTF16. - # @!attribute [r] oci_url - # @return [::String] - # Output only. HTTPS link to OCI resources exposed to Customer via UI - # Interface. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the Database was created. - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseProperties] - # Optional. The properties of the Database. - # @!attribute [rw] database_id - # @return [::String] - # Optional. The database ID of the Database. - # @!attribute [rw] db_home_name - # @return [::String] - # Optional. The name of the DbHome resource associated with the Database. - # @!attribute [r] gcp_oracle_zone - # @return [::String] - # Output only. The GCP Oracle zone where the Database is created. - # @!attribute [r] ops_insights_status - # @return [::Google::Cloud::OracleDatabase::V1::Database::OperationsInsightsStatus] - # Output only. The Status of Operations Insights for this Database. - # @!attribute [rw] pluggable_database_id - # @return [::String] - # Optional. The ID of the pluggable database associated with the Database. - # The ID must be unique within the project and location. - # @!attribute [rw] pluggable_database_name - # @return [::String] - # Optional. The pluggable database associated with the Database. The name - # must begin with an alphabetic character and can contain a maximum of thirty - # alphanumeric characters. - class Database - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The Status of Operations Insights for this Database. - module OperationsInsightsStatus - # Default unspecified value. - OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED = 0 - - # Indicates that the operations insights are being enabled. - ENABLING = 1 - - # Indicates that the operations insights are enabled. - ENABLED = 2 - - # Indicates that the operations insights are being disabled. - DISABLING = 3 - - # Indicates that the operations insights are not enabled. - NOT_ENABLED = 4 - - # Indicates that the operations insights failed to enable. - FAILED_ENABLING = 5 - - # Indicates that the operations insights failed to disable. - FAILED_DISABLING = 6 - end - end - - # The properties of a Database. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseProperties::DatabaseLifecycleState] - # Output only. State of the Database. - # @!attribute [rw] db_version - # @return [::String] - # Required. The Oracle Database version. - # @!attribute [rw] db_backup_config - # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig] - # Optional. Backup options for the Database. - # @!attribute [r] database_management_config - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseManagementConfig] - # Output only. The Database Management config. - class DatabaseProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various lifecycle states of the Database. - module DatabaseLifecycleState - # Default unspecified value. - DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in provisioning state. - PROVISIONING = 1 - - # Indicates that the resource is in available state. - AVAILABLE = 2 - - # Indicates that the resource is in updating state. - UPDATING = 3 - - # Indicates that the resource is in backup in progress state. - BACKUP_IN_PROGRESS = 4 - - # Indicates that the resource is in upgrading state. - UPGRADING = 5 - - # Indicates that the resource is in converting state. - CONVERTING = 6 - - # Indicates that the resource is in terminating state. - TERMINATING = 7 - - # Indicates that the resource is in terminated state. - TERMINATED = 8 - - # Indicates that the resource is in restore failed state. - RESTORE_FAILED = 9 - - # Indicates that the resource is in failed state. - FAILED = 10 - end - end - - # Backup Options for the Database. - # @!attribute [rw] auto_backup_enabled - # @return [::Boolean] - # Optional. If set to true, enables automatic backups on the database. - # @!attribute [rw] backup_destination_details - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupDestinationDetails>] - # Optional. Details of the database backup destinations. - # @!attribute [rw] retention_period_days - # @return [::Integer] - # Optional. The number of days an automatic backup is retained before being - # automatically deleted. This value determines the earliest point in time to - # which a database can be restored. Min: 1, Max: 60. - # @!attribute [rw] backup_deletion_policy - # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupDeletionPolicy] - # Optional. This defines when the backups will be deleted after Database - # termination. - # @!attribute [rw] auto_full_backup_day - # @return [::Google::Type::DayOfWeek] - # Optional. The day of the week on which the full backup should be performed - # on the database. If no value is provided, it will default to Sunday. - # @!attribute [rw] auto_full_backup_window - # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupWindow] - # Optional. The window in which the full backup should be performed on the - # database. If no value is provided, the default is anytime. - # @!attribute [rw] auto_incremental_backup_window - # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupWindow] - # Optional. The window in which the incremental backup should be performed on - # the database. If no value is provided, the default is anytime except the - # auto full backup day. - class DbBackupConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The details of the database backup destination. - # @!attribute [rw] type - # @return [::Google::Cloud::OracleDatabase::V1::DbBackupConfig::BackupDestinationType] - # Optional. The type of the database backup destination. - class BackupDestinationDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The type of the database backup destination. - module BackupDestinationType - # Default unspecified value. - BACKUP_DESTINATION_TYPE_UNSPECIFIED = 0 - - # Backup destination type is NFS. - NFS = 1 - - # Backup destination type is Recovery Appliance. - RECOVERY_APPLIANCE = 2 - - # Backup destination type is Object Store. - OBJECT_STORE = 3 - - # Backup destination type is Local. - LOCAL = 4 - - # Backup destination type is DBRS. - DBRS = 5 - end - - # The 2 hour window in which the backup should be performed on the database. - module BackupWindow - # Default unspecified value. - BACKUP_WINDOW_UNSPECIFIED = 0 - - # 12:00 AM - 2:00 AM - SLOT_ONE = 1 - - # 2:00 AM - 4:00 AM - SLOT_TWO = 2 - - # 4:00 AM - 6:00 AM - SLOT_THREE = 3 - - # 6:00 AM - 8:00 AM - SLOT_FOUR = 4 - - # 8:00 AM - 10:00 AM - SLOT_FIVE = 5 - - # 10:00 AM - 12:00 PM - SLOT_SIX = 6 - - # 12:00 PM - 2:00 PM - SLOT_SEVEN = 7 - - # 2:00 PM - 4:00 PM - SLOT_EIGHT = 8 - - # 4:00 PM - 6:00 PM - SLOT_NINE = 9 - - # 6:00 PM - 8:00 PM - SLOT_TEN = 10 - - # 8:00 PM - 10:00 PM - SLOT_ELEVEN = 11 - - # 10:00 PM - 12:00 AM - SLOT_TWELVE = 12 - end - - # This defines when the backups will be deleted after Database termination. - module BackupDeletionPolicy - # Default unspecified value. - BACKUP_DELETION_POLICY_UNSPECIFIED = 0 - - # Keeps the backup for predefined time - # i.e. 72 hours and then delete permanently. - DELETE_IMMEDIATELY = 1 - - # Keeps the backups as per the policy defined - # for database backups. - DELETE_AFTER_RETENTION_PERIOD = 2 - end - end - - # The request for `Database.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Database resource in the following format: - # projects/\\{project}/locations/\\{region}/databases/\\{database} - class GetDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `Database.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent resource name in the following format: - # projects/\\{project}/locations/\\{region} - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 Databases will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. list for - # container databases is supported only with a valid dbSystem (full resource - # name) filter in this format: - # `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}"` - class ListDatabasesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `Database.List`. - # @!attribute [rw] databases - # @return [::Array<::Google::Cloud::OracleDatabase::V1::Database>] - # The list of Databases. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListDatabasesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb deleted file mode 100644 index d0195f87c09c..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/database_character_set.rb +++ /dev/null @@ -1,99 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Database character set resource. - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Database Character Set resource in the - # following format: - # projects/\\{project}/locations/\\{region}/databaseCharacterSets/\\{database_character_set} - # @!attribute [r] character_set_type - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet::CharacterSetType] - # Output only. The character set type for the Database. - # @!attribute [r] character_set - # @return [::String] - # Output only. The character set name for the Database which is the ID in the - # resource name. - class DatabaseCharacterSet - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The type of character set a Database can have. - module CharacterSetType - # Character set type is not specified. - CHARACTER_SET_TYPE_UNSPECIFIED = 0 - - # Character set type is set to database. - DATABASE = 1 - - # Character set type is set to national. - NATIONAL = 2 - end - end - - # The request for `DatabaseCharacterSet.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for DatabaseCharacterSets in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of DatabaseCharacterSets to return. The - # service may return fewer than this value. If unspecified, at most 50 - # DatabaseCharacterSets will be returned. The maximum value is 1000; values - # above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous - # `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent - # page. - # - # When paginating, all other parameters provided to - # `ListDatabaseCharacterSets` must match the call that provided the page - # token. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. Only the - # **character_set_type** field is supported in the following format: - # `character_set_type="{characterSetType}"`. Accepted values include - # `DATABASE` and `NATIONAL`. - class ListDatabaseCharacterSetsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `DatabaseCharacterSet.List`. - # @!attribute [rw] database_character_sets - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet>] - # The list of DatabaseCharacterSets. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListDatabaseCharacterSetsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_node.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_node.rb deleted file mode 100644 index 703377ae9c08..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_node.rb +++ /dev/null @@ -1,106 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the database node resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the database node resource in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}/dbNodes/\\{db_node} - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::DbNodeProperties] - # Optional. Various properties of the database node. - class DbNode - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Various properties and settings associated with Db node. - # @!attribute [r] ocid - # @return [::String] - # Output only. OCID of database node. - # @!attribute [rw] ocpu_count - # @return [::Integer] - # Optional. OCPU count per database node. - # @!attribute [rw] memory_size_gb - # @return [::Integer] - # Memory allocated in GBs. - # @!attribute [rw] db_node_storage_size_gb - # @return [::Integer] - # Optional. Local storage per database node. - # @!attribute [rw] db_server_ocid - # @return [::String] - # Optional. Database server OCID. - # @!attribute [rw] hostname - # @return [::String] - # Optional. DNS - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::DbNodeProperties::State] - # Output only. State of the database node. - # @!attribute [rw] total_cpu_core_count - # @return [::Integer] - # Total CPU core count of the database node. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the database node was created. - class DbNodeProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various lifecycle states of the database node. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in provisioning state. - PROVISIONING = 1 - - # Indicates that the resource is in available state. - AVAILABLE = 2 - - # Indicates that the resource is in updating state. - UPDATING = 3 - - # Indicates that the resource is in stopping state. - STOPPING = 4 - - # Indicates that the resource is in stopped state. - STOPPED = 5 - - # Indicates that the resource is in starting state. - STARTING = 6 - - # Indicates that the resource is in terminating state. - TERMINATING = 7 - - # Indicates that the resource is in terminated state. - TERMINATED = 8 - - # Indicates that the resource is in failed state. - FAILED = 9 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_server.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_server.rb deleted file mode 100644 index 6a2d10c0e8c4..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_server.rb +++ /dev/null @@ -1,100 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the database server resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbServer/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the database server resource with the format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}/dbServers/\\{db_server} - # @!attribute [rw] display_name - # @return [::String] - # Optional. User friendly name for this resource. - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::DbServerProperties] - # Optional. Various properties of the database server. - class DbServer - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Various properties and settings associated with Exadata database server. - # @!attribute [r] ocid - # @return [::String] - # Output only. OCID of database server. - # @!attribute [rw] ocpu_count - # @return [::Integer] - # Optional. OCPU count per database. - # @!attribute [rw] max_ocpu_count - # @return [::Integer] - # Optional. Maximum OCPU count per database. - # @!attribute [rw] memory_size_gb - # @return [::Integer] - # Optional. Memory allocated in GBs. - # @!attribute [rw] max_memory_size_gb - # @return [::Integer] - # Optional. Maximum memory allocated in GBs. - # @!attribute [rw] db_node_storage_size_gb - # @return [::Integer] - # Optional. Local storage per VM. - # @!attribute [rw] max_db_node_storage_size_gb - # @return [::Integer] - # Optional. Maximum local storage per VM. - # @!attribute [rw] vm_count - # @return [::Integer] - # Optional. Vm count per database. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::DbServerProperties::State] - # Output only. State of the database server. - # @!attribute [r] db_node_ids - # @return [::Array<::String>] - # Output only. OCID of database nodes associated with the database server. - class DbServerProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various lifecycle states of the database server. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in creating state. - CREATING = 1 - - # Indicates that the resource is in available state. - AVAILABLE = 2 - - # Indicates that the resource is in unavailable state. - UNAVAILABLE = 3 - - # Indicates that the resource is in deleting state. - DELETING = 4 - - # Indicates that the resource is in deleted state. - DELETED = 5 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb deleted file mode 100644 index 9b7d961a3237..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system.rb +++ /dev/null @@ -1,386 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the DbSystem (BaseDB) resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the DbSystem resource in the following format: - # projects/\\{project}/locations/\\{region}/dbSystems/\\{db_system} - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties] - # Optional. The properties of the DbSystem. - # @!attribute [rw] gcp_oracle_zone - # @return [::String] - # Optional. The GCP Oracle zone where Oracle DbSystem is hosted. - # Example: us-east4-b-r2. - # If not specified, the system will pick a zone based on availability. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels or tags associated with the DbSystem. - # @!attribute [rw] odb_network - # @return [::String] - # Optional. The name of the OdbNetwork associated with the DbSystem. - # Format: projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} - # It is optional but if specified, this should match the parent ODBNetwork of - # the OdbSubnet. - # @!attribute [rw] odb_subnet - # @return [::String] - # Required. The name of the OdbSubnet associated with the DbSystem for IP - # allocation. Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} - # @!attribute [r] entitlement_id - # @return [::String] - # Output only. The ID of the subscription entitlement associated with the - # DbSystem - # @!attribute [rw] display_name - # @return [::String] - # Required. The display name for the System db. The name does not have to - # be unique within your project. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the DbSystem was created. - # @!attribute [r] oci_url - # @return [::String] - # Output only. HTTPS link to OCI resources exposed to Customer via UI - # Interface. - class DbSystem - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The properties of a DbSystem. - # @!attribute [rw] shape - # @return [::String] - # Required. Shape of DB System. - # @!attribute [rw] compute_count - # @return [::Integer] - # Required. The number of CPU cores to enable for the DbSystem. - # @!attribute [rw] initial_data_storage_size_gb - # @return [::Integer] - # Required. The initial data storage size in GB. - # @!attribute [rw] database_edition - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties::DbSystemDatabaseEdition] - # Required. The database edition of the DbSystem. - # @!attribute [rw] license_model - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties::LicenseModel] - # Required. The license model of the DbSystem. - # @!attribute [rw] ssh_public_keys - # @return [::Array<::String>] - # Required. SSH public keys to be stored with the DbSystem. - # @!attribute [rw] hostname_prefix - # @return [::String] - # Optional. Prefix for DB System host names. - # @!attribute [r] hostname - # @return [::String] - # Output only. The hostname of the DbSystem. - # @!attribute [rw] private_ip - # @return [::String] - # Optional. The private IP address of the DbSystem. - # @!attribute [rw] data_collection_options - # @return [::Google::Cloud::OracleDatabase::V1::DataCollectionOptionsDbSystem] - # Optional. Data collection options for diagnostics. - # @!attribute [rw] time_zone - # @return [::Google::Type::TimeZone] - # Optional. Time zone of the DbSystem. - # @!attribute [r] lifecycle_state - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties::DbSystemLifecycleState] - # Output only. State of the DbSystem. - # @!attribute [rw] db_home - # @return [::Google::Cloud::OracleDatabase::V1::DbHome] - # Optional. Details for creating a Database Home. - # @!attribute [r] ocid - # @return [::String] - # Output only. OCID of the DbSystem. - # @!attribute [rw] memory_size_gb - # @return [::Integer] - # Optional. The memory size in GB. - # @!attribute [rw] compute_model - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemProperties::ComputeModel] - # Optional. The compute model of the DbSystem. - # @!attribute [rw] data_storage_size_gb - # @return [::Integer] - # Optional. The data storage size in GB that is currently available to - # DbSystems. - # @!attribute [rw] reco_storage_size_gb - # @return [::Integer] - # Optional. The reco/redo storage size in GB. - # @!attribute [rw] domain - # @return [::String] - # Optional. The host domain name of the DbSystem. - # @!attribute [rw] node_count - # @return [::Integer] - # Optional. The number of nodes in the DbSystem. - # @!attribute [rw] db_system_options - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemOptions] - # Optional. The options for the DbSystem. - class DbSystemProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The editions available for DbSystem. - module DbSystemDatabaseEdition - # The database edition is unspecified. - DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED = 0 - - # The database edition is Standard. - STANDARD_EDITION = 1 - - # The database edition is Enterprise. - ENTERPRISE_EDITION = 2 - - # The database edition is Enterprise Edition. - ENTERPRISE_EDITION_HIGH_PERFORMANCE = 3 - end - - # The license model of the DbSystem. - module LicenseModel - # The license model is unspecified. - LICENSE_MODEL_UNSPECIFIED = 0 - - # The license model is included. - LICENSE_INCLUDED = 1 - - # The license model is bring your own license. - BRING_YOUR_OWN_LICENSE = 2 - end - - # The various lifecycle states of the DbSystem. - module DbSystemLifecycleState - # Default unspecified value. - DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in provisioning state. - PROVISIONING = 1 - - # Indicates that the resource is in available state. - AVAILABLE = 2 - - # Indicates that the resource is in updating state. - UPDATING = 3 - - # Indicates that the resource is in terminating state. - TERMINATING = 4 - - # Indicates that the resource is in terminated state. - TERMINATED = 5 - - # Indicates that the resource is in failed state. - FAILED = 6 - - # Indicates that the resource has been migrated. - MIGRATED = 7 - - # Indicates that the resource is in maintenance in progress state. - MAINTENANCE_IN_PROGRESS = 8 - - # Indicates that the resource needs attention. - NEEDS_ATTENTION = 9 - - # Indicates that the resource is upgrading. - UPGRADING = 10 - end - - # The compute model of the DbSystem. - module ComputeModel - # The compute model is unspecified. - COMPUTE_MODEL_UNSPECIFIED = 0 - - # The compute model is virtual. - ECPU = 1 - - # The compute model is physical. - OCPU = 2 - end - end - - # Data collection options for DbSystem. - # @!attribute [rw] is_diagnostics_events_enabled - # @return [::Boolean] - # Optional. Indicates whether to enable data collection for diagnostics. - # @!attribute [rw] is_incident_logs_enabled - # @return [::Boolean] - # Optional. Indicates whether to enable incident logs and trace collection. - class DataCollectionOptionsDbSystem - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Details of the DbSystem Options. - # @!attribute [rw] storage_management - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemOptions::StorageManagement] - # Optional. The storage option used in DB system. - class DbSystemOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The storage option used in DB system. - module StorageManagement - # The storage management is unspecified. - STORAGE_MANAGEMENT_UNSPECIFIED = 0 - - # Automatic storage management. This option is not supported. Only LVM is - # supported. - ASM = 1 - - # Logical Volume management. - LVM = 2 - end - end - - # Details of the Database Home resource. - # @!attribute [rw] display_name - # @return [::String] - # Optional. The display name for the Database Home. The name does not have to - # be unique within your project. - # @!attribute [rw] db_version - # @return [::String] - # Required. A valid Oracle Database version. For a list of supported - # versions, use the ListDbVersions operation. - # @!attribute [rw] database - # @return [::Google::Cloud::OracleDatabase::V1::Database] - # Required. The Database resource. - # @!attribute [rw] is_unified_auditing_enabled - # @return [::Boolean] - # Optional. Whether unified auditing is enabled for the Database Home. - class DbHome - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbSystem.Create`. - # @!attribute [rw] parent - # @return [::String] - # Required. The value for parent of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] db_system_id - # @return [::String] - # Required. The ID of the DbSystem to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @!attribute [rw] db_system - # @return [::Google::Cloud::OracleDatabase::V1::DbSystem] - # Required. The resource being created. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class CreateDbSystemRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbSystem.Delete`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class DeleteDbSystemRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbSystem.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the DbSystem in the following format: - # projects/\\{project}/locations/\\{location}/dbSystems/\\{db_system}. - class GetDbSystemRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbSystem.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for DbSystems in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 DbSystems will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. - # @!attribute [rw] order_by - # @return [::String] - # Optional. An expression for ordering the results of the request. - class ListDbSystemsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `DbSystem.List`. - # @!attribute [rw] db_systems - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbSystem>] - # The list of DbSystems. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unreachable locations when listing resources across all locations using - # wildcard location '-'. - class ListDbSystemsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb deleted file mode 100644 index 657094ae508b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_initial_storage_size.rb +++ /dev/null @@ -1,126 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Summary of the DbSystem initial storage size. - # @!attribute [r] name - # @return [::String] - # Output only. The name of the resource. - # @!attribute [r] properties - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSizeProperties] - # Output only. The properties of the DbSystem initial storage size summary. - class DbSystemInitialStorageSize - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The properties of a DbSystem initial storage size summary. - # @!attribute [r] storage_management - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSizeProperties::StorageManagement] - # Output only. The storage option used in DB system. - # @!attribute [r] shape_type - # @return [::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSizeProperties::ShapeType] - # Output only. VM shape platform type - # @!attribute [r] storage_size_details - # @return [::Array<::Google::Cloud::OracleDatabase::V1::StorageSizeDetails>] - # Output only. List of storage disk details. - # @!attribute [r] launch_from_backup_storage_size_details - # @return [::Array<::Google::Cloud::OracleDatabase::V1::StorageSizeDetails>] - # Output only. List of storage disk details available for launches from - # backup. - class DbSystemInitialStorageSizeProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The storage option used in the DB system. - module StorageManagement - # Unspecified storage management. - STORAGE_MANAGEMENT_UNSPECIFIED = 0 - - # Automatic Storage Management. - ASM = 1 - - # Logical Volume Management. - LVM = 2 - end - - # The shape type of the DB system. - module ShapeType - # Unspecified shape type. - SHAPE_TYPE_UNSPECIFIED = 0 - - # Standard X86. - STANDARD_X86 = 1 - end - end - - # The initial storage size, in gigabytes, that is applicable for virtual - # machine DBSystem. - # @!attribute [r] data_storage_size_in_gbs - # @return [::Integer] - # Output only. The data storage size, in gigabytes, that is applicable for - # virtual machine DBSystem. - # @!attribute [r] reco_storage_size_in_gbs - # @return [::Integer] - # Output only. The RECO/REDO storage size, in gigabytes, that is applicable - # for virtual machine DBSystem. - class StorageSizeDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbSystemInitialStorageSizes.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the DbSystemInitialStorageSize resource with - # the format: projects/\\{project}/locations/\\{location} - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be - # returned. The maximum value is 1000; values above 1000 will be reset to - # 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - class ListDbSystemInitialStorageSizesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `DbSystemInitialStorageSizes.List`. - # @!attribute [rw] db_system_initial_storage_sizes - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize>] - # The list of DbSystemInitialStorageSizes. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListDbSystemInitialStorageSizesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb deleted file mode 100644 index b40bb777ec36..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_system_shape.rb +++ /dev/null @@ -1,70 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Database System Shapes resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Database System Shape resource with the format: - # projects/\\{project}/locations/\\{region}/dbSystemShapes/\\{db_system_shape} - # @!attribute [rw] shape - # @return [::String] - # Optional. shape - # @!attribute [rw] min_node_count - # @return [::Integer] - # Optional. Minimum number of database servers. - # @!attribute [rw] max_node_count - # @return [::Integer] - # Optional. Maximum number of database servers. - # @!attribute [rw] min_storage_count - # @return [::Integer] - # Optional. Minimum number of storage servers. - # @!attribute [rw] max_storage_count - # @return [::Integer] - # Optional. Maximum number of storage servers. - # @!attribute [rw] available_core_count_per_node - # @return [::Integer] - # Optional. Number of cores per node. - # @!attribute [rw] available_memory_per_node_gb - # @return [::Integer] - # Optional. Memory per database server node in gigabytes. - # @!attribute [rw] available_data_storage_tb - # @return [::Integer] - # Optional. Storage per storage server in terabytes. - # @!attribute [rw] min_core_count_per_node - # @return [::Integer] - # Optional. Minimum core count per node. - # @!attribute [rw] min_memory_per_node_gb - # @return [::Integer] - # Optional. Minimum memory per node in gigabytes. - # @!attribute [rw] min_db_node_storage_per_node_gb - # @return [::Integer] - # Optional. Minimum node storage per database server in gigabytes. - class DbSystemShape - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_version.rb deleted file mode 100644 index f01deb18387c..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/db_version.rb +++ /dev/null @@ -1,102 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # A valid Oracle Database version. - # @!attribute [r] name - # @return [::String] - # Output only. The name of the DbVersion resource in the following format: - # projects/\\{project}/locations/\\{region}/dbVersions/\\{db_version} - # @!attribute [r] properties - # @return [::Google::Cloud::OracleDatabase::V1::DbVersionProperties] - # Output only. The properties of the DbVersion. - class DbVersion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The properties of a DbVersion. - # @!attribute [r] version - # @return [::String] - # Output only. A valid Oracle Database version. - # @!attribute [r] is_latest_for_major_version - # @return [::Boolean] - # Output only. True if this version of the Oracle Database software is the - # latest version for a release. - # @!attribute [r] supports_pdb - # @return [::Boolean] - # Output only. True if this version of the Oracle Database software supports - # pluggable databases. - # @!attribute [r] is_preview_db_version - # @return [::Boolean] - # Output only. True if this version of the Oracle Database software is the - # preview version. - # @!attribute [r] is_upgrade_supported - # @return [::Boolean] - # Output only. True if this version of the Oracle Database software is - # supported for Upgrade. - class DbVersionProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbVersions.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the DbVersion resource with the - # format: projects/\\{project}/locations/\\{location} - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 DbVersions will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. Filter expression that matches a subset of the DbVersions to - # show. The supported filter for dbSystem creation is `db_system_shape = - # \\{db_system_shape} AND storage_management = \\{storage_management}`. If no - # filter is provided, all DbVersions will be returned. - class ListDbVersionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `DbVersions.List`. - # @!attribute [rw] db_versions - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbVersion>] - # The list of DbVersions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListDbVersionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb deleted file mode 100644 index ef95f7d5aaf8..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/entitlement.rb +++ /dev/null @@ -1,84 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Entitlement resource. - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Entitlement resource with the format: - # projects/\\{project}/locations/\\{region}/entitlements/\\{entitlement} - # @!attribute [rw] cloud_account_details - # @return [::Google::Cloud::OracleDatabase::V1::CloudAccountDetails] - # Details of the OCI Cloud Account. - # @!attribute [r] entitlement_id - # @return [::String] - # Output only. Google Cloud Marketplace order ID (aka entitlement ID) - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::Entitlement::State] - # Output only. Entitlement State. - class Entitlement - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various lifecycle states of the subscription. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # Account not linked. - ACCOUNT_NOT_LINKED = 1 - - # Account is linked but not active. - ACCOUNT_NOT_ACTIVE = 2 - - # Entitlement and Account are active. - ACTIVE = 3 - - # Account is suspended. - ACCOUNT_SUSPENDED = 4 - - # Entitlement is not approved in private marketplace. - NOT_APPROVED_IN_PRIVATE_MARKETPLACE = 5 - end - end - - # Details of the OCI Cloud Account. - # @!attribute [r] cloud_account - # @return [::String] - # Output only. OCI account name. - # @!attribute [r] cloud_account_home_region - # @return [::String] - # Output only. OCI account home region. - # @!attribute [r] link_existing_account_uri - # @return [::String] - # Output only. URL to link an existing account. - # @!attribute [r] account_creation_uri - # @return [::String] - # Output only. URL to create a new account and link. - class CloudAccountDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb deleted file mode 100644 index d63ae632986e..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadata_infra.rb +++ /dev/null @@ -1,276 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Represents CloudExadataInfrastructure resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudExadataInfrastructure/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Exadata Infrastructure resource with the - # format: - # projects/\\{project}/locations/\\{region}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure} - # @!attribute [rw] display_name - # @return [::String] - # Optional. User friendly name for this resource. - # @!attribute [rw] gcp_oracle_zone - # @return [::String] - # Optional. The GCP Oracle zone where Oracle Exadata Infrastructure is - # hosted. Example: us-east4-b-r2. If not specified, the system will pick a - # zone based on availability. - # @!attribute [r] entitlement_id - # @return [::String] - # Output only. Entitlement ID of the private offer against which this - # infrastructure resource is provisioned. - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructureProperties] - # Optional. Various properties of the infra. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Labels or tags associated with the resource. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the Exadata Infrastructure was created. - class CloudExadataInfrastructure - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Various properties of Exadata Infrastructure. - # @!attribute [r] ocid - # @return [::String] - # Output only. OCID of created infra. - # https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle - # @!attribute [rw] compute_count - # @return [::Integer] - # Optional. The number of compute servers for the Exadata Infrastructure. - # @!attribute [rw] storage_count - # @return [::Integer] - # Optional. The number of Cloud Exadata storage servers for the Exadata - # Infrastructure. - # @!attribute [rw] total_storage_size_gb - # @return [::Integer] - # Optional. The total storage allocated to the Exadata Infrastructure - # resource, in gigabytes (GB). - # @!attribute [r] available_storage_size_gb - # @return [::Integer] - # Output only. The available storage can be allocated to the Exadata - # Infrastructure resource, in gigabytes (GB). - # @!attribute [rw] maintenance_window - # @return [::Google::Cloud::OracleDatabase::V1::MaintenanceWindow] - # Optional. Maintenance window for repair. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructureProperties::State] - # Output only. The current lifecycle state of the Exadata Infrastructure. - # @!attribute [rw] shape - # @return [::String] - # Required. The shape of the Exadata Infrastructure. The shape determines the - # amount of CPU, storage, and memory resources allocated to the instance. - # @!attribute [r] oci_url - # @return [::String] - # Output only. Deep link to the OCI console to view this resource. - # @!attribute [r] cpu_count - # @return [::Integer] - # Output only. The number of enabled CPU cores. - # @!attribute [r] max_cpu_count - # @return [::Integer] - # Output only. The total number of CPU cores available. - # @!attribute [r] memory_size_gb - # @return [::Integer] - # Output only. The memory allocated in GBs. - # @!attribute [r] max_memory_gb - # @return [::Integer] - # Output only. The total memory available in GBs. - # @!attribute [r] db_node_storage_size_gb - # @return [::Integer] - # Output only. The local node storage allocated in GBs. - # @!attribute [r] max_db_node_storage_size_gb - # @return [::Integer] - # Output only. The total local node storage available in GBs. - # @!attribute [r] data_storage_size_tb - # @return [::Float] - # Output only. Size, in terabytes, of the DATA disk group. - # @!attribute [r] max_data_storage_tb - # @return [::Float] - # Output only. The total available DATA disk group size. - # @!attribute [r] activated_storage_count - # @return [::Integer] - # Output only. The requested number of additional storage servers activated - # for the Exadata Infrastructure. - # @!attribute [r] additional_storage_count - # @return [::Integer] - # Output only. The requested number of additional storage servers for the - # Exadata Infrastructure. - # @!attribute [r] db_server_version - # @return [::String] - # Output only. The software version of the database servers (dom0) in the - # Exadata Infrastructure. - # @!attribute [r] storage_server_version - # @return [::String] - # Output only. The software version of the storage servers (cells) in the - # Exadata Infrastructure. - # @!attribute [r] next_maintenance_run_id - # @return [::String] - # Output only. The OCID of the next maintenance run. - # @!attribute [r] next_maintenance_run_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time when the next maintenance run will occur. - # @!attribute [r] next_security_maintenance_run_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time when the next security maintenance run will occur. - # @!attribute [rw] customer_contacts - # @return [::Array<::Google::Cloud::OracleDatabase::V1::CustomerContact>] - # Optional. The list of customer contacts. - # @!attribute [r] monthly_storage_server_version - # @return [::String] - # Output only. The monthly software version of the storage servers (cells) - # in the Exadata Infrastructure. Example: 20.1.15 - # @!attribute [r] monthly_db_server_version - # @return [::String] - # Output only. The monthly software version of the database servers (dom0) - # in the Exadata Infrastructure. Example: 20.1.15 - # @!attribute [r] compute_model - # @return [::Google::Cloud::OracleDatabase::V1::ComputeModel] - # Output only. The compute model of the Exadata Infrastructure. - # @!attribute [r] database_server_type - # @return [::String] - # Output only. The database server type of the Exadata Infrastructure. - # @!attribute [r] storage_server_type - # @return [::String] - # Output only. The storage server type of the Exadata Infrastructure. - class CloudExadataInfrastructureProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The various lifecycle states of the Exadata Infrastructure. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # The Exadata Infrastructure is being provisioned. - PROVISIONING = 1 - - # The Exadata Infrastructure is available for use. - AVAILABLE = 2 - - # The Exadata Infrastructure is being updated. - UPDATING = 3 - - # The Exadata Infrastructure is being terminated. - TERMINATING = 4 - - # The Exadata Infrastructure is terminated. - TERMINATED = 5 - - # The Exadata Infrastructure is in failed state. - FAILED = 6 - - # The Exadata Infrastructure is in maintenance. - MAINTENANCE_IN_PROGRESS = 7 - end - end - - # Maintenance window as defined by Oracle. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/MaintenanceWindow - # @!attribute [rw] preference - # @return [::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::MaintenanceWindowPreference] - # Optional. The maintenance window scheduling preference. - # @!attribute [rw] months - # @return [::Array<::Google::Type::Month>] - # Optional. Months during the year when maintenance should be performed. - # @!attribute [rw] weeks_of_month - # @return [::Array<::Integer>] - # Optional. Weeks during the month when maintenance should be performed. - # Weeks start on the 1st, 8th, 15th, and 22nd days of the month, and have a - # duration of 7 days. Weeks start and end based on calendar dates, not days - # of the week. - # @!attribute [rw] days_of_week - # @return [::Array<::Google::Type::DayOfWeek>] - # Optional. Days during the week when maintenance should be performed. - # @!attribute [rw] hours_of_day - # @return [::Array<::Integer>] - # Optional. The window of hours during the day when maintenance should be - # performed. The window is a 4 hour slot. Valid values are: - # 0 - represents time slot 0:00 - 3:59 UTC - # 4 - represents time slot 4:00 - 7:59 UTC - # 8 - represents time slot 8:00 - 11:59 UTC - # 12 - represents time slot 12:00 - 15:59 UTC - # 16 - represents time slot 16:00 - 19:59 UTC - # 20 - represents time slot 20:00 - 23:59 UTC - # @!attribute [rw] lead_time_week - # @return [::Integer] - # Optional. Lead time window allows user to set a lead time to prepare for a - # down time. The lead time is in weeks and valid value is between 1 to 4. - # @!attribute [rw] patching_mode - # @return [::Google::Cloud::OracleDatabase::V1::MaintenanceWindow::PatchingMode] - # Optional. Cloud CloudExadataInfrastructure node patching method, either - # "ROLLING" or "NONROLLING". Default value is ROLLING. - # @!attribute [rw] custom_action_timeout_mins - # @return [::Integer] - # Optional. Determines the amount of time the system will wait before the - # start of each database server patching operation. Custom action timeout is - # in minutes and valid value is between 15 to 120 (inclusive). - # @!attribute [rw] is_custom_action_timeout_enabled - # @return [::Boolean] - # Optional. If true, enables the configuration of a custom action timeout - # (waiting period) between database server patching operations. - class MaintenanceWindow - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Maintenance window preference. - module MaintenanceWindowPreference - # Default unspecified value. - MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED = 0 - - # Custom preference. - CUSTOM_PREFERENCE = 1 - - # No preference. - NO_PREFERENCE = 2 - end - - # Patching mode. - module PatchingMode - # Default unspecified value. - PATCHING_MODE_UNSPECIFIED = 0 - - # Updates the Cloud Exadata database server hosts in a rolling fashion. - ROLLING = 1 - - # The non-rolling maintenance method first updates your storage servers at - # the same time, then your database servers at the same time. - NON_ROLLING = 2 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb deleted file mode 100644 index d928f23f2e96..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exadb_vm_cluster.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # 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/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the ExadbVmCluster resource in the following - # format: - # projects/\\{project}/locations/\\{region}/exadbVmClusters/\\{exadb_vm_cluster} - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterProperties] - # Required. The properties of the ExadbVmCluster. - # @!attribute [r] gcp_oracle_zone - # @return [::String] - # Output only. Immutable. The GCP Oracle zone where Oracle ExadbVmCluster is - # hosted. Example: us-east4-b-r2. During creation, the system will pick the - # zone assigned to the ExascaleDbStorageVault. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels or tags associated with the ExadbVmCluster. - # @!attribute [rw] odb_network - # @return [::String] - # Optional. Immutable. The name of the OdbNetwork associated with the - # ExadbVmCluster. Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} It is - # optional but if specified, this should match the parent ODBNetwork of the - # OdbSubnet. - # @!attribute [rw] odb_subnet - # @return [::String] - # Required. Immutable. The name of the OdbSubnet associated with the - # ExadbVmCluster for IP allocation. Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} - # @!attribute [rw] backup_odb_subnet - # @return [::String] - # Required. Immutable. The name of the backup OdbSubnet associated with the - # ExadbVmCluster. Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} - # @!attribute [rw] display_name - # @return [::String] - # Required. Immutable. The display name for the ExadbVmCluster. The name does - # not have to be unique within your project. The name must be 1-255 - # characters long and can only contain alphanumeric characters. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the ExadbVmCluster was created. - # @!attribute [r] entitlement_id - # @return [::String] - # Output only. The ID of the subscription entitlement associated with the - # ExadbVmCluster. - class ExadbVmCluster - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The storage allocation for the exadbvmcluster, in gigabytes (GB). - # @!attribute [rw] size_in_gbs_per_node - # @return [::Integer] - # Required. The storage allocation for the exadbvmcluster per node, in - # gigabytes (GB). This field is used to calculate the total storage - # allocation for the exadbvmcluster. - class ExadbVmClusterStorageDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The properties of an ExadbVmCluster. - # @!attribute [rw] cluster_name - # @return [::String] - # Optional. Immutable. The cluster name for Exascale vm cluster. The cluster - # name must begin with an alphabetic character and may contain hyphens(-) but - # can not contain underscores(_). It should be not more than 11 characters - # and is not case sensitive. OCI Cluster name. - # @!attribute [rw] grid_image_id - # @return [::String] - # Required. Immutable. Grid Infrastructure Version. - # @!attribute [rw] node_count - # @return [::Integer] - # Required. The number of nodes/VMs in the ExadbVmCluster. - # @!attribute [rw] enabled_ecpu_count_per_node - # @return [::Integer] - # Required. Immutable. The number of ECPUs enabled per node for an exadata vm - # cluster on exascale infrastructure. - # @!attribute [rw] additional_ecpu_count_per_node - # @return [::Integer] - # Optional. Immutable. The number of additional ECPUs per node for an Exadata - # VM cluster on exascale infrastructure. - # @!attribute [rw] vm_file_system_storage - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterStorageDetails] - # Required. Immutable. Total storage details for the ExadbVmCluster. - # @!attribute [rw] license_model - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterProperties::LicenseModel] - # Optional. Immutable. The license type of the ExadbVmCluster. - # @!attribute [rw] exascale_db_storage_vault - # @return [::String] - # Required. Immutable. The name of ExascaleDbStorageVault associated with the - # ExadbVmCluster. It can refer to an existing ExascaleDbStorageVault. Or a - # new one can be created during the ExadbVmCluster creation (requires - # storage_vault_properties to be set). - # Format: - # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault} - # @!attribute [rw] hostname_prefix - # @return [::String] - # Required. Immutable. Prefix for VM cluster host names. - # @!attribute [r] hostname - # @return [::String] - # Output only. The hostname of the ExadbVmCluster. - # @!attribute [rw] ssh_public_keys - # @return [::Array<::String>] - # Required. Immutable. The SSH public keys for the ExadbVmCluster. - # @!attribute [rw] data_collection_options - # @return [::Google::Cloud::OracleDatabase::V1::DataCollectionOptionsCommon] - # Optional. Immutable. Indicates user preference for data collection options. - # @!attribute [rw] time_zone - # @return [::Google::Type::TimeZone] - # Optional. Immutable. The time zone of the ExadbVmCluster. - # @!attribute [r] lifecycle_state - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterProperties::ExadbVmClusterLifecycleState] - # Output only. State of the cluster. - # @!attribute [rw] shape_attribute - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmClusterProperties::ShapeAttribute] - # Required. Immutable. The shape attribute of the VM cluster. The type of - # Exascale storage used for Exadata VM cluster. The default is SMART_STORAGE - # which supports Oracle Database 23ai and later - # @!attribute [r] memory_size_gb - # @return [::Integer] - # Output only. Memory per VM (GB) (Read-only): Shows the amount of memory - # allocated to each VM. Memory is calculated based on 2.75 GB per Total - # ECPUs. - # @!attribute [rw] scan_listener_port_tcp - # @return [::Integer] - # Optional. Immutable. SCAN listener port - TCP - # @!attribute [r] oci_uri - # @return [::String] - # Output only. Deep link to the OCI console to view this resource. - # @!attribute [r] gi_version - # @return [::String] - # Output only. The Oracle Grid Infrastructure (GI) software version. - class ExadbVmClusterProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The Oracle license model that applies to the ExaScale VM cluster - module LicenseModel - # Unspecified. - LICENSE_MODEL_UNSPECIFIED = 0 - - # Default is license included. - LICENSE_INCLUDED = 1 - - # Bring your own license. - BRING_YOUR_OWN_LICENSE = 2 - end - - # The various lifecycle states of the VM cluster. - module ExadbVmClusterLifecycleState - # Default unspecified value. - EXADB_VM_CLUSTER_LIFECYCLE_STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in provisioning state. - PROVISIONING = 1 - - # Indicates that the resource is in available state. - AVAILABLE = 2 - - # Indicates that the resource is in updating state. - UPDATING = 3 - - # Indicates that the resource is in terminating state. - TERMINATING = 4 - - # Indicates that the resource is in terminated state. - TERMINATED = 5 - - # Indicates that the resource is in failed state. - FAILED = 6 - - # Indicates that the resource is in maintenance in progress state. - MAINTENANCE_IN_PROGRESS = 7 - end - - # The shape attribute of the VM cluster. The type of Exascale storage used - # for Exadata VM cluster. The default is SMART_STORAGE which supports Oracle - # Database 23ai and later - module ShapeAttribute - # Default unspecified value. - SHAPE_ATTRIBUTE_UNSPECIFIED = 0 - - # Indicates that the resource is in smart storage. - SMART_STORAGE = 1 - - # Indicates that the resource is in block storage. - BLOCK_STORAGE = 2 - end - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb deleted file mode 100644 index 53e236eb9690..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/exascale_db_storage_vault.rb +++ /dev/null @@ -1,275 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # ExascaleDbStorageVault represents a storage vault exadb vm cluster resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/ExascaleDbStorageVault/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The resource name of the ExascaleDbStorageVault. - # Format: - # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault} - # @!attribute [rw] display_name - # @return [::String] - # Required. The display name for the ExascaleDbStorageVault. The name does - # not have to be unique within your project. The name must be 1-255 - # characters long and can only contain alphanumeric characters. - # @!attribute [rw] gcp_oracle_zone - # @return [::String] - # Optional. The GCP Oracle zone where Oracle ExascaleDbStorageVault is - # hosted. Example: us-east4-b-r2. If not specified, the system will pick a - # zone based on availability. - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVaultProperties] - # Required. The properties of the ExascaleDbStorageVault. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time when the ExascaleDbStorageVault was created. - # @!attribute [r] entitlement_id - # @return [::String] - # Output only. The ID of the subscription entitlement associated with the - # ExascaleDbStorageVault. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. The labels or tags associated with the ExascaleDbStorageVault. - class ExascaleDbStorageVault - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The properties of the ExascaleDbStorageVault. - # next ID: 12 - # @!attribute [r] ocid - # @return [::String] - # Output only. The OCID for the ExascaleDbStorageVault. - # @!attribute [r] time_zone - # @return [::Google::Type::TimeZone] - # Output only. The time zone of the ExascaleDbStorageVault. - # @!attribute [rw] exascale_db_storage_details - # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageDetails] - # Required. The storage details of the ExascaleDbStorageVault. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVaultProperties::State] - # Output only. The state of the ExascaleDbStorageVault. - # @!attribute [rw] description - # @return [::String] - # Optional. The description of the ExascaleDbStorageVault. - # @!attribute [r] vm_cluster_ids - # @return [::Array<::String>] - # Output only. The list of VM cluster OCIDs associated with the - # ExascaleDbStorageVault. - # @!attribute [r] vm_cluster_count - # @return [::Integer] - # Output only. The number of VM clusters associated with the - # ExascaleDbStorageVault. - # @!attribute [rw] additional_flash_cache_percent - # @return [::Integer] - # Optional. The size of additional flash cache in percentage of high capacity - # database storage. - # @!attribute [r] oci_uri - # @return [::String] - # Output only. Deep link to the OCI console to view this resource. - # @!attribute [r] attached_shape_attributes - # @return [::Array<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVaultProperties::ShapeAttribute>] - # Output only. The shape attributes of the VM clusters attached to the - # ExascaleDbStorageVault. - # @!attribute [r] available_shape_attributes - # @return [::Array<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVaultProperties::ShapeAttribute>] - # Output only. The shape attributes available for the VM clusters to be - # attached to the ExascaleDbStorageVault. - class ExascaleDbStorageVaultProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The state of the ExascaleDbStorageVault. - module State - # The state of the ExascaleDbStorageVault is unspecified. - STATE_UNSPECIFIED = 0 - - # The ExascaleDbStorageVault is being provisioned. - PROVISIONING = 1 - - # The ExascaleDbStorageVault is available. - AVAILABLE = 2 - - # The ExascaleDbStorageVault is being updated. - UPDATING = 3 - - # The ExascaleDbStorageVault is being deleted. - TERMINATING = 4 - - # The ExascaleDbStorageVault has been deleted. - TERMINATED = 5 - - # The ExascaleDbStorageVault has failed. - FAILED = 6 - end - - # The shape attribute of the VM clusters attached to the - # ExascaleDbStorageVault. - module ShapeAttribute - # Default unspecified value. - SHAPE_ATTRIBUTE_UNSPECIFIED = 0 - - # Indicates that the resource is in smart storage. - SMART_STORAGE = 1 - - # Indicates that the resource is in block storage. - BLOCK_STORAGE = 2 - end - end - - # The storage details of the ExascaleDbStorageVault. - # @!attribute [r] available_size_gbs - # @return [::Integer] - # Output only. The available storage capacity for the ExascaleDbStorageVault, - # in gigabytes (GB). - # @!attribute [rw] total_size_gbs - # @return [::Integer] - # Required. The total storage allocation for the ExascaleDbStorageVault, in - # gigabytes (GB). - class ExascaleDbStorageDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExascaleDbStorageVault.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the ExascaleDbStorageVault in the following format: - # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. - class GetExascaleDbStorageVaultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExascaleDbStorageVault.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for ExascaleDbStorageVault in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ExascaleDbStorageVaults will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. Filter - # the list as specified in https://google.aip.dev/160. - # @!attribute [rw] order_by - # @return [::String] - # Optional. An expression for ordering the results of the request. Order - # results as specified in https://google.aip.dev/132. - class ListExascaleDbStorageVaultsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `ExascaleDbStorageVault.List`. - # @!attribute [rw] exascale_db_storage_vaults - # @return [::Array<::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault>] - # The ExascaleDbStorageVaults. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. If present, - # the next page token can be provided to a subsequent - # ListExascaleDbStorageVaults call to list the next page. - # If empty, there are no more pages. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unreachable locations when listing resources across all locations using - # wildcard location '-'. - class ListExascaleDbStorageVaultsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExascaleDbStorageVault.Create`. - # @!attribute [rw] parent - # @return [::String] - # Required. The value for parent of the ExascaleDbStorageVault in the - # following format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] exascale_db_storage_vault_id - # @return [::String] - # Required. The ID of the ExascaleDbStorageVault to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @!attribute [rw] exascale_db_storage_vault - # @return [::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault] - # Required. The resource being created. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class CreateExascaleDbStorageVaultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for `ExascaleDbStorageVault.Delete`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the ExascaleDbStorageVault in the following format: - # projects/\\{project}/locations/\\{location}/exascaleDbStorageVaults/\\{exascale_db_storage_vault}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class DeleteExascaleDbStorageVaultRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb deleted file mode 100644 index 692e15bb45ef..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/gi_version.rb +++ /dev/null @@ -1,41 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Oracle Grid Infrastructure (GI) version resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiVersionSummary/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the Oracle Grid Infrastructure (GI) version - # resource with the format: - # projects/\\{project}/locations/\\{region}/giVersions/\\{gi_versions} - # @!attribute [rw] version - # @return [::String] - # Optional. version - class GiVersion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb deleted file mode 100644 index ea17728bee62..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/location_metadata.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Metadata for a given [Location][google.cloud.location.Location]. - # @!attribute [r] gcp_oracle_zones - # @return [::Array<::String>] - # Output only. Google Cloud Platform Oracle zones in a location. - class LocationMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb deleted file mode 100644 index 4f6119dbb636..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/minor_version.rb +++ /dev/null @@ -1,81 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # MinorVersion represents a minor version of a GI. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/GiMinorVersionSummary/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the MinorVersion resource with the format: - # projects/\\{project}/locations/\\{region}/giVersions/\\{gi_version}/minorVersions/\\{minor_version} - # @!attribute [rw] grid_image_id - # @return [::String] - # Optional. The ID of the Grid Image. - # @!attribute [rw] version - # @return [::String] - # Optional. The valid Oracle grid infrastructure software version. - class MinorVersion - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `MinorVersion.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the MinorVersion resource with the format: - # projects/\\{project}/locations/\\{location}/giVersions/\\{gi_version} - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 System Versions will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying the requested page of results to return. All - # fields except the filter should remain the same as in the request that - # provided this page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. - # Only shapeFamily and gcp_oracle_zone_id are supported in this format: - # `shape_family="{shapeFamily}" AND - # gcp_oracle_zone_id="\\{gcp_oracle_zone_id}"`. - class ListMinorVersionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `MinorVersion.List`. - # @!attribute [rw] minor_versions - # @return [::Array<::Google::Cloud::OracleDatabase::V1::MinorVersion>] - # The list of MinorVersions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListMinorVersionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb deleted file mode 100644 index 7d7b04ca8bc4..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_network.rb +++ /dev/null @@ -1,184 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Represents OdbNetwork resource. - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the OdbNetwork resource in the following format: - # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network} - # @!attribute [rw] network - # @return [::String] - # Required. The name of the VPC network in the following format: - # projects/\\{project}/global/networks/\\{network} - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Labels or tags associated with the resource. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the OdbNetwork was created. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork::State] - # Output only. State of the ODB Network. - # @!attribute [r] entitlement_id - # @return [::String] - # Output only. The ID of the subscription entitlement associated with the - # OdbNetwork. - # @!attribute [rw] gcp_oracle_zone - # @return [::String] - # Optional. The GCP Oracle zone where OdbNetwork is hosted. - # Example: us-east4-b-r2. - # If not specified, the system will pick a zone based on availability. - class OdbNetwork - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The various lifecycle states of the ODB Network. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in provisioning state. - PROVISIONING = 1 - - # Indicates that the resource is in available state. - AVAILABLE = 2 - - # Indicates that the resource is in terminating state. - TERMINATING = 3 - - # Indicates that the resource is in failed state. - FAILED = 4 - end - end - - # The request for `OdbNetwork.Create`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the OdbNetwork in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] odb_network_id - # @return [::String] - # Required. The ID of the OdbNetwork to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @!attribute [rw] odb_network - # @return [::Google::Cloud::OracleDatabase::V1::OdbNetwork] - # Required. Details of the OdbNetwork instance to create. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class CreateOdbNetworkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `OdbNetwork.Delete`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class DeleteOdbNetworkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `OdbNetwork.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the ODB Network in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ODB Networks will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. - # @!attribute [rw] order_by - # @return [::String] - # Optional. An expression for ordering the results of the request. - class ListOdbNetworksRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `OdbNetwork.List`. - # @!attribute [rw] odb_networks - # @return [::Array<::Google::Cloud::OracleDatabase::V1::OdbNetwork>] - # The list of ODB Networks. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unreachable locations when listing resources across all locations using - # wildcard location '-'. - class ListOdbNetworksResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `OdbNetwork.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the OdbNetwork in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - class GetOdbNetworkRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb deleted file mode 100644 index 9465fe25e139..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/odb_subnet.rb +++ /dev/null @@ -1,189 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Represents OdbSubnet resource. - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the OdbSubnet resource in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} - # @!attribute [rw] cidr_range - # @return [::String] - # Required. The CIDR range of the subnet. - # @!attribute [rw] purpose - # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet::Purpose] - # Required. Purpose of the subnet. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Labels or tags associated with the resource. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the OdbNetwork was created. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet::State] - # Output only. State of the ODB Subnet. - class OdbSubnet - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Purpose available for the subnet. - module Purpose - # Default unspecified value. - PURPOSE_UNSPECIFIED = 0 - - # Subnet to be used for client connections. - CLIENT_SUBNET = 1 - - # Subnet to be used for backup. - BACKUP_SUBNET = 2 - end - - # The various lifecycle states of the ODB Subnet. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in provisioning state. - PROVISIONING = 1 - - # Indicates that the resource is in available state. - AVAILABLE = 2 - - # Indicates that the resource is in terminating state. - TERMINATING = 3 - - # Indicates that the resource is in failed state. - FAILED = 4 - end - end - - # The request for `OdbSubnet.Create`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @!attribute [rw] odb_subnet_id - # @return [::String] - # Required. The ID of the OdbSubnet to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @!attribute [rw] odb_subnet - # @return [::Google::Cloud::OracleDatabase::V1::OdbSubnet] - # Required. Details of the OdbSubnet instance to create. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class CreateOdbSubnetRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `OdbSubnet.Delete`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{region}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class DeleteOdbSubnetRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `OdbSubnet.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ODB Networks will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. - # @!attribute [rw] order_by - # @return [::String] - # Optional. An expression for ordering the results of the request. - class ListOdbSubnetsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `OdbSubnet.List`. - # @!attribute [rw] odb_subnets - # @return [::Array<::Google::Cloud::OracleDatabase::V1::OdbSubnet>] - # The list of ODB Subnets. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unreachable locations when listing resources across all locations using - # wildcard location '-'. - class ListOdbSubnetsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `OdbSubnet.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the OdbSubnet in the following format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet}. - class GetOdbSubnetRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb deleted file mode 100644 index e110fd8e81d1..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/oracledatabase.rb +++ /dev/null @@ -1,916 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # The request for `CloudExadataInfrastructures.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for CloudExadataInfrastructure in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Exadata infrastructures will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. - # @!attribute [rw] order_by - # @return [::String] - # Optional. An expression for ordering the results of the request. - class ListCloudExadataInfrastructuresRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `CloudExadataInfrastructures.list`. - # @!attribute [rw] cloud_exadata_infrastructures - # @return [::Array<::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure>] - # The list of Exadata Infrastructures. - # @!attribute [rw] next_page_token - # @return [::String] - # A token for fetching next page of response. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unreachable locations when listing resources across all locations using - # wildcard location '-'. - class ListCloudExadataInfrastructuresResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `CloudExadataInfrastructure.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Cloud Exadata Infrastructure in the following - # format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. - class GetCloudExadataInfrastructureRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `CloudExadataInfrastructure.Create`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for CloudExadataInfrastructure in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] cloud_exadata_infrastructure_id - # @return [::String] - # Required. The ID of the Exadata Infrastructure to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @!attribute [rw] cloud_exadata_infrastructure - # @return [::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure] - # Required. Details of the Exadata Infrastructure instance to create. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class CreateCloudExadataInfrastructureRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `CloudExadataInfrastructure.Delete`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Cloud Exadata Infrastructure in the following - # format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloud_exadata_infrastructure}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If set to true, all VM clusters for this Exadata Infrastructure - # will be deleted. An Exadata Infrastructure can only be deleted once all its - # VM clusters have been deleted. - class DeleteCloudExadataInfrastructureRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `CloudVmCluster.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The number of VM clusters to return. - # If unspecified, at most 50 VM clusters will be returned. - # The maximum value is 1,000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying the page of results the server returns. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. - class ListCloudVmClustersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `CloudVmCluster.List`. - # @!attribute [rw] cloud_vm_clusters - # @return [::Array<::Google::Cloud::OracleDatabase::V1::CloudVmCluster>] - # The list of VM Clusters. - # @!attribute [rw] next_page_token - # @return [::String] - # A token to fetch the next page of results. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unreachable locations when listing resources across all locations using - # wildcard location '-'. - class ListCloudVmClustersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `CloudVmCluster.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Cloud VM Cluster in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. - class GetCloudVmClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `CloudVmCluster.Create`. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] cloud_vm_cluster_id - # @return [::String] - # Required. The ID of the VM Cluster to create. This value is restricted - # to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of 63 - # characters in length. The value must start with a letter and end with - # a letter or a number. - # @!attribute [rw] cloud_vm_cluster - # @return [::Google::Cloud::OracleDatabase::V1::CloudVmCluster] - # Required. The resource being created - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class CreateCloudVmClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `CloudVmCluster.Delete`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Cloud VM Cluster in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloud_vm_cluster}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @!attribute [rw] force - # @return [::Boolean] - # Optional. If set to true, all child resources for the VM Cluster will be - # deleted. A VM Cluster can only be deleted once all its child resources have - # been deleted. - class DeleteCloudVmClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `Entitlement.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the entitlement in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 entitlements will be returned. - # The maximum value is 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - class ListEntitlementsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `Entitlement.List`. - # @!attribute [rw] entitlements - # @return [::Array<::Google::Cloud::OracleDatabase::V1::Entitlement>] - # The list of Entitlements - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListEntitlementsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbServer.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for database server in the following format: - # projects/\\{project}/locations/\\{location}/cloudExadataInfrastructures/\\{cloudExadataInfrastructure}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 db servers will be returned. - # The maximum value is 1000; values above 1000 will be reset to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - class ListDbServersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `DbServer.List`. - # @!attribute [rw] db_servers - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbServer>] - # The list of database servers. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListDbServersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbNode.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for database node in the following format: - # projects/\\{project}/locations/\\{location}/cloudVmClusters/\\{cloudVmCluster}. - # . - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 db nodes will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the node should return. - class ListDbNodesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `DbNode.List`. - # @!attribute [rw] db_nodes - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbNode>] - # The list of DB Nodes - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the node should return. - class ListDbNodesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `GiVersion.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for Grid Infrastructure Version in the following - # format: Format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, a maximum of 50 Oracle Grid Infrastructure (GI) versions - # will be returned. The maximum value is 1000; values above 1000 will be - # reset to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. Only the - # shape, gcp_oracle_zone and gi_version fields are supported in this format: - # `shape="{shape}"`. - class ListGiVersionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `GiVersion.List`. - # @!attribute [rw] gi_versions - # @return [::Array<::Google::Cloud::OracleDatabase::V1::GiVersion>] - # The list of Oracle Grid Infrastructure (GI) versions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListGiVersionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `DbSystemShape.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for Database System Shapes in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 database system shapes will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. Only the - # gcp_oracle_zone_id field is supported in this format: - # `gcp_oracle_zone_id="{gcp_oracle_zone_id}"`. - class ListDbSystemShapesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `DbSystemShape.List`. - # @!attribute [rw] db_system_shapes - # @return [::Array<::Google::Cloud::OracleDatabase::V1::DbSystemShape>] - # The list of Database System shapes. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListDbSystemShapesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents the metadata of the long-running operation. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation was created. - # @!attribute [r] end_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The time the operation finished running. - # @!attribute [r] target - # @return [::String] - # Output only. Server-defined resource path for the target of the operation. - # @!attribute [r] verb - # @return [::String] - # Output only. Name of the verb executed by the operation. - # @!attribute [r] status_message - # @return [::String] - # Output only. The status of the operation. - # @!attribute [r] requested_cancellation - # @return [::Boolean] - # Output only. Identifies whether the user has requested cancellation - # of the operation. Operations that have been cancelled successfully - # have [Operation.error][] value with a - # {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to - # `Code.CANCELLED`. - # @!attribute [r] api_version - # @return [::String] - # Output only. API version used to start the operation. - # @!attribute [r] percent_complete - # @return [::Float] - # Output only. An estimated percentage of the operation that has been - # completed at a given moment of time, between 0 and 100. - class OperationMetadata - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous Database will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. - # @!attribute [rw] order_by - # @return [::String] - # Optional. An expression for ordering the results of the request. - class ListAutonomousDatabasesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `AutonomousDatabase.List`. - # @!attribute [rw] autonomous_databases - # @return [::Array<::Google::Cloud::OracleDatabase::V1::AutonomousDatabase>] - # The list of Autonomous Databases. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unreachable locations when listing resources across all locations using - # wildcard location '-'. - class ListAutonomousDatabasesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - class GetAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.Create`. - # @!attribute [rw] parent - # @return [::String] - # Required. The name of the parent in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] autonomous_database_id - # @return [::String] - # Required. The ID of the Autonomous Database to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @!attribute [rw] autonomous_database - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] - # Required. The Autonomous Database being created. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class CreateAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.Update`. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::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. - # @!attribute [rw] autonomous_database - # @return [::Google::Cloud::OracleDatabase::V1::AutonomousDatabase] - # Required. The resource being updated - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class UpdateAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.Delete`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the resource in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class DeleteAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.Restore`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @!attribute [rw] restore_time - # @return [::Google::Protobuf::Timestamp] - # Required. The time and date to restore the database to. - class RestoreAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.Stop`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - class StopAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.Start`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - class StartAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.Restart`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - class RestartAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `OracleDatabase.SwitchoverAutonomousDatabase`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @!attribute [rw] peer_autonomous_database - # @return [::String] - # Optional. The peer database name to switch over to. Required for - # cross-region standby, and must be omitted for in-region Data Guard. - class SwitchoverAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `OracleDatabase.FailoverAutonomousDatabase`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @!attribute [rw] peer_autonomous_database - # @return [::String] - # Optional. The peer database name to fail over to. Required for cross-region - # standby, and must be omitted for in-region Data Guard. - class FailoverAutonomousDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabase.GenerateWallet`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the Autonomous Database in the following format: - # projects/\\{project}/locations/\\{location}/autonomousDatabases/\\{autonomous_database}. - # @!attribute [rw] type - # @return [::Google::Cloud::OracleDatabase::V1::GenerateType] - # Optional. The type of wallet generation for the Autonomous Database. The - # default value is SINGLE. - # @!attribute [rw] is_regional - # @return [::Boolean] - # Optional. True when requesting regional connection strings in PDB connect - # info, applicable to cross-region Data Guard only. - # @!attribute [rw] password - # @return [::String] - # Required. The password used to encrypt the keys inside the wallet. The - # password must be a minimum of 8 characters. - class GenerateAutonomousDatabaseWalletRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `AutonomousDatabase.GenerateWallet`. - # @!attribute [r] archive_content - # @return [::String] - # Output only. The base64 encoded wallet files. - class GenerateAutonomousDatabaseWalletResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDbVersion.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Versions will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - class ListAutonomousDbVersionsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `AutonomousDbVersion.List`. - # @!attribute [rw] autonomous_db_versions - # @return [::Array<::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion>] - # The list of Autonomous Database versions. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListAutonomousDbVersionsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabaseCharacterSet.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for the Autonomous Database in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Character Sets will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. Only the - # **character_set_type** field is supported in the following format: - # `character_set_type="{characterSetType}"`. Accepted values include - # `DATABASE` and `NATIONAL`. - class ListAutonomousDatabaseCharacterSetsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `AutonomousDatabaseCharacterSet.List`. - # @!attribute [rw] autonomous_database_character_sets - # @return [::Array<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet>] - # The list of Autonomous Database Character Sets. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListAutonomousDatabaseCharacterSetsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `AutonomousDatabaseBackup.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for ListAutonomousDatabaseBackups in the - # following format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. Only the - # **autonomous_database_id** field is supported in the following format: - # `autonomous_database_id="{autonomous_database_id}"`. The accepted values - # must be a valid Autonomous Database ID, limited to the naming - # restrictions of the ID: ^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$). - # The ID must start with a letter, end with a letter or a number, and be - # a maximum of 63 characters. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 Autonomous DB Backups will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - class ListAutonomousDatabaseBackupsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `AutonomousDatabaseBackup.List`. - # @!attribute [rw] autonomous_database_backups - # @return [::Array<::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup>] - # The list of Autonomous Database Backups. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListAutonomousDatabaseBackupsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExadbVmCluster.Create`. - # @!attribute [rw] parent - # @return [::String] - # Required. The value for parent of the ExadbVmCluster in the following - # format: projects/\\{project}/locations/\\{location}. - # @!attribute [rw] exadb_vm_cluster_id - # @return [::String] - # Required. The ID of the ExadbVmCluster to create. This value is - # restricted to (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$) and must be a maximum of - # 63 characters in length. The value must start with a letter and end with a - # letter or a number. - # @!attribute [rw] exadb_vm_cluster - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] - # Required. The resource being created. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional request ID to identify requests. Specify a unique - # request ID so that if you must retry your request, the server will know to - # ignore the request if it has already been completed. The server will - # guarantee that for at least 60 minutes since the first request. - # - # For example, consider a situation where you make an initial request and the - # request times out. If you make the request again with the same request - # ID, the server can check if original operation with the same request ID - # was received, and if so, will ignore the second request. This prevents - # clients from accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class CreateExadbVmClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExadbVmCluster.Delete`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class DeleteExadbVmClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExadbVmCluster.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - class GetExadbVmClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExadbVmCluster.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent value for ExadbVmClusters in the following format: - # projects/\\{project}/locations/\\{location}. - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of items to return. - # If unspecified, at most 50 ExadbVmClusters will be returned. - # The maximum value is 1000; values above 1000 will be coerced to 1000. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A token identifying a page of results the server should return. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. - # @!attribute [rw] order_by - # @return [::String] - # Optional. An expression for ordering the results of the request. - class ListExadbVmClustersRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `ExadbVmCluster.List`. - # @!attribute [rw] exadb_vm_clusters - # @return [::Array<::Google::Cloud::OracleDatabase::V1::ExadbVmCluster>] - # The list of ExadbVmClusters. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unreachable locations when listing resources across all locations using - # wildcard location '-'. - class ListExadbVmClustersResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExadbVmCluster.Update`. We only support adding the - # Virtual Machine to the ExadbVmCluster. Rest of the fields in ExadbVmCluster - # are immutable. - # @!attribute [rw] update_mask - # @return [::Google::Protobuf::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. - # @!attribute [rw] exadb_vm_cluster - # @return [::Google::Cloud::OracleDatabase::V1::ExadbVmCluster] - # Required. The resource being updated. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - class UpdateExadbVmClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `ExadbVmCluster.RemoveVirtualMachine`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the ExadbVmCluster in the following format: - # projects/\\{project}/locations/\\{location}/exadbVmClusters/\\{exadb_vm_cluster}. - # @!attribute [rw] request_id - # @return [::String] - # Optional. An optional ID to identify the request. This value is used to - # identify duplicate requests. If you make a request with the same request ID - # and the original request is still in progress or completed, the server - # ignores the second request. This prevents clients from - # accidentally creating duplicate commitments. - # - # The request ID must be a valid UUID with the exception that zero UUID is - # not supported (00000000-0000-0000-0000-000000000000). - # @!attribute [rw] hostnames - # @return [::Array<::String>] - # Required. The list of host names of db nodes to be removed from the - # ExadbVmCluster. - class RemoveVirtualMachineExadbVmClusterRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb deleted file mode 100644 index 5cae527ea1ff..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/pluggable_database.rb +++ /dev/null @@ -1,366 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # The PluggableDatabase resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the PluggableDatabase resource in the following - # format: - # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database} - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties] - # Optional. The properties of the PluggableDatabase. - # @!attribute [r] oci_url - # @return [::String] - # Output only. HTTPS link to OCI resources exposed to Customer via UI - # Interface. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the PluggableDatabase was created. - class PluggableDatabase - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The properties of a PluggableDatabase. - # @!attribute [rw] compartment_id - # @return [::String] - # Required. The OCID of the compartment. - # @!attribute [rw] connection_strings - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseConnectionStrings] - # Optional. The Connection strings used to connect to the Oracle Database. - # @!attribute [rw] container_database_ocid - # @return [::String] - # Required. The OCID of the CDB. - # @!attribute [rw] defined_tags - # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties::DefinedTagValue}] - # Optional. Defined tags for this resource. Each key is predefined and scoped - # to a namespace. - # @!attribute [rw] freeform_tags - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Free-form tags for this resource. Each tag is a simple key-value - # pair with no predefined name, type, or namespace. - # @!attribute [r] ocid - # @return [::String] - # Output only. The OCID of the pluggable database. - # @!attribute [rw] is_restricted - # @return [::Boolean] - # Optional. The restricted mode of the pluggable database. If a pluggable - # database is opened in restricted mode, the user needs both create a session - # and have restricted session privileges to connect to it. - # @!attribute [r] lifecycle_details - # @return [::String] - # Output only. Additional information about the current lifecycle state. - # @!attribute [r] lifecycle_state - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties::PluggableDatabaseLifecycleState] - # Output only. The current state of the pluggable database. - # @!attribute [rw] pdb_name - # @return [::String] - # Required. The database name. - # @!attribute [rw] pdb_node_level_details - # @return [::Array<::Google::Cloud::OracleDatabase::V1::PluggableDatabaseNodeLevelDetails>] - # Optional. Pluggable Database Node Level Details - # @!attribute [r] database_management_config - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseManagementConfig] - # Output only. The configuration of the Database Management service. - # @!attribute [r] operations_insights_state - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties::OperationsInsightsState] - # Output only. The status of Operations Insights for this Database. - class PluggableDatabaseProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Wrapper message for the value of a defined tag. - # @!attribute [rw] tags - # @return [::Google::Protobuf::Map{::String => ::String}] - # The tags within the namespace. - class DefinedTagValue - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class TagsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseProperties::DefinedTagValue] - class DefinedTagsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class FreeformTagsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The various lifecycle states of the PluggableDatabase. - module PluggableDatabaseLifecycleState - # The lifecycle state is unspecified. - PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED = 0 - - # The pluggable database is provisioning. - PROVISIONING = 1 - - # The pluggable database is available. - AVAILABLE = 2 - - # The pluggable database is terminating. - TERMINATING = 3 - - # The pluggable database is terminated. - TERMINATED = 4 - - # The pluggable database is updating. - UPDATING = 5 - - # The pluggable database is in a failed state. - FAILED = 6 - - # The pluggable database is relocating. - RELOCATING = 7 - - # The pluggable database is relocated. - RELOCATED = 8 - - # The pluggable database is refreshing. - REFRESHING = 9 - - # The pluggable database is restoring. - RESTORE_IN_PROGRESS = 10 - - # The pluggable database restore failed. - RESTORE_FAILED = 11 - - # The pluggable database is backing up. - BACKUP_IN_PROGRESS = 12 - - # The pluggable database is disabled. - DISABLED = 13 - end - - # The status of Operations Insights for this Database. - module OperationsInsightsState - # The status is not specified. - OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0 - - # Operations Insights is enabling. - ENABLING = 1 - - # Operations Insights is enabled. - ENABLED = 2 - - # Operations Insights is disabling. - DISABLING = 3 - - # Operations Insights is not enabled. - NOT_ENABLED = 4 - - # Operations Insights failed to enable. - FAILED_ENABLING = 5 - - # Operations Insights failed to disable. - FAILED_DISABLING = 6 - end - end - - # The connection strings used to connect to the Oracle Database. - # @!attribute [rw] all_connection_strings - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. All connection strings to use to connect to the pluggable - # database. - # @!attribute [rw] pdb_default - # @return [::String] - # Optional. The default connection string to use to connect to the pluggable - # database. - # @!attribute [rw] pdb_ip_default - # @return [::String] - # Optional. The default connection string to use to connect to the pluggable - # database using IP. - class PluggableDatabaseConnectionStrings - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class AllConnectionStringsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # The Pluggable Database Node Level Details. - # @!attribute [rw] node_name - # @return [::String] - # Required. The Node name of the Database home. - # @!attribute [rw] open_mode - # @return [::Google::Cloud::OracleDatabase::V1::PluggableDatabaseNodeLevelDetails::PluggableDatabaseOpenMode] - # Required. The mode that the pluggable database is in to open it. - # @!attribute [rw] pluggable_database_id - # @return [::String] - # Required. The OCID of the Pluggable Database. - class PluggableDatabaseNodeLevelDetails - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The mode that the pluggable database is in to open it. - module PluggableDatabaseOpenMode - # The open mode is unspecified. - PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED = 0 - - # The pluggable database is opened in read-only mode. - READ_ONLY = 1 - - # The pluggable database is opened in read-write mode. - READ_WRITE = 2 - - # The pluggable database is mounted. - MOUNTED = 3 - - # The pluggable database is migrated. - MIGRATE = 4 - end - end - - # The configuration of the Database Management service. - # @!attribute [r] management_state - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseManagementConfig::ManagementState] - # Output only. The status of the Database Management service. - # @!attribute [r] management_type - # @return [::Google::Cloud::OracleDatabase::V1::DatabaseManagementConfig::ManagementType] - # Output only. The Database Management type. - class DatabaseManagementConfig - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # The status of the Database Management service. - module ManagementState - # The status is not specified. - MANAGEMENT_STATE_UNSPECIFIED = 0 - - # The Database Management service is enabling. - ENABLING = 1 - - # The Database Management service is enabled. - ENABLED = 2 - - # The Database Management service is disabling. - DISABLING = 3 - - # The Database Management service is disabled. - DISABLED = 4 - - # The Database Management service is updating. - UPDATING = 5 - - # The Database Management service failed to enable. - FAILED_ENABLING = 6 - - # The Database Management service failed to disable. - FAILED_DISABLING = 7 - - # The Database Management service failed to update. - FAILED_UPDATING = 8 - end - - # The Database Management type. - module ManagementType - # The type is not specified. - MANAGEMENT_TYPE_UNSPECIFIED = 0 - - # Basic Database Management. - BASIC = 1 - - # Advanced Database Management. - ADVANCED = 2 - end - end - - # The request for `PluggableDatabase.Get`. - # @!attribute [rw] name - # @return [::String] - # Required. The name of the PluggableDatabase resource in the following - # format: - # projects/\\{project}/locations/\\{region}/pluggableDatabases/\\{pluggable_database} - class GetPluggableDatabaseRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request for `PluggableDatabase.List`. - # @!attribute [rw] parent - # @return [::String] - # Required. The parent, which owns this collection of PluggableDatabases. - # Format: projects/\\{project}/locations/\\{location} - # @!attribute [rw] page_size - # @return [::Integer] - # Optional. The maximum number of PluggableDatabases to return. The service - # may return fewer than this value. - # @!attribute [rw] page_token - # @return [::String] - # Optional. A page token, received from a previous `ListPluggableDatabases` - # call. Provide this to retrieve the subsequent page. - # - # When paginating, all other parameters provided to `ListPluggableDatabases` - # must match the call that provided the page token. - # @!attribute [rw] filter - # @return [::String] - # Optional. An expression for filtering the results of the request. List for - # pluggable databases is supported only with a valid container database (full - # resource name) filter in this format: - # `database="projects/{project}/locations/{location}/databases/{database}"` - class ListPluggableDatabasesRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response for `PluggableDatabase.List`. - # @!attribute [rw] pluggable_databases - # @return [::Array<::Google::Cloud::OracleDatabase::V1::PluggableDatabase>] - # The list of PluggableDatabases. - # @!attribute [rw] next_page_token - # @return [::String] - # A token identifying a page of results the server should return. - class ListPluggableDatabasesResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb deleted file mode 100644 index fcc6eeff932e..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/cloud/oracledatabase/v1/vm_cluster.rb +++ /dev/null @@ -1,276 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Cloud - module OracleDatabase - module V1 - # Details of the Cloud VM Cluster resource. - # https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/CloudVmCluster/ - # @!attribute [rw] name - # @return [::String] - # Identifier. The name of the VM Cluster resource with the format: - # projects/\\{project}/locations/\\{region}/cloudVmClusters/\\{cloud_vm_cluster} - # @!attribute [rw] exadata_infrastructure - # @return [::String] - # Required. The name of the Exadata Infrastructure resource on which VM - # cluster resource is created, in the following format: - # projects/\\{project}/locations/\\{region}/cloudExadataInfrastuctures/\\{cloud_extradata_infrastructure} - # @!attribute [rw] display_name - # @return [::String] - # Optional. User friendly name for this resource. - # @!attribute [rw] properties - # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties] - # Optional. Various properties of the VM Cluster. - # @!attribute [rw] labels - # @return [::Google::Protobuf::Map{::String => ::String}] - # Optional. Labels or tags associated with the VM Cluster. - # @!attribute [r] create_time - # @return [::Google::Protobuf::Timestamp] - # Output only. The date and time that the VM cluster was created. - # @!attribute [rw] cidr - # @return [::String] - # Optional. Network settings. CIDR to use for cluster IP allocation. - # @!attribute [rw] backup_subnet_cidr - # @return [::String] - # Optional. CIDR range of the backup subnet. - # @!attribute [rw] network - # @return [::String] - # Optional. The name of the VPC network. - # Format: projects/\\{project}/global/networks/\\{network} - # @!attribute [r] gcp_oracle_zone - # @return [::String] - # Output only. The GCP Oracle zone where Oracle CloudVmCluster is hosted. - # This will be the same as the gcp_oracle_zone of the - # CloudExadataInfrastructure. Example: us-east4-b-r2. - # @!attribute [rw] odb_network - # @return [::String] - # Optional. The name of the OdbNetwork associated with the VM Cluster. - # Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network} - # It is optional but if specified, this should match the parent ODBNetwork of - # the odb_subnet and backup_odb_subnet. - # @!attribute [rw] odb_subnet - # @return [::String] - # Optional. The name of the OdbSubnet associated with the VM Cluster for - # IP allocation. Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} - # @!attribute [rw] backup_odb_subnet - # @return [::String] - # Optional. The name of the backup OdbSubnet associated with the VM Cluster. - # Format: - # projects/\\{project}/locations/\\{location}/odbNetworks/\\{odb_network}/odbSubnets/\\{odb_subnet} - # @!attribute [r] identity_connector - # @return [::Google::Cloud::OracleDatabase::V1::IdentityConnector] - # Output only. The identity connector details which will allow OCI to - # securely access the resources in the customer project. - class CloudVmCluster - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # @!attribute [rw] key - # @return [::String] - # @!attribute [rw] value - # @return [::String] - class LabelsEntry - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - - # Various properties and settings associated with Exadata VM cluster. - # @!attribute [r] ocid - # @return [::String] - # Output only. Oracle Cloud Infrastructure ID of VM Cluster. - # @!attribute [rw] license_type - # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties::LicenseType] - # Required. License type of VM Cluster. - # @!attribute [rw] gi_version - # @return [::String] - # Optional. Grid Infrastructure Version. - # @!attribute [rw] time_zone - # @return [::Google::Type::TimeZone] - # Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified. - # @!attribute [rw] ssh_public_keys - # @return [::Array<::String>] - # Optional. SSH public keys to be stored with cluster. - # @!attribute [rw] node_count - # @return [::Integer] - # Optional. Number of database servers. - # @!attribute [r] shape - # @return [::String] - # Output only. Shape of VM Cluster. - # @!attribute [rw] ocpu_count - # @return [::Float] - # Optional. OCPU count per VM. Minimum is 0.1. - # @!attribute [rw] memory_size_gb - # @return [::Integer] - # Optional. Memory allocated in GBs. - # @!attribute [rw] db_node_storage_size_gb - # @return [::Integer] - # Optional. Local storage per VM. - # @!attribute [r] storage_size_gb - # @return [::Integer] - # Output only. The storage allocation for the disk group, in gigabytes (GB). - # @!attribute [rw] data_storage_size_tb - # @return [::Float] - # Optional. The data disk group size to be allocated in TBs. - # @!attribute [rw] disk_redundancy - # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties::DiskRedundancy] - # Optional. The type of redundancy. - # @!attribute [rw] sparse_diskgroup_enabled - # @return [::Boolean] - # Optional. Use exadata sparse snapshots. - # @!attribute [rw] local_backup_enabled - # @return [::Boolean] - # Optional. Use local backup. - # @!attribute [rw] hostname_prefix - # @return [::String] - # Optional. Prefix for VM cluster host names. - # @!attribute [rw] diagnostics_data_collection_options - # @return [::Google::Cloud::OracleDatabase::V1::DataCollectionOptions] - # Optional. Data collection options for diagnostics. - # @!attribute [r] state - # @return [::Google::Cloud::OracleDatabase::V1::CloudVmClusterProperties::State] - # Output only. State of the cluster. - # @!attribute [rw] scan_listener_port_tcp - # @return [::Integer] - # Optional. SCAN listener port - TCP - # @!attribute [rw] scan_listener_port_tcp_ssl - # @return [::Integer] - # Optional. SCAN listener port - TLS - # @!attribute [r] domain - # @return [::String] - # Output only. Parent DNS domain where SCAN DNS and hosts names are - # qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com - # @!attribute [r] scan_dns - # @return [::String] - # Output only. SCAN DNS name. - # ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com - # @!attribute [r] hostname - # @return [::String] - # Output only. host name without domain. - # format: "-" with some suffix. - # ex: sp2-yi0xq where "sp2" is the hostname_prefix. - # @!attribute [rw] cpu_core_count - # @return [::Integer] - # Required. Number of enabled CPU cores. - # @!attribute [rw] system_version - # @return [::String] - # Optional. Operating system version of the image. - # @!attribute [r] scan_ip_ids - # @return [::Array<::String>] - # Output only. OCIDs of scan IPs. - # @!attribute [r] scan_dns_record_id - # @return [::String] - # Output only. OCID of scan DNS record. - # @!attribute [r] oci_url - # @return [::String] - # Output only. Deep link to the OCI console to view this resource. - # @!attribute [rw] db_server_ocids - # @return [::Array<::String>] - # Optional. OCID of database servers. - # @!attribute [r] compartment_id - # @return [::String] - # Output only. Compartment ID of cluster. - # @!attribute [r] dns_listener_ip - # @return [::String] - # Output only. DNS listener IP. - # @!attribute [rw] cluster_name - # @return [::String] - # Optional. OCI Cluster name. - # @!attribute [r] compute_model - # @return [::Google::Cloud::OracleDatabase::V1::ComputeModel] - # Output only. The compute model of the VM Cluster. - class CloudVmClusterProperties - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - - # Different licenses supported. - module LicenseType - # Unspecified - LICENSE_TYPE_UNSPECIFIED = 0 - - # License included part of offer - LICENSE_INCLUDED = 1 - - # Bring your own license - BRING_YOUR_OWN_LICENSE = 2 - end - - # Types of disk redundancy provided by Oracle. - module DiskRedundancy - # Unspecified. - DISK_REDUNDANCY_UNSPECIFIED = 0 - - # High - 3 way mirror. - HIGH = 1 - - # Normal - 2 way mirror. - NORMAL = 2 - end - - # The various lifecycle states of the VM cluster. - module State - # Default unspecified value. - STATE_UNSPECIFIED = 0 - - # Indicates that the resource is in provisioning state. - PROVISIONING = 1 - - # Indicates that the resource is in available state. - AVAILABLE = 2 - - # Indicates that the resource is in updating state. - UPDATING = 3 - - # Indicates that the resource is in terminating state. - TERMINATING = 4 - - # Indicates that the resource is in terminated state. - TERMINATED = 5 - - # Indicates that the resource is in failed state. - FAILED = 6 - - # Indicates that the resource is in maintenance in progress state. - MAINTENANCE_IN_PROGRESS = 7 - end - end - - # Data collection options for diagnostics. - # @!attribute [rw] diagnostics_events_enabled - # @return [::Boolean] - # Optional. Indicates whether diagnostic collection is enabled for the VM - # cluster - # @!attribute [rw] health_monitoring_enabled - # @return [::Boolean] - # Optional. Indicates whether health monitoring is enabled for the VM cluster - # @!attribute [rw] incident_logs_enabled - # @return [::Boolean] - # Optional. Indicates whether incident logs and trace collection are enabled - # for the VM cluster - class DataCollectionOptions - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/longrunning/operations.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/longrunning/operations.rb deleted file mode 100644 index 7a757f512165..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/longrunning/operations.rb +++ /dev/null @@ -1,191 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Longrunning - # This resource represents a long-running operation that is the result of a - # network API call. - # @!attribute [rw] name - # @return [::String] - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the - # `name` should be a resource name ending with `operations/{unique_id}`. - # @!attribute [rw] metadata - # @return [::Google::Protobuf::Any] - # Service-specific metadata associated with the operation. It typically - # contains progress information and common metadata such as create time. - # Some services might not provide such metadata. Any method that returns a - # long-running operation should document the metadata type, if any. - # @!attribute [rw] done - # @return [::Boolean] - # If the value is `false`, it means the operation is still in progress. - # If `true`, the operation is completed, and either `error` or `response` is - # available. - # @!attribute [rw] error - # @return [::Google::Rpc::Status] - # The error result of the operation in case of failure or cancellation. - # - # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] response - # @return [::Google::Protobuf::Any] - # The normal, successful response of the operation. If the original - # method returns no data on success, such as `Delete`, the response is - # `google.protobuf.Empty`. If the original method is standard - # `Get`/`Create`/`Update`, the response should be the resource. For other - # methods, the response should have the type `XxxResponse`, where `Xxx` - # is the original method name. For example, if the original method name - # is `TakeSnapshot()`, the inferred response type is - # `TakeSnapshotResponse`. - # - # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class Operation - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.GetOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource. - class GetOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.ListOperations. - # @!attribute [rw] name - # @return [::String] - # The name of the operation's parent resource. - # @!attribute [rw] filter - # @return [::String] - # The standard list filter. - # @!attribute [rw] page_size - # @return [::Integer] - # The standard list page size. - # @!attribute [rw] page_token - # @return [::String] - # The standard list page token. - # @!attribute [rw] return_partial_success - # @return [::Boolean] - # When set to `true`, operations that are reachable are returned as normal, - # and those that are unreachable are returned in the - # [ListOperationsResponse.unreachable] field. - # - # This can only be `true` when reading across collections e.g. when `parent` - # is set to `"projects/example/locations/-"`. - # - # This field is not by default supported and will result in an - # `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - # service or product specific documentation. - class ListOperationsRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The response message for - # Operations.ListOperations. - # @!attribute [rw] operations - # @return [::Array<::Google::Longrunning::Operation>] - # A list of operations that matches the specified filter in the request. - # @!attribute [rw] next_page_token - # @return [::String] - # The standard List next-page token. - # @!attribute [rw] unreachable - # @return [::Array<::String>] - # Unordered list. Unreachable resources. Populated when the request sets - # `ListOperationsRequest.return_partial_success` and reads across - # collections e.g. when attempting to list all resources across all supported - # locations. - class ListOperationsResponse - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.CancelOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be cancelled. - class CancelOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.DeleteOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to be deleted. - class DeleteOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # The request message for - # Operations.WaitOperation. - # @!attribute [rw] name - # @return [::String] - # The name of the operation resource to wait on. - # @!attribute [rw] timeout - # @return [::Google::Protobuf::Duration] - # The maximum duration to wait before timing out. If left blank, the wait - # will be at most the time permitted by the underlying HTTP/RPC protocol. - # If RPC context deadline is also specified, the shorter one will be used. - class WaitOperationRequest - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # A message representing the message types used by a long-running operation. - # - # Example: - # - # rpc Export(ExportRequest) returns (google.longrunning.Operation) { - # option (google.longrunning.operation_info) = { - # response_type: "ExportResponse" - # metadata_type: "ExportMetadata" - # }; - # } - # @!attribute [rw] response_type - # @return [::String] - # Required. The message name of the primary return type for this - # long-running operation. - # This type will be used to deserialize the LRO's response. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - # @!attribute [rw] metadata_type - # @return [::String] - # Required. The message name of the metadata type for this long-running - # operation. - # - # If the response is in a different package from the rpc, a fully-qualified - # message name must be used (e.g. `google.protobuf.Struct`). - # - # Note: Altering this value constitutes a breaking change. - class OperationInfo - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/any.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/any.rb deleted file mode 100644 index 58691995f02e..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/any.rb +++ /dev/null @@ -1,145 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `Any` contains an arbitrary serialized protocol buffer message along with a - # URL that describes the type of the serialized message. - # - # Protobuf library provides support to pack/unpack Any values in the form - # of utility functions or additional generated methods of the Any type. - # - # Example 1: Pack and unpack a message in C++. - # - # Foo foo = ...; - # Any any; - # any.PackFrom(foo); - # ... - # if (any.UnpackTo(&foo)) { - # ... - # } - # - # Example 2: Pack and unpack a message in Java. - # - # Foo foo = ...; - # Any any = Any.pack(foo); - # ... - # if (any.is(Foo.class)) { - # foo = any.unpack(Foo.class); - # } - # // or ... - # if (any.isSameTypeAs(Foo.getDefaultInstance())) { - # foo = any.unpack(Foo.getDefaultInstance()); - # } - # - # Example 3: Pack and unpack a message in Python. - # - # foo = Foo(...) - # any = Any() - # any.Pack(foo) - # ... - # if any.Is(Foo.DESCRIPTOR): - # any.Unpack(foo) - # ... - # - # Example 4: Pack and unpack a message in Go - # - # foo := &pb.Foo{...} - # any, err := anypb.New(foo) - # if err != nil { - # ... - # } - # ... - # foo := &pb.Foo{} - # if err := any.UnmarshalTo(foo); err != nil { - # ... - # } - # - # The pack methods provided by protobuf library will by default use - # 'type.googleapis.com/full.type.name' as the type URL and the unpack - # methods only use the fully qualified type name after the last '/' - # in the type URL, for example "foo.bar.com/x/y.z" will yield type - # name "y.z". - # - # JSON - # ==== - # The JSON representation of an `Any` value uses the regular - # representation of the deserialized, embedded message, with an - # additional field `@type` which contains the type URL. Example: - # - # package google.profile; - # message Person { - # string first_name = 1; - # string last_name = 2; - # } - # - # { - # "@type": "type.googleapis.com/google.profile.Person", - # "firstName": , - # "lastName": - # } - # - # If the embedded message type is well-known and has a custom JSON - # representation, that representation will be embedded adding a field - # `value` which holds the custom JSON in addition to the `@type` - # field. Example (for message [google.protobuf.Duration][]): - # - # { - # "@type": "type.googleapis.com/google.protobuf.Duration", - # "value": "1.212s" - # } - # @!attribute [rw] type_url - # @return [::String] - # A URL/resource name that uniquely identifies the type of the serialized - # protocol buffer message. This string must contain at least - # one "/" character. The last segment of the URL's path must represent - # the fully qualified name of the type (as in - # `path/google.protobuf.Duration`). The name should be in a canonical form - # (e.g., leading "." is not accepted). - # - # In practice, teams usually precompile into the binary all types that they - # expect it to use in the context of Any. However, for URLs which use the - # scheme `http`, `https`, or no scheme, one can optionally set up a type - # server that maps type URLs to message definitions as follows: - # - # * If no scheme is provided, `https` is assumed. - # * An HTTP GET on the URL must yield a [google.protobuf.Type][] - # value in binary format, or produce an error. - # * Applications are allowed to cache lookup results based on the - # URL, or have them precompiled into a binary to avoid any - # lookup. Therefore, binary compatibility needs to be preserved - # on changes to types. (Use versioned type names to manage - # breaking changes.) - # - # Note: this functionality is not currently available in the official - # protobuf release, and it is not used for type URLs beginning with - # type.googleapis.com. As of May 2023, there are no widely used type server - # implementations and no plans to implement one. - # - # Schemes other than `http`, `https` (or the empty scheme) might be - # used with implementation specific semantics. - # @!attribute [rw] value - # @return [::String] - # Must be a valid serialized protocol buffer of the above specified type. - class Any - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/duration.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/duration.rb deleted file mode 100644 index ea59f1f91daf..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/duration.rb +++ /dev/null @@ -1,98 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Duration represents a signed, fixed-length span of time represented - # as a count of seconds and fractions of seconds at nanosecond - # resolution. It is independent of any calendar and concepts like "day" - # or "month". It is related to Timestamp in that the difference between - # two Timestamp values is a Duration and it can be added or subtracted - # from a Timestamp. Range is approximately +-10,000 years. - # - # # Examples - # - # Example 1: Compute Duration from two Timestamps in pseudo code. - # - # Timestamp start = ...; - # Timestamp end = ...; - # Duration duration = ...; - # - # duration.seconds = end.seconds - start.seconds; - # duration.nanos = end.nanos - start.nanos; - # - # if (duration.seconds < 0 && duration.nanos > 0) { - # duration.seconds += 1; - # duration.nanos -= 1000000000; - # } else if (duration.seconds > 0 && duration.nanos < 0) { - # duration.seconds -= 1; - # duration.nanos += 1000000000; - # } - # - # Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. - # - # Timestamp start = ...; - # Duration duration = ...; - # Timestamp end = ...; - # - # end.seconds = start.seconds + duration.seconds; - # end.nanos = start.nanos + duration.nanos; - # - # if (end.nanos < 0) { - # end.seconds -= 1; - # end.nanos += 1000000000; - # } else if (end.nanos >= 1000000000) { - # end.seconds += 1; - # end.nanos -= 1000000000; - # } - # - # Example 3: Compute Duration from datetime.timedelta in Python. - # - # td = datetime.timedelta(days=3, minutes=10) - # duration = Duration() - # duration.FromTimedelta(td) - # - # # JSON Mapping - # - # In JSON format, the Duration type is encoded as a string rather than an - # object, where the string ends in the suffix "s" (indicating seconds) and - # is preceded by the number of seconds, with nanoseconds expressed as - # fractional seconds. For example, 3 seconds with 0 nanoseconds should be - # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should - # be expressed in JSON format as "3.000000001s", and 3 seconds and 1 - # microsecond should be expressed in JSON format as "3.000001s". - # @!attribute [rw] seconds - # @return [::Integer] - # Signed seconds of the span of time. Must be from -315,576,000,000 - # to +315,576,000,000 inclusive. Note: these bounds are computed from: - # 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years - # @!attribute [rw] nanos - # @return [::Integer] - # Signed fractions of a second at nanosecond resolution of the span - # of time. Durations less than one second are represented with a 0 - # `seconds` field and a positive or negative `nanos` field. For durations - # of one second or more, a non-zero value for the `nanos` field must be - # of the same sign as the `seconds` field. Must be from -999,999,999 - # to +999,999,999 inclusive. - class Duration - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/empty.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/empty.rb deleted file mode 100644 index 83e4481834a6..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/empty.rb +++ /dev/null @@ -1,34 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # 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); - # } - class Empty - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/field_mask.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/field_mask.rb deleted file mode 100644 index 7f3ffc78601a..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/field_mask.rb +++ /dev/null @@ -1,229 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # `FieldMask` represents a set of symbolic field paths, for example: - # - # paths: "f.a" - # paths: "f.b.d" - # - # Here `f` represents a field in some root message, `a` and `b` - # fields in the message found in `f`, and `d` a field found in the - # message in `f.b`. - # - # Field masks are used to specify a subset of fields that should be - # returned by a get operation or modified by an update operation. - # Field masks also have a custom JSON encoding (see below). - # - # # Field Masks in Projections - # - # When used in the context of a projection, a response message or - # sub-message is filtered by the API to only contain those fields as - # specified in the mask. For example, if the mask in the previous - # example is applied to a response message as follows: - # - # f { - # a : 22 - # b { - # d : 1 - # x : 2 - # } - # y : 13 - # } - # z: 8 - # - # The result will not contain specific values for fields x,y and z - # (their value will be set to the default, and omitted in proto text - # output): - # - # - # f { - # a : 22 - # b { - # d : 1 - # } - # } - # - # A repeated field is not allowed except at the last position of a - # paths string. - # - # If a FieldMask object is not present in a get operation, the - # operation applies to all fields (as if a FieldMask of all fields - # had been specified). - # - # Note that a field mask does not necessarily apply to the - # top-level response message. In case of a REST get operation, the - # field mask applies directly to the response, but in case of a REST - # list operation, the mask instead applies to each individual message - # in the returned resource list. In case of a REST custom method, - # other definitions may be used. Where the mask applies will be - # clearly documented together with its declaration in the API. In - # any case, the effect on the returned resource/resources is required - # behavior for APIs. - # - # # Field Masks in Update Operations - # - # A field mask in update operations specifies which fields of the - # targeted resource are going to be updated. The API is required - # to only change the values of the fields as specified in the mask - # and leave the others untouched. If a resource is passed in to - # describe the updated values, the API ignores the values of all - # fields not covered by the mask. - # - # If a repeated field is specified for an update operation, new values will - # be appended to the existing repeated field in the target resource. Note that - # a repeated field is only allowed in the last position of a `paths` string. - # - # If a sub-message is specified in the last position of the field mask for an - # update operation, then new value will be merged into the existing sub-message - # in the target resource. - # - # For example, given the target message: - # - # f { - # b { - # d: 1 - # x: 2 - # } - # c: [1] - # } - # - # And an update message: - # - # f { - # b { - # d: 10 - # } - # c: [2] - # } - # - # then if the field mask is: - # - # paths: ["f.b", "f.c"] - # - # then the result will be: - # - # f { - # b { - # d: 10 - # x: 2 - # } - # c: [1, 2] - # } - # - # An implementation may provide options to override this default behavior for - # repeated and message fields. - # - # In order to reset a field's value to the default, the field must - # be in the mask and set to the default value in the provided resource. - # Hence, in order to reset all fields of a resource, provide a default - # instance of the resource and set all fields in the mask, or do - # not provide a mask as described below. - # - # If a field mask is not present on update, the operation applies to - # all fields (as if a field mask of all fields has been specified). - # Note that in the presence of schema evolution, this may mean that - # fields the client does not know and has therefore not filled into - # the request will be reset to their default. If this is unwanted - # behavior, a specific service may require a client to always specify - # a field mask, producing an error if not. - # - # As with get operations, the location of the resource which - # describes the updated values in the request message depends on the - # operation kind. In any case, the effect of the field mask is - # required to be honored by the API. - # - # ## Considerations for HTTP REST - # - # The HTTP kind of an update operation which uses a field mask must - # be set to PATCH instead of PUT in order to satisfy HTTP semantics - # (PUT must only be used for full updates). - # - # # JSON Encoding of Field Masks - # - # In JSON, a field mask is encoded as a single string where paths are - # separated by a comma. Fields name in each path are converted - # to/from lower-camel naming conventions. - # - # As an example, consider the following message declarations: - # - # message Profile { - # User user = 1; - # Photo photo = 2; - # } - # message User { - # string display_name = 1; - # string address = 2; - # } - # - # In proto a field mask for `Profile` may look as such: - # - # mask { - # paths: "user.display_name" - # paths: "photo" - # } - # - # In JSON, the same mask is represented as below: - # - # { - # mask: "user.displayName,photo" - # } - # - # # Field Masks and Oneof Fields - # - # Field masks treat fields in oneofs just as regular fields. Consider the - # following message: - # - # message SampleMessage { - # oneof test_oneof { - # string name = 4; - # SubMessage sub_message = 9; - # } - # } - # - # The field mask can be: - # - # mask { - # paths: "name" - # } - # - # Or: - # - # mask { - # paths: "sub_message" - # } - # - # Note that oneof type names ("test_oneof" in this case) cannot be used in - # paths. - # - # ## Field Mask Verification - # - # The implementation of any API method which has a FieldMask type field in the - # request should verify the included field paths, and return an - # `INVALID_ARGUMENT` error if any path is unmappable. - # @!attribute [rw] paths - # @return [::Array<::String>] - # The set of field mask paths. - class FieldMask - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/timestamp.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/timestamp.rb deleted file mode 100644 index 74352be9c58c..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/protobuf/timestamp.rb +++ /dev/null @@ -1,127 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Protobuf - # A Timestamp represents a point in time independent of any time zone or local - # calendar, encoded as a count of seconds and fractions of seconds at - # nanosecond resolution. The count is relative to an epoch at UTC midnight on - # January 1, 1970, in the proleptic Gregorian calendar which extends the - # Gregorian calendar backwards to year one. - # - # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - # second table is needed for interpretation, using a [24-hour linear - # smear](https://developers.google.com/time/smear). - # - # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - # restricting to that range, we ensure that we can convert to and from [RFC - # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - # - # # Examples - # - # Example 1: Compute Timestamp from POSIX `time()`. - # - # Timestamp timestamp; - # timestamp.set_seconds(time(NULL)); - # timestamp.set_nanos(0); - # - # Example 2: Compute Timestamp from POSIX `gettimeofday()`. - # - # struct timeval tv; - # gettimeofday(&tv, NULL); - # - # Timestamp timestamp; - # timestamp.set_seconds(tv.tv_sec); - # timestamp.set_nanos(tv.tv_usec * 1000); - # - # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - # - # FILETIME ft; - # GetSystemTimeAsFileTime(&ft); - # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - # - # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - # Timestamp timestamp; - # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - # - # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - # - # long millis = System.currentTimeMillis(); - # - # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - # .setNanos((int) ((millis % 1000) * 1000000)).build(); - # - # Example 5: Compute Timestamp from Java `Instant.now()`. - # - # Instant now = Instant.now(); - # - # Timestamp timestamp = - # Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - # .setNanos(now.getNano()).build(); - # - # Example 6: Compute Timestamp from current time in Python. - # - # timestamp = Timestamp() - # timestamp.GetCurrentTime() - # - # # JSON Mapping - # - # In JSON format, the Timestamp type is encoded as a string in the - # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z" - # where \\{year} is always expressed using four digits while \\{month}, \\{day}, - # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional - # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - # is required. A proto3 JSON serializer should always use UTC (as indicated by - # "Z") when printing the Timestamp type and a proto3 JSON parser should be - # able to accept both UTC and other timezones (as indicated by an offset). - # - # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - # 01:30 UTC on January 15, 2017. - # - # In JavaScript, one can convert a Date object to this format using the - # standard - # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - # method. In Python, a standard `datetime.datetime` object can be converted - # to this format using - # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - # the Joda Time's [`ISODateTimeFormat.dateTime()`]( - # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() - # ) to obtain a formatter capable of generating timestamps in this format. - # @!attribute [rw] seconds - # @return [::Integer] - # Represents seconds of UTC time since Unix epoch - # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - # 9999-12-31T23:59:59Z inclusive. - # @!attribute [rw] nanos - # @return [::Integer] - # Non-negative fractions of a second at nanosecond resolution. Negative - # second values with fractions must still have non-negative nanos values - # that count forward in time. Must be from 0 to 999,999,999 - # inclusive. - class Timestamp - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/rpc/status.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/rpc/status.rb deleted file mode 100644 index c1a1c07eb2db..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/rpc/status.rb +++ /dev/null @@ -1,48 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Rpc - # The `Status` type defines a logical error model that is suitable for - # different programming environments, including REST APIs and RPC APIs. It is - # used by [gRPC](https://github.com/grpc). Each `Status` message contains - # three pieces of data: error code, error message, and error details. - # - # You can find out more about this error model and how to work with it in the - # [API Design Guide](https://cloud.google.com/apis/design/errors). - # @!attribute [rw] code - # @return [::Integer] - # The status code, which should be an enum value of - # [google.rpc.Code][google.rpc.Code]. - # @!attribute [rw] message - # @return [::String] - # A developer-facing error message, which should be in English. Any - # user-facing error message should be localized and sent in the - # {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized - # by the client. - # @!attribute [rw] details - # @return [::Array<::Google::Protobuf::Any>] - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - class Status - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/datetime.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/datetime.rb deleted file mode 100644 index 10625864f3dd..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/datetime.rb +++ /dev/null @@ -1,104 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents civil time (or occasionally physical time). - # - # This type can represent a civil time in one of a few possible ways: - # - # * When utc_offset is set and time_zone is unset: a civil time on a calendar - # day with a particular offset from UTC. - # * When time_zone is set and utc_offset is unset: a civil time on a calendar - # day in a particular time zone. - # * When neither time_zone nor utc_offset is set: a civil time on a calendar - # day in local time. - # - # The date is relative to the Proleptic Gregorian Calendar. - # - # If year, month, or day are 0, the DateTime is considered not to have a - # specific year, month, or day respectively. - # - # This type may also be used to represent a physical time if all the date and - # time fields are set and either case of the `time_offset` oneof is set. - # Consider using `Timestamp` message for physical time instead. If your use - # case also would like to store the user's timezone, that can be done in - # another field. - # - # This type is more flexible than some applications may want. Make sure to - # document and validate your application's limitations. - # @!attribute [rw] year - # @return [::Integer] - # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a - # datetime without a year. - # @!attribute [rw] month - # @return [::Integer] - # Optional. Month of year. Must be from 1 to 12, or 0 if specifying a - # datetime without a month. - # @!attribute [rw] day - # @return [::Integer] - # Optional. Day of month. Must be from 1 to 31 and valid for the year and - # month, or 0 if specifying a datetime without a day. - # @!attribute [rw] hours - # @return [::Integer] - # Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults - # to 0 (midnight). An API may choose to allow the value "24:00:00" for - # scenarios like business closing time. - # @!attribute [rw] minutes - # @return [::Integer] - # Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0. - # @!attribute [rw] seconds - # @return [::Integer] - # Optional. Seconds of minutes of the time. Must normally be from 0 to 59, - # defaults to 0. An API may allow the value 60 if it allows leap-seconds. - # @!attribute [rw] nanos - # @return [::Integer] - # Optional. Fractions of seconds in nanoseconds. Must be from 0 to - # 999,999,999, defaults to 0. - # @!attribute [rw] utc_offset - # @return [::Google::Protobuf::Duration] - # UTC offset. Must be whole seconds, between -18 hours and +18 hours. - # For example, a UTC offset of -4:00 would be represented as - # { seconds: -14400 }. - # - # Note: The following fields are mutually exclusive: `utc_offset`, `time_zone`. If a field in that set is populated, all other fields in the set will automatically be cleared. - # @!attribute [rw] time_zone - # @return [::Google::Type::TimeZone] - # Time zone. - # - # Note: The following fields are mutually exclusive: `time_zone`, `utc_offset`. If a field in that set is populated, all other fields in the set will automatically be cleared. - class DateTime - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - - # Represents a time zone from the - # [IANA Time Zone Database](https://www.iana.org/time-zones). - # @!attribute [rw] id - # @return [::String] - # IANA Time Zone Database time zone. For example "America/New_York". - # @!attribute [rw] version - # @return [::String] - # Optional. IANA Time Zone Database version number. For example "2019a". - class TimeZone - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/dayofweek.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/dayofweek.rb deleted file mode 100644 index 973211b9ffe7..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/dayofweek.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a day of the week. - module DayOfWeek - # The day of the week is unspecified. - DAY_OF_WEEK_UNSPECIFIED = 0 - - # Monday - MONDAY = 1 - - # Tuesday - TUESDAY = 2 - - # Wednesday - WEDNESDAY = 3 - - # Thursday - THURSDAY = 4 - - # Friday - FRIDAY = 5 - - # Saturday - SATURDAY = 6 - - # Sunday - SUNDAY = 7 - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/month.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/month.rb deleted file mode 100644 index 3e27c902551d..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/month.rb +++ /dev/null @@ -1,64 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a month in the Gregorian calendar. - module Month - # The unspecified month. - MONTH_UNSPECIFIED = 0 - - # The month of January. - JANUARY = 1 - - # The month of February. - FEBRUARY = 2 - - # The month of March. - MARCH = 3 - - # The month of April. - APRIL = 4 - - # The month of May. - MAY = 5 - - # The month of June. - JUNE = 6 - - # The month of July. - JULY = 7 - - # The month of August. - AUGUST = 8 - - # The month of September. - SEPTEMBER = 9 - - # The month of October. - OCTOBER = 10 - - # The month of November. - NOVEMBER = 11 - - # The month of December. - DECEMBER = 12 - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/timeofday.rb b/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/timeofday.rb deleted file mode 100644 index ae79b2f8dceb..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/proto_docs/google/type/timeofday.rb +++ /dev/null @@ -1,49 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - - -module Google - module Type - # Represents a time of day. The date and time zone are either not significant - # or are specified elsewhere. An API may choose to allow leap seconds. Related - # types are [google.type.Date][google.type.Date] and - # `google.protobuf.Timestamp`. - # @!attribute [rw] hours - # @return [::Integer] - # Hours of a day in 24 hour format. Must be greater than or equal to 0 and - # typically must be less than or equal to 23. An API may choose to allow the - # value "24:00:00" for scenarios like business closing time. - # @!attribute [rw] minutes - # @return [::Integer] - # Minutes of an hour. Must be greater than or equal to 0 and less than or - # equal to 59. - # @!attribute [rw] seconds - # @return [::Integer] - # Seconds of a minute. Must be greater than or equal to 0 and typically must - # be less than or equal to 59. An API may allow the value 60 if it allows - # leap-seconds. - # @!attribute [rw] nanos - # @return [::Integer] - # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 - # and less than or equal to 999,999,999. - class TimeOfDay - include ::Google::Protobuf::MessageExts - extend ::Google::Protobuf::MessageExts::ClassMethods - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/Gemfile b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/Gemfile deleted file mode 100644 index 38dc888b0671..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/Gemfile +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -source "https://rubygems.org" - -if ENV["GOOGLE_CLOUD_SAMPLES_TEST"] == "master" - gem "google-cloud-oracle_database-v1", path: "../" -else - gem "google-cloud-oracle_database-v1" -end - -group :test do - gem "google-style", "~> 1.26.1" - gem "minitest", "~> 5.16" - gem "minitest-focus", "~> 1.1" - gem "minitest-hooks", "~> 1.5" -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_autonomous_database.rb deleted file mode 100644 index 7fefaf1574bb..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the create_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_autonomous_database. -# -def create_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new - - # Call the create_autonomous_database method. - result = client.create_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_exadata_infrastructure.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_exadata_infrastructure.rb deleted file mode 100644 index 29fcad4a8d64..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_exadata_infrastructure.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the create_cloud_exadata_infrastructure call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_exadata_infrastructure. -# -def create_cloud_exadata_infrastructure - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new - - # Call the create_cloud_exadata_infrastructure method. - result = client.create_cloud_exadata_infrastructure request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_vm_cluster.rb deleted file mode 100644 index ac0b186ba92b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_cloud_vm_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the create_cloud_vm_cluster call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_vm_cluster. -# -def create_cloud_vm_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new - - # Call the create_cloud_vm_cluster method. - result = client.create_cloud_vm_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_db_system.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_db_system.rb deleted file mode 100644 index 1f9da6ad9b11..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_db_system.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the create_db_system call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_db_system. -# -def create_db_system - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new - - # Call the create_db_system method. - result = client.create_db_system request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exadb_vm_cluster.rb deleted file mode 100644 index 15e5ebef54ee..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exadb_vm_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the create_exadb_vm_cluster call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exadb_vm_cluster. -# -def create_exadb_vm_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new - - # Call the create_exadb_vm_cluster method. - result = client.create_exadb_vm_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exascale_db_storage_vault.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exascale_db_storage_vault.rb deleted file mode 100644 index efa0d3e98c78..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_exascale_db_storage_vault.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the create_exascale_db_storage_vault call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exascale_db_storage_vault. -# -def create_exascale_db_storage_vault - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new - - # Call the create_exascale_db_storage_vault method. - result = client.create_exascale_db_storage_vault request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_network.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_network.rb deleted file mode 100644 index 416fa4709036..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_network.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the create_odb_network call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_network. -# -def create_odb_network - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new - - # Call the create_odb_network method. - result = client.create_odb_network request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_subnet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_subnet.rb deleted file mode 100644 index 90b6f1b2132b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/create_odb_subnet.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the create_odb_subnet call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_subnet. -# -def create_odb_subnet - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new - - # Call the create_odb_subnet method. - result = client.create_odb_subnet request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_autonomous_database.rb deleted file mode 100644 index 401634dfc7d6..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the delete_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_autonomous_database. -# -def delete_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new - - # Call the delete_autonomous_database method. - result = client.delete_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_exadata_infrastructure.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_exadata_infrastructure.rb deleted file mode 100644 index 3da386f9d5cc..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_exadata_infrastructure.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the delete_cloud_exadata_infrastructure call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_exadata_infrastructure. -# -def delete_cloud_exadata_infrastructure - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new - - # Call the delete_cloud_exadata_infrastructure method. - result = client.delete_cloud_exadata_infrastructure request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_vm_cluster.rb deleted file mode 100644 index c2fcfd8e14e5..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_cloud_vm_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the delete_cloud_vm_cluster call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_vm_cluster. -# -def delete_cloud_vm_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new - - # Call the delete_cloud_vm_cluster method. - result = client.delete_cloud_vm_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_db_system.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_db_system.rb deleted file mode 100644 index 67134c3b1128..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_db_system.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the delete_db_system call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_db_system. -# -def delete_db_system - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new - - # Call the delete_db_system method. - result = client.delete_db_system request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exadb_vm_cluster.rb deleted file mode 100644 index d7a50c930fb8..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exadb_vm_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the delete_exadb_vm_cluster call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exadb_vm_cluster. -# -def delete_exadb_vm_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new - - # Call the delete_exadb_vm_cluster method. - result = client.delete_exadb_vm_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exascale_db_storage_vault.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exascale_db_storage_vault.rb deleted file mode 100644 index 57791aecb20f..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_exascale_db_storage_vault.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the delete_exascale_db_storage_vault call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exascale_db_storage_vault. -# -def delete_exascale_db_storage_vault - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new - - # Call the delete_exascale_db_storage_vault method. - result = client.delete_exascale_db_storage_vault request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_network.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_network.rb deleted file mode 100644 index a11f71f41cc0..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_network.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the delete_odb_network call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_network. -# -def delete_odb_network - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new - - # Call the delete_odb_network method. - result = client.delete_odb_network request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_subnet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_subnet.rb deleted file mode 100644 index 17826c872d6b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/delete_odb_subnet.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the delete_odb_subnet call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_subnet. -# -def delete_odb_subnet - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new - - # Call the delete_odb_subnet method. - result = client.delete_odb_subnet request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/failover_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/failover_autonomous_database.rb deleted file mode 100644 index 34c7ed5ee7b2..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/failover_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the failover_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#failover_autonomous_database. -# -def failover_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new - - # Call the failover_autonomous_database method. - result = client.failover_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/generate_autonomous_database_wallet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/generate_autonomous_database_wallet.rb deleted file mode 100644 index f91da49f313b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/generate_autonomous_database_wallet.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the generate_autonomous_database_wallet call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#generate_autonomous_database_wallet. -# -def generate_autonomous_database_wallet - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new - - # Call the generate_autonomous_database_wallet method. - result = client.generate_autonomous_database_wallet request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_autonomous_database.rb deleted file mode 100644 index 8e6896e5a254..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_autonomous_database.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_autonomous_database. -# -def get_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new - - # Call the get_autonomous_database method. - result = client.get_autonomous_database request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::AutonomousDatabase. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_exadata_infrastructure.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_exadata_infrastructure.rb deleted file mode 100644 index c11ffecfa9d0..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_exadata_infrastructure.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_cloud_exadata_infrastructure call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_exadata_infrastructure. -# -def get_cloud_exadata_infrastructure - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new - - # Call the get_cloud_exadata_infrastructure method. - result = client.get_cloud_exadata_infrastructure request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_vm_cluster.rb deleted file mode 100644 index 721712429e19..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_cloud_vm_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_cloud_vm_cluster call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_vm_cluster. -# -def get_cloud_vm_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new - - # Call the get_cloud_vm_cluster method. - result = client.get_cloud_vm_cluster request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::CloudVmCluster. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_database.rb deleted file mode 100644 index a97ee01e49a6..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_database.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_database. -# -def get_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new - - # Call the get_database method. - result = client.get_database request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::Database. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_db_system.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_db_system.rb deleted file mode 100644 index b70c71096143..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_db_system.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetDbSystem_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_db_system call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_db_system. -# -def get_db_system - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new - - # Call the get_db_system method. - result = client.get_db_system request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::DbSystem. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetDbSystem_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exadb_vm_cluster.rb deleted file mode 100644 index 8abed062f0cc..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exadb_vm_cluster.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_exadb_vm_cluster call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exadb_vm_cluster. -# -def get_exadb_vm_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new - - # Call the get_exadb_vm_cluster method. - result = client.get_exadb_vm_cluster request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::ExadbVmCluster. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exascale_db_storage_vault.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exascale_db_storage_vault.rb deleted file mode 100644 index 195880ed832f..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_exascale_db_storage_vault.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_exascale_db_storage_vault call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exascale_db_storage_vault. -# -def get_exascale_db_storage_vault - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new - - # Call the get_exascale_db_storage_vault method. - result = client.get_exascale_db_storage_vault request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_network.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_network.rb deleted file mode 100644 index 38d4c2750b11..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_network.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_odb_network call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_network. -# -def get_odb_network - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new - - # Call the get_odb_network method. - result = client.get_odb_network request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbNetwork. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_subnet.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_subnet.rb deleted file mode 100644 index 754a017939b6..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_odb_subnet.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_odb_subnet call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_subnet. -# -def get_odb_subnet - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new - - # Call the get_odb_subnet method. - result = client.get_odb_subnet request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::OdbSubnet. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_pluggable_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_pluggable_database.rb deleted file mode 100644 index 5b396e6ad698..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/get_pluggable_database.rb +++ /dev/null @@ -1,47 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the get_pluggable_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_pluggable_database. -# -def get_pluggable_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new - - # Call the get_pluggable_database method. - result = client.get_pluggable_database request - - # The returned object is of type Google::Cloud::OracleDatabase::V1::PluggableDatabase. - p result -end -# [END oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_backups.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_backups.rb deleted file mode 100644 index 63e7f87ec3af..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_backups.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_autonomous_database_backups call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_backups. -# -def list_autonomous_database_backups - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new - - # Call the list_autonomous_database_backups method. - result = client.list_autonomous_database_backups request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseBackup. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_character_sets.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_character_sets.rb deleted file mode 100644 index dcf09feb4414..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_database_character_sets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_autonomous_database_character_sets call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_character_sets. -# -def list_autonomous_database_character_sets - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new - - # Call the list_autonomous_database_character_sets method. - result = client.list_autonomous_database_character_sets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabaseCharacterSet. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_databases.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_databases.rb deleted file mode 100644 index 82a216d09cca..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_databases.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_autonomous_databases call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_databases. -# -def list_autonomous_databases - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new - - # Call the list_autonomous_databases method. - result = client.list_autonomous_databases request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_db_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_db_versions.rb deleted file mode 100644 index 987da6cb44f3..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_autonomous_db_versions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_autonomous_db_versions call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_db_versions. -# -def list_autonomous_db_versions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new - - # Call the list_autonomous_db_versions method. - result = client.list_autonomous_db_versions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::AutonomousDbVersion. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_exadata_infrastructures.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_exadata_infrastructures.rb deleted file mode 100644 index e465dd79bff1..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_exadata_infrastructures.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_cloud_exadata_infrastructures call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_exadata_infrastructures. -# -def list_cloud_exadata_infrastructures - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new - - # Call the list_cloud_exadata_infrastructures method. - result = client.list_cloud_exadata_infrastructures request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_vm_clusters.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_vm_clusters.rb deleted file mode 100644 index 1c5a3c00585a..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_cloud_vm_clusters.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_cloud_vm_clusters call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_vm_clusters. -# -def list_cloud_vm_clusters - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new - - # Call the list_cloud_vm_clusters method. - result = client.list_cloud_vm_clusters request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::CloudVmCluster. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_database_character_sets.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_database_character_sets.rb deleted file mode 100644 index 06b5f75e9547..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_database_character_sets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_database_character_sets call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_database_character_sets. -# -def list_database_character_sets - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new - - # Call the list_database_character_sets method. - result = client.list_database_character_sets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::DatabaseCharacterSet. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_databases.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_databases.rb deleted file mode 100644 index a3b445418286..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_databases.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListDatabases_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_databases call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_databases. -# -def list_databases - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new - - # Call the list_databases method. - result = client.list_databases request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::Database. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListDatabases_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_nodes.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_nodes.rb deleted file mode 100644 index b555c4e13de4..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_nodes.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_db_nodes call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_nodes. -# -def list_db_nodes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new - - # Call the list_db_nodes method. - result = client.list_db_nodes request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbNode. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_servers.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_servers.rb deleted file mode 100644 index 08976f0d30ce..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_servers.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_db_servers call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_servers. -# -def list_db_servers - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new - - # Call the list_db_servers method. - result = client.list_db_servers request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbServer. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_initial_storage_sizes.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_initial_storage_sizes.rb deleted file mode 100644 index 9223bf118888..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_initial_storage_sizes.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_db_system_initial_storage_sizes call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_initial_storage_sizes. -# -def list_db_system_initial_storage_sizes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new - - # Call the list_db_system_initial_storage_sizes method. - result = client.list_db_system_initial_storage_sizes request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemInitialStorageSize. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_shapes.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_shapes.rb deleted file mode 100644 index 94fbaa722126..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_system_shapes.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_db_system_shapes call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_shapes. -# -def list_db_system_shapes - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new - - # Call the list_db_system_shapes method. - result = client.list_db_system_shapes request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystemShape. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_systems.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_systems.rb deleted file mode 100644 index 76b99b2c3ccf..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_systems.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListDbSystems_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_db_systems call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_systems. -# -def list_db_systems - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new - - # Call the list_db_systems method. - result = client.list_db_systems request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbSystem. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListDbSystems_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_versions.rb deleted file mode 100644 index b7aa7c1bc4a7..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_db_versions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_db_versions call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_versions. -# -def list_db_versions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new - - # Call the list_db_versions method. - result = client.list_db_versions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::DbVersion. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_entitlements.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_entitlements.rb deleted file mode 100644 index 6bcf8f668350..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_entitlements.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_entitlements call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_entitlements. -# -def list_entitlements - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new - - # Call the list_entitlements method. - result = client.list_entitlements request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::Entitlement. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exadb_vm_clusters.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exadb_vm_clusters.rb deleted file mode 100644 index dbc96fc6a114..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exadb_vm_clusters.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_exadb_vm_clusters call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exadb_vm_clusters. -# -def list_exadb_vm_clusters - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new - - # Call the list_exadb_vm_clusters method. - result = client.list_exadb_vm_clusters request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exascale_db_storage_vaults.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exascale_db_storage_vaults.rb deleted file mode 100644 index cb26df64a85c..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_exascale_db_storage_vaults.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_exascale_db_storage_vaults call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exascale_db_storage_vaults. -# -def list_exascale_db_storage_vaults - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new - - # Call the list_exascale_db_storage_vaults method. - result = client.list_exascale_db_storage_vaults request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_gi_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_gi_versions.rb deleted file mode 100644 index 3bbdcbdb9623..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_gi_versions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_gi_versions call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_gi_versions. -# -def list_gi_versions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new - - # Call the list_gi_versions method. - result = client.list_gi_versions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::GiVersion. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_minor_versions.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_minor_versions.rb deleted file mode 100644 index 7dbebb3ca049..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_minor_versions.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_minor_versions call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_minor_versions. -# -def list_minor_versions - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new - - # Call the list_minor_versions method. - result = client.list_minor_versions request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::MinorVersion. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_networks.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_networks.rb deleted file mode 100644 index 53141e897e0a..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_networks.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_odb_networks call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_networks. -# -def list_odb_networks - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new - - # Call the list_odb_networks method. - result = client.list_odb_networks request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbNetwork. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_subnets.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_subnets.rb deleted file mode 100644 index 60c3504d64c0..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_odb_subnets.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_odb_subnets call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_subnets. -# -def list_odb_subnets - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new - - # Call the list_odb_subnets method. - result = client.list_odb_subnets request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::OdbSubnet. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_pluggable_databases.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_pluggable_databases.rb deleted file mode 100644 index 643ab1dff4d1..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/list_pluggable_databases.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the list_pluggable_databases call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_pluggable_databases. -# -def list_pluggable_databases - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new - - # Call the list_pluggable_databases method. - result = client.list_pluggable_databases request - - # The returned object is of type Gapic::PagedEnumerable. You can iterate - # over elements, and API calls will be issued to fetch pages as needed. - result.each do |item| - # Each element is of type ::Google::Cloud::OracleDatabase::V1::PluggableDatabase. - p item - end -end -# [END oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/remove_virtual_machine_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/remove_virtual_machine_exadb_vm_cluster.rb deleted file mode 100644 index 411331f79766..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/remove_virtual_machine_exadb_vm_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the remove_virtual_machine_exadb_vm_cluster call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#remove_virtual_machine_exadb_vm_cluster. -# -def remove_virtual_machine_exadb_vm_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new - - # Call the remove_virtual_machine_exadb_vm_cluster method. - result = client.remove_virtual_machine_exadb_vm_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restart_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restart_autonomous_database.rb deleted file mode 100644 index f8959e49d1f3..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restart_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_RestartAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the restart_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restart_autonomous_database. -# -def restart_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new - - # Call the restart_autonomous_database method. - result = client.restart_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_RestartAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restore_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restore_autonomous_database.rb deleted file mode 100644 index 2432994283ff..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/restore_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the restore_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restore_autonomous_database. -# -def restore_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new - - # Call the restore_autonomous_database method. - result = client.restore_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_autonomous_database.rb deleted file mode 100644 index e5e616c720e6..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/start_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_StartAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the start_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_autonomous_database. -# -def start_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new - - # Call the start_autonomous_database method. - result = client.start_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_StartAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_autonomous_database.rb deleted file mode 100644 index 764494dc51df..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/stop_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_StopAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the stop_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_autonomous_database. -# -def stop_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new - - # Call the stop_autonomous_database method. - result = client.stop_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_StopAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/switchover_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/switchover_autonomous_database.rb deleted file mode 100644 index b3c304fa9d35..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/switchover_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the switchover_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#switchover_autonomous_database. -# -def switchover_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new - - # Call the switchover_autonomous_database method. - result = client.switchover_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_autonomous_database.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_autonomous_database.rb deleted file mode 100644 index dd77eb23607b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_autonomous_database.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the update_autonomous_database call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_autonomous_database. -# -def update_autonomous_database - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new - - # Call the update_autonomous_database method. - result = client.update_autonomous_database request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_exadb_vm_cluster.rb b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_exadb_vm_cluster.rb deleted file mode 100644 index 69dcd3b106a1..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/oracle_database/update_exadb_vm_cluster.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -# [START oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_sync] -require "google/cloud/oracle_database/v1" - -## -# Snippet for the update_exadb_vm_cluster call in the OracleDatabase service -# -# 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://cloud.google.com/ruby/docs/reference. -# -# This is an auto-generated example demonstrating basic usage of -# Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_exadb_vm_cluster. -# -def update_exadb_vm_cluster - # Create a client object. The client can be reused for multiple calls. - client = Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new - - # Create a request. To set request fields, pass in keyword arguments. - request = Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new - - # Call the update_exadb_vm_cluster method. - result = client.update_exadb_vm_cluster request - - # The returned object is of type Gapic::Operation. You can use it to - # check the status of an operation, cancel it, or wait for results. - # Here is how to wait for a response. - result.wait_until_done! timeout: 60 - if result.response? - p result.response - else - puts "No response received." - end -end -# [END oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_sync] diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json b/owl-bot-staging/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json deleted file mode 100644 index dabb0b86c9ce..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/snippets/snippet_metadata_google.cloud.oracledatabase.v1.json +++ /dev/null @@ -1,3255 +0,0 @@ -{ - "client_library": { - "name": "google-cloud-oracle_database-v1", - "version": "", - "language": "RUBY", - "apis": [ - { - "id": "google.cloud.oracledatabase.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync", - "title": "Snippet for the list_cloud_exadata_infrastructures call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_exadata_infrastructures.", - "file": "oracle_database/list_cloud_exadata_infrastructures.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_cloud_exadata_infrastructures", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_exadata_infrastructures", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListCloudExadataInfrastructures", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListCloudExadataInfrastructures", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync", - "title": "Snippet for the get_cloud_exadata_infrastructure call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_exadata_infrastructure.", - "file": "oracle_database/get_cloud_exadata_infrastructure.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_cloud_exadata_infrastructure", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_exadata_infrastructure", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetCloudExadataInfrastructure", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetCloudExadataInfrastructure", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync", - "title": "Snippet for the create_cloud_exadata_infrastructure call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_exadata_infrastructure.", - "file": "oracle_database/create_cloud_exadata_infrastructure.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_cloud_exadata_infrastructure", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_exadata_infrastructure", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateCloudExadataInfrastructure", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateCloudExadataInfrastructure", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync", - "title": "Snippet for the delete_cloud_exadata_infrastructure call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_exadata_infrastructure.", - "file": "oracle_database/delete_cloud_exadata_infrastructure.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_cloud_exadata_infrastructure", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_exadata_infrastructure", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteCloudExadataInfrastructure", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteCloudExadataInfrastructure", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync", - "title": "Snippet for the list_cloud_vm_clusters call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_vm_clusters.", - "file": "oracle_database/list_cloud_vm_clusters.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_cloud_vm_clusters", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_cloud_vm_clusters", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListCloudVmClusters", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListCloudVmClusters", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync", - "title": "Snippet for the get_cloud_vm_cluster call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_vm_cluster.", - "file": "oracle_database/get_cloud_vm_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_cloud_vm_cluster", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_cloud_vm_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::CloudVmCluster", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetCloudVmCluster", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetCloudVmCluster", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync", - "title": "Snippet for the create_cloud_vm_cluster call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_vm_cluster.", - "file": "oracle_database/create_cloud_vm_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_cloud_vm_cluster", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_cloud_vm_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateCloudVmCluster", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateCloudVmCluster", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync", - "title": "Snippet for the delete_cloud_vm_cluster call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_vm_cluster.", - "file": "oracle_database/delete_cloud_vm_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_cloud_vm_cluster", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_cloud_vm_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteCloudVmCluster", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteCloudVmCluster", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync", - "title": "Snippet for the list_entitlements call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_entitlements.", - "file": "oracle_database/list_entitlements.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_entitlements", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_entitlements", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListEntitlements", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListEntitlements", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync", - "title": "Snippet for the list_db_servers call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_servers.", - "file": "oracle_database/list_db_servers.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_db_servers", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_servers", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListDbServersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbServersResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListDbServers", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbServers", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync", - "title": "Snippet for the list_db_nodes call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_nodes.", - "file": "oracle_database/list_db_nodes.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_db_nodes", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_nodes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListDbNodes", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbNodes", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync", - "title": "Snippet for the list_gi_versions call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_gi_versions.", - "file": "oracle_database/list_gi_versions.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_gi_versions", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_gi_versions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListGiVersions", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGiVersions", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_sync", - "title": "Snippet for the list_minor_versions call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_minor_versions.", - "file": "oracle_database/list_minor_versions.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_minor_versions", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_minor_versions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListMinorVersions", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListMinorVersions", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync", - "title": "Snippet for the list_db_system_shapes call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_shapes.", - "file": "oracle_database/list_db_system_shapes.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_db_system_shapes", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_shapes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListDbSystemShapes", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystemShapes", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync", - "title": "Snippet for the list_autonomous_databases call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_databases.", - "file": "oracle_database/list_autonomous_databases.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_autonomous_databases", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_databases", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListAutonomousDatabases", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabases", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync", - "title": "Snippet for the get_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_autonomous_database.", - "file": "oracle_database/get_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::AutonomousDatabase", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync", - "title": "Snippet for the create_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_autonomous_database.", - "file": "oracle_database/create_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_sync", - "title": "Snippet for the update_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_autonomous_database.", - "file": "oracle_database/update_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "UpdateAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.UpdateAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync", - "title": "Snippet for the delete_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_autonomous_database.", - "file": "oracle_database/delete_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync", - "title": "Snippet for the restore_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restore_autonomous_database.", - "file": "oracle_database/restore_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "restore_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restore_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "RestoreAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.RestoreAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync", - "title": "Snippet for the generate_autonomous_database_wallet call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#generate_autonomous_database_wallet.", - "file": "oracle_database/generate_autonomous_database_wallet.rb", - "language": "RUBY", - "client_method": { - "short_name": "generate_autonomous_database_wallet", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#generate_autonomous_database_wallet", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GenerateAutonomousDatabaseWallet", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GenerateAutonomousDatabaseWallet", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync", - "title": "Snippet for the list_autonomous_db_versions call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_db_versions.", - "file": "oracle_database/list_autonomous_db_versions.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_autonomous_db_versions", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_db_versions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListAutonomousDbVersions", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDbVersions", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync", - "title": "Snippet for the list_autonomous_database_character_sets call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_character_sets.", - "file": "oracle_database/list_autonomous_database_character_sets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_autonomous_database_character_sets", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_character_sets", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListAutonomousDatabaseCharacterSets", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabaseCharacterSets", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync", - "title": "Snippet for the list_autonomous_database_backups call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_backups.", - "file": "oracle_database/list_autonomous_database_backups.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_autonomous_database_backups", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_autonomous_database_backups", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListAutonomousDatabaseBackups", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabaseBackups", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_StopAutonomousDatabase_sync", - "title": "Snippet for the stop_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_autonomous_database.", - "file": "oracle_database/stop_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "stop_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "StopAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StopAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_StartAutonomousDatabase_sync", - "title": "Snippet for the start_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_autonomous_database.", - "file": "oracle_database/start_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "start_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "StartAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StartAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_RestartAutonomousDatabase_sync", - "title": "Snippet for the restart_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restart_autonomous_database.", - "file": "oracle_database/restart_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "restart_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#restart_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "RestartAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.RestartAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_sync", - "title": "Snippet for the switchover_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#switchover_autonomous_database.", - "file": "oracle_database/switchover_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "switchover_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#switchover_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "SwitchoverAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.SwitchoverAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_sync", - "title": "Snippet for the failover_autonomous_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#failover_autonomous_database.", - "file": "oracle_database/failover_autonomous_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "failover_autonomous_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#failover_autonomous_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "FailoverAutonomousDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.FailoverAutonomousDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_sync", - "title": "Snippet for the list_odb_networks call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_networks.", - "file": "oracle_database/list_odb_networks.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_odb_networks", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_networks", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListOdbNetworks", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListOdbNetworks", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_sync", - "title": "Snippet for the get_odb_network call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_network.", - "file": "oracle_database/get_odb_network.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_odb_network", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_network", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::OdbNetwork", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetOdbNetwork", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetOdbNetwork", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_sync", - "title": "Snippet for the create_odb_network call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_network.", - "file": "oracle_database/create_odb_network.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_odb_network", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_network", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateOdbNetwork", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateOdbNetwork", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_sync", - "title": "Snippet for the delete_odb_network call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_network.", - "file": "oracle_database/delete_odb_network.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_odb_network", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_network", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteOdbNetwork", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteOdbNetwork", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_sync", - "title": "Snippet for the list_odb_subnets call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_subnets.", - "file": "oracle_database/list_odb_subnets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_odb_subnets", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_odb_subnets", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListOdbSubnets", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListOdbSubnets", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_sync", - "title": "Snippet for the get_odb_subnet call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_subnet.", - "file": "oracle_database/get_odb_subnet.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_odb_subnet", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_odb_subnet", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::OdbSubnet", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetOdbSubnet", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetOdbSubnet", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_sync", - "title": "Snippet for the create_odb_subnet call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_subnet.", - "file": "oracle_database/create_odb_subnet.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_odb_subnet", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_odb_subnet", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateOdbSubnet", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateOdbSubnet", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_sync", - "title": "Snippet for the delete_odb_subnet call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_subnet.", - "file": "oracle_database/delete_odb_subnet.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_odb_subnet", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_odb_subnet", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteOdbSubnet", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteOdbSubnet", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_sync", - "title": "Snippet for the list_exadb_vm_clusters call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exadb_vm_clusters.", - "file": "oracle_database/list_exadb_vm_clusters.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_exadb_vm_clusters", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exadb_vm_clusters", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListExadbVmClusters", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListExadbVmClusters", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_sync", - "title": "Snippet for the get_exadb_vm_cluster call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exadb_vm_cluster.", - "file": "oracle_database/get_exadb_vm_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_exadb_vm_cluster", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exadb_vm_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ExadbVmCluster", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetExadbVmCluster", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetExadbVmCluster", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_sync", - "title": "Snippet for the create_exadb_vm_cluster call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exadb_vm_cluster.", - "file": "oracle_database/create_exadb_vm_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_exadb_vm_cluster", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exadb_vm_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateExadbVmCluster", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateExadbVmCluster", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_sync", - "title": "Snippet for the delete_exadb_vm_cluster call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exadb_vm_cluster.", - "file": "oracle_database/delete_exadb_vm_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_exadb_vm_cluster", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exadb_vm_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteExadbVmCluster", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteExadbVmCluster", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_sync", - "title": "Snippet for the update_exadb_vm_cluster call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_exadb_vm_cluster.", - "file": "oracle_database/update_exadb_vm_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "update_exadb_vm_cluster", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#update_exadb_vm_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "UpdateExadbVmCluster", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.UpdateExadbVmCluster", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_sync", - "title": "Snippet for the remove_virtual_machine_exadb_vm_cluster call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#remove_virtual_machine_exadb_vm_cluster.", - "file": "oracle_database/remove_virtual_machine_exadb_vm_cluster.rb", - "language": "RUBY", - "client_method": { - "short_name": "remove_virtual_machine_exadb_vm_cluster", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#remove_virtual_machine_exadb_vm_cluster", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "RemoveVirtualMachineExadbVmCluster", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.RemoveVirtualMachineExadbVmCluster", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_sync", - "title": "Snippet for the list_exascale_db_storage_vaults call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exascale_db_storage_vaults.", - "file": "oracle_database/list_exascale_db_storage_vaults.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_exascale_db_storage_vaults", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_exascale_db_storage_vaults", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListExascaleDbStorageVaults", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListExascaleDbStorageVaults", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_sync", - "title": "Snippet for the get_exascale_db_storage_vault call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exascale_db_storage_vault.", - "file": "oracle_database/get_exascale_db_storage_vault.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_exascale_db_storage_vault", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_exascale_db_storage_vault", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetExascaleDbStorageVault", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetExascaleDbStorageVault", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_sync", - "title": "Snippet for the create_exascale_db_storage_vault call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exascale_db_storage_vault.", - "file": "oracle_database/create_exascale_db_storage_vault.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_exascale_db_storage_vault", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_exascale_db_storage_vault", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateExascaleDbStorageVault", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateExascaleDbStorageVault", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_sync", - "title": "Snippet for the delete_exascale_db_storage_vault call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exascale_db_storage_vault.", - "file": "oracle_database/delete_exascale_db_storage_vault.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_exascale_db_storage_vault", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_exascale_db_storage_vault", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteExascaleDbStorageVault", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteExascaleDbStorageVault", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_sync", - "title": "Snippet for the list_db_system_initial_storage_sizes call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_initial_storage_sizes.", - "file": "oracle_database/list_db_system_initial_storage_sizes.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_db_system_initial_storage_sizes", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_system_initial_storage_sizes", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListDbSystemInitialStorageSizes", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystemInitialStorageSizes", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDatabases_sync", - "title": "Snippet for the list_databases call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_databases.", - "file": "oracle_database/list_databases.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_databases", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_databases", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListDatabases", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDatabases", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetDatabase_sync", - "title": "Snippet for the get_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_database.", - "file": "oracle_database/get_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::Database", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_sync", - "title": "Snippet for the list_pluggable_databases call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_pluggable_databases.", - "file": "oracle_database/list_pluggable_databases.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_pluggable_databases", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_pluggable_databases", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListPluggableDatabases", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListPluggableDatabases", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_sync", - "title": "Snippet for the get_pluggable_database call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_pluggable_database.", - "file": "oracle_database/get_pluggable_database.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_pluggable_database", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_pluggable_database", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::PluggableDatabase", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetPluggableDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetPluggableDatabase", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystems_sync", - "title": "Snippet for the list_db_systems call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_systems.", - "file": "oracle_database/list_db_systems.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_db_systems", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_systems", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListDbSystems", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystems", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetDbSystem_sync", - "title": "Snippet for the get_db_system call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_db_system.", - "file": "oracle_database/get_db_system.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_db_system", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_db_system", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::DbSystem", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetDbSystem", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetDbSystem", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_sync", - "title": "Snippet for the create_db_system call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_db_system.", - "file": "oracle_database/create_db_system.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_db_system", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_db_system", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateDbSystem", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateDbSystem", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_sync", - "title": "Snippet for the delete_db_system call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_db_system.", - "file": "oracle_database/delete_db_system.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_db_system", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_db_system", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteDbSystem", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteDbSystem", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeployments_sync", - "title": "Snippet for the list_goldengate_deployments call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployments.", - "file": "oracle_database/list_goldengate_deployments.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_goldengate_deployments", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployments", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListGoldengateDeployments", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeployments", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeployment_sync", - "title": "Snippet for the get_goldengate_deployment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment.", - "file": "oracle_database/get_goldengate_deployment.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_goldengate_deployment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeployment", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetGoldengateDeployment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeployment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateDeployment_sync", - "title": "Snippet for the create_goldengate_deployment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_deployment.", - "file": "oracle_database/create_goldengate_deployment.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_goldengate_deployment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_deployment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateGoldengateDeployment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateDeployment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateDeployment_sync", - "title": "Snippet for the delete_goldengate_deployment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_deployment.", - "file": "oracle_database/delete_goldengate_deployment.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_goldengate_deployment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_deployment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteGoldengateDeployment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateDeployment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_StopGoldengateDeployment_sync", - "title": "Snippet for the stop_goldengate_deployment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_goldengate_deployment.", - "file": "oracle_database/stop_goldengate_deployment.rb", - "language": "RUBY", - "client_method": { - "short_name": "stop_goldengate_deployment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#stop_goldengate_deployment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "StopGoldengateDeployment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StopGoldengateDeployment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_StartGoldengateDeployment_sync", - "title": "Snippet for the start_goldengate_deployment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_goldengate_deployment.", - "file": "oracle_database/start_goldengate_deployment.rb", - "language": "RUBY", - "client_method": { - "short_name": "start_goldengate_deployment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#start_goldengate_deployment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "StartGoldengateDeployment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.StartGoldengateDeployment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnections_sync", - "title": "Snippet for the list_goldengate_connections call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connections.", - "file": "oracle_database/list_goldengate_connections.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_goldengate_connections", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connections", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListGoldengateConnections", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnections", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnection_sync", - "title": "Snippet for the get_goldengate_connection call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection.", - "file": "oracle_database/get_goldengate_connection.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_goldengate_connection", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnection", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetGoldengateConnection", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnection", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnection_sync", - "title": "Snippet for the create_goldengate_connection call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection.", - "file": "oracle_database/create_goldengate_connection.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_goldengate_connection", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateGoldengateConnection", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateConnection", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnection_sync", - "title": "Snippet for the delete_goldengate_connection call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection.", - "file": "oracle_database/delete_goldengate_connection.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_goldengate_connection", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteGoldengateConnection", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateConnection", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_sync", - "title": "Snippet for the get_goldengate_deployment_version call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_version.", - "file": "oracle_database/get_goldengate_deployment_version.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_goldengate_deployment_version", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_version", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetGoldengateDeploymentVersion", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentVersion", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentVersions_sync", - "title": "Snippet for the list_goldengate_deployment_versions call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_versions.", - "file": "oracle_database/list_goldengate_deployment_versions.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_goldengate_deployment_versions", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_versions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListGoldengateDeploymentVersions", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentVersions", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_sync", - "title": "Snippet for the get_goldengate_deployment_type call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_type.", - "file": "oracle_database/get_goldengate_deployment_type.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_goldengate_deployment_type", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_type", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetGoldengateDeploymentType", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentType", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentTypes_sync", - "title": "Snippet for the list_goldengate_deployment_types call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_types.", - "file": "oracle_database/list_goldengate_deployment_types.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_goldengate_deployment_types", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_types", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListGoldengateDeploymentTypes", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentTypes", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_sync", - "title": "Snippet for the get_goldengate_deployment_environment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_environment.", - "file": "oracle_database/get_goldengate_deployment_environment.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_goldengate_deployment_environment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_deployment_environment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetGoldengateDeploymentEnvironment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateDeploymentEnvironment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateDeploymentEnvironments_sync", - "title": "Snippet for the list_goldengate_deployment_environments call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_environments.", - "file": "oracle_database/list_goldengate_deployment_environments.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_goldengate_deployment_environments", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_deployment_environments", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListGoldengateDeploymentEnvironments", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateDeploymentEnvironments", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_sync", - "title": "Snippet for the get_goldengate_connection_type call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_type.", - "file": "oracle_database/get_goldengate_connection_type.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_goldengate_connection_type", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_type", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetGoldengateConnectionType", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnectionType", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionTypes_sync", - "title": "Snippet for the list_goldengate_connection_types call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_types.", - "file": "oracle_database/list_goldengate_connection_types.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_goldengate_connection_types", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_types", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListGoldengateConnectionTypes", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnectionTypes", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDbVersions_sync", - "title": "Snippet for the list_db_versions call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_versions.", - "file": "oracle_database/list_db_versions.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_db_versions", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_db_versions", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListDbVersions", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbVersions", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_sync", - "title": "Snippet for the list_database_character_sets call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_database_character_sets.", - "file": "oracle_database/list_database_character_sets.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_database_character_sets", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_database_character_sets", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListDatabaseCharacterSets", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListDatabaseCharacterSets", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_ListGoldengateConnectionAssignments_sync", - "title": "Snippet for the list_goldengate_connection_assignments call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_assignments.", - "file": "oracle_database/list_goldengate_connection_assignments.rb", - "language": "RUBY", - "client_method": { - "short_name": "list_goldengate_connection_assignments", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#list_goldengate_connection_assignments", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "ListGoldengateConnectionAssignments", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.ListGoldengateConnectionAssignments", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 50, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionAssignment_sync", - "title": "Snippet for the get_goldengate_connection_assignment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_assignment.", - "file": "oracle_database/get_goldengate_connection_assignment.rb", - "language": "RUBY", - "client_method": { - "short_name": "get_goldengate_connection_assignment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#get_goldengate_connection_assignment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "GetGoldengateConnectionAssignment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.GetGoldengateConnectionAssignment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_CreateGoldengateConnectionAssignment_sync", - "title": "Snippet for the create_goldengate_connection_assignment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection_assignment.", - "file": "oracle_database/create_goldengate_connection_assignment.rb", - "language": "RUBY", - "client_method": { - "short_name": "create_goldengate_connection_assignment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#create_goldengate_connection_assignment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "CreateGoldengateConnectionAssignment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.CreateGoldengateConnectionAssignment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_DeleteGoldengateConnectionAssignment_sync", - "title": "Snippet for the delete_goldengate_connection_assignment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection_assignment.", - "file": "oracle_database/delete_goldengate_connection_assignment.rb", - "language": "RUBY", - "client_method": { - "short_name": "delete_goldengate_connection_assignment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#delete_goldengate_connection_assignment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest", - "name": "request" - } - ], - "result_type": "::Google::Longrunning::Operation", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "DeleteGoldengateConnectionAssignment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteGoldengateConnectionAssignment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 53, - "type": "FULL" - } - ] - }, - { - "region_tag": "oracledatabase_v1_generated_OracleDatabase_TestGoldengateConnectionAssignment_sync", - "title": "Snippet for the test_goldengate_connection_assignment call in the OracleDatabase service", - "description": "This is an auto-generated example demonstrating basic usage of Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#test_goldengate_connection_assignment.", - "file": "oracle_database/test_goldengate_connection_assignment.rb", - "language": "RUBY", - "client_method": { - "short_name": "test_goldengate_connection_assignment", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client#test_goldengate_connection_assignment", - "async": false, - "parameters": [ - { - "type": "::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest", - "name": "request" - } - ], - "result_type": "::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse", - "client": { - "short_name": "OracleDatabase::Client", - "full_name": "::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client" - }, - "method": { - "short_name": "TestGoldengateConnectionAssignment", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase.TestGoldengateConnectionAssignment", - "service": { - "short_name": "OracleDatabase", - "full_name": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - }, - "canonical": true, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 20, - "end": 46, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_operations_test.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_operations_test.rb deleted file mode 100644 index 114e337ab096..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_operations_test.rb +++ /dev/null @@ -1,400 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/oracledatabase/v1/oracledatabase_pb" -require "google/cloud/oracledatabase/v1/oracledatabase_services_pb" -require "google/cloud/oracle_database/v1/oracle_database" - -class ::Google::Cloud::OracleDatabase::V1::OracleDatabase::OperationsTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_operations - # Create GRPC objects. - grpc_response = ::Google::Longrunning::ListOperationsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - return_partial_success = true - - list_operations_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_operations, name - assert_kind_of ::Google::Longrunning::ListOperationsRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal true, request["return_partial_success"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_operations_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_operations name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_operations ::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_operations({ name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_operations(::Google::Longrunning::ListOperationsRequest.new(name: name, filter: filter, page_size: page_size, page_token: page_token, return_partial_success: return_partial_success), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_operations_client_stub.call_rpc_count - end - end - - def test_get_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_operation, name - assert_kind_of ::Google::Longrunning::GetOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_operation_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_operation({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_operation name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_operation ::Google::Longrunning::GetOperationRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_operation({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_operation(::Google::Longrunning::GetOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_operation_client_stub.call_rpc_count - end - end - - def test_delete_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - delete_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_operation, name - assert_kind_of ::Google::Longrunning::DeleteOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_operation_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_operation ::Google::Longrunning::DeleteOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_operation(::Google::Longrunning::DeleteOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_operation_client_stub.call_rpc_count - end - end - - def test_cancel_operation - # Create GRPC objects. - grpc_response = ::Google::Protobuf::Empty.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - cancel_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :cancel_operation, name - assert_kind_of ::Google::Longrunning::CancelOperationRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, cancel_operation_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.cancel_operation({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.cancel_operation name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.cancel_operation ::Google::Longrunning::CancelOperationRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.cancel_operation({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.cancel_operation(::Google::Longrunning::CancelOperationRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, cancel_operation_client_stub.call_rpc_count - end - end - - def test_wait_operation - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - timeout = {} - - wait_operation_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :wait_operation, name - assert_kind_of ::Google::Longrunning::WaitOperationRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Duration), request["timeout"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, wait_operation_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.wait_operation({ name: name, timeout: timeout }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.wait_operation name: name, timeout: timeout do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.wait_operation ::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.wait_operation({ name: name, timeout: timeout }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.wait_operation(::Google::Longrunning::WaitOperationRequest.new(name: name, timeout: timeout), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, wait_operation_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb deleted file mode 100644 index 442f3af45453..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_paths_test.rb +++ /dev/null @@ -1,307 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/oracle_database/v1/oracle_database" - -class ::Google::Cloud::OracleDatabase::V1::OracleDatabase::ClientPathsTest < Minitest::Test - class DummyStub - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_autonomous_database_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.autonomous_database_path project: "value0", location: "value1", autonomous_database: "value2" - assert_equal "projects/value0/locations/value1/autonomousDatabases/value2", path - end - end - - def test_cloud_exadata_infrastructure_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cloud_exadata_infrastructure_path project: "value0", location: "value1", cloud_exadata_infrastructure: "value2" - assert_equal "projects/value0/locations/value1/cloudExadataInfrastructures/value2", path - end - end - - def test_cloud_vm_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.cloud_vm_cluster_path project: "value0", location: "value1", cloud_vm_cluster: "value2" - assert_equal "projects/value0/locations/value1/cloudVmClusters/value2", path - end - end - - def test_crypto_key_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.crypto_key_path project: "value0", location: "value1", key_ring: "value2", crypto_key: "value3" - assert_equal "projects/value0/locations/value1/keyRings/value2/cryptoKeys/value3", path - end - end - - def test_database_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.database_path project: "value0", location: "value1", database: "value2" - assert_equal "projects/value0/locations/value1/databases/value2", path - end - end - - def test_db_system_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.db_system_path project: "value0", location: "value1", db_system: "value2" - assert_equal "projects/value0/locations/value1/dbSystems/value2", path - end - end - - def test_exadb_vm_cluster_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.exadb_vm_cluster_path project: "value0", location: "value1", exadb_vm_cluster: "value2" - assert_equal "projects/value0/locations/value1/exadbVmClusters/value2", path - end - end - - def test_exascale_db_storage_vault_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.exascale_db_storage_vault_path project: "value0", location: "value1", exascale_db_storage_vault: "value2" - assert_equal "projects/value0/locations/value1/exascaleDbStorageVaults/value2", path - end - end - - def test_gi_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.gi_version_path project: "value0", location: "value1", gi_version: "value2" - assert_equal "projects/value0/locations/value1/giVersions/value2", path - end - end - - def test_goldengate_connection_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.goldengate_connection_path project: "value0", location: "value1", goldengate_connection: "value2" - assert_equal "projects/value0/locations/value1/goldengateConnections/value2", path - end - end - - def test_goldengate_connection_assignment_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.goldengate_connection_assignment_path project: "value0", location: "value1", goldengate_connection_assignment: "value2" - assert_equal "projects/value0/locations/value1/goldengateConnectionAssignments/value2", path - end - end - - def test_goldengate_connection_type_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.goldengate_connection_type_path project: "value0", location: "value1", goldengate_connection_type: "value2" - assert_equal "projects/value0/locations/value1/goldengateConnectionTypes/value2", path - end - end - - def test_goldengate_deployment_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.goldengate_deployment_path project: "value0", location: "value1", goldengate_deployment: "value2" - assert_equal "projects/value0/locations/value1/goldengateDeployments/value2", path - end - end - - def test_goldengate_deployment_environment_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.goldengate_deployment_environment_path project: "value0", location: "value1", goldengate_deployment_environment: "value2" - assert_equal "projects/value0/locations/value1/goldengateDeploymentEnvironments/value2", path - end - end - - def test_goldengate_deployment_type_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.goldengate_deployment_type_path project: "value0", location: "value1", goldengate_deployment_type: "value2" - assert_equal "projects/value0/locations/value1/goldengateDeploymentTypes/value2", path - end - end - - def test_goldengate_deployment_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.goldengate_deployment_version_path project: "value0", location: "value1", goldengate_deployment_version: "value2" - assert_equal "projects/value0/locations/value1/goldengateDeploymentVersions/value2", path - end - end - - def test_location_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.location_path project: "value0", location: "value1" - assert_equal "projects/value0/locations/value1", path - end - end - - def test_network_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.network_path project: "value0", network: "value1" - assert_equal "projects/value0/global/networks/value1", path - end - end - - def test_odb_network_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.odb_network_path project: "value0", location: "value1", odb_network: "value2" - assert_equal "projects/value0/locations/value1/odbNetworks/value2", path - end - end - - def test_odb_subnet_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.odb_subnet_path project: "value0", location: "value1", odb_network: "value2", odb_subnet: "value3" - assert_equal "projects/value0/locations/value1/odbNetworks/value2/odbSubnets/value3", path - end - end - - def test_pluggable_database_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.pluggable_database_path project: "value0", location: "value1", pluggable_database: "value2" - assert_equal "projects/value0/locations/value1/pluggableDatabases/value2", path - end - end - - def test_secret_version_path - grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - ::Gapic::ServiceStub.stub :new, DummyStub.new do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - path = client.secret_version_path project: "value0", secret: "value1", secret_version: "value2" - assert_equal "projects/value0/secrets/value1/versions/value2", path - end - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb deleted file mode 100644 index bc85d4e0a66b..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_rest_test.rb +++ /dev/null @@ -1,4624 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" -require "gapic/rest" -require "google/cloud/oracledatabase/v1/oracledatabase_pb" -require "google/cloud/oracle_database/v1/oracle_database/rest" - - -class ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_count, :requests - - def initialize response, &block - @response = response - @block = block - @call_count = 0 - @requests = [] - end - - def make_get_request uri:, params: {}, options: {}, method_name: nil - make_http_request :get, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_delete_request uri:, params: {}, options: {}, method_name: nil - make_http_request :delete, uri: uri, body: nil, params: params, options: options, method_name: method_name - end - - def make_post_request uri:, body: nil, params: {}, options: {}, method_name: nil - make_http_request :post, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_patch_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :patch, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_put_request uri:, body:, params: {}, options: {}, method_name: nil - make_http_request :put, uri: uri, body: body, params: params, options: options, method_name: method_name - end - - def make_http_request *args, **kwargs - @call_count += 1 - - @requests << @block&.call(*args, **kwargs) - - @response - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_cloud_exadata_infrastructures - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_cloud_exadata_infrastructures_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_cloud_exadata_infrastructures_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_cloud_exadata_infrastructures_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_cloud_exadata_infrastructures({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_cloud_exadata_infrastructures parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_cloud_exadata_infrastructures ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_cloud_exadata_infrastructures({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_cloud_exadata_infrastructures(::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_cloud_exadata_infrastructures_client_stub.call_count - end - end - end - - def test_get_cloud_exadata_infrastructure - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_cloud_exadata_infrastructure_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_cloud_exadata_infrastructure_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_cloud_exadata_infrastructure_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_cloud_exadata_infrastructure({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_cloud_exadata_infrastructure name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_cloud_exadata_infrastructure({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_cloud_exadata_infrastructure_client_stub.call_count - end - end - end - - def test_create_cloud_exadata_infrastructure - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - cloud_exadata_infrastructure_id = "hello world" - cloud_exadata_infrastructure = {} - request_id = "hello world" - - create_cloud_exadata_infrastructure_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_cloud_exadata_infrastructure_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_cloud_exadata_infrastructure_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_cloud_exadata_infrastructure({ parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_cloud_exadata_infrastructure parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new(parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_cloud_exadata_infrastructure({ parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new(parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_cloud_exadata_infrastructure_client_stub.call_count - end - end - end - - def test_delete_cloud_exadata_infrastructure - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - force = true - - delete_cloud_exadata_infrastructure_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_cloud_exadata_infrastructure_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_cloud_exadata_infrastructure_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_cloud_exadata_infrastructure({ name: name, request_id: request_id, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_cloud_exadata_infrastructure name: name, request_id: request_id, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new(name: name, request_id: request_id, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_cloud_exadata_infrastructure({ name: name, request_id: request_id, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new(name: name, request_id: request_id, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_cloud_exadata_infrastructure_client_stub.call_count - end - end - end - - def test_list_cloud_vm_clusters - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_cloud_vm_clusters_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_cloud_vm_clusters_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_cloud_vm_clusters_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_cloud_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_cloud_vm_clusters parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_cloud_vm_clusters ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_cloud_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_cloud_vm_clusters(::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_cloud_vm_clusters_client_stub.call_count - end - end - end - - def test_get_cloud_vm_cluster - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::CloudVmCluster.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_cloud_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_cloud_vm_cluster_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_cloud_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_cloud_vm_cluster({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_cloud_vm_cluster name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_cloud_vm_cluster({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_cloud_vm_cluster_client_stub.call_count - end - end - end - - def test_create_cloud_vm_cluster - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - cloud_vm_cluster_id = "hello world" - cloud_vm_cluster = {} - request_id = "hello world" - - create_cloud_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_cloud_vm_cluster_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_cloud_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_cloud_vm_cluster({ parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_cloud_vm_cluster parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new(parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_cloud_vm_cluster({ parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new(parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_cloud_vm_cluster_client_stub.call_count - end - end - end - - def test_delete_cloud_vm_cluster - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - force = true - - delete_cloud_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_cloud_vm_cluster_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_cloud_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_cloud_vm_cluster({ name: name, request_id: request_id, force: force }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_cloud_vm_cluster name: name, request_id: request_id, force: force do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new(name: name, request_id: request_id, force: force) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_cloud_vm_cluster({ name: name, request_id: request_id, force: force }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new(name: name, request_id: request_id, force: force), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_cloud_vm_cluster_client_stub.call_count - end - end - end - - def test_list_entitlements - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_entitlements_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_entitlements_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_entitlements_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_entitlements({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_entitlements parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_entitlements ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_entitlements({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_entitlements(::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_entitlements_client_stub.call_count - end - end - end - - def test_list_db_servers - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_db_servers_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_servers_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_db_servers_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_db_servers({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_db_servers parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_db_servers ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_db_servers({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_db_servers(::Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_db_servers_client_stub.call_count - end - end - end - - def test_list_db_nodes - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_db_nodes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_nodes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_db_nodes_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_db_nodes({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_db_nodes parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_db_nodes ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_db_nodes({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_db_nodes(::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_db_nodes_client_stub.call_count - end - end - end - - def test_list_gi_versions - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_gi_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_gi_versions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_gi_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_gi_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_gi_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_gi_versions ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_gi_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_gi_versions(::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_gi_versions_client_stub.call_count - end - end - end - - def test_list_minor_versions - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_minor_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_minor_versions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_minor_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_minor_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_minor_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_minor_versions ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_minor_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_minor_versions(::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_minor_versions_client_stub.call_count - end - end - end - - def test_list_db_system_shapes - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_db_system_shapes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_system_shapes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_db_system_shapes_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_db_system_shapes({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_db_system_shapes parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_db_system_shapes ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_db_system_shapes({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_db_system_shapes(::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_db_system_shapes_client_stub.call_count - end - end - end - - def test_list_autonomous_databases - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_autonomous_databases_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_autonomous_databases_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_autonomous_databases_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_autonomous_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_autonomous_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_autonomous_databases ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_autonomous_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_autonomous_databases(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_autonomous_databases_client_stub.call_count - end - end - end - - def test_get_autonomous_database - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_autonomous_database({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_autonomous_database name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_autonomous_database ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_autonomous_database({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_autonomous_database(::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_autonomous_database_client_stub.call_count - end - end - end - - def test_create_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - autonomous_database_id = "hello world" - autonomous_database = {} - request_id = "hello world" - - create_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_autonomous_database({ parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_autonomous_database parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_autonomous_database ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new(parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_autonomous_database({ parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_autonomous_database(::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new(parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_autonomous_database_client_stub.call_count - end - end - end - - def test_update_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - autonomous_database = {} - request_id = "hello world" - - update_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_update_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_autonomous_database({ update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_autonomous_database update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_autonomous_database ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new(update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_autonomous_database({ update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_autonomous_database(::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new(update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_autonomous_database_client_stub.call_count - end - end - end - - def test_delete_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_autonomous_database({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_autonomous_database name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_autonomous_database ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_autonomous_database({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_autonomous_database(::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_autonomous_database_client_stub.call_count - end - end - end - - def test_restore_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - restore_time = {} - - restore_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_restore_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, restore_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.restore_autonomous_database({ name: name, restore_time: restore_time }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.restore_autonomous_database name: name, restore_time: restore_time do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.restore_autonomous_database ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new(name: name, restore_time: restore_time) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.restore_autonomous_database({ name: name, restore_time: restore_time }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.restore_autonomous_database(::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new(name: name, restore_time: restore_time), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, restore_autonomous_database_client_stub.call_count - end - end - end - - def test_generate_autonomous_database_wallet - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - type = :GENERATE_TYPE_UNSPECIFIED - is_regional = true - password = "hello world" - - generate_autonomous_database_wallet_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_generate_autonomous_database_wallet_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, generate_autonomous_database_wallet_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.generate_autonomous_database_wallet({ name: name, type: type, is_regional: is_regional, password: password }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.generate_autonomous_database_wallet name: name, type: type, is_regional: is_regional, password: password do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.generate_autonomous_database_wallet ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new(name: name, type: type, is_regional: is_regional, password: password) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.generate_autonomous_database_wallet({ name: name, type: type, is_regional: is_regional, password: password }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.generate_autonomous_database_wallet(::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new(name: name, type: type, is_regional: is_regional, password: password), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, generate_autonomous_database_wallet_client_stub.call_count - end - end - end - - def test_list_autonomous_db_versions - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_autonomous_db_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_autonomous_db_versions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_autonomous_db_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_autonomous_db_versions({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_autonomous_db_versions parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_autonomous_db_versions ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_autonomous_db_versions({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_autonomous_db_versions(::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_autonomous_db_versions_client_stub.call_count - end - end - end - - def test_list_autonomous_database_character_sets - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_autonomous_database_character_sets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_autonomous_database_character_sets_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_autonomous_database_character_sets_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_autonomous_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_autonomous_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_autonomous_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_autonomous_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_autonomous_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_autonomous_database_character_sets_client_stub.call_count - end - end - end - - def test_list_autonomous_database_backups - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - - list_autonomous_database_backups_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_autonomous_database_backups_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_autonomous_database_backups_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_autonomous_database_backups({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_autonomous_database_backups parent: parent, filter: filter, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_autonomous_database_backups ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_autonomous_database_backups({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_autonomous_database_backups(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_autonomous_database_backups_client_stub.call_count - end - end - end - - def test_stop_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - stop_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_stop_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, stop_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.stop_autonomous_database({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.stop_autonomous_database name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.stop_autonomous_database ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.stop_autonomous_database({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.stop_autonomous_database(::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, stop_autonomous_database_client_stub.call_count - end - end - end - - def test_start_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - start_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_start_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, start_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.start_autonomous_database({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.start_autonomous_database name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.start_autonomous_database ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.start_autonomous_database({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.start_autonomous_database(::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, start_autonomous_database_client_stub.call_count - end - end - end - - def test_restart_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - restart_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_restart_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, restart_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.restart_autonomous_database({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.restart_autonomous_database name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.restart_autonomous_database ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.restart_autonomous_database({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.restart_autonomous_database(::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, restart_autonomous_database_client_stub.call_count - end - end - end - - def test_switchover_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - peer_autonomous_database = "hello world" - - switchover_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_switchover_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, switchover_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.switchover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.switchover_autonomous_database name: name, peer_autonomous_database: peer_autonomous_database do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.switchover_autonomous_database ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.switchover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.switchover_autonomous_database(::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, switchover_autonomous_database_client_stub.call_count - end - end - end - - def test_failover_autonomous_database - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - peer_autonomous_database = "hello world" - - failover_autonomous_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_failover_autonomous_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, failover_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.failover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.failover_autonomous_database name: name, peer_autonomous_database: peer_autonomous_database do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.failover_autonomous_database ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.failover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.failover_autonomous_database(::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, failover_autonomous_database_client_stub.call_count - end - end - end - - def test_list_odb_networks - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_odb_networks_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_odb_networks_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_odb_networks_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_odb_networks({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_odb_networks parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_odb_networks ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_odb_networks({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_odb_networks(::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_odb_networks_client_stub.call_count - end - end - end - - def test_get_odb_network - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::OdbNetwork.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_odb_network_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_odb_network_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_odb_network_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_odb_network({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_odb_network name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_odb_network ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_odb_network({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_odb_network(::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_odb_network_client_stub.call_count - end - end - end - - def test_create_odb_network - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - odb_network_id = "hello world" - odb_network = {} - request_id = "hello world" - - create_odb_network_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_odb_network_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_odb_network_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_odb_network({ parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_odb_network parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_odb_network ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new(parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_odb_network({ parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_odb_network(::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new(parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_odb_network_client_stub.call_count - end - end - end - - def test_delete_odb_network - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_odb_network_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_odb_network_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_odb_network_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_odb_network({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_odb_network name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_odb_network ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_odb_network({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_odb_network(::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_odb_network_client_stub.call_count - end - end - end - - def test_list_odb_subnets - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_odb_subnets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_odb_subnets_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_odb_subnets_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_odb_subnets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_odb_subnets parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_odb_subnets ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_odb_subnets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_odb_subnets(::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_odb_subnets_client_stub.call_count - end - end - end - - def test_get_odb_subnet - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::OdbSubnet.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_odb_subnet_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_odb_subnet_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_odb_subnet_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_odb_subnet({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_odb_subnet name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_odb_subnet ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_odb_subnet({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_odb_subnet(::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_odb_subnet_client_stub.call_count - end - end - end - - def test_create_odb_subnet - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - odb_subnet_id = "hello world" - odb_subnet = {} - request_id = "hello world" - - create_odb_subnet_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_odb_subnet_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_odb_subnet_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_odb_subnet({ parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_odb_subnet parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_odb_subnet ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new(parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_odb_subnet({ parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_odb_subnet(::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new(parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_odb_subnet_client_stub.call_count - end - end - end - - def test_delete_odb_subnet - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_odb_subnet_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_odb_subnet_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_odb_subnet_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_odb_subnet({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_odb_subnet name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_odb_subnet ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_odb_subnet({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_odb_subnet(::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_odb_subnet_client_stub.call_count - end - end - end - - def test_list_exadb_vm_clusters - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_exadb_vm_clusters_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_exadb_vm_clusters_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_exadb_vm_clusters_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_exadb_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_exadb_vm_clusters parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_exadb_vm_clusters ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_exadb_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_exadb_vm_clusters(::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_exadb_vm_clusters_client_stub.call_count - end - end - end - - def test_get_exadb_vm_cluster - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_exadb_vm_cluster_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_exadb_vm_cluster({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_exadb_vm_cluster name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_exadb_vm_cluster({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_exadb_vm_cluster_client_stub.call_count - end - end - end - - def test_create_exadb_vm_cluster - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - exadb_vm_cluster_id = "hello world" - exadb_vm_cluster = {} - request_id = "hello world" - - create_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_exadb_vm_cluster_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_exadb_vm_cluster({ parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_exadb_vm_cluster parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new(parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_exadb_vm_cluster({ parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new(parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_exadb_vm_cluster_client_stub.call_count - end - end - end - - def test_delete_exadb_vm_cluster - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_exadb_vm_cluster_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_exadb_vm_cluster({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_exadb_vm_cluster name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_exadb_vm_cluster({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_exadb_vm_cluster_client_stub.call_count - end - end - end - - def test_update_exadb_vm_cluster - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - update_mask = {} - exadb_vm_cluster = {} - request_id = "hello world" - - update_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_update_exadb_vm_cluster_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, update_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.update_exadb_vm_cluster({ update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.update_exadb_vm_cluster update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.update_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new(update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.update_exadb_vm_cluster({ update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.update_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new(update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, update_exadb_vm_cluster_client_stub.call_count - end - end - end - - def test_remove_virtual_machine_exadb_vm_cluster - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - hostnames = ["hello world"] - - remove_virtual_machine_exadb_vm_cluster_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_remove_virtual_machine_exadb_vm_cluster_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, remove_virtual_machine_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.remove_virtual_machine_exadb_vm_cluster({ name: name, request_id: request_id, hostnames: hostnames }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.remove_virtual_machine_exadb_vm_cluster name: name, request_id: request_id, hostnames: hostnames do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.remove_virtual_machine_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new(name: name, request_id: request_id, hostnames: hostnames) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.remove_virtual_machine_exadb_vm_cluster({ name: name, request_id: request_id, hostnames: hostnames }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.remove_virtual_machine_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new(name: name, request_id: request_id, hostnames: hostnames), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, remove_virtual_machine_exadb_vm_cluster_client_stub.call_count - end - end - end - - def test_list_exascale_db_storage_vaults - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_exascale_db_storage_vaults_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_exascale_db_storage_vaults_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_exascale_db_storage_vaults_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_exascale_db_storage_vaults({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_exascale_db_storage_vaults parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_exascale_db_storage_vaults ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_exascale_db_storage_vaults({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_exascale_db_storage_vaults(::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_exascale_db_storage_vaults_client_stub.call_count - end - end - end - - def test_get_exascale_db_storage_vault - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_exascale_db_storage_vault_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_exascale_db_storage_vault_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_exascale_db_storage_vault_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_exascale_db_storage_vault({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_exascale_db_storage_vault name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_exascale_db_storage_vault({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_exascale_db_storage_vault_client_stub.call_count - end - end - end - - def test_create_exascale_db_storage_vault - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - exascale_db_storage_vault_id = "hello world" - exascale_db_storage_vault = {} - request_id = "hello world" - - create_exascale_db_storage_vault_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_exascale_db_storage_vault_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_exascale_db_storage_vault_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_exascale_db_storage_vault({ parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_exascale_db_storage_vault parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new(parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_exascale_db_storage_vault({ parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new(parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_exascale_db_storage_vault_client_stub.call_count - end - end - end - - def test_delete_exascale_db_storage_vault - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_exascale_db_storage_vault_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_exascale_db_storage_vault_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_exascale_db_storage_vault_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_exascale_db_storage_vault({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_exascale_db_storage_vault name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_exascale_db_storage_vault({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_exascale_db_storage_vault_client_stub.call_count - end - end - end - - def test_list_db_system_initial_storage_sizes - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_db_system_initial_storage_sizes_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_system_initial_storage_sizes_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_db_system_initial_storage_sizes_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_db_system_initial_storage_sizes({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_db_system_initial_storage_sizes parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_db_system_initial_storage_sizes ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_db_system_initial_storage_sizes({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_db_system_initial_storage_sizes(::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_db_system_initial_storage_sizes_client_stub.call_count - end - end - end - - def test_list_databases - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_databases_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_databases_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_databases_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_databases ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_databases(::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_databases_client_stub.call_count - end - end - end - - def test_get_database - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::Database.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_database({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_database name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_database ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_database({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_database(::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_database_client_stub.call_count - end - end - end - - def test_list_pluggable_databases - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_pluggable_databases_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_pluggable_databases_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_pluggable_databases_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_pluggable_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_pluggable_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_pluggable_databases ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_pluggable_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_pluggable_databases(::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_pluggable_databases_client_stub.call_count - end - end - end - - def test_get_pluggable_database - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::PluggableDatabase.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_pluggable_database_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_pluggable_database_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_pluggable_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_pluggable_database({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_pluggable_database name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_pluggable_database ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_pluggable_database({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_pluggable_database(::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_pluggable_database_client_stub.call_count - end - end - end - - def test_list_db_systems - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_db_systems_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_systems_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_db_systems_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_db_systems({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_db_systems parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_db_systems ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_db_systems({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_db_systems(::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_db_systems_client_stub.call_count - end - end - end - - def test_get_db_system - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::DbSystem.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_db_system_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_db_system_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_db_system_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_db_system({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_db_system name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_db_system ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_db_system({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_db_system(::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_db_system_client_stub.call_count - end - end - end - - def test_create_db_system - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - db_system_id = "hello world" - db_system = {} - request_id = "hello world" - - create_db_system_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_db_system_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_db_system_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_db_system({ parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_db_system parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_db_system ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new(parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_db_system({ parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_db_system(::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new(parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_db_system_client_stub.call_count - end - end - end - - def test_delete_db_system - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_db_system_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_db_system_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_db_system_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_db_system({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_db_system name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_db_system ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_db_system({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_db_system(::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_db_system_client_stub.call_count - end - end - end - - def test_list_goldengate_deployments - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_goldengate_deployments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployments_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_goldengate_deployments_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_goldengate_deployments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_goldengate_deployments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_goldengate_deployments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_goldengate_deployments_client_stub.call_count - end - end - end - - def test_get_goldengate_deployment - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_goldengate_deployment({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_goldengate_deployment name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_goldengate_deployment({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_goldengate_deployment_client_stub.call_count - end - end - end - - def test_create_goldengate_deployment - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - goldengate_deployment_id = "hello world" - goldengate_deployment = {} - request_id = "hello world" - - create_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_deployment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_goldengate_deployment parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_goldengate_deployment_client_stub.call_count - end - end - end - - def test_delete_goldengate_deployment - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_deployment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_goldengate_deployment({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_goldengate_deployment name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_goldengate_deployment({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_goldengate_deployment_client_stub.call_count - end - end - end - - def test_stop_goldengate_deployment - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - stop_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_stop_goldengate_deployment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, stop_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.stop_goldengate_deployment({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.stop_goldengate_deployment name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.stop_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.stop_goldengate_deployment({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.stop_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, stop_goldengate_deployment_client_stub.call_count - end - end - end - - def test_start_goldengate_deployment - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - start_goldengate_deployment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_start_goldengate_deployment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, start_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.start_goldengate_deployment({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.start_goldengate_deployment name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.start_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.start_goldengate_deployment({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.start_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, start_goldengate_deployment_client_stub.call_count - end - end - end - - def test_list_goldengate_connections - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_goldengate_connections_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connections_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_goldengate_connections_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_goldengate_connections parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_goldengate_connections ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_goldengate_connections(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_goldengate_connections_client_stub.call_count - end - end - end - - def test_get_goldengate_connection - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_goldengate_connection({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_goldengate_connection name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_goldengate_connection ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_goldengate_connection({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_goldengate_connection(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_goldengate_connection_client_stub.call_count - end - end - end - - def test_create_goldengate_connection - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - goldengate_connection_id = "hello world" - goldengate_connection = {} - request_id = "hello world" - - create_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_connection_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_goldengate_connection_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_goldengate_connection parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_goldengate_connection ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_goldengate_connection(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_goldengate_connection_client_stub.call_count - end - end - end - - def test_delete_goldengate_connection - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_goldengate_connection_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_connection_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_goldengate_connection_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_goldengate_connection({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_goldengate_connection name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_goldengate_connection ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_goldengate_connection({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_goldengate_connection(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_goldengate_connection_client_stub.call_count - end - end - end - - def test_get_goldengate_deployment_version - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_deployment_version_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_version_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_version_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_goldengate_deployment_version({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_goldengate_deployment_version name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_goldengate_deployment_version ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_goldengate_deployment_version({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_goldengate_deployment_version(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_goldengate_deployment_version_client_stub.call_count - end - end - end - - def test_list_goldengate_deployment_versions - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_goldengate_deployment_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_versions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_goldengate_deployment_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_goldengate_deployment_versions ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_goldengate_deployment_versions(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_goldengate_deployment_versions_client_stub.call_count - end - end - end - - def test_get_goldengate_deployment_type - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_deployment_type_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_type_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_type_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_goldengate_deployment_type({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_goldengate_deployment_type name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_goldengate_deployment_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_goldengate_deployment_type({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_goldengate_deployment_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_goldengate_deployment_type_client_stub.call_count - end - end - end - - def test_list_goldengate_deployment_types - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_goldengate_deployment_types_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_types_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_types_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_goldengate_deployment_types parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_goldengate_deployment_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_goldengate_deployment_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_goldengate_deployment_types_client_stub.call_count - end - end - end - - def test_get_goldengate_deployment_environment - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_deployment_environment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_deployment_environment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_goldengate_deployment_environment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_goldengate_deployment_environment({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_goldengate_deployment_environment name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_goldengate_deployment_environment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_goldengate_deployment_environment({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_goldengate_deployment_environment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_goldengate_deployment_environment_client_stub.call_count - end - end - end - - def test_list_goldengate_deployment_environments - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_goldengate_deployment_environments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_deployment_environments_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_goldengate_deployment_environments_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_goldengate_deployment_environments parent: parent, page_size: page_size, page_token: page_token do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_goldengate_deployment_environments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_goldengate_deployment_environments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_goldengate_deployment_environments_client_stub.call_count - end - end - end - - def test_get_goldengate_connection_type - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_connection_type_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_type_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_type_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_goldengate_connection_type({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_goldengate_connection_type name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_goldengate_connection_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_goldengate_connection_type({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_goldengate_connection_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_goldengate_connection_type_client_stub.call_count - end - end - end - - def test_list_goldengate_connection_types - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_goldengate_connection_types_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connection_types_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_goldengate_connection_types_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_goldengate_connection_types parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_goldengate_connection_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_goldengate_connection_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_goldengate_connection_types_client_stub.call_count - end - end - end - - def test_list_db_versions - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_db_versions_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_db_versions_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_db_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_db_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_db_versions ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_db_versions(::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_db_versions_client_stub.call_count - end - end - end - - def test_list_database_character_sets - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_database_character_sets_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_database_character_sets_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_database_character_sets_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_database_character_sets_client_stub.call_count - end - end - end - - def test_list_goldengate_connection_assignments - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_goldengate_connection_assignments_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_list_goldengate_connection_assignments_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, list_goldengate_connection_assignments_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.list_goldengate_connection_assignments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.list_goldengate_connection_assignments ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.list_goldengate_connection_assignments(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, list_goldengate_connection_assignments_client_stub.call_count - end - end - end - - def test_get_goldengate_connection_assignment - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_get_goldengate_connection_assignment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, get_goldengate_connection_assignment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.get_goldengate_connection_assignment({ name: name }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.get_goldengate_connection_assignment name: name do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.get_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.get_goldengate_connection_assignment({ name: name }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.get_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, get_goldengate_connection_assignment_client_stub.call_count - end - end - end - - def test_create_goldengate_connection_assignment - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - goldengate_connection_assignment_id = "hello world" - goldengate_connection_assignment = {} - request_id = "hello world" - - create_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_create_goldengate_connection_assignment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, create_goldengate_connection_assignment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.create_goldengate_connection_assignment parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.create_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.create_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, create_goldengate_connection_assignment_client_stub.call_count - end - end - end - - def test_delete_goldengate_connection_assignment - # Create test objects. - client_result = ::Google::Longrunning::Operation.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_delete_goldengate_connection_assignment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, delete_goldengate_connection_assignment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.delete_goldengate_connection_assignment name: name, request_id: request_id do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.delete_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.delete_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, delete_goldengate_connection_assignment_client_stub.call_count - end - end - end - - def test_test_goldengate_connection_assignment - # Create test objects. - client_result = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.new - http_response = OpenStruct.new body: client_result.to_json - - call_options = {} - - # Create request parameters for a unary method. - name = "hello world" - type = :TEST_TYPE_UNSPECIFIED - - test_goldengate_connection_assignment_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| - assert options.metadata.key? :"x-goog-api-client" - assert options.metadata[:"x-goog-api-client"].include? "rest" - refute options.metadata[:"x-goog-api-client"].include? "grpc" - end - - ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::ServiceStub.stub :transcode_test_goldengate_connection_assignment_request, ["", "", {}] do - Gapic::Rest::ClientStub.stub :new, test_goldengate_connection_assignment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = :dummy_value - end - - # Use hash object - client.test_goldengate_connection_assignment({ name: name, type: type }) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use named arguments - client.test_goldengate_connection_assignment name: name, type: type do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object - client.test_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use hash object with options - client.test_goldengate_connection_assignment({ name: name, type: type }, call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Use protobuf object with options - client.test_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type), call_options) do |_result, response| - assert_equal http_response, response.underlying_op - end - - # Verify method calls - assert_equal 5, test_goldengate_connection_assignment_client_stub.call_count - end - end - end - - def test_configure - credentials_token = :dummy_value - - client = block_config = config = nil - dummy_stub = ClientStub.new nil - Gapic::Rest::ClientStub.stub :new, dummy_stub do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client.new do |config| - config.credentials = credentials_token - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Rest::Client::Configuration, config - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb deleted file mode 100644 index 3be9218afd68..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/test/google/cloud/oracle_database/v1/oracle_database_test.rb +++ /dev/null @@ -1,5428 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "helper" - -require "gapic/grpc/service_stub" - -require "google/cloud/oracledatabase/v1/oracledatabase_pb" -require "google/cloud/oracle_database/v1/oracle_database" - -class ::Google::Cloud::OracleDatabase::V1::OracleDatabase::ClientTest < Minitest::Test - class ClientStub - attr_accessor :call_rpc_count, :requests - - def initialize response, operation, &block - @response = response - @operation = operation - @block = block - @call_rpc_count = 0 - @requests = [] - end - - def call_rpc *args, **kwargs - @call_rpc_count += 1 - - @requests << @block&.call(*args, **kwargs) - - catch :response do - yield @response, @operation if block_given? - @response - end - end - - def endpoint - "endpoint.example.com" - end - - def universe_domain - "example.com" - end - - def stub_logger - nil - end - - def logger - nil - end - end - - def test_list_cloud_exadata_infrastructures - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_cloud_exadata_infrastructures_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_cloud_exadata_infrastructures, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_cloud_exadata_infrastructures_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_cloud_exadata_infrastructures({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_cloud_exadata_infrastructures parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_cloud_exadata_infrastructures ::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_cloud_exadata_infrastructures({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_cloud_exadata_infrastructures(::Google::Cloud::OracleDatabase::V1::ListCloudExadataInfrastructuresRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_cloud_exadata_infrastructures_client_stub.call_rpc_count - end - end - - def test_get_cloud_exadata_infrastructure - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_cloud_exadata_infrastructure_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_cloud_exadata_infrastructure, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_cloud_exadata_infrastructure_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_cloud_exadata_infrastructure({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_cloud_exadata_infrastructure name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_cloud_exadata_infrastructure({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::GetCloudExadataInfrastructureRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_cloud_exadata_infrastructure_client_stub.call_rpc_count - end - end - - def test_create_cloud_exadata_infrastructure - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - cloud_exadata_infrastructure_id = "hello world" - cloud_exadata_infrastructure = {} - request_id = "hello world" - - create_cloud_exadata_infrastructure_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_cloud_exadata_infrastructure, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["cloud_exadata_infrastructure_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::CloudExadataInfrastructure), request["cloud_exadata_infrastructure"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_cloud_exadata_infrastructure_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_cloud_exadata_infrastructure({ parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_cloud_exadata_infrastructure parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new(parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_cloud_exadata_infrastructure({ parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::CreateCloudExadataInfrastructureRequest.new(parent: parent, cloud_exadata_infrastructure_id: cloud_exadata_infrastructure_id, cloud_exadata_infrastructure: cloud_exadata_infrastructure, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_cloud_exadata_infrastructure_client_stub.call_rpc_count - end - end - - def test_delete_cloud_exadata_infrastructure - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - force = true - - delete_cloud_exadata_infrastructure_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_cloud_exadata_infrastructure, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_cloud_exadata_infrastructure_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_cloud_exadata_infrastructure({ name: name, request_id: request_id, force: force }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_cloud_exadata_infrastructure name: name, request_id: request_id, force: force do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_cloud_exadata_infrastructure ::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new(name: name, request_id: request_id, force: force) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_cloud_exadata_infrastructure({ name: name, request_id: request_id, force: force }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_cloud_exadata_infrastructure(::Google::Cloud::OracleDatabase::V1::DeleteCloudExadataInfrastructureRequest.new(name: name, request_id: request_id, force: force), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_cloud_exadata_infrastructure_client_stub.call_rpc_count - end - end - - def test_list_cloud_vm_clusters - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_cloud_vm_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_cloud_vm_clusters, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_cloud_vm_clusters_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_cloud_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_cloud_vm_clusters parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_cloud_vm_clusters ::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_cloud_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_cloud_vm_clusters(::Google::Cloud::OracleDatabase::V1::ListCloudVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_cloud_vm_clusters_client_stub.call_rpc_count - end - end - - def test_get_cloud_vm_cluster - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::CloudVmCluster.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_cloud_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_cloud_vm_cluster, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_cloud_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_cloud_vm_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_cloud_vm_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_cloud_vm_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::GetCloudVmClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_cloud_vm_cluster_client_stub.call_rpc_count - end - end - - def test_create_cloud_vm_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - cloud_vm_cluster_id = "hello world" - cloud_vm_cluster = {} - request_id = "hello world" - - create_cloud_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_cloud_vm_cluster, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["cloud_vm_cluster_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::CloudVmCluster), request["cloud_vm_cluster"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_cloud_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_cloud_vm_cluster({ parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_cloud_vm_cluster parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new(parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_cloud_vm_cluster({ parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::CreateCloudVmClusterRequest.new(parent: parent, cloud_vm_cluster_id: cloud_vm_cluster_id, cloud_vm_cluster: cloud_vm_cluster, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_cloud_vm_cluster_client_stub.call_rpc_count - end - end - - def test_delete_cloud_vm_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - force = true - - delete_cloud_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_cloud_vm_cluster, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - assert_equal true, request["force"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_cloud_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_cloud_vm_cluster({ name: name, request_id: request_id, force: force }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_cloud_vm_cluster name: name, request_id: request_id, force: force do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_cloud_vm_cluster ::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new(name: name, request_id: request_id, force: force) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_cloud_vm_cluster({ name: name, request_id: request_id, force: force }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_cloud_vm_cluster(::Google::Cloud::OracleDatabase::V1::DeleteCloudVmClusterRequest.new(name: name, request_id: request_id, force: force), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_cloud_vm_cluster_client_stub.call_rpc_count - end - end - - def test_list_entitlements - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListEntitlementsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_entitlements_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_entitlements, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_entitlements_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_entitlements({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_entitlements parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_entitlements ::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_entitlements({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_entitlements(::Google::Cloud::OracleDatabase::V1::ListEntitlementsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_entitlements_client_stub.call_rpc_count - end - end - - def test_list_db_servers - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbServersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_db_servers_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_db_servers, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_db_servers_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_db_servers({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_db_servers parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_db_servers ::Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_db_servers({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_db_servers(::Google::Cloud::OracleDatabase::V1::ListDbServersRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_db_servers_client_stub.call_rpc_count - end - end - - def test_list_db_nodes - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbNodesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_db_nodes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_db_nodes, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_db_nodes_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_db_nodes({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_db_nodes parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_db_nodes ::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_db_nodes({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_db_nodes(::Google::Cloud::OracleDatabase::V1::ListDbNodesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_db_nodes_client_stub.call_rpc_count - end - end - - def test_list_gi_versions - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGiVersionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_gi_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_gi_versions, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_gi_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_gi_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_gi_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_gi_versions ::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_gi_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_gi_versions(::Google::Cloud::OracleDatabase::V1::ListGiVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_gi_versions_client_stub.call_rpc_count - end - end - - def test_list_minor_versions - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_minor_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_minor_versions, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_minor_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_minor_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_minor_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_minor_versions ::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_minor_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_minor_versions(::Google::Cloud::OracleDatabase::V1::ListMinorVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_minor_versions_client_stub.call_rpc_count - end - end - - def test_list_db_system_shapes - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_db_system_shapes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_db_system_shapes, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_db_system_shapes_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_db_system_shapes({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_db_system_shapes parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_db_system_shapes ::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_db_system_shapes({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_db_system_shapes(::Google::Cloud::OracleDatabase::V1::ListDbSystemShapesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_db_system_shapes_client_stub.call_rpc_count - end - end - - def test_list_autonomous_databases - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_autonomous_databases_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_autonomous_databases, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_autonomous_databases_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_autonomous_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_autonomous_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_autonomous_databases ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_autonomous_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_autonomous_databases(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_autonomous_databases_client_stub.call_rpc_count - end - end - - def test_get_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_autonomous_database({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_autonomous_database name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_autonomous_database ::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_autonomous_database({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_autonomous_database(::Google::Cloud::OracleDatabase::V1::GetAutonomousDatabaseRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_autonomous_database_client_stub.call_rpc_count - end - end - - def test_create_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - autonomous_database_id = "hello world" - autonomous_database = {} - request_id = "hello world" - - create_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["autonomous_database_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase), request["autonomous_database"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_autonomous_database({ parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_autonomous_database parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_autonomous_database ::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new(parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_autonomous_database({ parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_autonomous_database(::Google::Cloud::OracleDatabase::V1::CreateAutonomousDatabaseRequest.new(parent: parent, autonomous_database_id: autonomous_database_id, autonomous_database: autonomous_database, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_autonomous_database_client_stub.call_rpc_count - end - end - - def test_update_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - autonomous_database = {} - request_id = "hello world" - - update_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::AutonomousDatabase), request["autonomous_database"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_autonomous_database({ update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_autonomous_database update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_autonomous_database ::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new(update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_autonomous_database({ update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_autonomous_database(::Google::Cloud::OracleDatabase::V1::UpdateAutonomousDatabaseRequest.new(update_mask: update_mask, autonomous_database: autonomous_database, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_autonomous_database_client_stub.call_rpc_count - end - end - - def test_delete_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_autonomous_database({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_autonomous_database name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_autonomous_database ::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_autonomous_database({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_autonomous_database(::Google::Cloud::OracleDatabase::V1::DeleteAutonomousDatabaseRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_autonomous_database_client_stub.call_rpc_count - end - end - - def test_restore_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - restore_time = {} - - restore_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :restore_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest, request - assert_equal "hello world", request["name"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["restore_time"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, restore_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.restore_autonomous_database({ name: name, restore_time: restore_time }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.restore_autonomous_database name: name, restore_time: restore_time do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.restore_autonomous_database ::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new(name: name, restore_time: restore_time) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.restore_autonomous_database({ name: name, restore_time: restore_time }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.restore_autonomous_database(::Google::Cloud::OracleDatabase::V1::RestoreAutonomousDatabaseRequest.new(name: name, restore_time: restore_time), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, restore_autonomous_database_client_stub.call_rpc_count - end - end - - def test_generate_autonomous_database_wallet - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - type = :GENERATE_TYPE_UNSPECIFIED - is_regional = true - password = "hello world" - - generate_autonomous_database_wallet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :generate_autonomous_database_wallet, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest, request - assert_equal "hello world", request["name"] - assert_equal :GENERATE_TYPE_UNSPECIFIED, request["type"] - assert_equal true, request["is_regional"] - assert_equal "hello world", request["password"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, generate_autonomous_database_wallet_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.generate_autonomous_database_wallet({ name: name, type: type, is_regional: is_regional, password: password }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.generate_autonomous_database_wallet name: name, type: type, is_regional: is_regional, password: password do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.generate_autonomous_database_wallet ::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new(name: name, type: type, is_regional: is_regional, password: password) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.generate_autonomous_database_wallet({ name: name, type: type, is_regional: is_regional, password: password }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.generate_autonomous_database_wallet(::Google::Cloud::OracleDatabase::V1::GenerateAutonomousDatabaseWalletRequest.new(name: name, type: type, is_regional: is_regional, password: password), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, generate_autonomous_database_wallet_client_stub.call_rpc_count - end - end - - def test_list_autonomous_db_versions - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_autonomous_db_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_autonomous_db_versions, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_autonomous_db_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_autonomous_db_versions({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_autonomous_db_versions parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_autonomous_db_versions ::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_autonomous_db_versions({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_autonomous_db_versions(::Google::Cloud::OracleDatabase::V1::ListAutonomousDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_autonomous_db_versions_client_stub.call_rpc_count - end - end - - def test_list_autonomous_database_character_sets - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_autonomous_database_character_sets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_autonomous_database_character_sets, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_autonomous_database_character_sets_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_autonomous_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_autonomous_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_autonomous_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_autonomous_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_autonomous_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_autonomous_database_character_sets_client_stub.call_rpc_count - end - end - - def test_list_autonomous_database_backups - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - filter = "hello world" - page_size = 42 - page_token = "hello world" - - list_autonomous_database_backups_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_autonomous_database_backups, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["filter"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_autonomous_database_backups_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_autonomous_database_backups({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_autonomous_database_backups parent: parent, filter: filter, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_autonomous_database_backups ::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_autonomous_database_backups({ parent: parent, filter: filter, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_autonomous_database_backups(::Google::Cloud::OracleDatabase::V1::ListAutonomousDatabaseBackupsRequest.new(parent: parent, filter: filter, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_autonomous_database_backups_client_stub.call_rpc_count - end - end - - def test_stop_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - stop_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :stop_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, stop_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.stop_autonomous_database({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.stop_autonomous_database name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.stop_autonomous_database ::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.stop_autonomous_database({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.stop_autonomous_database(::Google::Cloud::OracleDatabase::V1::StopAutonomousDatabaseRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, stop_autonomous_database_client_stub.call_rpc_count - end - end - - def test_start_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - start_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :start_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, start_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.start_autonomous_database({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.start_autonomous_database name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.start_autonomous_database ::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.start_autonomous_database({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.start_autonomous_database(::Google::Cloud::OracleDatabase::V1::StartAutonomousDatabaseRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, start_autonomous_database_client_stub.call_rpc_count - end - end - - def test_restart_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - restart_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :restart_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, restart_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.restart_autonomous_database({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.restart_autonomous_database name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.restart_autonomous_database ::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.restart_autonomous_database({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.restart_autonomous_database(::Google::Cloud::OracleDatabase::V1::RestartAutonomousDatabaseRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, restart_autonomous_database_client_stub.call_rpc_count - end - end - - def test_switchover_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - peer_autonomous_database = "hello world" - - switchover_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :switchover_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["peer_autonomous_database"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, switchover_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.switchover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.switchover_autonomous_database name: name, peer_autonomous_database: peer_autonomous_database do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.switchover_autonomous_database ::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.switchover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.switchover_autonomous_database(::Google::Cloud::OracleDatabase::V1::SwitchoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, switchover_autonomous_database_client_stub.call_rpc_count - end - end - - def test_failover_autonomous_database - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - peer_autonomous_database = "hello world" - - failover_autonomous_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :failover_autonomous_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["peer_autonomous_database"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, failover_autonomous_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.failover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.failover_autonomous_database name: name, peer_autonomous_database: peer_autonomous_database do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.failover_autonomous_database ::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.failover_autonomous_database({ name: name, peer_autonomous_database: peer_autonomous_database }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.failover_autonomous_database(::Google::Cloud::OracleDatabase::V1::FailoverAutonomousDatabaseRequest.new(name: name, peer_autonomous_database: peer_autonomous_database), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, failover_autonomous_database_client_stub.call_rpc_count - end - end - - def test_list_odb_networks - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_odb_networks_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_odb_networks, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_odb_networks_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_odb_networks({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_odb_networks parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_odb_networks ::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_odb_networks({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_odb_networks(::Google::Cloud::OracleDatabase::V1::ListOdbNetworksRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_odb_networks_client_stub.call_rpc_count - end - end - - def test_get_odb_network - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::OdbNetwork.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_odb_network_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_odb_network, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_odb_network_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_odb_network({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_odb_network name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_odb_network ::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_odb_network({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_odb_network(::Google::Cloud::OracleDatabase::V1::GetOdbNetworkRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_odb_network_client_stub.call_rpc_count - end - end - - def test_create_odb_network - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - odb_network_id = "hello world" - odb_network = {} - request_id = "hello world" - - create_odb_network_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_odb_network, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["odb_network_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::OdbNetwork), request["odb_network"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_odb_network_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_odb_network({ parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_odb_network parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_odb_network ::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new(parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_odb_network({ parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_odb_network(::Google::Cloud::OracleDatabase::V1::CreateOdbNetworkRequest.new(parent: parent, odb_network_id: odb_network_id, odb_network: odb_network, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_odb_network_client_stub.call_rpc_count - end - end - - def test_delete_odb_network - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_odb_network_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_odb_network, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_odb_network_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_odb_network({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_odb_network name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_odb_network ::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_odb_network({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_odb_network(::Google::Cloud::OracleDatabase::V1::DeleteOdbNetworkRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_odb_network_client_stub.call_rpc_count - end - end - - def test_list_odb_subnets - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_odb_subnets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_odb_subnets, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_odb_subnets_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_odb_subnets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_odb_subnets parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_odb_subnets ::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_odb_subnets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_odb_subnets(::Google::Cloud::OracleDatabase::V1::ListOdbSubnetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_odb_subnets_client_stub.call_rpc_count - end - end - - def test_get_odb_subnet - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::OdbSubnet.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_odb_subnet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_odb_subnet, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_odb_subnet_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_odb_subnet({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_odb_subnet name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_odb_subnet ::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_odb_subnet({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_odb_subnet(::Google::Cloud::OracleDatabase::V1::GetOdbSubnetRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_odb_subnet_client_stub.call_rpc_count - end - end - - def test_create_odb_subnet - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - odb_subnet_id = "hello world" - odb_subnet = {} - request_id = "hello world" - - create_odb_subnet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_odb_subnet, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["odb_subnet_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::OdbSubnet), request["odb_subnet"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_odb_subnet_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_odb_subnet({ parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_odb_subnet parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_odb_subnet ::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new(parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_odb_subnet({ parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_odb_subnet(::Google::Cloud::OracleDatabase::V1::CreateOdbSubnetRequest.new(parent: parent, odb_subnet_id: odb_subnet_id, odb_subnet: odb_subnet, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_odb_subnet_client_stub.call_rpc_count - end - end - - def test_delete_odb_subnet - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_odb_subnet_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_odb_subnet, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_odb_subnet_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_odb_subnet({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_odb_subnet name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_odb_subnet ::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_odb_subnet({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_odb_subnet(::Google::Cloud::OracleDatabase::V1::DeleteOdbSubnetRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_odb_subnet_client_stub.call_rpc_count - end - end - - def test_list_exadb_vm_clusters - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_exadb_vm_clusters_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_exadb_vm_clusters, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_exadb_vm_clusters_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_exadb_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_exadb_vm_clusters parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_exadb_vm_clusters ::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_exadb_vm_clusters({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_exadb_vm_clusters(::Google::Cloud::OracleDatabase::V1::ListExadbVmClustersRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_exadb_vm_clusters_client_stub.call_rpc_count - end - end - - def test_get_exadb_vm_cluster - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_exadb_vm_cluster, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_exadb_vm_cluster({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_exadb_vm_cluster name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_exadb_vm_cluster({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::GetExadbVmClusterRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_exadb_vm_cluster_client_stub.call_rpc_count - end - end - - def test_create_exadb_vm_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - exadb_vm_cluster_id = "hello world" - exadb_vm_cluster = {} - request_id = "hello world" - - create_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_exadb_vm_cluster, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["exadb_vm_cluster_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster), request["exadb_vm_cluster"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_exadb_vm_cluster({ parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_exadb_vm_cluster parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new(parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_exadb_vm_cluster({ parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::CreateExadbVmClusterRequest.new(parent: parent, exadb_vm_cluster_id: exadb_vm_cluster_id, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_exadb_vm_cluster_client_stub.call_rpc_count - end - end - - def test_delete_exadb_vm_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_exadb_vm_cluster, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_exadb_vm_cluster({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_exadb_vm_cluster name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_exadb_vm_cluster({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::DeleteExadbVmClusterRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_exadb_vm_cluster_client_stub.call_rpc_count - end - end - - def test_update_exadb_vm_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - update_mask = {} - exadb_vm_cluster = {} - request_id = "hello world" - - update_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :update_exadb_vm_cluster, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest, request - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::FieldMask), request["update_mask"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::ExadbVmCluster), request["exadb_vm_cluster"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, update_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.update_exadb_vm_cluster({ update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.update_exadb_vm_cluster update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.update_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new(update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.update_exadb_vm_cluster({ update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.update_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::UpdateExadbVmClusterRequest.new(update_mask: update_mask, exadb_vm_cluster: exadb_vm_cluster, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, update_exadb_vm_cluster_client_stub.call_rpc_count - end - end - - def test_remove_virtual_machine_exadb_vm_cluster - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - hostnames = ["hello world"] - - remove_virtual_machine_exadb_vm_cluster_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :remove_virtual_machine_exadb_vm_cluster, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - assert_equal ["hello world"], request["hostnames"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, remove_virtual_machine_exadb_vm_cluster_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.remove_virtual_machine_exadb_vm_cluster({ name: name, request_id: request_id, hostnames: hostnames }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.remove_virtual_machine_exadb_vm_cluster name: name, request_id: request_id, hostnames: hostnames do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.remove_virtual_machine_exadb_vm_cluster ::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new(name: name, request_id: request_id, hostnames: hostnames) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.remove_virtual_machine_exadb_vm_cluster({ name: name, request_id: request_id, hostnames: hostnames }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.remove_virtual_machine_exadb_vm_cluster(::Google::Cloud::OracleDatabase::V1::RemoveVirtualMachineExadbVmClusterRequest.new(name: name, request_id: request_id, hostnames: hostnames), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, remove_virtual_machine_exadb_vm_cluster_client_stub.call_rpc_count - end - end - - def test_list_exascale_db_storage_vaults - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_exascale_db_storage_vaults_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_exascale_db_storage_vaults, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_exascale_db_storage_vaults_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_exascale_db_storage_vaults({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_exascale_db_storage_vaults parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_exascale_db_storage_vaults ::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_exascale_db_storage_vaults({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_exascale_db_storage_vaults(::Google::Cloud::OracleDatabase::V1::ListExascaleDbStorageVaultsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_exascale_db_storage_vaults_client_stub.call_rpc_count - end - end - - def test_get_exascale_db_storage_vault - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_exascale_db_storage_vault_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_exascale_db_storage_vault, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_exascale_db_storage_vault_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_exascale_db_storage_vault({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_exascale_db_storage_vault name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_exascale_db_storage_vault({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::GetExascaleDbStorageVaultRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_exascale_db_storage_vault_client_stub.call_rpc_count - end - end - - def test_create_exascale_db_storage_vault - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - exascale_db_storage_vault_id = "hello world" - exascale_db_storage_vault = {} - request_id = "hello world" - - create_exascale_db_storage_vault_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_exascale_db_storage_vault, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["exascale_db_storage_vault_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::ExascaleDbStorageVault), request["exascale_db_storage_vault"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_exascale_db_storage_vault_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_exascale_db_storage_vault({ parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_exascale_db_storage_vault parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new(parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_exascale_db_storage_vault({ parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::CreateExascaleDbStorageVaultRequest.new(parent: parent, exascale_db_storage_vault_id: exascale_db_storage_vault_id, exascale_db_storage_vault: exascale_db_storage_vault, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_exascale_db_storage_vault_client_stub.call_rpc_count - end - end - - def test_delete_exascale_db_storage_vault - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_exascale_db_storage_vault_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_exascale_db_storage_vault, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_exascale_db_storage_vault_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_exascale_db_storage_vault({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_exascale_db_storage_vault name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_exascale_db_storage_vault ::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_exascale_db_storage_vault({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_exascale_db_storage_vault(::Google::Cloud::OracleDatabase::V1::DeleteExascaleDbStorageVaultRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_exascale_db_storage_vault_client_stub.call_rpc_count - end - end - - def test_list_db_system_initial_storage_sizes - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_db_system_initial_storage_sizes_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_db_system_initial_storage_sizes, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_db_system_initial_storage_sizes_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_db_system_initial_storage_sizes({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_db_system_initial_storage_sizes parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_db_system_initial_storage_sizes ::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_db_system_initial_storage_sizes({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_db_system_initial_storage_sizes(::Google::Cloud::OracleDatabase::V1::ListDbSystemInitialStorageSizesRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_db_system_initial_storage_sizes_client_stub.call_rpc_count - end - end - - def test_list_databases - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDatabasesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_databases_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_databases, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_databases_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_databases ::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_databases(::Google::Cloud::OracleDatabase::V1::ListDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_databases_client_stub.call_rpc_count - end - end - - def test_get_database - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::Database.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_database({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_database name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_database ::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_database({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_database(::Google::Cloud::OracleDatabase::V1::GetDatabaseRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_database_client_stub.call_rpc_count - end - end - - def test_list_pluggable_databases - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_pluggable_databases_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_pluggable_databases, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_pluggable_databases_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_pluggable_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_pluggable_databases parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_pluggable_databases ::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_pluggable_databases({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_pluggable_databases(::Google::Cloud::OracleDatabase::V1::ListPluggableDatabasesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_pluggable_databases_client_stub.call_rpc_count - end - end - - def test_get_pluggable_database - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::PluggableDatabase.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_pluggable_database_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_pluggable_database, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_pluggable_database_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_pluggable_database({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_pluggable_database name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_pluggable_database ::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_pluggable_database({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_pluggable_database(::Google::Cloud::OracleDatabase::V1::GetPluggableDatabaseRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_pluggable_database_client_stub.call_rpc_count - end - end - - def test_list_db_systems - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbSystemsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_db_systems_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_db_systems, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_db_systems_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_db_systems({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_db_systems parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_db_systems ::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_db_systems({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_db_systems(::Google::Cloud::OracleDatabase::V1::ListDbSystemsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_db_systems_client_stub.call_rpc_count - end - end - - def test_get_db_system - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::DbSystem.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_db_system_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_db_system, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_db_system_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_db_system({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_db_system name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_db_system ::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_db_system({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_db_system(::Google::Cloud::OracleDatabase::V1::GetDbSystemRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_db_system_client_stub.call_rpc_count - end - end - - def test_create_db_system - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - db_system_id = "hello world" - db_system = {} - request_id = "hello world" - - create_db_system_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_db_system, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["db_system_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::DbSystem), request["db_system"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_db_system_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_db_system({ parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_db_system parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_db_system ::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new(parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_db_system({ parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_db_system(::Google::Cloud::OracleDatabase::V1::CreateDbSystemRequest.new(parent: parent, db_system_id: db_system_id, db_system: db_system, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_db_system_client_stub.call_rpc_count - end - end - - def test_delete_db_system - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_db_system_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_db_system, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_db_system_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_db_system({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_db_system name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_db_system ::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_db_system({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_db_system(::Google::Cloud::OracleDatabase::V1::DeleteDbSystemRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_db_system_client_stub.call_rpc_count - end - end - - def test_list_goldengate_deployments - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_goldengate_deployments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_goldengate_deployments, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_goldengate_deployments_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_goldengate_deployments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_goldengate_deployments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_goldengate_deployments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_goldengate_deployments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_goldengate_deployments_client_stub.call_rpc_count - end - end - - def test_get_goldengate_deployment - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_goldengate_deployment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_goldengate_deployment({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_goldengate_deployment name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_goldengate_deployment({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_goldengate_deployment_client_stub.call_rpc_count - end - end - - def test_create_goldengate_deployment - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - goldengate_deployment_id = "hello world" - goldengate_deployment = {} - request_id = "hello world" - - create_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_goldengate_deployment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["goldengate_deployment_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateDeployment), request["goldengate_deployment"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_goldengate_deployment parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_goldengate_deployment({ parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateDeploymentRequest.new(parent: parent, goldengate_deployment_id: goldengate_deployment_id, goldengate_deployment: goldengate_deployment, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_goldengate_deployment_client_stub.call_rpc_count - end - end - - def test_delete_goldengate_deployment - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_goldengate_deployment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_goldengate_deployment({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_goldengate_deployment name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_goldengate_deployment({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateDeploymentRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_goldengate_deployment_client_stub.call_rpc_count - end - end - - def test_stop_goldengate_deployment - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - stop_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :stop_goldengate_deployment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, stop_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.stop_goldengate_deployment({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.stop_goldengate_deployment name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.stop_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.stop_goldengate_deployment({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.stop_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StopGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, stop_goldengate_deployment_client_stub.call_rpc_count - end - end - - def test_start_goldengate_deployment - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - start_goldengate_deployment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :start_goldengate_deployment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, start_goldengate_deployment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.start_goldengate_deployment({ name: name }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.start_goldengate_deployment name: name do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.start_goldengate_deployment ::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.start_goldengate_deployment({ name: name }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.start_goldengate_deployment(::Google::Cloud::OracleDatabase::V1::StartGoldengateDeploymentRequest.new(name: name), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, start_goldengate_deployment_client_stub.call_rpc_count - end - end - - def test_list_goldengate_connections - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_goldengate_connections_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_goldengate_connections, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_goldengate_connections_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_goldengate_connections parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_goldengate_connections ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_goldengate_connections({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_goldengate_connections(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_goldengate_connections_client_stub.call_rpc_count - end - end - - def test_get_goldengate_connection - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnection.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_goldengate_connection, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_goldengate_connection_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_goldengate_connection({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_goldengate_connection name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_goldengate_connection ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_goldengate_connection({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_goldengate_connection(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_goldengate_connection_client_stub.call_rpc_count - end - end - - def test_create_goldengate_connection - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - goldengate_connection_id = "hello world" - goldengate_connection = {} - request_id = "hello world" - - create_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_goldengate_connection, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["goldengate_connection_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateConnection), request["goldengate_connection"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_goldengate_connection_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_goldengate_connection parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_goldengate_connection ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_goldengate_connection({ parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_goldengate_connection(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionRequest.new(parent: parent, goldengate_connection_id: goldengate_connection_id, goldengate_connection: goldengate_connection, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_goldengate_connection_client_stub.call_rpc_count - end - end - - def test_delete_goldengate_connection - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_goldengate_connection_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_goldengate_connection, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_goldengate_connection_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_goldengate_connection({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_goldengate_connection name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_goldengate_connection ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_goldengate_connection({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_goldengate_connection(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_goldengate_connection_client_stub.call_rpc_count - end - end - - def test_get_goldengate_deployment_version - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentVersion.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_deployment_version_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_goldengate_deployment_version, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_goldengate_deployment_version_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_goldengate_deployment_version({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_goldengate_deployment_version name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_goldengate_deployment_version ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_goldengate_deployment_version({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_goldengate_deployment_version(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentVersionRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_goldengate_deployment_version_client_stub.call_rpc_count - end - end - - def test_list_goldengate_deployment_versions - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_goldengate_deployment_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_goldengate_deployment_versions, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_goldengate_deployment_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_goldengate_deployment_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_goldengate_deployment_versions ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_goldengate_deployment_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_goldengate_deployment_versions(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_goldengate_deployment_versions_client_stub.call_rpc_count - end - end - - def test_get_goldengate_deployment_type - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentType.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_deployment_type_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_goldengate_deployment_type, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_goldengate_deployment_type_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_goldengate_deployment_type({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_goldengate_deployment_type name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_goldengate_deployment_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_goldengate_deployment_type({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_goldengate_deployment_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentTypeRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_goldengate_deployment_type_client_stub.call_rpc_count - end - end - - def test_list_goldengate_deployment_types - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_goldengate_deployment_types_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_goldengate_deployment_types, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_goldengate_deployment_types_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_goldengate_deployment_types parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_goldengate_deployment_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_goldengate_deployment_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_goldengate_deployment_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_goldengate_deployment_types_client_stub.call_rpc_count - end - end - - def test_get_goldengate_deployment_environment - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateDeploymentEnvironment.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_deployment_environment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_goldengate_deployment_environment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_goldengate_deployment_environment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_goldengate_deployment_environment({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_goldengate_deployment_environment name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_goldengate_deployment_environment ::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_goldengate_deployment_environment({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_goldengate_deployment_environment(::Google::Cloud::OracleDatabase::V1::GetGoldengateDeploymentEnvironmentRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_goldengate_deployment_environment_client_stub.call_rpc_count - end - end - - def test_list_goldengate_deployment_environments - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - - list_goldengate_deployment_environments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_goldengate_deployment_environments, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_goldengate_deployment_environments_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_goldengate_deployment_environments parent: parent, page_size: page_size, page_token: page_token do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_goldengate_deployment_environments ::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_goldengate_deployment_environments({ parent: parent, page_size: page_size, page_token: page_token }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_goldengate_deployment_environments(::Google::Cloud::OracleDatabase::V1::ListGoldengateDeploymentEnvironmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_goldengate_deployment_environments_client_stub.call_rpc_count - end - end - - def test_get_goldengate_connection_type - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionType.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_connection_type_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_goldengate_connection_type, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_goldengate_connection_type_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_goldengate_connection_type({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_goldengate_connection_type name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_goldengate_connection_type ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_goldengate_connection_type({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_goldengate_connection_type(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionTypeRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_goldengate_connection_type_client_stub.call_rpc_count - end - end - - def test_list_goldengate_connection_types - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_goldengate_connection_types_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_goldengate_connection_types, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_goldengate_connection_types_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_goldengate_connection_types parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_goldengate_connection_types ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_goldengate_connection_types({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_goldengate_connection_types(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionTypesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_goldengate_connection_types_client_stub.call_rpc_count - end - end - - def test_list_db_versions - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDbVersionsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_db_versions_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_db_versions, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_db_versions_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_db_versions parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_db_versions ::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_db_versions({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_db_versions(::Google::Cloud::OracleDatabase::V1::ListDbVersionsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_db_versions_client_stub.call_rpc_count - end - end - - def test_list_database_character_sets - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - - list_database_character_sets_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_database_character_sets, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_database_character_sets_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_database_character_sets parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_database_character_sets ::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_database_character_sets({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_database_character_sets(::Google::Cloud::OracleDatabase::V1::ListDatabaseCharacterSetsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_database_character_sets_client_stub.call_rpc_count - end - end - - def test_list_goldengate_connection_assignments - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - page_size = 42 - page_token = "hello world" - filter = "hello world" - order_by = "hello world" - - list_goldengate_connection_assignments_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :list_goldengate_connection_assignments, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest, request - assert_equal "hello world", request["parent"] - assert_equal 42, request["page_size"] - assert_equal "hello world", request["page_token"] - assert_equal "hello world", request["filter"] - assert_equal "hello world", request["order_by"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, list_goldengate_connection_assignments_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.list_goldengate_connection_assignments parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.list_goldengate_connection_assignments ::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.list_goldengate_connection_assignments({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by }, grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.list_goldengate_connection_assignments(::Google::Cloud::OracleDatabase::V1::ListGoldengateConnectionAssignmentsRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, order_by: order_by), grpc_options) do |response, operation| - assert_kind_of Gapic::PagedEnumerable, response - assert_equal grpc_response, response.response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, list_goldengate_connection_assignments_client_stub.call_rpc_count - end - end - - def test_get_goldengate_connection_assignment - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - - get_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :get_goldengate_connection_assignment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest, request - assert_equal "hello world", request["name"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, get_goldengate_connection_assignment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.get_goldengate_connection_assignment({ name: name }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.get_goldengate_connection_assignment name: name do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.get_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.get_goldengate_connection_assignment({ name: name }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.get_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::GetGoldengateConnectionAssignmentRequest.new(name: name), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, get_goldengate_connection_assignment_client_stub.call_rpc_count - end - end - - def test_create_goldengate_connection_assignment - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - parent = "hello world" - goldengate_connection_assignment_id = "hello world" - goldengate_connection_assignment = {} - request_id = "hello world" - - create_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :create_goldengate_connection_assignment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest, request - assert_equal "hello world", request["parent"] - assert_equal "hello world", request["goldengate_connection_assignment_id"] - assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Cloud::OracleDatabase::V1::GoldengateConnectionAssignment), request["goldengate_connection_assignment"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, create_goldengate_connection_assignment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.create_goldengate_connection_assignment parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.create_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.create_goldengate_connection_assignment({ parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.create_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::CreateGoldengateConnectionAssignmentRequest.new(parent: parent, goldengate_connection_assignment_id: goldengate_connection_assignment_id, goldengate_connection_assignment: goldengate_connection_assignment, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, create_goldengate_connection_assignment_client_stub.call_rpc_count - end - end - - def test_delete_goldengate_connection_assignment - # Create GRPC objects. - grpc_response = ::Google::Longrunning::Operation.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - request_id = "hello world" - - delete_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :delete_goldengate_connection_assignment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest, request - assert_equal "hello world", request["name"] - assert_equal "hello world", request["request_id"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, delete_goldengate_connection_assignment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use named arguments - client.delete_goldengate_connection_assignment name: name, request_id: request_id do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.delete_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.delete_goldengate_connection_assignment({ name: name, request_id: request_id }, grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.delete_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::DeleteGoldengateConnectionAssignmentRequest.new(name: name, request_id: request_id), grpc_options) do |response, operation| - assert_kind_of Gapic::Operation, response - assert_equal grpc_response, response.grpc_op - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, delete_goldengate_connection_assignment_client_stub.call_rpc_count - end - end - - def test_test_goldengate_connection_assignment - # Create GRPC objects. - grpc_response = ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentResponse.new - grpc_operation = GRPC::ActiveCall::Operation.new nil - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - grpc_options = {} - - # Create request parameters for a unary method. - name = "hello world" - type = :TEST_TYPE_UNSPECIFIED - - test_goldengate_connection_assignment_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| - assert_equal :test_goldengate_connection_assignment, name - assert_kind_of ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest, request - assert_equal "hello world", request["name"] - assert_equal :TEST_TYPE_UNSPECIFIED, request["type"] - refute_nil options - end - - Gapic::ServiceStub.stub :new, test_goldengate_connection_assignment_client_stub do - # Create client - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - - # Use hash object - client.test_goldengate_connection_assignment({ name: name, type: type }) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use named arguments - client.test_goldengate_connection_assignment name: name, type: type do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object - client.test_goldengate_connection_assignment ::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use hash object with options - client.test_goldengate_connection_assignment({ name: name, type: type }, grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Use protobuf object with options - client.test_goldengate_connection_assignment(::Google::Cloud::OracleDatabase::V1::TestGoldengateConnectionAssignmentRequest.new(name: name, type: type), grpc_options) do |response, operation| - assert_equal grpc_response, response - assert_equal grpc_operation, operation - end - - # Verify method calls - assert_equal 5, test_goldengate_connection_assignment_client_stub.call_rpc_count - end - end - - def test_configure - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = block_config = config = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - end - - config = client.configure do |c| - block_config = c - end - - assert_same block_config, config - assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client::Configuration, config - end - - def test_credentials - key = OpenSSL::PKey::RSA.new 2048 - cred_json = { - "private_key" => key.to_pem, - "client_email" => "app@developer.gserviceaccount.com", - "type" => "service_account" - } - key_file = StringIO.new cred_json.to_json - creds = Google::Auth::ServiceAccountCredentials.make_creds({ json_key_io: key_file }) - - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = creds - end - assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client, client - assert_equal creds, client.configure.credentials - end - end - - def test_operations_client - grpc_channel = GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure - - client = nil - dummy_stub = ClientStub.new nil, nil - Gapic::ServiceStub.stub :new, dummy_stub do - client = ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Client.new do |config| - config.credentials = grpc_channel - end - end - - assert_kind_of ::Google::Cloud::OracleDatabase::V1::OracleDatabase::Operations, client.operations_client - end -end diff --git a/owl-bot-staging/google-cloud-oracle_database-v1/test/helper.rb b/owl-bot-staging/google-cloud-oracle_database-v1/test/helper.rb deleted file mode 100644 index 672b337030e7..000000000000 --- a/owl-bot-staging/google-cloud-oracle_database-v1/test/helper.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Copyright 2026 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Auto-generated by gapic-generator-ruby. DO NOT EDIT! - -require "minitest/autorun" -require "minitest/focus" -require "minitest/mock" -require "minitest/rg" - -require "grpc" - -require "ostruct"