diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDatabase.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDatabase.php new file mode 100644 index 00000000000..e15e0496296 Binary files /dev/null and b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDatabase.php differ diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDatabaseCharacterSet.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDatabaseCharacterSet.php new file mode 100644 index 00000000000..7d1b0380150 Binary files /dev/null and b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDatabaseCharacterSet.php differ diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDbBackup.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDbBackup.php new file mode 100644 index 00000000000..2d04a934634 Binary files /dev/null and b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDbBackup.php differ diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDbVersion.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDbVersion.php new file mode 100644 index 00000000000..8b0e4dffb54 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/AutonomousDbVersion.php @@ -0,0 +1,36 @@ +internalAddGeneratedFile( + ' +‹ +:google/cloud/oracledatabase/v1/autonomous_db_version.protogoogle.cloud.oracledatabase.v1google/api/resource.proto8google/cloud/oracledatabase/v1/autonomous_database.proto"Ú +AutonomousDbVersion +name ( BàA +version ( BàAD + db_workload (2*.google.cloud.oracledatabase.v1.DBWorkloadBàA + workload_uri ( BàA:¸êA´ +1oracledatabase.googleapis.com/AutonomousDbVersionTprojects/{project}/locations/{location}/autonomousDbVersions/{autonomous_db_version}*autonomousDbVersions2autonomousDbVersionBò +"com.google.cloud.oracledatabase.v1BAutonomousDbVersionProtoPZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepbªGoogle.Cloud.OracleDatabase.V1ÊGoogle\\Cloud\\OracleDatabase\\V1ê!Google::Cloud::OracleDatabase::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Common.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Common.php new file mode 100644 index 00000000000..8f8157a7009 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Common.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + ' +ä ++google/cloud/oracledatabase/v1/common.protogoogle.cloud.oracledatabase.v1"% +CustomerContact +email ( BàABå +"com.google.cloud.oracledatabase.v1B CommonProtoPZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepbªGoogle.Cloud.OracleDatabase.V1ÊGoogle\\Cloud\\OracleDatabase\\V1ê!Google::Cloud::OracleDatabase::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbNode.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbNode.php new file mode 100644 index 00000000000..6a60fe7e865 Binary files /dev/null and b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbNode.php differ diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbServer.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbServer.php new file mode 100644 index 00000000000..fc7b2588e31 Binary files /dev/null and b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbServer.php differ diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbSystemShape.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbSystemShape.php new file mode 100644 index 00000000000..84c7116e6d0 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/DbSystemShape.php @@ -0,0 +1,44 @@ +internalAddGeneratedFile( + ' +° +4google/cloud/oracledatabase/v1/db_system_shape.protogoogle.cloud.oracledatabase.v1google/api/resource.proto"Å + DbSystemShape +name ( BàA +shape ( BàA +min_node_count (BàA +max_node_count (BàA +min_storage_count (BàA +max_storage_count (BàA* +available_core_count_per_node (BàA) +available_memory_per_node_gb (BàA& +available_data_storage_tb (BàA$ +min_core_count_per_node + (BàA# +min_memory_per_node_gb (BàA, +min_db_node_storage_per_node_gb (BàA:šêA– ++oracledatabase.googleapis.com/DbSystemShapeHprojects/{project}/locations/{location}/dbSystemShapes/{db_system_shape}*dbSystemShapes2 dbSystemShapeBì +"com.google.cloud.oracledatabase.v1BDbSystemShapeProtoPZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepbªGoogle.Cloud.OracleDatabase.V1ÊGoogle\\Cloud\\OracleDatabase\\V1ê!Google::Cloud::OracleDatabase::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Entitlement.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Entitlement.php new file mode 100644 index 00000000000..ca0d3439b8c Binary files /dev/null and b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Entitlement.php differ diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/ExadataInfra.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/ExadataInfra.php new file mode 100644 index 00000000000..7d5665bb7a6 Binary files /dev/null and b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/ExadataInfra.php differ diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/GiVersion.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/GiVersion.php new file mode 100644 index 00000000000..3970372f278 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/GiVersion.php @@ -0,0 +1,34 @@ +internalAddGeneratedFile( + ' +ž +/google/cloud/oracledatabase/v1/gi_version.protogoogle.cloud.oracledatabase.v1google/api/resource.proto"¼ + GiVersion +name ( BàA +version ( BàA:…êA +\'oracledatabase.googleapis.com/GiVersion?projects/{project}/locations/{location}/giVersions/{gi_version}* +giVersions2 giVersionBè +"com.google.cloud.oracledatabase.v1BGiVersionProtoPZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepbªGoogle.Cloud.OracleDatabase.V1ÊGoogle\\Cloud\\OracleDatabase\\V1ê!Google::Cloud::OracleDatabase::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/LocationMetadata.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/LocationMetadata.php new file mode 100644 index 00000000000..21f60a25d53 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/LocationMetadata.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + ' +… +6google/cloud/oracledatabase/v1/location_metadata.protogoogle.cloud.oracledatabase.v1"1 +LocationMetadata +gcp_oracle_zones ( BàABï +"com.google.cloud.oracledatabase.v1BLocationMetadataProtoPZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepbªGoogle.Cloud.OracleDatabase.V1ÊGoogle\\Cloud\\OracleDatabase\\V1ê!Google::Cloud::OracleDatabase::V1bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Oracledatabase.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Oracledatabase.php new file mode 100644 index 00000000000..34be06d5bb9 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/Oracledatabase.php @@ -0,0 +1,236 @@ +internalAddGeneratedFile( + ' +‰a +3google/cloud/oracledatabase/v1/oracledatabase.protogoogle.cloud.oracledatabase.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/field_info.protogoogle/api/resource.proto8google/cloud/oracledatabase/v1/autonomous_database.protoFgoogle/cloud/oracledatabase/v1/autonomous_database_character_set.proto9google/cloud/oracledatabase/v1/autonomous_db_backup.proto:google/cloud/oracledatabase/v1/autonomous_db_version.proto,google/cloud/oracledatabase/v1/db_node.proto.google/cloud/oracledatabase/v1/db_server.proto4google/cloud/oracledatabase/v1/db_system_shape.proto0google/cloud/oracledatabase/v1/entitlement.proto2google/cloud/oracledatabase/v1/exadata_infra.proto/google/cloud/oracledatabase/v1/gi_version.proto/google/cloud/oracledatabase/v1/vm_cluster.proto#google/longrunning/operations.protogoogle/protobuf/empty.protogoogle/protobuf/timestamp.proto"« +&ListCloudExadataInfrastructuresRequestP +parent ( B@àAúA:8oracledatabase.googleapis.com/CloudExadataInfrastructure + page_size (BàA + +page_token ( BàA"¥ +\'ListCloudExadataInfrastructuresResponsea +cloud_exadata_infrastructures ( 2:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure +next_page_token ( "v +$GetCloudExadataInfrastructureRequestN +name ( B@àAúA: +8oracledatabase.googleapis.com/CloudExadataInfrastructure"± +\'CreateCloudExadataInfrastructureRequestP +parent ( B@àAúA:8oracledatabase.googleapis.com/CloudExadataInfrastructure, +cloud_exadata_infrastructure_id ( BàAe +cloud_exadata_infrastructure ( 2:.google.cloud.oracledatabase.v1.CloudExadataInfrastructureBàA + +request_id ( B àAâŒÏ×"® +\'DeleteCloudExadataInfrastructureRequestN +name ( B@àAúA: +8oracledatabase.googleapis.com/CloudExadataInfrastructure + +request_id ( B àAâŒÏ× +force (BàA"¨ +ListCloudVmClustersRequestD +parent ( B4àAúA.,oracledatabase.googleapis.com/CloudVmCluster + page_size (BàA + +page_token ( BàA +filter ( BàA" +ListCloudVmClustersResponseI +cloud_vm_clusters ( 2..google.cloud.oracledatabase.v1.CloudVmCluster +next_page_token ( "^ +GetCloudVmClusterRequestB +name ( B4àAúA. +,oracledatabase.googleapis.com/CloudVmCluster"õ +CreateCloudVmClusterRequestD +parent ( B4àAúA.,oracledatabase.googleapis.com/CloudVmCluster +cloud_vm_cluster_id ( BàAM +cloud_vm_cluster ( 2..google.cloud.oracledatabase.v1.CloudVmClusterBàA + +request_id ( B àAâŒÏ×"– +DeleteCloudVmClusterRequestB +name ( B4àAúA. +,oracledatabase.googleapis.com/CloudVmCluster + +request_id ( B àAâŒÏ× +force (BàA" +ListEntitlementsRequestA +parent ( B1àAúA+)oracledatabase.googleapis.com/Entitlement + page_size (BàA + +page_token ( BàA"v +ListEntitlementsResponseA + entitlements ( 2+.google.cloud.oracledatabase.v1.Entitlement +next_page_token ( "‡ +ListDbServersRequest> +parent ( B.àAúA(&oracledatabase.googleapis.com/DbServer + page_size (BàA + +page_token ( BàA"n +ListDbServersResponse< + +db_servers ( 2(.google.cloud.oracledatabase.v1.DbServer +next_page_token ( "ƒ +ListDbNodesRequest< +parent ( B,àAúA&$oracledatabase.googleapis.com/DbNode + page_size (BàA + +page_token ( BàA"h +ListDbNodesResponse8 +db_nodes ( 2&.google.cloud.oracledatabase.v1.DbNode +next_page_token ( "‰ +ListGiVersionsRequest? +parent ( B/àAúA)\'oracledatabase.googleapis.com/GiVersion + page_size (BàA + +page_token ( BàA"q +ListGiVersionsResponse> + gi_versions ( 2).google.cloud.oracledatabase.v1.GiVersion +next_page_token ( "‘ +ListDbSystemShapesRequestC +parent ( B3àAúA-+oracledatabase.googleapis.com/DbSystemShape + page_size (BàA + +page_token ( BàA"~ +ListDbSystemShapesResponseG +db_system_shapes ( 2-.google.cloud.oracledatabase.v1.DbSystemShape +next_page_token ( "Ÿ +OperationMetadata4 + create_time ( 2.google.protobuf.TimestampBàA1 +end_time ( 2.google.protobuf.TimestampBàA +target ( BàA +verb ( BàA +status_message ( BàA# +requested_cancellation (BàA + api_version ( BàA +percent_complete (BàA"Ç +ListAutonomousDatabasesRequestH +parent ( B8àAúA20oracledatabase.googleapis.com/AutonomousDatabase + page_size (BàA + +page_token ( BàA +filter ( BàA +order_by ( BàA"Œ +ListAutonomousDatabasesResponseP +autonomous_databases ( 22.google.cloud.oracledatabase.v1.AutonomousDatabase +next_page_token ( "f +GetAutonomousDatabaseRequestF +name ( B8àAúA2 +0oracledatabase.googleapis.com/AutonomousDatabase"‡ +CreateAutonomousDatabaseRequestH +parent ( B8àAúA20oracledatabase.googleapis.com/AutonomousDatabase# +autonomous_database_id ( BàAT +autonomous_database ( 22.google.cloud.oracledatabase.v1.AutonomousDatabaseBàA + +request_id ( B àAâŒÏ×"Š +DeleteAutonomousDatabaseRequestF +name ( B8àAúA2 +0oracledatabase.googleapis.com/AutonomousDatabase + +request_id ( B àAâŒÏ×"¡ + RestoreAutonomousDatabaseRequestF +name ( B8àAúA2 +0oracledatabase.googleapis.com/AutonomousDatabase5 + restore_time ( 2.google.protobuf.TimestampBàA"ã +\'GenerateAutonomousDatabaseWalletRequestF +name ( B8àAúA2 +0oracledatabase.googleapis.com/AutonomousDatabase? +type (2,.google.cloud.oracledatabase.v1.GenerateTypeBàA + is_regional (BàA +password ( BàA"H +(GenerateAutonomousDatabaseWalletResponse +archive_content ( BàA" +ListAutonomousDbVersionsRequestI +parent ( B9àAúA31oracledatabase.googleapis.com/AutonomousDbVersion + page_size (BàA + +page_token ( BàA" + ListAutonomousDbVersionsResponseS +autonomous_db_versions ( 23.google.cloud.oracledatabase.v1.AutonomousDbVersion +next_page_token ( "È +*ListAutonomousDatabaseCharacterSetsRequestT +parent ( BDàAúA>.google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet +next_page_token ( "¼ +$ListAutonomousDatabaseBackupsRequestN +parent ( B>àAúA86oracledatabase.googleapis.com/AutonomousDatabaseBackup +filter ( BàA + page_size (BàA + +page_token ( BàA"Ÿ +%ListAutonomousDatabaseBackupsResponse] +autonomous_database_backups ( 28.google.cloud.oracledatabase.v1.AutonomousDatabaseBackup +next_page_token ( 2Œ+ +OracleDatabase„ +ListCloudExadataInfrastructuresF.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequestG.google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse"PÚAparent‚Óä“A?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructuresñ +GetCloudExadataInfrastructureD.google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest:.google.cloud.oracledatabase.v1.CloudExadataInfrastructure"NÚAname‚Óä“A?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}ê + CreateCloudExadataInfrastructureG.google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest.google.longrunning.Operation"ÝÊA/ +CloudExadataInfrastructureOperationMetadataÚACparent,cloud_exadata_infrastructure,cloud_exadata_infrastructure_id‚Óä“_"?/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures:cloud_exadata_infrastructure‡ + DeleteCloudExadataInfrastructureG.google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest.google.longrunning.Operation"{ÊA* +google.protobuf.EmptyOperationMetadataÚAname‚Óä“A*?/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}Ô +ListCloudVmClusters:.google.cloud.oracledatabase.v1.ListCloudVmClustersRequest;.google.cloud.oracledatabase.v1.ListCloudVmClustersResponse"DÚAparent‚Óä“53/v1/{parent=projects/*/locations/*}/cloudVmClustersÁ +GetCloudVmCluster8.google.cloud.oracledatabase.v1.GetCloudVmClusterRequest..google.cloud.oracledatabase.v1.CloudVmCluster"BÚAname‚Óä“53/v1/{name=projects/*/locations/*/cloudVmClusters/*}– +CreateCloudVmCluster;.google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest.google.longrunning.Operation"¡ÊA# +CloudVmClusterOperationMetadataÚA+parent,cloud_vm_cluster,cloud_vm_cluster_id‚Óä“G"3/v1/{parent=projects/*/locations/*}/cloudVmClusters:cloud_vm_clusterã +DeleteCloudVmCluster;.google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest.google.longrunning.Operation"oÊA* +google.protobuf.EmptyOperationMetadataÚAname‚Óä“5*3/v1/{name=projects/*/locations/*/cloudVmClusters/*}È +ListEntitlements7.google.cloud.oracledatabase.v1.ListEntitlementsRequest8.google.cloud.oracledatabase.v1.ListEntitlementsResponse"AÚAparent‚Óä“20/v1/{parent=projects/*/locations/*}/entitlementsÚ + ListDbServers4.google.cloud.oracledatabase.v1.ListDbServersRequest5.google.cloud.oracledatabase.v1.ListDbServersResponse"\\ÚAparent‚Óä“MK/v1/{parent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServersÆ + ListDbNodes2.google.cloud.oracledatabase.v1.ListDbNodesRequest3.google.cloud.oracledatabase.v1.ListDbNodesResponse"NÚAparent‚Óä“?=/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodesÀ +ListGiVersions5.google.cloud.oracledatabase.v1.ListGiVersionsRequest6.google.cloud.oracledatabase.v1.ListGiVersionsResponse"?ÚAparent‚Óä“0./v1/{parent=projects/*/locations/*}/giVersionsÐ +ListDbSystemShapes9.google.cloud.oracledatabase.v1.ListDbSystemShapesRequest:.google.cloud.oracledatabase.v1.ListDbSystemShapesResponse"CÚAparent‚Óä“42/v1/{parent=projects/*/locations/*}/dbSystemShapesä +ListAutonomousDatabases>.google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest?.google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse"HÚAparent‚Óä“97/v1/{parent=projects/*/locations/*}/autonomousDatabasesÑ +GetAutonomousDatabase<.google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest2.google.cloud.oracledatabase.v1.AutonomousDatabase"FÚAname‚Óä“97/v1/{name=projects/*/locations/*/autonomousDatabases/*}¯ +CreateAutonomousDatabase?.google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest.google.longrunning.Operation"²ÊA\' +AutonomousDatabaseOperationMetadataÚA1parent,autonomous_database,autonomous_database_id‚Óä“N"7/v1/{parent=projects/*/locations/*}/autonomousDatabases:autonomous_databaseï +DeleteAutonomousDatabase?.google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest.google.longrunning.Operation"sÊA* +google.protobuf.EmptyOperationMetadataÚAname‚Óä“9*7/v1/{name=projects/*/locations/*/autonomousDatabases/*}‡ +RestoreAutonomousDatabase@.google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest.google.longrunning.Operation"ˆÊA\' +AutonomousDatabaseOperationMetadataÚAname,restore_time‚Óä“D"?/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore:*© + GenerateAutonomousDatabaseWalletG.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequestH.google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse"rÚAname,type,is_regional,password‚Óä“K"F/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet:*è +ListAutonomousDbVersions?.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest@.google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse"IÚAparent‚Óä“:8/v1/{parent=projects/*/locations/*}/autonomousDbVersions” +#ListAutonomousDatabaseCharacterSetsJ.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequestK.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse"TÚAparent‚Óä“EC/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSetsü +ListAutonomousDatabaseBackupsD.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequestE.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse"NÚAparent‚Óä“?=/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackupsQÊAoracledatabase.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB¶ +"com.google.cloud.oracledatabase.v1B V1mainProtoPZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepbªGoogle.Cloud.OracleDatabase.V1ÊGoogle\\Cloud\\OracleDatabase\\V1ê!Google::Cloud::OracleDatabase::V1êAN +compute.googleapis.com/Network,projects/{project}/global/networks/{network}bproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/VmCluster.php b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/VmCluster.php new file mode 100644 index 00000000000..a88e01c27cf Binary files /dev/null and b/owl-bot-staging/OracleDatabase/v1/proto/src/GPBMetadata/Google/Cloud/Oracledatabase/V1/VmCluster.php differ diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AllConnectionStrings.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AllConnectionStrings.php new file mode 100644 index 00000000000..a42bf3497be --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AllConnectionStrings.php @@ -0,0 +1,148 @@ +google.cloud.oracledatabase.v1.AllConnectionStrings + */ +class AllConnectionStrings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The database service provides the highest level of resources + * to each SQL statement. + * + * Generated from protobuf field string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $high = ''; + /** + * Output only. The database service provides the least level of resources to + * each SQL statement. + * + * Generated from protobuf field string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $low = ''; + /** + * Output only. The database service provides a lower level of resources to + * each SQL statement. + * + * Generated from protobuf field string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $medium = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $high + * Output only. The database service provides the highest level of resources + * to each SQL statement. + * @type string $low + * Output only. The database service provides the least level of resources to + * each SQL statement. + * @type string $medium + * Output only. The database service provides a lower level of resources to + * each SQL statement. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The database service provides the highest level of resources + * to each SQL statement. + * + * Generated from protobuf field string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getHigh() + { + return $this->high; + } + + /** + * Output only. The database service provides the highest level of resources + * to each SQL statement. + * + * Generated from protobuf field string high = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setHigh($var) + { + GPBUtil::checkString($var, True); + $this->high = $var; + + return $this; + } + + /** + * Output only. The database service provides the least level of resources to + * each SQL statement. + * + * Generated from protobuf field string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLow() + { + return $this->low; + } + + /** + * Output only. The database service provides the least level of resources to + * each SQL statement. + * + * Generated from protobuf field string low = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLow($var) + { + GPBUtil::checkString($var, True); + $this->low = $var; + + return $this; + } + + /** + * Output only. The database service provides a lower level of resources to + * each SQL statement. + * + * Generated from protobuf field string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMedium() + { + return $this->medium; + } + + /** + * Output only. The database service provides a lower level of resources to + * each SQL statement. + * + * Generated from protobuf field string medium = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMedium($var) + { + GPBUtil::checkString($var, True); + $this->medium = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabase.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabase.php new file mode 100644 index 00000000000..fe496b5489b --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabase.php @@ -0,0 +1,422 @@ +google.cloud.oracledatabase.v1.AutonomousDatabase + */ +class AutonomousDatabase extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Autonomous Database resource in the following + * format: + * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * 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. + * + * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $database = ''; + /** + * Optional. The display name for the Autonomous Database. The name does not + * have to be unique within your project. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. The ID of the subscription entitlement associated with the + * Autonomous Database. + * + * Generated from protobuf field string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entitlement_id = ''; + /** + * Optional. The password for the default ADMIN user. + * + * Generated from protobuf field string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $admin_password = ''; + /** + * Optional. The properties of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + /** + * Optional. The labels or tags associated with the Autonomous Database. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Required. The name of the VPC network used by the Autonomous Database in + * the following format: projects/{project}/global/networks/{network} + * + * Generated from protobuf field string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $network = ''; + /** + * Required. The subnet CIDR range for the Autonmous Database. + * + * Generated from protobuf field string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cidr = ''; + /** + * Output only. The date and time that the Autonomous Database was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Autonomous Database resource in the following + * format: + * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + * @type string $database + * 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. + * @type string $display_name + * Optional. The display name for the Autonomous Database. The name does not + * have to be unique within your project. + * @type string $entitlement_id + * Output only. The ID of the subscription entitlement associated with the + * Autonomous Database. + * @type string $admin_password + * Optional. The password for the default ADMIN user. + * @type \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties $properties + * Optional. The properties of the Autonomous Database. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. The labels or tags associated with the Autonomous Database. + * @type string $network + * Required. The name of the VPC network used by the Autonomous Database in + * the following format: projects/{project}/global/networks/{network} + * @type string $cidr + * Required. The subnet CIDR range for the Autonmous Database. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The date and time that the Autonomous Database was created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Autonomous Database resource in the following + * format: + * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Autonomous Database resource in the following + * format: + * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * 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. + * + * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, True); + $this->database = $var; + + return $this; + } + + /** + * Optional. The display name for the Autonomous Database. The name does not + * have to be unique within your project. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. The display name for the Autonomous Database. The name does not + * have to be unique within your project. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The ID of the subscription entitlement associated with the + * Autonomous Database. + * + * Generated from protobuf field string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEntitlementId() + { + return $this->entitlement_id; + } + + /** + * Output only. The ID of the subscription entitlement associated with the + * Autonomous Database. + * + * Generated from protobuf field string entitlement_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEntitlementId($var) + { + GPBUtil::checkString($var, True); + $this->entitlement_id = $var; + + return $this; + } + + /** + * Optional. The password for the default ADMIN user. + * + * Generated from protobuf field string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAdminPassword() + { + return $this->admin_password; + } + + /** + * Optional. The password for the default ADMIN user. + * + * Generated from protobuf field string admin_password = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAdminPassword($var) + { + GPBUtil::checkString($var, True); + $this->admin_password = $var; + + return $this; + } + + /** + * Optional. The properties of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Optional. The properties of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties properties = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties::class); + $this->properties = $var; + + return $this; + } + + /** + * Optional. The labels or tags associated with the Autonomous Database. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. The labels or tags associated with the Autonomous Database. + * + * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Required. The name of the VPC network used by the Autonomous Database in + * the following format: projects/{project}/global/networks/{network} + * + * Generated from protobuf field string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Required. The name of the VPC network used by the Autonomous Database in + * the following format: projects/{project}/global/networks/{network} + * + * Generated from protobuf field string network = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + + /** + * Required. The subnet CIDR range for the Autonmous Database. + * + * Generated from protobuf field string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCidr() + { + return $this->cidr; + } + + /** + * Required. The subnet CIDR range for the Autonmous Database. + * + * Generated from protobuf field string cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCidr($var) + { + GPBUtil::checkString($var, True); + $this->cidr = $var; + + return $this; + } + + /** + * Output only. The date and time that the Autonomous Database was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The date and time that the Autonomous Database was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseApex.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseApex.php new file mode 100644 index 00000000000..72636fdbd34 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseApex.php @@ -0,0 +1,102 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseApex + */ +class AutonomousDatabaseApex extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The Oracle APEX Application Development version. + * + * Generated from protobuf field string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $apex_version = ''; + /** + * Output only. The Oracle REST Data Services (ORDS) version. + * + * Generated from protobuf field string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ords_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $apex_version + * Output only. The Oracle APEX Application Development version. + * @type string $ords_version + * Output only. The Oracle REST Data Services (ORDS) version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The Oracle APEX Application Development version. + * + * Generated from protobuf field string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApexVersion() + { + return $this->apex_version; + } + + /** + * Output only. The Oracle APEX Application Development version. + * + * Generated from protobuf field string apex_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApexVersion($var) + { + GPBUtil::checkString($var, True); + $this->apex_version = $var; + + return $this; + } + + /** + * Output only. The Oracle REST Data Services (ORDS) version. + * + * Generated from protobuf field string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOrdsVersion() + { + return $this->ords_version; + } + + /** + * Output only. The Oracle REST Data Services (ORDS) version. + * + * Generated from protobuf field string ords_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOrdsVersion($var) + { + GPBUtil::checkString($var, True); + $this->ords_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackup.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackup.php new file mode 100644 index 00000000000..a19e4245197 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackup.php @@ -0,0 +1,234 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseBackup + */ +class AutonomousDatabaseBackup extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Autonomous Database Backup resource with the + * format: + * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The name of the Autonomous Database resource for which the backup + * is being created. Format: + * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + * + * Generated from protobuf field string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $autonomous_database = ''; + /** + * Optional. User friendly name for the Backup. The name does not have to be + * unique. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Various properties of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + /** + * Optional. labels or tags associated with the resource. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Autonomous Database Backup resource with the + * format: + * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup} + * @type string $autonomous_database + * Required. The name of the Autonomous Database resource for which the backup + * is being created. Format: + * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + * @type string $display_name + * Optional. User friendly name for the Backup. The name does not have to be + * unique. + * @type \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackupProperties $properties + * Optional. Various properties of the backup. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. labels or tags associated with the resource. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDbBackup::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Autonomous Database Backup resource with the + * format: + * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Autonomous Database Backup resource with the + * format: + * projects/{project}/locations/{region}/autonomousDatabaseBackups/{autonomous_database_backup} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the Autonomous Database resource for which the backup + * is being created. Format: + * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + * + * Generated from protobuf field string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getAutonomousDatabase() + { + return $this->autonomous_database; + } + + /** + * Required. The name of the Autonomous Database resource for which the backup + * is being created. Format: + * projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database} + * + * Generated from protobuf field string autonomous_database = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setAutonomousDatabase($var) + { + GPBUtil::checkString($var, True); + $this->autonomous_database = $var; + + return $this; + } + + /** + * Optional. User friendly name for the Backup. The name does not have to be + * unique. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly name for the Backup. The name does not have to be + * unique. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Various properties of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackupProperties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Optional. Various properties of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties properties = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackupProperties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackupProperties::class); + $this->properties = $var; + + return $this; + } + + /** + * Optional. labels or tags associated with the resource. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. labels or tags associated with the resource. + * + * Generated from protobuf field map labels = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties.php new file mode 100644 index 00000000000..ac444dd278f --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties.php @@ -0,0 +1,775 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties + */ +class AutonomousDatabaseBackupProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. OCID of the Autonomous Database backup. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ocid = ''; + /** + * Optional. Retention period in days for the backup. + * + * Generated from protobuf field int32 retention_period_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $retention_period_days = 0; + /** + * Output only. The OCID of the compartment. + * + * Generated from protobuf field string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compartment_id = ''; + /** + * Output only. The quantity of data in the database, in terabytes. + * + * Generated from protobuf field float database_size_tb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $database_size_tb = 0.0; + /** + * Output only. A valid Oracle Database version for Autonomous Database. + * + * Generated from protobuf field string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $db_version = ''; + /** + * Output only. Indicates if the backup is long term backup. + * + * Generated from protobuf field bool is_long_term_backup = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_long_term_backup = false; + /** + * Output only. Indicates if the backup is automatic or user initiated. + * + * Generated from protobuf field bool is_automatic_backup = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_automatic_backup = false; + /** + * Output only. Indicates if the backup can be used to restore the Autonomous + * Database. + * + * Generated from protobuf field bool is_restorable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_restorable = false; + /** + * Optional. The OCID of the key store of Oracle Vault. + * + * Generated from protobuf field string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $key_store_id = ''; + /** + * Optional. The wallet name for Oracle Key Vault. + * + * Generated from protobuf field string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $key_store_wallet = ''; + /** + * Optional. The OCID of the key container that is used as the master + * encryption key in database transparent data encryption (TDE) operations. + * + * Generated from protobuf field string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $kms_key_id = ''; + /** + * 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. + * + * Generated from protobuf field string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $kms_key_version_id = ''; + /** + * Output only. Additional information about the current lifecycle state. + * + * Generated from protobuf field string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $lifecycle_details = ''; + /** + * Output only. The lifecycle state of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $lifecycle_state = 0; + /** + * Output only. The backup size in terabytes. + * + * Generated from protobuf field float size_tb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $size_tb = 0.0; + /** + * Output only. Timestamp until when the backup will be available. + * + * Generated from protobuf field .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $available_till_time = null; + /** + * Output only. The date and time the backup completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. The date and time the backup started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. The type of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $type = 0; + /** + * Optional. The OCID of the vault. + * + * Generated from protobuf field string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vault_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ocid + * Output only. OCID of the Autonomous Database backup. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * @type int $retention_period_days + * Optional. Retention period in days for the backup. + * @type string $compartment_id + * Output only. The OCID of the compartment. + * @type float $database_size_tb + * Output only. The quantity of data in the database, in terabytes. + * @type string $db_version + * Output only. A valid Oracle Database version for Autonomous Database. + * @type bool $is_long_term_backup + * Output only. Indicates if the backup is long term backup. + * @type bool $is_automatic_backup + * Output only. Indicates if the backup is automatic or user initiated. + * @type bool $is_restorable + * Output only. Indicates if the backup can be used to restore the Autonomous + * Database. + * @type string $key_store_id + * Optional. The OCID of the key store of Oracle Vault. + * @type string $key_store_wallet + * Optional. The wallet name for Oracle Key Vault. + * @type string $kms_key_id + * Optional. The OCID of the key container that is used as the master + * encryption key in database transparent data encryption (TDE) operations. + * @type string $kms_key_version_id + * 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. + * @type string $lifecycle_details + * Output only. Additional information about the current lifecycle state. + * @type int $lifecycle_state + * Output only. The lifecycle state of the backup. + * @type float $size_tb + * Output only. The backup size in terabytes. + * @type \Google\Protobuf\Timestamp $available_till_time + * Output only. Timestamp until when the backup will be available. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The date and time the backup completed. + * @type \Google\Protobuf\Timestamp $start_time + * Output only. The date and time the backup started. + * @type int $type + * Output only. The type of the backup. + * @type string $vault_id + * Optional. The OCID of the vault. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDbBackup::initOnce(); + parent::__construct($data); + } + + /** + * Output only. OCID of the Autonomous Database backup. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOcid() + { + return $this->ocid; + } + + /** + * Output only. OCID of the Autonomous Database backup. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOcid($var) + { + GPBUtil::checkString($var, True); + $this->ocid = $var; + + return $this; + } + + /** + * Optional. Retention period in days for the backup. + * + * Generated from protobuf field int32 retention_period_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getRetentionPeriodDays() + { + return $this->retention_period_days; + } + + /** + * Optional. Retention period in days for the backup. + * + * Generated from protobuf field int32 retention_period_days = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setRetentionPeriodDays($var) + { + GPBUtil::checkInt32($var); + $this->retention_period_days = $var; + + return $this; + } + + /** + * Output only. The OCID of the compartment. + * + * Generated from protobuf field string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCompartmentId() + { + return $this->compartment_id; + } + + /** + * Output only. The OCID of the compartment. + * + * Generated from protobuf field string compartment_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCompartmentId($var) + { + GPBUtil::checkString($var, True); + $this->compartment_id = $var; + + return $this; + } + + /** + * Output only. The quantity of data in the database, in terabytes. + * + * Generated from protobuf field float database_size_tb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getDatabaseSizeTb() + { + return $this->database_size_tb; + } + + /** + * Output only. The quantity of data in the database, in terabytes. + * + * Generated from protobuf field float database_size_tb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setDatabaseSizeTb($var) + { + GPBUtil::checkFloat($var); + $this->database_size_tb = $var; + + return $this; + } + + /** + * Output only. A valid Oracle Database version for Autonomous Database. + * + * Generated from protobuf field string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDbVersion() + { + return $this->db_version; + } + + /** + * Output only. A valid Oracle Database version for Autonomous Database. + * + * Generated from protobuf field string db_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDbVersion($var) + { + GPBUtil::checkString($var, True); + $this->db_version = $var; + + return $this; + } + + /** + * Output only. Indicates if the backup is long term backup. + * + * Generated from protobuf field bool is_long_term_backup = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsLongTermBackup() + { + return $this->is_long_term_backup; + } + + /** + * Output only. Indicates if the backup is long term backup. + * + * Generated from protobuf field bool is_long_term_backup = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsLongTermBackup($var) + { + GPBUtil::checkBool($var); + $this->is_long_term_backup = $var; + + return $this; + } + + /** + * Output only. Indicates if the backup is automatic or user initiated. + * + * Generated from protobuf field bool is_automatic_backup = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsAutomaticBackup() + { + return $this->is_automatic_backup; + } + + /** + * Output only. Indicates if the backup is automatic or user initiated. + * + * Generated from protobuf field bool is_automatic_backup = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsAutomaticBackup($var) + { + GPBUtil::checkBool($var); + $this->is_automatic_backup = $var; + + return $this; + } + + /** + * Output only. Indicates if the backup can be used to restore the Autonomous + * Database. + * + * Generated from protobuf field bool is_restorable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsRestorable() + { + return $this->is_restorable; + } + + /** + * Output only. Indicates if the backup can be used to restore the Autonomous + * Database. + * + * Generated from protobuf field bool is_restorable = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsRestorable($var) + { + GPBUtil::checkBool($var); + $this->is_restorable = $var; + + return $this; + } + + /** + * Optional. The OCID of the key store of Oracle Vault. + * + * Generated from protobuf field string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKeyStoreId() + { + return $this->key_store_id; + } + + /** + * Optional. The OCID of the key store of Oracle Vault. + * + * Generated from protobuf field string key_store_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKeyStoreId($var) + { + GPBUtil::checkString($var, True); + $this->key_store_id = $var; + + return $this; + } + + /** + * Optional. The wallet name for Oracle Key Vault. + * + * Generated from protobuf field string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKeyStoreWallet() + { + return $this->key_store_wallet; + } + + /** + * Optional. The wallet name for Oracle Key Vault. + * + * Generated from protobuf field string key_store_wallet = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKeyStoreWallet($var) + { + GPBUtil::checkString($var, True); + $this->key_store_wallet = $var; + + return $this; + } + + /** + * Optional. The OCID of the key container that is used as the master + * encryption key in database transparent data encryption (TDE) operations. + * + * Generated from protobuf field string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKmsKeyId() + { + return $this->kms_key_id; + } + + /** + * Optional. The OCID of the key container that is used as the master + * encryption key in database transparent data encryption (TDE) operations. + * + * Generated from protobuf field string kms_key_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKmsKeyId($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_id = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getKmsKeyVersionId() + { + return $this->kms_key_version_id; + } + + /** + * 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. + * + * Generated from protobuf field string kms_key_version_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setKmsKeyVersionId($var) + { + GPBUtil::checkString($var, True); + $this->kms_key_version_id = $var; + + return $this; + } + + /** + * Output only. Additional information about the current lifecycle state. + * + * Generated from protobuf field string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLifecycleDetails() + { + return $this->lifecycle_details; + } + + /** + * Output only. Additional information about the current lifecycle state. + * + * Generated from protobuf field string lifecycle_details = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLifecycleDetails($var) + { + GPBUtil::checkString($var, True); + $this->lifecycle_details = $var; + + return $this; + } + + /** + * Output only. The lifecycle state of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLifecycleState() + { + return $this->lifecycle_state; + } + + /** + * Output only. The lifecycle state of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State lifecycle_state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLifecycleState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackupProperties\State::class); + $this->lifecycle_state = $var; + + return $this; + } + + /** + * Output only. The backup size in terabytes. + * + * Generated from protobuf field float size_tb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getSizeTb() + { + return $this->size_tb; + } + + /** + * Output only. The backup size in terabytes. + * + * Generated from protobuf field float size_tb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setSizeTb($var) + { + GPBUtil::checkFloat($var); + $this->size_tb = $var; + + return $this; + } + + /** + * Output only. Timestamp until when the backup will be available. + * + * Generated from protobuf field .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getAvailableTillTime() + { + return $this->available_till_time; + } + + public function hasAvailableTillTime() + { + return isset($this->available_till_time); + } + + public function clearAvailableTillTime() + { + unset($this->available_till_time); + } + + /** + * Output only. Timestamp until when the backup will be available. + * + * Generated from protobuf field .google.protobuf.Timestamp available_till_time = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setAvailableTillTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->available_till_time = $var; + + return $this; + } + + /** + * Output only. The date and time the backup completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The date and time the backup completed. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. The date and time the backup started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Output only. The date and time the backup started. + * + * Generated from protobuf field .google.protobuf.Timestamp start_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. The type of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Output only. The type of the backup. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type type = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackupProperties\Type::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. The OCID of the vault. + * + * Generated from protobuf field string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVaultId() + { + return $this->vault_id; + } + + /** + * Optional. The OCID of the vault. + * + * Generated from protobuf field string vault_id = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVaultId($var) + { + GPBUtil::checkString($var, True); + $this->vault_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties/State.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties/State.php new file mode 100644 index 00000000000..ea7dfe519e5 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties/State.php @@ -0,0 +1,92 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.State + */ +class State +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Indicates that the resource is in creating state. + * + * Generated from protobuf enum CREATING = 1; + */ + const CREATING = 1; + /** + * Indicates that the resource is in active state. + * + * Generated from protobuf enum ACTIVE = 2; + */ + const ACTIVE = 2; + /** + * Indicates that the resource is in deleting state. + * + * Generated from protobuf enum DELETING = 3; + */ + const DELETING = 3; + /** + * Indicates that the resource is in deleted state. + * + * Generated from protobuf enum DELETED = 4; + */ + const DELETED = 4; + /** + * Indicates that the resource is in failed state. + * + * Generated from protobuf enum FAILED = 6; + */ + const FAILED = 6; + /** + * Indicates that the resource is in updating state. + * + * Generated from protobuf enum UPDATING = 7; + */ + const UPDATING = 7; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::CREATING => 'CREATING', + self::ACTIVE => 'ACTIVE', + self::DELETING => 'DELETING', + self::DELETED => 'DELETED', + self::FAILED => 'FAILED', + self::UPDATING => 'UPDATING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackupProperties_State::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties/Type.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties/Type.php new file mode 100644 index 00000000000..4f5c2fd88ce --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseBackupProperties/Type.php @@ -0,0 +1,71 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseBackupProperties.Type + */ +class Type +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum TYPE_UNSPECIFIED = 0; + */ + const TYPE_UNSPECIFIED = 0; + /** + * Incremental backups. + * + * Generated from protobuf enum INCREMENTAL = 1; + */ + const INCREMENTAL = 1; + /** + * Full backups. + * + * Generated from protobuf enum FULL = 2; + */ + const FULL = 2; + /** + * Long term backups. + * + * Generated from protobuf enum LONG_TERM = 3; + */ + const LONG_TERM = 3; + + private static $valueToName = [ + self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', + self::INCREMENTAL => 'INCREMENTAL', + self::FULL => 'FULL', + self::LONG_TERM => 'LONG_TERM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Type::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackupProperties_Type::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseCharacterSet.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseCharacterSet.php new file mode 100644 index 00000000000..638716a2eaf --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseCharacterSet.php @@ -0,0 +1,148 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet + */ +class AutonomousDatabaseCharacterSet extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Autonomous Database Character Set resource in + * the following format: + * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The character set type for the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $character_set_type = 0; + /** + * Output only. The character set name for the Autonomous Database which is + * the ID in the resource name. + * + * Generated from protobuf field string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $character_set = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Autonomous Database Character Set resource in + * the following format: + * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set} + * @type int $character_set_type + * Output only. The character set type for the Autonomous Database. + * @type string $character_set + * Output only. The character set name for the Autonomous Database which is + * the ID in the resource name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabaseCharacterSet::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Autonomous Database Character Set resource in + * the following format: + * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Autonomous Database Character Set resource in + * the following format: + * projects/{project}/locations/{region}/autonomousDatabaseCharacterSets/{autonomous_database_character_set} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The character set type for the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCharacterSetType() + { + return $this->character_set_type; + } + + /** + * Output only. The character set type for the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType character_set_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCharacterSetType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseCharacterSet\CharacterSetType::class); + $this->character_set_type = $var; + + return $this; + } + + /** + * Output only. The character set name for the Autonomous Database which is + * the ID in the resource name. + * + * Generated from protobuf field string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCharacterSet() + { + return $this->character_set; + } + + /** + * Output only. The character set name for the Autonomous Database which is + * the ID in the resource name. + * + * Generated from protobuf field string character_set = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCharacterSet($var) + { + GPBUtil::checkString($var, True); + $this->character_set = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseCharacterSet/CharacterSetType.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseCharacterSet/CharacterSetType.php new file mode 100644 index 00000000000..fd0be0808cc --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseCharacterSet/CharacterSetType.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet.CharacterSetType + */ +class CharacterSetType +{ + /** + * Character set type is not specified. + * + * Generated from protobuf enum CHARACTER_SET_TYPE_UNSPECIFIED = 0; + */ + const CHARACTER_SET_TYPE_UNSPECIFIED = 0; + /** + * Character set type is set to database. + * + * Generated from protobuf enum DATABASE = 1; + */ + const DATABASE = 1; + /** + * Character set type is set to national. + * + * Generated from protobuf enum NATIONAL = 2; + */ + const NATIONAL = 2; + + private static $valueToName = [ + self::CHARACTER_SET_TYPE_UNSPECIFIED => 'CHARACTER_SET_TYPE_UNSPECIFIED', + self::DATABASE => 'DATABASE', + self::NATIONAL => 'NATIONAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CharacterSetType::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseCharacterSet_CharacterSetType::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseConnectionStrings.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseConnectionStrings.php new file mode 100644 index 00000000000..3684fe56dee --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseConnectionStrings.php @@ -0,0 +1,276 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings + */ +class AutonomousDatabaseConnectionStrings extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Returns all connection strings that can be used to connect to + * the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $all_connection_strings = null; + /** + * Output only. The database service provides the least level of resources to + * each SQL statement, but supports the most number of concurrent SQL + * statements. + * + * Generated from protobuf field string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dedicated = ''; + /** + * Output only. The database service provides the highest level of resources + * to each SQL statement. + * + * Generated from protobuf field string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $high = ''; + /** + * Output only. The database service provides the least level of resources to + * each SQL statement. + * + * Generated from protobuf field string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $low = ''; + /** + * Output only. The database service provides a lower level of resources to + * each SQL statement. + * + * Generated from protobuf field string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $medium = ''; + /** + * Output only. A list of connection string profiles to allow clients to + * group, filter, and select values based on the structured metadata. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $profiles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Cloud\OracleDatabase\V1\AllConnectionStrings $all_connection_strings + * Output only. Returns all connection strings that can be used to connect to + * the Autonomous Database. + * @type string $dedicated + * Output only. The database service provides the least level of resources to + * each SQL statement, but supports the most number of concurrent SQL + * statements. + * @type string $high + * Output only. The database service provides the highest level of resources + * to each SQL statement. + * @type string $low + * Output only. The database service provides the least level of resources to + * each SQL statement. + * @type string $medium + * Output only. The database service provides a lower level of resources to + * each SQL statement. + * @type array<\Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile>|\Google\Protobuf\Internal\RepeatedField $profiles + * Output only. A list of connection string profiles to allow clients to + * group, filter, and select values based on the structured metadata. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Returns all connection strings that can be used to connect to + * the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\OracleDatabase\V1\AllConnectionStrings|null + */ + public function getAllConnectionStrings() + { + return $this->all_connection_strings; + } + + public function hasAllConnectionStrings() + { + return isset($this->all_connection_strings); + } + + public function clearAllConnectionStrings() + { + unset($this->all_connection_strings); + } + + /** + * Output only. Returns all connection strings that can be used to connect to + * the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AllConnectionStrings all_connection_strings = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\OracleDatabase\V1\AllConnectionStrings $var + * @return $this + */ + public function setAllConnectionStrings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\AllConnectionStrings::class); + $this->all_connection_strings = $var; + + return $this; + } + + /** + * Output only. The database service provides the least level of resources to + * each SQL statement, but supports the most number of concurrent SQL + * statements. + * + * Generated from protobuf field string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDedicated() + { + return $this->dedicated; + } + + /** + * Output only. The database service provides the least level of resources to + * each SQL statement, but supports the most number of concurrent SQL + * statements. + * + * Generated from protobuf field string dedicated = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDedicated($var) + { + GPBUtil::checkString($var, True); + $this->dedicated = $var; + + return $this; + } + + /** + * Output only. The database service provides the highest level of resources + * to each SQL statement. + * + * Generated from protobuf field string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getHigh() + { + return $this->high; + } + + /** + * Output only. The database service provides the highest level of resources + * to each SQL statement. + * + * Generated from protobuf field string high = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setHigh($var) + { + GPBUtil::checkString($var, True); + $this->high = $var; + + return $this; + } + + /** + * Output only. The database service provides the least level of resources to + * each SQL statement. + * + * Generated from protobuf field string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLow() + { + return $this->low; + } + + /** + * Output only. The database service provides the least level of resources to + * each SQL statement. + * + * Generated from protobuf field string low = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLow($var) + { + GPBUtil::checkString($var, True); + $this->low = $var; + + return $this; + } + + /** + * Output only. The database service provides a lower level of resources to + * each SQL statement. + * + * Generated from protobuf field string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMedium() + { + return $this->medium; + } + + /** + * Output only. The database service provides a lower level of resources to + * each SQL statement. + * + * Generated from protobuf field string medium = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMedium($var) + { + GPBUtil::checkString($var, True); + $this->medium = $var; + + return $this; + } + + /** + * Output only. A list of connection string profiles to allow clients to + * group, filter, and select values based on the structured metadata. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProfiles() + { + return $this->profiles; + } + + /** + * Output only. A list of connection string profiles to allow clients to + * group, filter, and select values based on the structured metadata. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile profiles = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile::class); + $this->profiles = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseConnectionUrls.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseConnectionUrls.php new file mode 100644 index 00000000000..fe73d1ecf70 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseConnectionUrls.php @@ -0,0 +1,327 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls + */ +class AutonomousDatabaseConnectionUrls extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Oracle Application Express (APEX) URL. + * + * Generated from protobuf field string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $apex_uri = ''; + /** + * Output only. The URL of the Database Transforms for the Autonomous + * Database. + * + * Generated from protobuf field string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $database_transforms_uri = ''; + /** + * Output only. The URL of the Graph Studio for the Autonomous Database. + * + * Generated from protobuf field string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $graph_studio_uri = ''; + /** + * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the + * Autonomous Database. + * + * Generated from protobuf field string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $machine_learning_notebook_uri = ''; + /** + * Output only. The URL of Machine Learning user management the Autonomous + * Database. + * + * Generated from protobuf field string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $machine_learning_user_management_uri = ''; + /** + * Output only. The URL of the MongoDB API for the Autonomous Database. + * + * Generated from protobuf field string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $mongo_db_uri = ''; + /** + * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for + * the Autonomous Database. + * + * Generated from protobuf field string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ords_uri = ''; + /** + * Output only. The URL of the Oracle SQL Developer Web for the Autonomous + * Database. + * + * Generated from protobuf field string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sql_dev_web_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $apex_uri + * Output only. Oracle Application Express (APEX) URL. + * @type string $database_transforms_uri + * Output only. The URL of the Database Transforms for the Autonomous + * Database. + * @type string $graph_studio_uri + * Output only. The URL of the Graph Studio for the Autonomous Database. + * @type string $machine_learning_notebook_uri + * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the + * Autonomous Database. + * @type string $machine_learning_user_management_uri + * Output only. The URL of Machine Learning user management the Autonomous + * Database. + * @type string $mongo_db_uri + * Output only. The URL of the MongoDB API for the Autonomous Database. + * @type string $ords_uri + * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for + * the Autonomous Database. + * @type string $sql_dev_web_uri + * Output only. The URL of the Oracle SQL Developer Web for the Autonomous + * Database. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Oracle Application Express (APEX) URL. + * + * Generated from protobuf field string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApexUri() + { + return $this->apex_uri; + } + + /** + * Output only. Oracle Application Express (APEX) URL. + * + * Generated from protobuf field string apex_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApexUri($var) + { + GPBUtil::checkString($var, True); + $this->apex_uri = $var; + + return $this; + } + + /** + * Output only. The URL of the Database Transforms for the Autonomous + * Database. + * + * Generated from protobuf field string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDatabaseTransformsUri() + { + return $this->database_transforms_uri; + } + + /** + * Output only. The URL of the Database Transforms for the Autonomous + * Database. + * + * Generated from protobuf field string database_transforms_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDatabaseTransformsUri($var) + { + GPBUtil::checkString($var, True); + $this->database_transforms_uri = $var; + + return $this; + } + + /** + * Output only. The URL of the Graph Studio for the Autonomous Database. + * + * Generated from protobuf field string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGraphStudioUri() + { + return $this->graph_studio_uri; + } + + /** + * Output only. The URL of the Graph Studio for the Autonomous Database. + * + * Generated from protobuf field string graph_studio_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGraphStudioUri($var) + { + GPBUtil::checkString($var, True); + $this->graph_studio_uri = $var; + + return $this; + } + + /** + * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the + * Autonomous Database. + * + * Generated from protobuf field string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMachineLearningNotebookUri() + { + return $this->machine_learning_notebook_uri; + } + + /** + * Output only. The URL of the Oracle Machine Learning (OML) Notebook for the + * Autonomous Database. + * + * Generated from protobuf field string machine_learning_notebook_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMachineLearningNotebookUri($var) + { + GPBUtil::checkString($var, True); + $this->machine_learning_notebook_uri = $var; + + return $this; + } + + /** + * Output only. The URL of Machine Learning user management the Autonomous + * Database. + * + * Generated from protobuf field string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMachineLearningUserManagementUri() + { + return $this->machine_learning_user_management_uri; + } + + /** + * Output only. The URL of Machine Learning user management the Autonomous + * Database. + * + * Generated from protobuf field string machine_learning_user_management_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMachineLearningUserManagementUri($var) + { + GPBUtil::checkString($var, True); + $this->machine_learning_user_management_uri = $var; + + return $this; + } + + /** + * Output only. The URL of the MongoDB API for the Autonomous Database. + * + * Generated from protobuf field string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMongoDbUri() + { + return $this->mongo_db_uri; + } + + /** + * Output only. The URL of the MongoDB API for the Autonomous Database. + * + * Generated from protobuf field string mongo_db_uri = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMongoDbUri($var) + { + GPBUtil::checkString($var, True); + $this->mongo_db_uri = $var; + + return $this; + } + + /** + * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for + * the Autonomous Database. + * + * Generated from protobuf field string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOrdsUri() + { + return $this->ords_uri; + } + + /** + * Output only. The Oracle REST Data Services (ORDS) URL of the Web Access for + * the Autonomous Database. + * + * Generated from protobuf field string ords_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOrdsUri($var) + { + GPBUtil::checkString($var, True); + $this->ords_uri = $var; + + return $this; + } + + /** + * Output only. The URL of the Oracle SQL Developer Web for the Autonomous + * Database. + * + * Generated from protobuf field string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSqlDevWebUri() + { + return $this->sql_dev_web_uri; + } + + /** + * Output only. The URL of the Oracle SQL Developer Web for the Autonomous + * Database. + * + * Generated from protobuf field string sql_dev_web_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSqlDevWebUri($var) + { + GPBUtil::checkString($var, True); + $this->sql_dev_web_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties.php new file mode 100644 index 00000000000..84d85890f41 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties.php @@ -0,0 +1,2197 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties + */ +class AutonomousDatabaseProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. OCID of the Autonomous Database. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ocid = ''; + /** + * Optional. The number of compute servers for the Autonomous Database. + * + * Generated from protobuf field float compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $compute_count = 0.0; + /** + * Optional. The number of CPU cores to be made available to the database. + * + * Generated from protobuf field int32 cpu_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cpu_core_count = 0; + /** + * Optional. The size of the data stored in the database, in terabytes. + * + * Generated from protobuf field int32 data_storage_size_tb = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_storage_size_tb = 0; + /** + * Optional. The size of the data stored in the database, in gigabytes. + * + * Generated from protobuf field int32 data_storage_size_gb = 63 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_storage_size_gb = 0; + /** + * Required. The workload type of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $db_workload = 0; + /** + * Optional. The edition of the Autonomous Databases. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $db_edition = 0; + /** + * Optional. The character set for the Autonomous Database. The default is + * AL32UTF8. + * + * Generated from protobuf field string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $character_set = ''; + /** + * Optional. The national character set for the Autonomous Database. The + * default is AL16UTF16. + * + * Generated from protobuf field string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $n_character_set = ''; + /** + * Optional. The private endpoint IP address for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $private_endpoint_ip = ''; + /** + * Optional. The private endpoint label for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $private_endpoint_label = ''; + /** + * Optional. The Oracle Database version for the Autonomous Database. + * + * Generated from protobuf field string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $db_version = ''; + /** + * Optional. This field indicates if auto scaling is enabled for the + * Autonomous Database CPU core count. + * + * Generated from protobuf field bool is_auto_scaling_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_auto_scaling_enabled = false; + /** + * Optional. This field indicates if auto scaling is enabled for the + * Autonomous Database storage. + * + * Generated from protobuf field bool is_storage_auto_scaling_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_storage_auto_scaling_enabled = false; + /** + * Required. The license type used for the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $license_type = 0; + /** + * Optional. The list of customer contacts. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $customer_contacts; + /** + * Optional. The ID of the Oracle Cloud Infrastructure vault secret. + * + * Generated from protobuf field string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $secret_id = ''; + /** + * Optional. The ID of the Oracle Cloud Infrastructure vault. + * + * Generated from protobuf field string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vault_id = ''; + /** + * Optional. The maintenance schedule of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $maintenance_schedule_type = 0; + /** + * Optional. This field specifies if the Autonomous Database requires mTLS + * connections. + * + * Generated from protobuf field bool mtls_connection_required = 34 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $mtls_connection_required = false; + /** + * 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. + * + * Generated from protobuf field int32 backup_retention_period_days = 57 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $backup_retention_period_days = 0; + /** + * Output only. The amount of storage currently being used for user and system + * data, in terabytes. + * + * Generated from protobuf field double actual_used_data_storage_size_tb = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $actual_used_data_storage_size_tb = 0.0; + /** + * Output only. The amount of storage currently allocated for the database + * tables and billed for, rounded up in terabytes. + * + * Generated from protobuf field double allocated_storage_size_tb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $allocated_storage_size_tb = 0.0; + /** + * Output only. The details for the Oracle APEX Application Development. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $apex_details = null; + /** + * 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. + * + * Generated from protobuf field optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $are_primary_allowlisted_ips_used = null; + /** + * Output only. The details of the current lifestyle state of the Autonomous + * Database. + * + * Generated from protobuf field string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $lifecycle_details = ''; + /** + * Output only. The current lifecycle state of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The Autonomous Container Database OCID. + * + * Generated from protobuf field string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $autonomous_container_database_id = ''; + /** + * Output only. The list of available Oracle Database upgrade versions for an + * Autonomous Database. + * + * Generated from protobuf field repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $available_upgrade_versions; + /** + * Output only. The connection strings used to connect to an Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $connection_strings = null; + /** + * Output only. The Oracle Connection URLs for an Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $connection_urls = null; + /** + * Output only. This field indicates the number of seconds of data loss during + * a Data Guard failover. + * + * Generated from protobuf field .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $failed_data_recovery_duration = null; + /** + * Output only. The memory assigned to in-memory tables in an Autonomous + * Database. + * + * Generated from protobuf field int32 memory_table_gbs = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $memory_table_gbs = 0; + /** + * Output only. This field indicates whether the Autonomous Database has local + * (in-region) Data Guard enabled. + * + * Generated from protobuf field bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_local_data_guard_enabled = false; + /** + * Output only. This field indicates the maximum data loss limit for an + * Autonomous Database, in seconds. + * + * Generated from protobuf field int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $local_adg_auto_failover_max_data_loss_limit = 0; + /** + * Output only. The details of the Autonomous Data Guard standby database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $local_standby_db = null; + /** + * Output only. The amount of memory enabled per ECPU, in gigabytes. + * + * Generated from protobuf field int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $memory_per_oracle_compute_unit_gbs = 0; + /** + * Output only. This field indicates the local disaster recovery (DR) type of + * an Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $local_disaster_recovery_type = 0; + /** + * Output only. The current state of the Data Safe registration for the + * Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_safe_state = 0; + /** + * Output only. The current state of database management for the Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $database_management_state = 0; + /** + * Output only. This field indicates the current mode of the Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $open_mode = 0; + /** + * Output only. This field indicates the state of Operations Insights for the + * Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $operations_insights_state = 0; + /** + * Output only. The list of OCIDs of standby databases located in Autonomous + * Data Guard remote regions that are associated with the source database. + * + * Generated from protobuf field repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $peer_db_ids; + /** + * Output only. The permission level of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $permission_level = 0; + /** + * Output only. The private endpoint for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $private_endpoint = ''; + /** + * Output only. The refresh mode of the cloned Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $refreshable_mode = 0; + /** + * Output only. The refresh State of the clone. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $refreshable_state = 0; + /** + * Output only. The Data Guard role of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $role = 0; + /** + * Output only. The list and details of the scheduled operations of the + * Autonomous Database. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $scheduled_operation_details; + /** + * Output only. The SQL Web Developer URL for the Autonomous Database. + * + * Generated from protobuf field string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $sql_web_developer_url = ''; + /** + * Output only. The list of available regions that can be used to create a + * clone for the Autonomous Database. + * + * Generated from protobuf field repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $supported_clone_regions; + /** + * Output only. The storage space used by Autonomous Database, in gigabytes. + * + * Generated from protobuf field int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $used_data_storage_size_tbs = 0; + /** + * Output only. The Oracle Cloud Infrastructure link for the Autonomous + * Database. + * + * Generated from protobuf field string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $oci_url = ''; + /** + * Output only. The storage space used by automatic backups of Autonomous + * Database, in gigabytes. + * + * Generated from protobuf field float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $total_auto_backup_storage_size_gbs = 0.0; + /** + * Output only. The long term backup schedule of the Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $next_long_term_backup_time = null; + /** + * Output only. The date and time when maintenance will begin. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $maintenance_begin_time = null; + /** + * Output only. The date and time when maintenance will end. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $maintenance_end_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ocid + * Output only. OCID of the Autonomous Database. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * @type float $compute_count + * Optional. The number of compute servers for the Autonomous Database. + * @type int $cpu_core_count + * Optional. The number of CPU cores to be made available to the database. + * @type int $data_storage_size_tb + * Optional. The size of the data stored in the database, in terabytes. + * @type int $data_storage_size_gb + * Optional. The size of the data stored in the database, in gigabytes. + * @type int $db_workload + * Required. The workload type of the Autonomous Database. + * @type int $db_edition + * Optional. The edition of the Autonomous Databases. + * @type string $character_set + * Optional. The character set for the Autonomous Database. The default is + * AL32UTF8. + * @type string $n_character_set + * Optional. The national character set for the Autonomous Database. The + * default is AL16UTF16. + * @type string $private_endpoint_ip + * Optional. The private endpoint IP address for the Autonomous Database. + * @type string $private_endpoint_label + * Optional. The private endpoint label for the Autonomous Database. + * @type string $db_version + * Optional. The Oracle Database version for the Autonomous Database. + * @type bool $is_auto_scaling_enabled + * Optional. This field indicates if auto scaling is enabled for the + * Autonomous Database CPU core count. + * @type bool $is_storage_auto_scaling_enabled + * Optional. This field indicates if auto scaling is enabled for the + * Autonomous Database storage. + * @type int $license_type + * Required. The license type used for the Autonomous Database. + * @type array<\Google\Cloud\OracleDatabase\V1\CustomerContact>|\Google\Protobuf\Internal\RepeatedField $customer_contacts + * Optional. The list of customer contacts. + * @type string $secret_id + * Optional. The ID of the Oracle Cloud Infrastructure vault secret. + * @type string $vault_id + * Optional. The ID of the Oracle Cloud Infrastructure vault. + * @type int $maintenance_schedule_type + * Optional. The maintenance schedule of the Autonomous Database. + * @type bool $mtls_connection_required + * Optional. This field specifies if the Autonomous Database requires mTLS + * connections. + * @type int $backup_retention_period_days + * 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. + * @type float $actual_used_data_storage_size_tb + * Output only. The amount of storage currently being used for user and system + * data, in terabytes. + * @type float $allocated_storage_size_tb + * Output only. The amount of storage currently allocated for the database + * tables and billed for, rounded up in terabytes. + * @type \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseApex $apex_details + * Output only. The details for the Oracle APEX Application Development. + * @type bool $are_primary_allowlisted_ips_used + * 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. + * @type string $lifecycle_details + * Output only. The details of the current lifestyle state of the Autonomous + * Database. + * @type int $state + * Output only. The current lifecycle state of the Autonomous Database. + * @type string $autonomous_container_database_id + * Output only. The Autonomous Container Database OCID. + * @type array|\Google\Protobuf\Internal\RepeatedField $available_upgrade_versions + * Output only. The list of available Oracle Database upgrade versions for an + * Autonomous Database. + * @type \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseConnectionStrings $connection_strings + * Output only. The connection strings used to connect to an Autonomous + * Database. + * @type \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseConnectionUrls $connection_urls + * Output only. The Oracle Connection URLs for an Autonomous Database. + * @type \Google\Protobuf\Duration $failed_data_recovery_duration + * Output only. This field indicates the number of seconds of data loss during + * a Data Guard failover. + * @type int $memory_table_gbs + * Output only. The memory assigned to in-memory tables in an Autonomous + * Database. + * @type bool $is_local_data_guard_enabled + * Output only. This field indicates whether the Autonomous Database has local + * (in-region) Data Guard enabled. + * @type int $local_adg_auto_failover_max_data_loss_limit + * Output only. This field indicates the maximum data loss limit for an + * Autonomous Database, in seconds. + * @type \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseStandbySummary $local_standby_db + * Output only. The details of the Autonomous Data Guard standby database. + * @type int $memory_per_oracle_compute_unit_gbs + * Output only. The amount of memory enabled per ECPU, in gigabytes. + * @type int $local_disaster_recovery_type + * Output only. This field indicates the local disaster recovery (DR) type of + * an Autonomous Database. + * @type int $data_safe_state + * Output only. The current state of the Data Safe registration for the + * Autonomous Database. + * @type int $database_management_state + * Output only. The current state of database management for the Autonomous + * Database. + * @type int $open_mode + * Output only. This field indicates the current mode of the Autonomous + * Database. + * @type int $operations_insights_state + * Output only. This field indicates the state of Operations Insights for the + * Autonomous Database. + * @type array|\Google\Protobuf\Internal\RepeatedField $peer_db_ids + * Output only. The list of OCIDs of standby databases located in Autonomous + * Data Guard remote regions that are associated with the source database. + * @type int $permission_level + * Output only. The permission level of the Autonomous Database. + * @type string $private_endpoint + * Output only. The private endpoint for the Autonomous Database. + * @type int $refreshable_mode + * Output only. The refresh mode of the cloned Autonomous Database. + * @type int $refreshable_state + * Output only. The refresh State of the clone. + * @type int $role + * Output only. The Data Guard role of the Autonomous Database. + * @type array<\Google\Cloud\OracleDatabase\V1\ScheduledOperationDetails>|\Google\Protobuf\Internal\RepeatedField $scheduled_operation_details + * Output only. The list and details of the scheduled operations of the + * Autonomous Database. + * @type string $sql_web_developer_url + * Output only. The SQL Web Developer URL for the Autonomous Database. + * @type array|\Google\Protobuf\Internal\RepeatedField $supported_clone_regions + * Output only. The list of available regions that can be used to create a + * clone for the Autonomous Database. + * @type int $used_data_storage_size_tbs + * Output only. The storage space used by Autonomous Database, in gigabytes. + * @type string $oci_url + * Output only. The Oracle Cloud Infrastructure link for the Autonomous + * Database. + * @type float $total_auto_backup_storage_size_gbs + * Output only. The storage space used by automatic backups of Autonomous + * Database, in gigabytes. + * @type \Google\Protobuf\Timestamp $next_long_term_backup_time + * Output only. The long term backup schedule of the Autonomous Database. + * @type \Google\Protobuf\Timestamp $maintenance_begin_time + * Output only. The date and time when maintenance will begin. + * @type \Google\Protobuf\Timestamp $maintenance_end_time + * Output only. The date and time when maintenance will end. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. OCID of the Autonomous Database. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOcid() + { + return $this->ocid; + } + + /** + * Output only. OCID of the Autonomous Database. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOcid($var) + { + GPBUtil::checkString($var, True); + $this->ocid = $var; + + return $this; + } + + /** + * Optional. The number of compute servers for the Autonomous Database. + * + * Generated from protobuf field float compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getComputeCount() + { + return $this->compute_count; + } + + /** + * Optional. The number of compute servers for the Autonomous Database. + * + * Generated from protobuf field float compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setComputeCount($var) + { + GPBUtil::checkFloat($var); + $this->compute_count = $var; + + return $this; + } + + /** + * Optional. The number of CPU cores to be made available to the database. + * + * Generated from protobuf field int32 cpu_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCpuCoreCount() + { + return $this->cpu_core_count; + } + + /** + * Optional. The number of CPU cores to be made available to the database. + * + * Generated from protobuf field int32 cpu_core_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCpuCoreCount($var) + { + GPBUtil::checkInt32($var); + $this->cpu_core_count = $var; + + return $this; + } + + /** + * Optional. The size of the data stored in the database, in terabytes. + * + * Generated from protobuf field int32 data_storage_size_tb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDataStorageSizeTb() + { + return $this->data_storage_size_tb; + } + + /** + * Optional. The size of the data stored in the database, in terabytes. + * + * Generated from protobuf field int32 data_storage_size_tb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDataStorageSizeTb($var) + { + GPBUtil::checkInt32($var); + $this->data_storage_size_tb = $var; + + return $this; + } + + /** + * Optional. The size of the data stored in the database, in gigabytes. + * + * Generated from protobuf field int32 data_storage_size_gb = 63 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDataStorageSizeGb() + { + return $this->data_storage_size_gb; + } + + /** + * Optional. The size of the data stored in the database, in gigabytes. + * + * Generated from protobuf field int32 data_storage_size_gb = 63 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDataStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->data_storage_size_gb = $var; + + return $this; + } + + /** + * Required. The workload type of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getDbWorkload() + { + return $this->db_workload; + } + + /** + * Required. The workload type of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DBWorkload db_workload = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setDbWorkload($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DBWorkload::class); + $this->db_workload = $var; + + return $this; + } + + /** + * Optional. The edition of the Autonomous Databases. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDbEdition() + { + return $this->db_edition; + } + + /** + * Optional. The edition of the Autonomous Databases. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition db_edition = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDbEdition($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\DatabaseEdition::class); + $this->db_edition = $var; + + return $this; + } + + /** + * Optional. The character set for the Autonomous Database. The default is + * AL32UTF8. + * + * Generated from protobuf field string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getCharacterSet() + { + return $this->character_set; + } + + /** + * Optional. The character set for the Autonomous Database. The default is + * AL32UTF8. + * + * Generated from protobuf field string character_set = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setCharacterSet($var) + { + GPBUtil::checkString($var, True); + $this->character_set = $var; + + return $this; + } + + /** + * Optional. The national character set for the Autonomous Database. The + * default is AL16UTF16. + * + * Generated from protobuf field string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getNCharacterSet() + { + return $this->n_character_set; + } + + /** + * Optional. The national character set for the Autonomous Database. The + * default is AL16UTF16. + * + * Generated from protobuf field string n_character_set = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setNCharacterSet($var) + { + GPBUtil::checkString($var, True); + $this->n_character_set = $var; + + return $this; + } + + /** + * Optional. The private endpoint IP address for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPrivateEndpointIp() + { + return $this->private_endpoint_ip; + } + + /** + * Optional. The private endpoint IP address for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint_ip = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPrivateEndpointIp($var) + { + GPBUtil::checkString($var, True); + $this->private_endpoint_ip = $var; + + return $this; + } + + /** + * Optional. The private endpoint label for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPrivateEndpointLabel() + { + return $this->private_endpoint_label; + } + + /** + * Optional. The private endpoint label for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint_label = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPrivateEndpointLabel($var) + { + GPBUtil::checkString($var, True); + $this->private_endpoint_label = $var; + + return $this; + } + + /** + * Optional. The Oracle Database version for the Autonomous Database. + * + * Generated from protobuf field string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDbVersion() + { + return $this->db_version; + } + + /** + * Optional. The Oracle Database version for the Autonomous Database. + * + * Generated from protobuf field string db_version = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDbVersion($var) + { + GPBUtil::checkString($var, True); + $this->db_version = $var; + + return $this; + } + + /** + * Optional. This field indicates if auto scaling is enabled for the + * Autonomous Database CPU core count. + * + * Generated from protobuf field bool is_auto_scaling_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsAutoScalingEnabled() + { + return $this->is_auto_scaling_enabled; + } + + /** + * Optional. This field indicates if auto scaling is enabled for the + * Autonomous Database CPU core count. + * + * Generated from protobuf field bool is_auto_scaling_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsAutoScalingEnabled($var) + { + GPBUtil::checkBool($var); + $this->is_auto_scaling_enabled = $var; + + return $this; + } + + /** + * Optional. This field indicates if auto scaling is enabled for the + * Autonomous Database storage. + * + * Generated from protobuf field bool is_storage_auto_scaling_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsStorageAutoScalingEnabled() + { + return $this->is_storage_auto_scaling_enabled; + } + + /** + * Optional. This field indicates if auto scaling is enabled for the + * Autonomous Database storage. + * + * Generated from protobuf field bool is_storage_auto_scaling_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsStorageAutoScalingEnabled($var) + { + GPBUtil::checkBool($var); + $this->is_storage_auto_scaling_enabled = $var; + + return $this; + } + + /** + * Required. The license type used for the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getLicenseType() + { + return $this->license_type; + } + + /** + * Required. The license type used for the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType license_type = 16 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setLicenseType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\LicenseType::class); + $this->license_type = $var; + + return $this; + } + + /** + * Optional. The list of customer contacts. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomerContacts() + { + return $this->customer_contacts; + } + + /** + * Optional. The list of customer contacts. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 17 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\OracleDatabase\V1\CustomerContact>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomerContacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\CustomerContact::class); + $this->customer_contacts = $arr; + + return $this; + } + + /** + * Optional. The ID of the Oracle Cloud Infrastructure vault secret. + * + * Generated from protobuf field string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSecretId() + { + return $this->secret_id; + } + + /** + * Optional. The ID of the Oracle Cloud Infrastructure vault secret. + * + * Generated from protobuf field string secret_id = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSecretId($var) + { + GPBUtil::checkString($var, True); + $this->secret_id = $var; + + return $this; + } + + /** + * Optional. The ID of the Oracle Cloud Infrastructure vault. + * + * Generated from protobuf field string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVaultId() + { + return $this->vault_id; + } + + /** + * Optional. The ID of the Oracle Cloud Infrastructure vault. + * + * Generated from protobuf field string vault_id = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVaultId($var) + { + GPBUtil::checkString($var, True); + $this->vault_id = $var; + + return $this; + } + + /** + * Optional. The maintenance schedule of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaintenanceScheduleType() + { + return $this->maintenance_schedule_type; + } + + /** + * Optional. The maintenance schedule of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType maintenance_schedule_type = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaintenanceScheduleType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\MaintenanceScheduleType::class); + $this->maintenance_schedule_type = $var; + + return $this; + } + + /** + * Optional. This field specifies if the Autonomous Database requires mTLS + * connections. + * + * Generated from protobuf field bool mtls_connection_required = 34 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getMtlsConnectionRequired() + { + return $this->mtls_connection_required; + } + + /** + * Optional. This field specifies if the Autonomous Database requires mTLS + * connections. + * + * Generated from protobuf field bool mtls_connection_required = 34 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setMtlsConnectionRequired($var) + { + GPBUtil::checkBool($var); + $this->mtls_connection_required = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 backup_retention_period_days = 57 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getBackupRetentionPeriodDays() + { + return $this->backup_retention_period_days; + } + + /** + * 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. + * + * Generated from protobuf field int32 backup_retention_period_days = 57 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setBackupRetentionPeriodDays($var) + { + GPBUtil::checkInt32($var); + $this->backup_retention_period_days = $var; + + return $this; + } + + /** + * Output only. The amount of storage currently being used for user and system + * data, in terabytes. + * + * Generated from protobuf field double actual_used_data_storage_size_tb = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getActualUsedDataStorageSizeTb() + { + return $this->actual_used_data_storage_size_tb; + } + + /** + * Output only. The amount of storage currently being used for user and system + * data, in terabytes. + * + * Generated from protobuf field double actual_used_data_storage_size_tb = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setActualUsedDataStorageSizeTb($var) + { + GPBUtil::checkDouble($var); + $this->actual_used_data_storage_size_tb = $var; + + return $this; + } + + /** + * Output only. The amount of storage currently allocated for the database + * tables and billed for, rounded up in terabytes. + * + * Generated from protobuf field double allocated_storage_size_tb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getAllocatedStorageSizeTb() + { + return $this->allocated_storage_size_tb; + } + + /** + * Output only. The amount of storage currently allocated for the database + * tables and billed for, rounded up in terabytes. + * + * Generated from protobuf field double allocated_storage_size_tb = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setAllocatedStorageSizeTb($var) + { + GPBUtil::checkDouble($var); + $this->allocated_storage_size_tb = $var; + + return $this; + } + + /** + * Output only. The details for the Oracle APEX Application Development. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseApex|null + */ + public function getApexDetails() + { + return $this->apex_details; + } + + public function hasApexDetails() + { + return isset($this->apex_details); + } + + public function clearApexDetails() + { + unset($this->apex_details); + } + + /** + * Output only. The details for the Oracle APEX Application Development. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseApex apex_details = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseApex $var + * @return $this + */ + public function setApexDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseApex::class); + $this->apex_details = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getArePrimaryAllowlistedIpsUsed() + { + return isset($this->are_primary_allowlisted_ips_used) ? $this->are_primary_allowlisted_ips_used : false; + } + + public function hasArePrimaryAllowlistedIpsUsed() + { + return isset($this->are_primary_allowlisted_ips_used); + } + + public function clearArePrimaryAllowlistedIpsUsed() + { + unset($this->are_primary_allowlisted_ips_used); + } + + /** + * 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. + * + * Generated from protobuf field optional bool are_primary_allowlisted_ips_used = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setArePrimaryAllowlistedIpsUsed($var) + { + GPBUtil::checkBool($var); + $this->are_primary_allowlisted_ips_used = $var; + + return $this; + } + + /** + * Output only. The details of the current lifestyle state of the Autonomous + * Database. + * + * Generated from protobuf field string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLifecycleDetails() + { + return $this->lifecycle_details; + } + + /** + * Output only. The details of the current lifestyle state of the Autonomous + * Database. + * + * Generated from protobuf field string lifecycle_details = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLifecycleDetails($var) + { + GPBUtil::checkString($var, True); + $this->lifecycle_details = $var; + + return $this; + } + + /** + * Output only. The current lifecycle state of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current lifecycle state of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.State state = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The Autonomous Container Database OCID. + * + * Generated from protobuf field string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAutonomousContainerDatabaseId() + { + return $this->autonomous_container_database_id; + } + + /** + * Output only. The Autonomous Container Database OCID. + * + * Generated from protobuf field string autonomous_container_database_id = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAutonomousContainerDatabaseId($var) + { + GPBUtil::checkString($var, True); + $this->autonomous_container_database_id = $var; + + return $this; + } + + /** + * Output only. The list of available Oracle Database upgrade versions for an + * Autonomous Database. + * + * Generated from protobuf field repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAvailableUpgradeVersions() + { + return $this->available_upgrade_versions; + } + + /** + * Output only. The list of available Oracle Database upgrade versions for an + * Autonomous Database. + * + * Generated from protobuf field repeated string available_upgrade_versions = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAvailableUpgradeVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->available_upgrade_versions = $arr; + + return $this; + } + + /** + * Output only. The connection strings used to connect to an Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseConnectionStrings|null + */ + public function getConnectionStrings() + { + return $this->connection_strings; + } + + public function hasConnectionStrings() + { + return isset($this->connection_strings); + } + + public function clearConnectionStrings() + { + unset($this->connection_strings); + } + + /** + * Output only. The connection strings used to connect to an Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionStrings connection_strings = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseConnectionStrings $var + * @return $this + */ + public function setConnectionStrings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseConnectionStrings::class); + $this->connection_strings = $var; + + return $this; + } + + /** + * Output only. The Oracle Connection URLs for an Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseConnectionUrls|null + */ + public function getConnectionUrls() + { + return $this->connection_urls; + } + + public function hasConnectionUrls() + { + return isset($this->connection_urls); + } + + public function clearConnectionUrls() + { + unset($this->connection_urls); + } + + /** + * Output only. The Oracle Connection URLs for an Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseConnectionUrls connection_urls = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseConnectionUrls $var + * @return $this + */ + public function setConnectionUrls($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseConnectionUrls::class); + $this->connection_urls = $var; + + return $this; + } + + /** + * Output only. This field indicates the number of seconds of data loss during + * a Data Guard failover. + * + * Generated from protobuf field .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getFailedDataRecoveryDuration() + { + return $this->failed_data_recovery_duration; + } + + public function hasFailedDataRecoveryDuration() + { + return isset($this->failed_data_recovery_duration); + } + + public function clearFailedDataRecoveryDuration() + { + unset($this->failed_data_recovery_duration); + } + + /** + * Output only. This field indicates the number of seconds of data loss during + * a Data Guard failover. + * + * Generated from protobuf field .google.protobuf.Duration failed_data_recovery_duration = 31 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setFailedDataRecoveryDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->failed_data_recovery_duration = $var; + + return $this; + } + + /** + * Output only. The memory assigned to in-memory tables in an Autonomous + * Database. + * + * Generated from protobuf field int32 memory_table_gbs = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMemoryTableGbs() + { + return $this->memory_table_gbs; + } + + /** + * Output only. The memory assigned to in-memory tables in an Autonomous + * Database. + * + * Generated from protobuf field int32 memory_table_gbs = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMemoryTableGbs($var) + { + GPBUtil::checkInt32($var); + $this->memory_table_gbs = $var; + + return $this; + } + + /** + * Output only. This field indicates whether the Autonomous Database has local + * (in-region) Data Guard enabled. + * + * Generated from protobuf field bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsLocalDataGuardEnabled() + { + return $this->is_local_data_guard_enabled; + } + + /** + * Output only. This field indicates whether the Autonomous Database has local + * (in-region) Data Guard enabled. + * + * Generated from protobuf field bool is_local_data_guard_enabled = 33 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsLocalDataGuardEnabled($var) + { + GPBUtil::checkBool($var); + $this->is_local_data_guard_enabled = $var; + + return $this; + } + + /** + * Output only. This field indicates the maximum data loss limit for an + * Autonomous Database, in seconds. + * + * Generated from protobuf field int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLocalAdgAutoFailoverMaxDataLossLimit() + { + return $this->local_adg_auto_failover_max_data_loss_limit; + } + + /** + * Output only. This field indicates the maximum data loss limit for an + * Autonomous Database, in seconds. + * + * Generated from protobuf field int32 local_adg_auto_failover_max_data_loss_limit = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLocalAdgAutoFailoverMaxDataLossLimit($var) + { + GPBUtil::checkInt32($var); + $this->local_adg_auto_failover_max_data_loss_limit = $var; + + return $this; + } + + /** + * Output only. The details of the Autonomous Data Guard standby database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseStandbySummary|null + */ + public function getLocalStandbyDb() + { + return $this->local_standby_db; + } + + public function hasLocalStandbyDb() + { + return isset($this->local_standby_db); + } + + public function clearLocalStandbyDb() + { + unset($this->local_standby_db); + } + + /** + * Output only. The details of the Autonomous Data Guard standby database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary local_standby_db = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseStandbySummary $var + * @return $this + */ + public function setLocalStandbyDb($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseStandbySummary::class); + $this->local_standby_db = $var; + + return $this; + } + + /** + * Output only. The amount of memory enabled per ECPU, in gigabytes. + * + * Generated from protobuf field int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMemoryPerOracleComputeUnitGbs() + { + return $this->memory_per_oracle_compute_unit_gbs; + } + + /** + * Output only. The amount of memory enabled per ECPU, in gigabytes. + * + * Generated from protobuf field int32 memory_per_oracle_compute_unit_gbs = 37 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMemoryPerOracleComputeUnitGbs($var) + { + GPBUtil::checkInt32($var); + $this->memory_per_oracle_compute_unit_gbs = $var; + + return $this; + } + + /** + * Output only. This field indicates the local disaster recovery (DR) type of + * an Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getLocalDisasterRecoveryType() + { + return $this->local_disaster_recovery_type; + } + + /** + * Output only. This field indicates the local disaster recovery (DR) type of + * an Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType local_disaster_recovery_type = 38 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setLocalDisasterRecoveryType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\LocalDisasterRecoveryType::class); + $this->local_disaster_recovery_type = $var; + + return $this; + } + + /** + * Output only. The current state of the Data Safe registration for the + * Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDataSafeState() + { + return $this->data_safe_state; + } + + /** + * Output only. The current state of the Data Safe registration for the + * Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState data_safe_state = 39 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDataSafeState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\DataSafeState::class); + $this->data_safe_state = $var; + + return $this; + } + + /** + * Output only. The current state of database management for the Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDatabaseManagementState() + { + return $this->database_management_state; + } + + /** + * Output only. The current state of database management for the Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState database_management_state = 40 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDatabaseManagementState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\DatabaseManagementState::class); + $this->database_management_state = $var; + + return $this; + } + + /** + * Output only. This field indicates the current mode of the Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getOpenMode() + { + return $this->open_mode; + } + + /** + * Output only. This field indicates the current mode of the Autonomous + * Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode open_mode = 41 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setOpenMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\OpenMode::class); + $this->open_mode = $var; + + return $this; + } + + /** + * Output only. This field indicates the state of Operations Insights for the + * Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getOperationsInsightsState() + { + return $this->operations_insights_state; + } + + /** + * Output only. This field indicates the state of Operations Insights for the + * Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.OperationsInsightsState operations_insights_state = 42 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setOperationsInsightsState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\OperationsInsightsState::class); + $this->operations_insights_state = $var; + + return $this; + } + + /** + * Output only. The list of OCIDs of standby databases located in Autonomous + * Data Guard remote regions that are associated with the source database. + * + * Generated from protobuf field repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPeerDbIds() + { + return $this->peer_db_ids; + } + + /** + * Output only. The list of OCIDs of standby databases located in Autonomous + * Data Guard remote regions that are associated with the source database. + * + * Generated from protobuf field repeated string peer_db_ids = 43 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPeerDbIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->peer_db_ids = $arr; + + return $this; + } + + /** + * Output only. The permission level of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getPermissionLevel() + { + return $this->permission_level; + } + + /** + * Output only. The permission level of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel permission_level = 44 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setPermissionLevel($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\PermissionLevel::class); + $this->permission_level = $var; + + return $this; + } + + /** + * Output only. The private endpoint for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getPrivateEndpoint() + { + return $this->private_endpoint; + } + + /** + * Output only. The private endpoint for the Autonomous Database. + * + * Generated from protobuf field string private_endpoint = 45 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setPrivateEndpoint($var) + { + GPBUtil::checkString($var, True); + $this->private_endpoint = $var; + + return $this; + } + + /** + * Output only. The refresh mode of the cloned Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRefreshableMode() + { + return $this->refreshable_mode; + } + + /** + * Output only. The refresh mode of the cloned Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode refreshable_mode = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRefreshableMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\RefreshableMode::class); + $this->refreshable_mode = $var; + + return $this; + } + + /** + * Output only. The refresh State of the clone. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRefreshableState() + { + return $this->refreshable_state; + } + + /** + * Output only. The refresh State of the clone. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState refreshable_state = 47 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRefreshableState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\RefreshableState::class); + $this->refreshable_state = $var; + + return $this; + } + + /** + * Output only. The Data Guard role of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getRole() + { + return $this->role; + } + + /** + * Output only. The Data Guard role of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role role = 48 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties\Role::class); + $this->role = $var; + + return $this; + } + + /** + * Output only. The list and details of the scheduled operations of the + * Autonomous Database. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getScheduledOperationDetails() + { + return $this->scheduled_operation_details; + } + + /** + * Output only. The list and details of the scheduled operations of the + * Autonomous Database. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.ScheduledOperationDetails scheduled_operation_details = 64 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\OracleDatabase\V1\ScheduledOperationDetails>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setScheduledOperationDetails($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\ScheduledOperationDetails::class); + $this->scheduled_operation_details = $arr; + + return $this; + } + + /** + * Output only. The SQL Web Developer URL for the Autonomous Database. + * + * Generated from protobuf field string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getSqlWebDeveloperUrl() + { + return $this->sql_web_developer_url; + } + + /** + * Output only. The SQL Web Developer URL for the Autonomous Database. + * + * Generated from protobuf field string sql_web_developer_url = 50 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setSqlWebDeveloperUrl($var) + { + GPBUtil::checkString($var, True); + $this->sql_web_developer_url = $var; + + return $this; + } + + /** + * Output only. The list of available regions that can be used to create a + * clone for the Autonomous Database. + * + * Generated from protobuf field repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSupportedCloneRegions() + { + return $this->supported_clone_regions; + } + + /** + * Output only. The list of available regions that can be used to create a + * clone for the Autonomous Database. + * + * Generated from protobuf field repeated string supported_clone_regions = 51 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSupportedCloneRegions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->supported_clone_regions = $arr; + + return $this; + } + + /** + * Output only. The storage space used by Autonomous Database, in gigabytes. + * + * Generated from protobuf field int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getUsedDataStorageSizeTbs() + { + return $this->used_data_storage_size_tbs; + } + + /** + * Output only. The storage space used by Autonomous Database, in gigabytes. + * + * Generated from protobuf field int32 used_data_storage_size_tbs = 53 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setUsedDataStorageSizeTbs($var) + { + GPBUtil::checkInt32($var); + $this->used_data_storage_size_tbs = $var; + + return $this; + } + + /** + * Output only. The Oracle Cloud Infrastructure link for the Autonomous + * Database. + * + * Generated from protobuf field string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOciUrl() + { + return $this->oci_url; + } + + /** + * Output only. The Oracle Cloud Infrastructure link for the Autonomous + * Database. + * + * Generated from protobuf field string oci_url = 54 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOciUrl($var) + { + GPBUtil::checkString($var, True); + $this->oci_url = $var; + + return $this; + } + + /** + * Output only. The storage space used by automatic backups of Autonomous + * Database, in gigabytes. + * + * Generated from protobuf field float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getTotalAutoBackupStorageSizeGbs() + { + return $this->total_auto_backup_storage_size_gbs; + } + + /** + * Output only. The storage space used by automatic backups of Autonomous + * Database, in gigabytes. + * + * Generated from protobuf field float total_auto_backup_storage_size_gbs = 59 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setTotalAutoBackupStorageSizeGbs($var) + { + GPBUtil::checkFloat($var); + $this->total_auto_backup_storage_size_gbs = $var; + + return $this; + } + + /** + * Output only. The long term backup schedule of the Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getNextLongTermBackupTime() + { + return $this->next_long_term_backup_time; + } + + public function hasNextLongTermBackupTime() + { + return isset($this->next_long_term_backup_time); + } + + public function clearNextLongTermBackupTime() + { + unset($this->next_long_term_backup_time); + } + + /** + * Output only. The long term backup schedule of the Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp next_long_term_backup_time = 60 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setNextLongTermBackupTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->next_long_term_backup_time = $var; + + return $this; + } + + /** + * Output only. The date and time when maintenance will begin. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getMaintenanceBeginTime() + { + return $this->maintenance_begin_time; + } + + public function hasMaintenanceBeginTime() + { + return isset($this->maintenance_begin_time); + } + + public function clearMaintenanceBeginTime() + { + unset($this->maintenance_begin_time); + } + + /** + * Output only. The date and time when maintenance will begin. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_begin_time = 65 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setMaintenanceBeginTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->maintenance_begin_time = $var; + + return $this; + } + + /** + * Output only. The date and time when maintenance will end. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getMaintenanceEndTime() + { + return $this->maintenance_end_time; + } + + public function hasMaintenanceEndTime() + { + return isset($this->maintenance_end_time); + } + + public function clearMaintenanceEndTime() + { + unset($this->maintenance_end_time); + } + + /** + * Output only. The date and time when maintenance will end. + * + * Generated from protobuf field .google.protobuf.Timestamp maintenance_end_time = 66 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setMaintenanceEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->maintenance_end_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DataSafeState.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DataSafeState.php new file mode 100644 index 00000000000..156d722b585 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DataSafeState.php @@ -0,0 +1,85 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DataSafeState + */ +class DataSafeState +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum DATA_SAFE_STATE_UNSPECIFIED = 0; + */ + const DATA_SAFE_STATE_UNSPECIFIED = 0; + /** + * Registering data safe state. + * + * Generated from protobuf enum REGISTERING = 1; + */ + const REGISTERING = 1; + /** + * Registered data safe state. + * + * Generated from protobuf enum REGISTERED = 2; + */ + const REGISTERED = 2; + /** + * Deregistering data safe state. + * + * Generated from protobuf enum DEREGISTERING = 3; + */ + const DEREGISTERING = 3; + /** + * Not registered data safe state. + * + * Generated from protobuf enum NOT_REGISTERED = 4; + */ + const NOT_REGISTERED = 4; + /** + * Failed data safe state. + * + * Generated from protobuf enum FAILED = 5; + */ + const FAILED = 5; + + private static $valueToName = [ + self::DATA_SAFE_STATE_UNSPECIFIED => 'DATA_SAFE_STATE_UNSPECIFIED', + self::REGISTERING => 'REGISTERING', + self::REGISTERED => 'REGISTERED', + self::DEREGISTERING => 'DEREGISTERING', + self::NOT_REGISTERED => 'NOT_REGISTERED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DataSafeState::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_DataSafeState::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DatabaseEdition.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DatabaseEdition.php new file mode 100644 index 00000000000..23aaf036fc3 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DatabaseEdition.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseEdition + */ +class DatabaseEdition +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum DATABASE_EDITION_UNSPECIFIED = 0; + */ + const DATABASE_EDITION_UNSPECIFIED = 0; + /** + * Standard Database Edition + * + * Generated from protobuf enum STANDARD_EDITION = 1; + */ + const STANDARD_EDITION = 1; + /** + * Enterprise Database Edition + * + * Generated from protobuf enum ENTERPRISE_EDITION = 2; + */ + const ENTERPRISE_EDITION = 2; + + private static $valueToName = [ + self::DATABASE_EDITION_UNSPECIFIED => 'DATABASE_EDITION_UNSPECIFIED', + self::STANDARD_EDITION => 'STANDARD_EDITION', + self::ENTERPRISE_EDITION => 'ENTERPRISE_EDITION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DatabaseEdition::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_DatabaseEdition::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DatabaseManagementState.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DatabaseManagementState.php new file mode 100644 index 00000000000..b88dab5a98e --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/DatabaseManagementState.php @@ -0,0 +1,92 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.DatabaseManagementState + */ +class DatabaseManagementState +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum DATABASE_MANAGEMENT_STATE_UNSPECIFIED = 0; + */ + const DATABASE_MANAGEMENT_STATE_UNSPECIFIED = 0; + /** + * Enabling Database Management state + * + * Generated from protobuf enum ENABLING = 1; + */ + const ENABLING = 1; + /** + * Enabled Database Management state + * + * Generated from protobuf enum ENABLED = 2; + */ + const ENABLED = 2; + /** + * Disabling Database Management state + * + * Generated from protobuf enum DISABLING = 3; + */ + const DISABLING = 3; + /** + * Not Enabled Database Management state + * + * Generated from protobuf enum NOT_ENABLED = 4; + */ + const NOT_ENABLED = 4; + /** + * Failed enabling Database Management state + * + * Generated from protobuf enum FAILED_ENABLING = 5; + */ + const FAILED_ENABLING = 5; + /** + * Failed disabling Database Management state + * + * Generated from protobuf enum FAILED_DISABLING = 6; + */ + const FAILED_DISABLING = 6; + + private static $valueToName = [ + self::DATABASE_MANAGEMENT_STATE_UNSPECIFIED => 'DATABASE_MANAGEMENT_STATE_UNSPECIFIED', + self::ENABLING => 'ENABLING', + self::ENABLED => 'ENABLED', + self::DISABLING => 'DISABLING', + self::NOT_ENABLED => 'NOT_ENABLED', + self::FAILED_ENABLING => 'FAILED_ENABLING', + self::FAILED_DISABLING => 'FAILED_DISABLING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DatabaseManagementState::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_DatabaseManagementState::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/LicenseType.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/LicenseType.php new file mode 100644 index 00000000000..fc1207bc564 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/LicenseType.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LicenseType + */ +class LicenseType +{ + /** + * Unspecified + * + * Generated from protobuf enum LICENSE_TYPE_UNSPECIFIED = 0; + */ + const LICENSE_TYPE_UNSPECIFIED = 0; + /** + * License included part of offer + * + * Generated from protobuf enum LICENSE_INCLUDED = 1; + */ + const LICENSE_INCLUDED = 1; + /** + * Bring your own license + * + * Generated from protobuf enum BRING_YOUR_OWN_LICENSE = 2; + */ + const BRING_YOUR_OWN_LICENSE = 2; + + private static $valueToName = [ + self::LICENSE_TYPE_UNSPECIFIED => 'LICENSE_TYPE_UNSPECIFIED', + self::LICENSE_INCLUDED => 'LICENSE_INCLUDED', + self::BRING_YOUR_OWN_LICENSE => 'BRING_YOUR_OWN_LICENSE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LicenseType::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_LicenseType::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/LocalDisasterRecoveryType.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/LocalDisasterRecoveryType.php new file mode 100644 index 00000000000..84a02743cd8 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/LocalDisasterRecoveryType.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.LocalDisasterRecoveryType + */ +class LocalDisasterRecoveryType +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED = 0; + */ + const LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED = 0; + /** + * Autonomous Data Guard recovery. + * + * Generated from protobuf enum ADG = 1; + */ + const ADG = 1; + /** + * Backup based recovery. + * + * Generated from protobuf enum BACKUP_BASED = 2; + */ + const BACKUP_BASED = 2; + + private static $valueToName = [ + self::LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED => 'LOCAL_DISASTER_RECOVERY_TYPE_UNSPECIFIED', + self::ADG => 'ADG', + self::BACKUP_BASED => 'BACKUP_BASED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LocalDisasterRecoveryType::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_LocalDisasterRecoveryType::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/MaintenanceScheduleType.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/MaintenanceScheduleType.php new file mode 100644 index 00000000000..5ef0262bff5 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/MaintenanceScheduleType.php @@ -0,0 +1,65 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.MaintenanceScheduleType + */ +class MaintenanceScheduleType +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED = 0; + */ + const MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED = 0; + /** + * An EARLY maintenance schedule patches the database before + * the regular scheduled maintenance. + * + * Generated from protobuf enum EARLY = 1; + */ + const EARLY = 1; + /** + * A REGULAR maintenance schedule follows the normal maintenance cycle. + * + * Generated from protobuf enum REGULAR = 2; + */ + const REGULAR = 2; + + private static $valueToName = [ + self::MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED => 'MAINTENANCE_SCHEDULE_TYPE_UNSPECIFIED', + self::EARLY => 'EARLY', + self::REGULAR => 'REGULAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MaintenanceScheduleType::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_MaintenanceScheduleType::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/OpenMode.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/OpenMode.php new file mode 100644 index 00000000000..dd509ef1210 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/OpenMode.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.OpenMode + */ +class OpenMode +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum OPEN_MODE_UNSPECIFIED = 0; + */ + const OPEN_MODE_UNSPECIFIED = 0; + /** + * Read Only Mode + * + * Generated from protobuf enum READ_ONLY = 1; + */ + const READ_ONLY = 1; + /** + * Read Write Mode + * + * Generated from protobuf enum READ_WRITE = 2; + */ + const READ_WRITE = 2; + + private static $valueToName = [ + self::OPEN_MODE_UNSPECIFIED => 'OPEN_MODE_UNSPECIFIED', + self::READ_ONLY => 'READ_ONLY', + self::READ_WRITE => 'READ_WRITE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OpenMode::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_OpenMode::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/PermissionLevel.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/PermissionLevel.php new file mode 100644 index 00000000000..f500235b460 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/PermissionLevel.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.PermissionLevel + */ +class PermissionLevel +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum PERMISSION_LEVEL_UNSPECIFIED = 0; + */ + const PERMISSION_LEVEL_UNSPECIFIED = 0; + /** + * Restricted mode allows access only by admin users. + * + * Generated from protobuf enum RESTRICTED = 1; + */ + const RESTRICTED = 1; + /** + * Normal access. + * + * Generated from protobuf enum UNRESTRICTED = 2; + */ + const UNRESTRICTED = 2; + + private static $valueToName = [ + self::PERMISSION_LEVEL_UNSPECIFIED => 'PERMISSION_LEVEL_UNSPECIFIED', + self::RESTRICTED => 'RESTRICTED', + self::UNRESTRICTED => 'UNRESTRICTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PermissionLevel::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_PermissionLevel::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/RefreshableMode.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/RefreshableMode.php new file mode 100644 index 00000000000..c3a92917ecc --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/RefreshableMode.php @@ -0,0 +1,66 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableMode + */ +class RefreshableMode +{ + /** + * The default unspecified value. + * + * Generated from protobuf enum REFRESHABLE_MODE_UNSPECIFIED = 0; + */ + const REFRESHABLE_MODE_UNSPECIFIED = 0; + /** + * AUTOMATIC indicates that the cloned database is automatically + * refreshed with data from the source Autonomous Database. + * + * Generated from protobuf enum AUTOMATIC = 1; + */ + const AUTOMATIC = 1; + /** + * MANUAL indicates that the cloned database is manually refreshed with + * data from the source Autonomous Database. + * + * Generated from protobuf enum MANUAL = 2; + */ + const MANUAL = 2; + + private static $valueToName = [ + self::REFRESHABLE_MODE_UNSPECIFIED => 'REFRESHABLE_MODE_UNSPECIFIED', + self::AUTOMATIC => 'AUTOMATIC', + self::MANUAL => 'MANUAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RefreshableMode::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_RefreshableMode::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/RefreshableState.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/RefreshableState.php new file mode 100644 index 00000000000..b6c0f8ba9bd --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/RefreshableState.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.RefreshableState + */ +class RefreshableState +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum REFRESHABLE_STATE_UNSPECIFIED = 0; + */ + const REFRESHABLE_STATE_UNSPECIFIED = 0; + /** + * Refreshing + * + * Generated from protobuf enum REFRESHING = 1; + */ + const REFRESHING = 1; + /** + * Not refreshed + * + * Generated from protobuf enum NOT_REFRESHING = 2; + */ + const NOT_REFRESHING = 2; + + private static $valueToName = [ + self::REFRESHABLE_STATE_UNSPECIFIED => 'REFRESHABLE_STATE_UNSPECIFIED', + self::REFRESHING => 'REFRESHING', + self::NOT_REFRESHING => 'NOT_REFRESHING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(RefreshableState::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_RefreshableState::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/Role.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/Role.php new file mode 100644 index 00000000000..3e70e82b862 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseProperties/Role.php @@ -0,0 +1,85 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseProperties.Role + */ +class Role +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum ROLE_UNSPECIFIED = 0; + */ + const ROLE_UNSPECIFIED = 0; + /** + * Primary role + * + * Generated from protobuf enum PRIMARY = 1; + */ + const PRIMARY = 1; + /** + * Standby role + * + * Generated from protobuf enum STANDBY = 2; + */ + const STANDBY = 2; + /** + * Disabled standby role + * + * Generated from protobuf enum DISABLED_STANDBY = 3; + */ + const DISABLED_STANDBY = 3; + /** + * Backup copy role + * + * Generated from protobuf enum BACKUP_COPY = 4; + */ + const BACKUP_COPY = 4; + /** + * Snapshot standby role + * + * Generated from protobuf enum SNAPSHOT_STANDBY = 5; + */ + const SNAPSHOT_STANDBY = 5; + + private static $valueToName = [ + self::ROLE_UNSPECIFIED => 'ROLE_UNSPECIFIED', + self::PRIMARY => 'PRIMARY', + self::STANDBY => 'STANDBY', + self::DISABLED_STANDBY => 'DISABLED_STANDBY', + self::BACKUP_COPY => 'BACKUP_COPY', + self::SNAPSHOT_STANDBY => 'SNAPSHOT_STANDBY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Role::class, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseProperties_Role::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseStandbySummary.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseStandbySummary.php new file mode 100644 index 00000000000..424aeff5628 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDatabaseStandbySummary.php @@ -0,0 +1,250 @@ +google.cloud.oracledatabase.v1.AutonomousDatabaseStandbySummary + */ +class AutonomousDatabaseStandbySummary extends \Google\Protobuf\Internal\Message +{ + /** + * 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. + * + * Generated from protobuf field .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $lag_time_duration = null; + /** + * Output only. The additional details about the current lifecycle state of + * the Autonomous Database. + * + * Generated from protobuf field string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $lifecycle_details = ''; + /** + * Output only. The current lifecycle state of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. The date and time the Autonomous Data Guard role was switched + * for the standby Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_guard_role_changed_time = null; + /** + * Output only. The date and time the Disaster Recovery role was switched for + * the standby Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $disaster_recovery_role_changed_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Duration $lag_time_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. + * @type string $lifecycle_details + * Output only. The additional details about the current lifecycle state of + * the Autonomous Database. + * @type int $state + * Output only. The current lifecycle state of the Autonomous Database. + * @type \Google\Protobuf\Timestamp $data_guard_role_changed_time + * Output only. The date and time the Autonomous Data Guard role was switched + * for the standby Autonomous Database. + * @type \Google\Protobuf\Timestamp $disaster_recovery_role_changed_time + * Output only. The date and time the Disaster Recovery role was switched for + * the standby Autonomous Database. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * 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. + * + * Generated from protobuf field .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Duration|null + */ + public function getLagTimeDuration() + { + return $this->lag_time_duration; + } + + public function hasLagTimeDuration() + { + return isset($this->lag_time_duration); + } + + public function clearLagTimeDuration() + { + unset($this->lag_time_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. + * + * Generated from protobuf field .google.protobuf.Duration lag_time_duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setLagTimeDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->lag_time_duration = $var; + + return $this; + } + + /** + * Output only. The additional details about the current lifecycle state of + * the Autonomous Database. + * + * Generated from protobuf field string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLifecycleDetails() + { + return $this->lifecycle_details; + } + + /** + * Output only. The additional details about the current lifecycle state of + * the Autonomous Database. + * + * Generated from protobuf field string lifecycle_details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLifecycleDetails($var) + { + GPBUtil::checkString($var, True); + $this->lifecycle_details = $var; + + return $this; + } + + /** + * Output only. The current lifecycle state of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current lifecycle state of the Autonomous Database. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. The date and time the Autonomous Data Guard role was switched + * for the standby Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDataGuardRoleChangedTime() + { + return $this->data_guard_role_changed_time; + } + + public function hasDataGuardRoleChangedTime() + { + return isset($this->data_guard_role_changed_time); + } + + public function clearDataGuardRoleChangedTime() + { + unset($this->data_guard_role_changed_time); + } + + /** + * Output only. The date and time the Autonomous Data Guard role was switched + * for the standby Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp data_guard_role_changed_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDataGuardRoleChangedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->data_guard_role_changed_time = $var; + + return $this; + } + + /** + * Output only. The date and time the Disaster Recovery role was switched for + * the standby Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getDisasterRecoveryRoleChangedTime() + { + return $this->disaster_recovery_role_changed_time; + } + + public function hasDisasterRecoveryRoleChangedTime() + { + return isset($this->disaster_recovery_role_changed_time); + } + + public function clearDisasterRecoveryRoleChangedTime() + { + unset($this->disaster_recovery_role_changed_time); + } + + /** + * Output only. The date and time the Disaster Recovery role was switched for + * the standby Autonomous Database. + * + * Generated from protobuf field .google.protobuf.Timestamp disaster_recovery_role_changed_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setDisasterRecoveryRoleChangedTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->disaster_recovery_role_changed_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDbVersion.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDbVersion.php new file mode 100644 index 00000000000..a303b6b0ead --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/AutonomousDbVersion.php @@ -0,0 +1,182 @@ +google.cloud.oracledatabase.v1.AutonomousDbVersion + */ +class AutonomousDbVersion extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Autonomous Database Version resource with the + * format: + * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. An Oracle Database version for Autonomous Database. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $version = ''; + /** + * Output only. The Autonomous Database workload type. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $db_workload = 0; + /** + * Output only. A URL that points to a detailed description of the Autonomous + * Database version. + * + * Generated from protobuf field string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $workload_uri = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Autonomous Database Version resource with the + * format: + * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version} + * @type string $version + * Output only. An Oracle Database version for Autonomous Database. + * @type int $db_workload + * Output only. The Autonomous Database workload type. + * @type string $workload_uri + * Output only. A URL that points to a detailed description of the Autonomous + * Database version. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDbVersion::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Autonomous Database Version resource with the + * format: + * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Autonomous Database Version resource with the + * format: + * projects/{project}/locations/{region}/autonomousDbVersions/{autonomous_db_version} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. An Oracle Database version for Autonomous Database. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Output only. An Oracle Database version for Autonomous Database. + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + + /** + * Output only. The Autonomous Database workload type. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDbWorkload() + { + return $this->db_workload; + } + + /** + * Output only. The Autonomous Database workload type. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DBWorkload db_workload = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDbWorkload($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DBWorkload::class); + $this->db_workload = $var; + + return $this; + } + + /** + * Output only. A URL that points to a detailed description of the Autonomous + * Database version. + * + * Generated from protobuf field string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getWorkloadUri() + { + return $this->workload_uri; + } + + /** + * Output only. A URL that points to a detailed description of the Autonomous + * Database version. + * + * Generated from protobuf field string workload_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setWorkloadUri($var) + { + GPBUtil::checkString($var, True); + $this->workload_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudAccountDetails.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudAccountDetails.php new file mode 100644 index 00000000000..3d7419e5588 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudAccountDetails.php @@ -0,0 +1,189 @@ +google.cloud.oracledatabase.v1.CloudAccountDetails + */ +class CloudAccountDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. OCI account name. + * + * Generated from protobuf field string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_account = ''; + /** + * Output only. OCI account home region. + * + * Generated from protobuf field string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cloud_account_home_region = ''; + /** + * Output only. URL to link an existing account. + * + * Generated from protobuf field optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $link_existing_account_uri = null; + /** + * Output only. URL to create a new account and link. + * + * Generated from protobuf field optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $account_creation_uri = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $cloud_account + * Output only. OCI account name. + * @type string $cloud_account_home_region + * Output only. OCI account home region. + * @type string $link_existing_account_uri + * Output only. URL to link an existing account. + * @type string $account_creation_uri + * Output only. URL to create a new account and link. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Entitlement::initOnce(); + parent::__construct($data); + } + + /** + * Output only. OCI account name. + * + * Generated from protobuf field string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCloudAccount() + { + return $this->cloud_account; + } + + /** + * Output only. OCI account name. + * + * Generated from protobuf field string cloud_account = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCloudAccount($var) + { + GPBUtil::checkString($var, True); + $this->cloud_account = $var; + + return $this; + } + + /** + * Output only. OCI account home region. + * + * Generated from protobuf field string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCloudAccountHomeRegion() + { + return $this->cloud_account_home_region; + } + + /** + * Output only. OCI account home region. + * + * Generated from protobuf field string cloud_account_home_region = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCloudAccountHomeRegion($var) + { + GPBUtil::checkString($var, True); + $this->cloud_account_home_region = $var; + + return $this; + } + + /** + * Output only. URL to link an existing account. + * + * Generated from protobuf field optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getLinkExistingAccountUri() + { + return isset($this->link_existing_account_uri) ? $this->link_existing_account_uri : ''; + } + + public function hasLinkExistingAccountUri() + { + return isset($this->link_existing_account_uri); + } + + public function clearLinkExistingAccountUri() + { + unset($this->link_existing_account_uri); + } + + /** + * Output only. URL to link an existing account. + * + * Generated from protobuf field optional string link_existing_account_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setLinkExistingAccountUri($var) + { + GPBUtil::checkString($var, True); + $this->link_existing_account_uri = $var; + + return $this; + } + + /** + * Output only. URL to create a new account and link. + * + * Generated from protobuf field optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getAccountCreationUri() + { + return isset($this->account_creation_uri) ? $this->account_creation_uri : ''; + } + + public function hasAccountCreationUri() + { + return isset($this->account_creation_uri); + } + + public function clearAccountCreationUri() + { + unset($this->account_creation_uri); + } + + /** + * Output only. URL to create a new account and link. + * + * Generated from protobuf field optional string account_creation_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setAccountCreationUri($var) + { + GPBUtil::checkString($var, True); + $this->account_creation_uri = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructure.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructure.php new file mode 100644 index 00000000000..2f3453a3469 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructure.php @@ -0,0 +1,304 @@ +google.cloud.oracledatabase.v1.CloudExadataInfrastructure + */ +class CloudExadataInfrastructure extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Exadata Infrastructure resource with the + * format: + * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Google Cloud Platform location where Oracle Exadata is hosted. + * + * Generated from protobuf field string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $gcp_oracle_zone = ''; + /** + * Output only. Entitlement ID of the private offer against which this + * infrastructure resource is provisioned. + * + * Generated from protobuf field string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entitlement_id = ''; + /** + * Optional. Various properties of the infra. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + /** + * Optional. Labels or tags associated with the resource. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. The date and time that the Exadata Infrastructure was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Exadata Infrastructure resource with the + * format: + * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure} + * @type string $display_name + * Optional. User friendly name for this resource. + * @type string $gcp_oracle_zone + * Optional. Google Cloud Platform location where Oracle Exadata is hosted. + * @type string $entitlement_id + * Output only. Entitlement ID of the private offer against which this + * infrastructure resource is provisioned. + * @type \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructureProperties $properties + * Optional. Various properties of the infra. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Labels or tags associated with the resource. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The date and time that the Exadata Infrastructure was created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\ExadataInfra::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Exadata Infrastructure resource with the + * format: + * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Exadata Infrastructure resource with the + * format: + * projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Google Cloud Platform location where Oracle Exadata is hosted. + * + * Generated from protobuf field string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGcpOracleZone() + { + return $this->gcp_oracle_zone; + } + + /** + * Optional. Google Cloud Platform location where Oracle Exadata is hosted. + * + * Generated from protobuf field string gcp_oracle_zone = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGcpOracleZone($var) + { + GPBUtil::checkString($var, True); + $this->gcp_oracle_zone = $var; + + return $this; + } + + /** + * Output only. Entitlement ID of the private offer against which this + * infrastructure resource is provisioned. + * + * Generated from protobuf field string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEntitlementId() + { + return $this->entitlement_id; + } + + /** + * Output only. Entitlement ID of the private offer against which this + * infrastructure resource is provisioned. + * + * Generated from protobuf field string entitlement_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEntitlementId($var) + { + GPBUtil::checkString($var, True); + $this->entitlement_id = $var; + + return $this; + } + + /** + * Optional. Various properties of the infra. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructureProperties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Optional. Various properties of the infra. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties properties = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructureProperties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructureProperties::class); + $this->properties = $var; + + return $this; + } + + /** + * Optional. Labels or tags associated with the resource. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Labels or tags associated with the resource. + * + * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The date and time that the Exadata Infrastructure was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The date and time that the Exadata Infrastructure was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructureProperties.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructureProperties.php new file mode 100644 index 00000000000..0e0f4a20688 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructureProperties.php @@ -0,0 +1,1025 @@ +google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties + */ +class CloudExadataInfrastructureProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. OCID of created infra. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ocid = ''; + /** + * Optional. The number of compute servers for the Exadata Infrastructure. + * + * Generated from protobuf field int32 compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $compute_count = 0; + /** + * Optional. The number of Cloud Exadata storage servers for the Exadata + * Infrastructure. + * + * Generated from protobuf field int32 storage_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $storage_count = 0; + /** + * Optional. The total storage allocated to the Exadata Infrastructure + * resource, in gigabytes (GB). + * + * Generated from protobuf field int32 total_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $total_storage_size_gb = 0; + /** + * Output only. The available storage can be allocated to the Exadata + * Infrastructure resource, in gigabytes (GB). + * + * Generated from protobuf field int32 available_storage_size_gb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $available_storage_size_gb = 0; + /** + * Optional. Maintenance window for repair. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $maintenance_window = null; + /** + * Output only. The current lifecycle state of the Exadata Infrastructure. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Required. The shape of the Exadata Infrastructure. The shape determines the + * amount of CPU, storage, and memory resources allocated to the instance. + * + * Generated from protobuf field string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $shape = ''; + /** + * Output only. Deep link to the OCI console to view this resource. + * + * Generated from protobuf field string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $oci_url = ''; + /** + * Output only. The number of enabled CPU cores. + * + * Generated from protobuf field int32 cpu_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $cpu_count = 0; + /** + * Output only. The total number of CPU cores available. + * + * Generated from protobuf field int32 max_cpu_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $max_cpu_count = 0; + /** + * Output only. The memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $memory_size_gb = 0; + /** + * Output only. The total memory available in GBs. + * + * Generated from protobuf field int32 max_memory_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $max_memory_gb = 0; + /** + * Output only. The local node storage allocated in GBs. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $db_node_storage_size_gb = 0; + /** + * Output only. The total local node storage available in GBs. + * + * Generated from protobuf field int32 max_db_node_storage_size_gb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $max_db_node_storage_size_gb = 0; + /** + * Output only. Size, in terabytes, of the DATA disk group. + * + * Generated from protobuf field double data_storage_size_tb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $data_storage_size_tb = 0.0; + /** + * Output only. The total available DATA disk group size. + * + * Generated from protobuf field double max_data_storage_tb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $max_data_storage_tb = 0.0; + /** + * Output only. The requested number of additional storage servers activated + * for the Exadata Infrastructure. + * + * Generated from protobuf field int32 activated_storage_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $activated_storage_count = 0; + /** + * Output only. The requested number of additional storage servers for the + * Exadata Infrastructure. + * + * Generated from protobuf field int32 additional_storage_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $additional_storage_count = 0; + /** + * Output only. The software version of the database servers (dom0) in the + * Exadata Infrastructure. + * + * Generated from protobuf field string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $db_server_version = ''; + /** + * Output only. The software version of the storage servers (cells) in the + * Exadata Infrastructure. + * + * Generated from protobuf field string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $storage_server_version = ''; + /** + * Output only. The OCID of the next maintenance run. + * + * Generated from protobuf field string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $next_maintenance_run_id = ''; + /** + * Output only. The time when the next maintenance run will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $next_maintenance_run_time = null; + /** + * Output only. The time when the next security maintenance run will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $next_security_maintenance_run_time = null; + /** + * Optional. The list of customer contacts. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $customer_contacts; + /** + * Output only. The monthly software version of the storage servers (cells) + * in the Exadata Infrastructure. Example: 20.1.15 + * + * Generated from protobuf field string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $monthly_storage_server_version = ''; + /** + * Output only. The monthly software version of the database servers (dom0) + * in the Exadata Infrastructure. Example: 20.1.15 + * + * Generated from protobuf field string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $monthly_db_server_version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ocid + * Output only. OCID of created infra. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * @type int $compute_count + * Optional. The number of compute servers for the Exadata Infrastructure. + * @type int $storage_count + * Optional. The number of Cloud Exadata storage servers for the Exadata + * Infrastructure. + * @type int $total_storage_size_gb + * Optional. The total storage allocated to the Exadata Infrastructure + * resource, in gigabytes (GB). + * @type int $available_storage_size_gb + * Output only. The available storage can be allocated to the Exadata + * Infrastructure resource, in gigabytes (GB). + * @type \Google\Cloud\OracleDatabase\V1\MaintenanceWindow $maintenance_window + * Optional. Maintenance window for repair. + * @type int $state + * Output only. The current lifecycle state of the Exadata Infrastructure. + * @type string $shape + * Required. The shape of the Exadata Infrastructure. The shape determines the + * amount of CPU, storage, and memory resources allocated to the instance. + * @type string $oci_url + * Output only. Deep link to the OCI console to view this resource. + * @type int $cpu_count + * Output only. The number of enabled CPU cores. + * @type int $max_cpu_count + * Output only. The total number of CPU cores available. + * @type int $memory_size_gb + * Output only. The memory allocated in GBs. + * @type int $max_memory_gb + * Output only. The total memory available in GBs. + * @type int $db_node_storage_size_gb + * Output only. The local node storage allocated in GBs. + * @type int $max_db_node_storage_size_gb + * Output only. The total local node storage available in GBs. + * @type float $data_storage_size_tb + * Output only. Size, in terabytes, of the DATA disk group. + * @type float $max_data_storage_tb + * Output only. The total available DATA disk group size. + * @type int $activated_storage_count + * Output only. The requested number of additional storage servers activated + * for the Exadata Infrastructure. + * @type int $additional_storage_count + * Output only. The requested number of additional storage servers for the + * Exadata Infrastructure. + * @type string $db_server_version + * Output only. The software version of the database servers (dom0) in the + * Exadata Infrastructure. + * @type string $storage_server_version + * Output only. The software version of the storage servers (cells) in the + * Exadata Infrastructure. + * @type string $next_maintenance_run_id + * Output only. The OCID of the next maintenance run. + * @type \Google\Protobuf\Timestamp $next_maintenance_run_time + * Output only. The time when the next maintenance run will occur. + * @type \Google\Protobuf\Timestamp $next_security_maintenance_run_time + * Output only. The time when the next security maintenance run will occur. + * @type array<\Google\Cloud\OracleDatabase\V1\CustomerContact>|\Google\Protobuf\Internal\RepeatedField $customer_contacts + * Optional. The list of customer contacts. + * @type string $monthly_storage_server_version + * Output only. The monthly software version of the storage servers (cells) + * in the Exadata Infrastructure. Example: 20.1.15 + * @type string $monthly_db_server_version + * Output only. The monthly software version of the database servers (dom0) + * in the Exadata Infrastructure. Example: 20.1.15 + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\ExadataInfra::initOnce(); + parent::__construct($data); + } + + /** + * Output only. OCID of created infra. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOcid() + { + return $this->ocid; + } + + /** + * Output only. OCID of created infra. + * https://docs.oracle.com/en-us/iaas/Content/General/Concepts/identifiers.htm#Oracle + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOcid($var) + { + GPBUtil::checkString($var, True); + $this->ocid = $var; + + return $this; + } + + /** + * Optional. The number of compute servers for the Exadata Infrastructure. + * + * Generated from protobuf field int32 compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getComputeCount() + { + return $this->compute_count; + } + + /** + * Optional. The number of compute servers for the Exadata Infrastructure. + * + * Generated from protobuf field int32 compute_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setComputeCount($var) + { + GPBUtil::checkInt32($var); + $this->compute_count = $var; + + return $this; + } + + /** + * Optional. The number of Cloud Exadata storage servers for the Exadata + * Infrastructure. + * + * Generated from protobuf field int32 storage_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getStorageCount() + { + return $this->storage_count; + } + + /** + * Optional. The number of Cloud Exadata storage servers for the Exadata + * Infrastructure. + * + * Generated from protobuf field int32 storage_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setStorageCount($var) + { + GPBUtil::checkInt32($var); + $this->storage_count = $var; + + return $this; + } + + /** + * Optional. The total storage allocated to the Exadata Infrastructure + * resource, in gigabytes (GB). + * + * Generated from protobuf field int32 total_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getTotalStorageSizeGb() + { + return $this->total_storage_size_gb; + } + + /** + * Optional. The total storage allocated to the Exadata Infrastructure + * resource, in gigabytes (GB). + * + * Generated from protobuf field int32 total_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setTotalStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->total_storage_size_gb = $var; + + return $this; + } + + /** + * Output only. The available storage can be allocated to the Exadata + * Infrastructure resource, in gigabytes (GB). + * + * Generated from protobuf field int32 available_storage_size_gb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAvailableStorageSizeGb() + { + return $this->available_storage_size_gb; + } + + /** + * Output only. The available storage can be allocated to the Exadata + * Infrastructure resource, in gigabytes (GB). + * + * Generated from protobuf field int32 available_storage_size_gb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAvailableStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->available_storage_size_gb = $var; + + return $this; + } + + /** + * Optional. Maintenance window for repair. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\OracleDatabase\V1\MaintenanceWindow|null + */ + public function getMaintenanceWindow() + { + return $this->maintenance_window; + } + + public function hasMaintenanceWindow() + { + return isset($this->maintenance_window); + } + + public function clearMaintenanceWindow() + { + unset($this->maintenance_window); + } + + /** + * Optional. Maintenance window for repair. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow maintenance_window = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\OracleDatabase\V1\MaintenanceWindow $var + * @return $this + */ + public function setMaintenanceWindow($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\MaintenanceWindow::class); + $this->maintenance_window = $var; + + return $this; + } + + /** + * Output only. The current lifecycle state of the Exadata Infrastructure. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. The current lifecycle state of the Exadata Infrastructure. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructureProperties\State::class); + $this->state = $var; + + return $this; + } + + /** + * Required. The shape of the Exadata Infrastructure. The shape determines the + * amount of CPU, storage, and memory resources allocated to the instance. + * + * Generated from protobuf field string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getShape() + { + return $this->shape; + } + + /** + * Required. The shape of the Exadata Infrastructure. The shape determines the + * amount of CPU, storage, and memory resources allocated to the instance. + * + * Generated from protobuf field string shape = 8 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setShape($var) + { + GPBUtil::checkString($var, True); + $this->shape = $var; + + return $this; + } + + /** + * Output only. Deep link to the OCI console to view this resource. + * + * Generated from protobuf field string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOciUrl() + { + return $this->oci_url; + } + + /** + * Output only. Deep link to the OCI console to view this resource. + * + * Generated from protobuf field string oci_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOciUrl($var) + { + GPBUtil::checkString($var, True); + $this->oci_url = $var; + + return $this; + } + + /** + * Output only. The number of enabled CPU cores. + * + * Generated from protobuf field int32 cpu_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getCpuCount() + { + return $this->cpu_count; + } + + /** + * Output only. The number of enabled CPU cores. + * + * Generated from protobuf field int32 cpu_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setCpuCount($var) + { + GPBUtil::checkInt32($var); + $this->cpu_count = $var; + + return $this; + } + + /** + * Output only. The total number of CPU cores available. + * + * Generated from protobuf field int32 max_cpu_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMaxCpuCount() + { + return $this->max_cpu_count; + } + + /** + * Output only. The total number of CPU cores available. + * + * Generated from protobuf field int32 max_cpu_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMaxCpuCount($var) + { + GPBUtil::checkInt32($var); + $this->max_cpu_count = $var; + + return $this; + } + + /** + * Output only. The memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMemorySizeGb() + { + return $this->memory_size_gb; + } + + /** + * Output only. The memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMemorySizeGb($var) + { + GPBUtil::checkInt32($var); + $this->memory_size_gb = $var; + + return $this; + } + + /** + * Output only. The total memory available in GBs. + * + * Generated from protobuf field int32 max_memory_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMaxMemoryGb() + { + return $this->max_memory_gb; + } + + /** + * Output only. The total memory available in GBs. + * + * Generated from protobuf field int32 max_memory_gb = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMaxMemoryGb($var) + { + GPBUtil::checkInt32($var); + $this->max_memory_gb = $var; + + return $this; + } + + /** + * Output only. The local node storage allocated in GBs. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDbNodeStorageSizeGb() + { + return $this->db_node_storage_size_gb; + } + + /** + * Output only. The local node storage allocated in GBs. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDbNodeStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->db_node_storage_size_gb = $var; + + return $this; + } + + /** + * Output only. The total local node storage available in GBs. + * + * Generated from protobuf field int32 max_db_node_storage_size_gb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getMaxDbNodeStorageSizeGb() + { + return $this->max_db_node_storage_size_gb; + } + + /** + * Output only. The total local node storage available in GBs. + * + * Generated from protobuf field int32 max_db_node_storage_size_gb = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setMaxDbNodeStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->max_db_node_storage_size_gb = $var; + + return $this; + } + + /** + * Output only. Size, in terabytes, of the DATA disk group. + * + * Generated from protobuf field double data_storage_size_tb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getDataStorageSizeTb() + { + return $this->data_storage_size_tb; + } + + /** + * Output only. Size, in terabytes, of the DATA disk group. + * + * Generated from protobuf field double data_storage_size_tb = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setDataStorageSizeTb($var) + { + GPBUtil::checkDouble($var); + $this->data_storage_size_tb = $var; + + return $this; + } + + /** + * Output only. The total available DATA disk group size. + * + * Generated from protobuf field double max_data_storage_tb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getMaxDataStorageTb() + { + return $this->max_data_storage_tb; + } + + /** + * Output only. The total available DATA disk group size. + * + * Generated from protobuf field double max_data_storage_tb = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setMaxDataStorageTb($var) + { + GPBUtil::checkDouble($var); + $this->max_data_storage_tb = $var; + + return $this; + } + + /** + * Output only. The requested number of additional storage servers activated + * for the Exadata Infrastructure. + * + * Generated from protobuf field int32 activated_storage_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getActivatedStorageCount() + { + return $this->activated_storage_count; + } + + /** + * Output only. The requested number of additional storage servers activated + * for the Exadata Infrastructure. + * + * Generated from protobuf field int32 activated_storage_count = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setActivatedStorageCount($var) + { + GPBUtil::checkInt32($var); + $this->activated_storage_count = $var; + + return $this; + } + + /** + * Output only. The requested number of additional storage servers for the + * Exadata Infrastructure. + * + * Generated from protobuf field int32 additional_storage_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAdditionalStorageCount() + { + return $this->additional_storage_count; + } + + /** + * Output only. The requested number of additional storage servers for the + * Exadata Infrastructure. + * + * Generated from protobuf field int32 additional_storage_count = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAdditionalStorageCount($var) + { + GPBUtil::checkInt32($var); + $this->additional_storage_count = $var; + + return $this; + } + + /** + * Output only. The software version of the database servers (dom0) in the + * Exadata Infrastructure. + * + * Generated from protobuf field string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDbServerVersion() + { + return $this->db_server_version; + } + + /** + * Output only. The software version of the database servers (dom0) in the + * Exadata Infrastructure. + * + * Generated from protobuf field string db_server_version = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDbServerVersion($var) + { + GPBUtil::checkString($var, True); + $this->db_server_version = $var; + + return $this; + } + + /** + * Output only. The software version of the storage servers (cells) in the + * Exadata Infrastructure. + * + * Generated from protobuf field string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStorageServerVersion() + { + return $this->storage_server_version; + } + + /** + * Output only. The software version of the storage servers (cells) in the + * Exadata Infrastructure. + * + * Generated from protobuf field string storage_server_version = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStorageServerVersion($var) + { + GPBUtil::checkString($var, True); + $this->storage_server_version = $var; + + return $this; + } + + /** + * Output only. The OCID of the next maintenance run. + * + * Generated from protobuf field string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getNextMaintenanceRunId() + { + return $this->next_maintenance_run_id; + } + + /** + * Output only. The OCID of the next maintenance run. + * + * Generated from protobuf field string next_maintenance_run_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setNextMaintenanceRunId($var) + { + GPBUtil::checkString($var, True); + $this->next_maintenance_run_id = $var; + + return $this; + } + + /** + * Output only. The time when the next maintenance run will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getNextMaintenanceRunTime() + { + return $this->next_maintenance_run_time; + } + + public function hasNextMaintenanceRunTime() + { + return isset($this->next_maintenance_run_time); + } + + public function clearNextMaintenanceRunTime() + { + unset($this->next_maintenance_run_time); + } + + /** + * Output only. The time when the next maintenance run will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_maintenance_run_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setNextMaintenanceRunTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->next_maintenance_run_time = $var; + + return $this; + } + + /** + * Output only. The time when the next security maintenance run will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getNextSecurityMaintenanceRunTime() + { + return $this->next_security_maintenance_run_time; + } + + public function hasNextSecurityMaintenanceRunTime() + { + return isset($this->next_security_maintenance_run_time); + } + + public function clearNextSecurityMaintenanceRunTime() + { + unset($this->next_security_maintenance_run_time); + } + + /** + * Output only. The time when the next security maintenance run will occur. + * + * Generated from protobuf field .google.protobuf.Timestamp next_security_maintenance_run_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setNextSecurityMaintenanceRunTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->next_security_maintenance_run_time = $var; + + return $this; + } + + /** + * Optional. The list of customer contacts. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCustomerContacts() + { + return $this->customer_contacts; + } + + /** + * Optional. The list of customer contacts. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CustomerContact customer_contacts = 25 [(.google.api.field_behavior) = OPTIONAL]; + * @param array<\Google\Cloud\OracleDatabase\V1\CustomerContact>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCustomerContacts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\CustomerContact::class); + $this->customer_contacts = $arr; + + return $this; + } + + /** + * Output only. The monthly software version of the storage servers (cells) + * in the Exadata Infrastructure. Example: 20.1.15 + * + * Generated from protobuf field string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMonthlyStorageServerVersion() + { + return $this->monthly_storage_server_version; + } + + /** + * Output only. The monthly software version of the storage servers (cells) + * in the Exadata Infrastructure. Example: 20.1.15 + * + * Generated from protobuf field string monthly_storage_server_version = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMonthlyStorageServerVersion($var) + { + GPBUtil::checkString($var, True); + $this->monthly_storage_server_version = $var; + + return $this; + } + + /** + * Output only. The monthly software version of the database servers (dom0) + * in the Exadata Infrastructure. Example: 20.1.15 + * + * Generated from protobuf field string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMonthlyDbServerVersion() + { + return $this->monthly_db_server_version; + } + + /** + * Output only. The monthly software version of the database servers (dom0) + * in the Exadata Infrastructure. Example: 20.1.15 + * + * Generated from protobuf field string monthly_db_server_version = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMonthlyDbServerVersion($var) + { + GPBUtil::checkString($var, True); + $this->monthly_db_server_version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructureProperties/State.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructureProperties/State.php new file mode 100644 index 00000000000..4b754316302 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudExadataInfrastructureProperties/State.php @@ -0,0 +1,99 @@ +google.cloud.oracledatabase.v1.CloudExadataInfrastructureProperties.State + */ +class State +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * The Exadata Infrastructure is being provisioned. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * The Exadata Infrastructure is available for use. + * + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; + /** + * The Exadata Infrastructure is being updated. + * + * Generated from protobuf enum UPDATING = 3; + */ + const UPDATING = 3; + /** + * The Exadata Infrastructure is being terminated. + * + * Generated from protobuf enum TERMINATING = 4; + */ + const TERMINATING = 4; + /** + * The Exadata Infrastructure is terminated. + * + * Generated from protobuf enum TERMINATED = 5; + */ + const TERMINATED = 5; + /** + * The Exadata Infrastructure is in failed state. + * + * Generated from protobuf enum FAILED = 6; + */ + const FAILED = 6; + /** + * The Exadata Infrastructure is in maintenance. + * + * Generated from protobuf enum MAINTENANCE_IN_PROGRESS = 7; + */ + const MAINTENANCE_IN_PROGRESS = 7; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::AVAILABLE => 'AVAILABLE', + self::UPDATING => 'UPDATING', + self::TERMINATING => 'TERMINATING', + self::TERMINATED => 'TERMINATED', + self::FAILED => 'FAILED', + self::MAINTENANCE_IN_PROGRESS => 'MAINTENANCE_IN_PROGRESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructureProperties_State::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmCluster.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmCluster.php new file mode 100644 index 00000000000..56840d098df --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmCluster.php @@ -0,0 +1,414 @@ +google.cloud.oracledatabase.v1.CloudVmCluster + */ +class CloudVmCluster extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the VM Cluster resource with the format: + * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * 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} + * + * Generated from protobuf field string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $exadata_infrastructure = ''; + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Output only. Google Cloud Platform location where Oracle Exadata is hosted. + * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure. + * + * Generated from protobuf field string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $gcp_oracle_zone = ''; + /** + * Optional. Various properties of the VM Cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + /** + * Optional. Labels or tags associated with the VM Cluster. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $labels; + /** + * Output only. The date and time that the VM cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Required. Network settings. CIDR to use for cluster IP allocation. + * + * Generated from protobuf field string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cidr = ''; + /** + * Required. CIDR range of the backup subnet. + * + * Generated from protobuf field string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $backup_subnet_cidr = ''; + /** + * Required. The name of the VPC network. + * Format: projects/{project}/global/networks/{network} + * + * Generated from protobuf field string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $network = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the VM Cluster resource with the format: + * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} + * @type string $exadata_infrastructure + * 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} + * @type string $display_name + * Optional. User friendly name for this resource. + * @type string $gcp_oracle_zone + * Output only. Google Cloud Platform location where Oracle Exadata is hosted. + * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure. + * @type \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties $properties + * Optional. Various properties of the VM Cluster. + * @type array|\Google\Protobuf\Internal\MapField $labels + * Optional. Labels or tags associated with the VM Cluster. + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The date and time that the VM cluster was created. + * @type string $cidr + * Required. Network settings. CIDR to use for cluster IP allocation. + * @type string $backup_subnet_cidr + * Required. CIDR range of the backup subnet. + * @type string $network + * Required. The name of the VPC network. + * Format: projects/{project}/global/networks/{network} + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\VmCluster::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the VM Cluster resource with the format: + * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the VM Cluster resource with the format: + * projects/{project}/locations/{region}/cloudVmClusters/{cloud_vm_cluster} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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} + * + * Generated from protobuf field string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getExadataInfrastructure() + { + return $this->exadata_infrastructure; + } + + /** + * 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} + * + * Generated from protobuf field string exadata_infrastructure = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setExadataInfrastructure($var) + { + GPBUtil::checkString($var, True); + $this->exadata_infrastructure = $var; + + return $this; + } + + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. Google Cloud Platform location where Oracle Exadata is hosted. + * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure. + * + * Generated from protobuf field string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getGcpOracleZone() + { + return $this->gcp_oracle_zone; + } + + /** + * Output only. Google Cloud Platform location where Oracle Exadata is hosted. + * It is same as Google Cloud Platform Oracle zone of Exadata infrastructure. + * + * Generated from protobuf field string gcp_oracle_zone = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setGcpOracleZone($var) + { + GPBUtil::checkString($var, True); + $this->gcp_oracle_zone = $var; + + return $this; + } + + /** + * Optional. Various properties of the VM Cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Optional. Various properties of the VM Cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties properties = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties::class); + $this->properties = $var; + + return $this; + } + + /** + * Optional. Labels or tags associated with the VM Cluster. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getLabels() + { + return $this->labels; + } + + /** + * Optional. Labels or tags associated with the VM Cluster. + * + * Generated from protobuf field map labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setLabels($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); + $this->labels = $arr; + + return $this; + } + + /** + * Output only. The date and time that the VM cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The date and time that the VM cluster was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Required. Network settings. CIDR to use for cluster IP allocation. + * + * Generated from protobuf field string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCidr() + { + return $this->cidr; + } + + /** + * Required. Network settings. CIDR to use for cluster IP allocation. + * + * Generated from protobuf field string cidr = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCidr($var) + { + GPBUtil::checkString($var, True); + $this->cidr = $var; + + return $this; + } + + /** + * Required. CIDR range of the backup subnet. + * + * Generated from protobuf field string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getBackupSubnetCidr() + { + return $this->backup_subnet_cidr; + } + + /** + * Required. CIDR range of the backup subnet. + * + * Generated from protobuf field string backup_subnet_cidr = 10 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setBackupSubnetCidr($var) + { + GPBUtil::checkString($var, True); + $this->backup_subnet_cidr = $var; + + return $this; + } + + /** + * Required. The name of the VPC network. + * Format: projects/{project}/global/networks/{network} + * + * Generated from protobuf field string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getNetwork() + { + return $this->network; + } + + /** + * Required. The name of the VPC network. + * Format: projects/{project}/global/networks/{network} + * + * Generated from protobuf field string network = 11 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setNetwork($var) + { + GPBUtil::checkString($var, True); + $this->network = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties.php new file mode 100644 index 00000000000..5f6e145f299 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties.php @@ -0,0 +1,1157 @@ +google.cloud.oracledatabase.v1.CloudVmClusterProperties + */ +class CloudVmClusterProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Oracle Cloud Infrastructure ID of VM Cluster. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ocid = ''; + /** + * Required. License type of VM Cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $license_type = 0; + /** + * Optional. Grid Infrastructure Version. + * + * Generated from protobuf field string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $gi_version = ''; + /** + * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified. + * + * Generated from protobuf field .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $time_zone = null; + /** + * Optional. SSH public keys to be stored with cluster. + * + * Generated from protobuf field repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $ssh_public_keys; + /** + * Optional. Number of database servers. + * + * Generated from protobuf field int32 node_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $node_count = 0; + /** + * Output only. Shape of VM Cluster. + * + * Generated from protobuf field string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $shape = ''; + /** + * Optional. OCPU count per VM. Minimum is 0.1. + * + * Generated from protobuf field float ocpu_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ocpu_count = 0.0; + /** + * Optional. Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $memory_size_gb = 0; + /** + * Optional. Local storage per VM. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $db_node_storage_size_gb = 0; + /** + * Output only. The storage allocation for the disk group, in gigabytes (GB). + * + * Generated from protobuf field int32 storage_size_gb = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $storage_size_gb = 0; + /** + * Optional. The data disk group size to be allocated in TBs. + * + * Generated from protobuf field double data_storage_size_tb = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $data_storage_size_tb = 0.0; + /** + * Optional. The type of redundancy. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $disk_redundancy = 0; + /** + * Optional. Use exadata sparse snapshots. + * + * Generated from protobuf field bool sparse_diskgroup_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $sparse_diskgroup_enabled = false; + /** + * Optional. Use local backup. + * + * Generated from protobuf field bool local_backup_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $local_backup_enabled = false; + /** + * Optional. Prefix for VM cluster host names. + * + * Generated from protobuf field string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $hostname_prefix = ''; + /** + * Optional. Data collection options for diagnostics. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $diagnostics_data_collection_options = null; + /** + * Output only. State of the cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. SCAN listener port - TCP + * + * Generated from protobuf field int32 scan_listener_port_tcp = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $scan_listener_port_tcp = 0; + /** + * Output only. SCAN listener port - TLS + * + * Generated from protobuf field int32 scan_listener_port_tcp_ssl = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $scan_listener_port_tcp_ssl = 0; + /** + * Output only. Parent DNS domain where SCAN DNS and hosts names are + * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com + * + * Generated from protobuf field string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $domain = ''; + /** + * Output only. SCAN DNS name. + * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com + * + * Generated from protobuf field string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $scan_dns = ''; + /** + * Output only. host name without domain. + * format: "-" with some suffix. + * ex: sp2-yi0xq where "sp2" is the hostname_prefix. + * + * Generated from protobuf field string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $hostname = ''; + /** + * Required. Number of enabled CPU cores. + * + * Generated from protobuf field int32 cpu_core_count = 26 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cpu_core_count = 0; + /** + * Optional. Operating system version of the image. + * + * Generated from protobuf field string system_version = 27 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $system_version = ''; + /** + * Output only. OCIDs of scan IPs. + * + * Generated from protobuf field repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $scan_ip_ids; + /** + * Output only. OCID of scan DNS record. + * + * Generated from protobuf field string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $scan_dns_record_id = ''; + /** + * Output only. Deep link to the OCI console to view this resource. + * + * Generated from protobuf field string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $oci_url = ''; + /** + * Optional. OCID of database servers. + * + * Generated from protobuf field repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $db_server_ocids; + /** + * Output only. Compartment ID of cluster. + * + * Generated from protobuf field string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $compartment_id = ''; + /** + * Output only. DNS listener IP. + * + * Generated from protobuf field string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $dns_listener_ip = ''; + /** + * Optional. OCI Cluster name. + * + * Generated from protobuf field string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cluster_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ocid + * Output only. Oracle Cloud Infrastructure ID of VM Cluster. + * @type int $license_type + * Required. License type of VM Cluster. + * @type string $gi_version + * Optional. Grid Infrastructure Version. + * @type \Google\Type\TimeZone $time_zone + * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified. + * @type array|\Google\Protobuf\Internal\RepeatedField $ssh_public_keys + * Optional. SSH public keys to be stored with cluster. + * @type int $node_count + * Optional. Number of database servers. + * @type string $shape + * Output only. Shape of VM Cluster. + * @type float $ocpu_count + * Optional. OCPU count per VM. Minimum is 0.1. + * @type int $memory_size_gb + * Optional. Memory allocated in GBs. + * @type int $db_node_storage_size_gb + * Optional. Local storage per VM. + * @type int $storage_size_gb + * Output only. The storage allocation for the disk group, in gigabytes (GB). + * @type float $data_storage_size_tb + * Optional. The data disk group size to be allocated in TBs. + * @type int $disk_redundancy + * Optional. The type of redundancy. + * @type bool $sparse_diskgroup_enabled + * Optional. Use exadata sparse snapshots. + * @type bool $local_backup_enabled + * Optional. Use local backup. + * @type string $hostname_prefix + * Optional. Prefix for VM cluster host names. + * @type \Google\Cloud\OracleDatabase\V1\DataCollectionOptions $diagnostics_data_collection_options + * Optional. Data collection options for diagnostics. + * @type int $state + * Output only. State of the cluster. + * @type int $scan_listener_port_tcp + * Output only. SCAN listener port - TCP + * @type int $scan_listener_port_tcp_ssl + * Output only. SCAN listener port - TLS + * @type string $domain + * Output only. Parent DNS domain where SCAN DNS and hosts names are + * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com + * @type string $scan_dns + * Output only. SCAN DNS name. + * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com + * @type string $hostname + * Output only. host name without domain. + * format: "-" with some suffix. + * ex: sp2-yi0xq where "sp2" is the hostname_prefix. + * @type int $cpu_core_count + * Required. Number of enabled CPU cores. + * @type string $system_version + * Optional. Operating system version of the image. + * @type array|\Google\Protobuf\Internal\RepeatedField $scan_ip_ids + * Output only. OCIDs of scan IPs. + * @type string $scan_dns_record_id + * Output only. OCID of scan DNS record. + * @type string $oci_url + * Output only. Deep link to the OCI console to view this resource. + * @type array|\Google\Protobuf\Internal\RepeatedField $db_server_ocids + * Optional. OCID of database servers. + * @type string $compartment_id + * Output only. Compartment ID of cluster. + * @type string $dns_listener_ip + * Output only. DNS listener IP. + * @type string $cluster_name + * Optional. OCI Cluster name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\VmCluster::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Oracle Cloud Infrastructure ID of VM Cluster. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOcid() + { + return $this->ocid; + } + + /** + * Output only. Oracle Cloud Infrastructure ID of VM Cluster. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOcid($var) + { + GPBUtil::checkString($var, True); + $this->ocid = $var; + + return $this; + } + + /** + * Required. License type of VM Cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getLicenseType() + { + return $this->license_type; + } + + /** + * Required. License type of VM Cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType license_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setLicenseType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties\LicenseType::class); + $this->license_type = $var; + + return $this; + } + + /** + * Optional. Grid Infrastructure Version. + * + * Generated from protobuf field string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getGiVersion() + { + return $this->gi_version; + } + + /** + * Optional. Grid Infrastructure Version. + * + * Generated from protobuf field string gi_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setGiVersion($var) + { + GPBUtil::checkString($var, True); + $this->gi_version = $var; + + return $this; + } + + /** + * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified. + * + * Generated from protobuf field .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Type\TimeZone|null + */ + public function getTimeZone() + { + return $this->time_zone; + } + + public function hasTimeZone() + { + return isset($this->time_zone); + } + + public function clearTimeZone() + { + unset($this->time_zone); + } + + /** + * Optional. Time zone of VM Cluster to set. Defaults to UTC if not specified. + * + * Generated from protobuf field .google.type.TimeZone time_zone = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Type\TimeZone $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeZone::class); + $this->time_zone = $var; + + return $this; + } + + /** + * Optional. SSH public keys to be stored with cluster. + * + * Generated from protobuf field repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getSshPublicKeys() + { + return $this->ssh_public_keys; + } + + /** + * Optional. SSH public keys to be stored with cluster. + * + * Generated from protobuf field repeated string ssh_public_keys = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setSshPublicKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->ssh_public_keys = $arr; + + return $this; + } + + /** + * Optional. Number of database servers. + * + * Generated from protobuf field int32 node_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getNodeCount() + { + return $this->node_count; + } + + /** + * Optional. Number of database servers. + * + * Generated from protobuf field int32 node_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->node_count = $var; + + return $this; + } + + /** + * Output only. Shape of VM Cluster. + * + * Generated from protobuf field string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getShape() + { + return $this->shape; + } + + /** + * Output only. Shape of VM Cluster. + * + * Generated from protobuf field string shape = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setShape($var) + { + GPBUtil::checkString($var, True); + $this->shape = $var; + + return $this; + } + + /** + * Optional. OCPU count per VM. Minimum is 0.1. + * + * Generated from protobuf field float ocpu_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getOcpuCount() + { + return $this->ocpu_count; + } + + /** + * Optional. OCPU count per VM. Minimum is 0.1. + * + * Generated from protobuf field float ocpu_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setOcpuCount($var) + { + GPBUtil::checkFloat($var); + $this->ocpu_count = $var; + + return $this; + } + + /** + * Optional. Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMemorySizeGb() + { + return $this->memory_size_gb; + } + + /** + * Optional. Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMemorySizeGb($var) + { + GPBUtil::checkInt32($var); + $this->memory_size_gb = $var; + + return $this; + } + + /** + * Optional. Local storage per VM. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDbNodeStorageSizeGb() + { + return $this->db_node_storage_size_gb; + } + + /** + * Optional. Local storage per VM. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDbNodeStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->db_node_storage_size_gb = $var; + + return $this; + } + + /** + * Output only. The storage allocation for the disk group, in gigabytes (GB). + * + * Generated from protobuf field int32 storage_size_gb = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStorageSizeGb() + { + return $this->storage_size_gb; + } + + /** + * Output only. The storage allocation for the disk group, in gigabytes (GB). + * + * Generated from protobuf field int32 storage_size_gb = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->storage_size_gb = $var; + + return $this; + } + + /** + * Optional. The data disk group size to be allocated in TBs. + * + * Generated from protobuf field double data_storage_size_tb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return float + */ + public function getDataStorageSizeTb() + { + return $this->data_storage_size_tb; + } + + /** + * Optional. The data disk group size to be allocated in TBs. + * + * Generated from protobuf field double data_storage_size_tb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param float $var + * @return $this + */ + public function setDataStorageSizeTb($var) + { + GPBUtil::checkDouble($var); + $this->data_storage_size_tb = $var; + + return $this; + } + + /** + * Optional. The type of redundancy. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDiskRedundancy() + { + return $this->disk_redundancy; + } + + /** + * Optional. The type of redundancy. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy disk_redundancy = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDiskRedundancy($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties\DiskRedundancy::class); + $this->disk_redundancy = $var; + + return $this; + } + + /** + * Optional. Use exadata sparse snapshots. + * + * Generated from protobuf field bool sparse_diskgroup_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getSparseDiskgroupEnabled() + { + return $this->sparse_diskgroup_enabled; + } + + /** + * Optional. Use exadata sparse snapshots. + * + * Generated from protobuf field bool sparse_diskgroup_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setSparseDiskgroupEnabled($var) + { + GPBUtil::checkBool($var); + $this->sparse_diskgroup_enabled = $var; + + return $this; + } + + /** + * Optional. Use local backup. + * + * Generated from protobuf field bool local_backup_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getLocalBackupEnabled() + { + return $this->local_backup_enabled; + } + + /** + * Optional. Use local backup. + * + * Generated from protobuf field bool local_backup_enabled = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setLocalBackupEnabled($var) + { + GPBUtil::checkBool($var); + $this->local_backup_enabled = $var; + + return $this; + } + + /** + * Optional. Prefix for VM cluster host names. + * + * Generated from protobuf field string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getHostnamePrefix() + { + return $this->hostname_prefix; + } + + /** + * Optional. Prefix for VM cluster host names. + * + * Generated from protobuf field string hostname_prefix = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setHostnamePrefix($var) + { + GPBUtil::checkString($var, True); + $this->hostname_prefix = $var; + + return $this; + } + + /** + * Optional. Data collection options for diagnostics. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\OracleDatabase\V1\DataCollectionOptions|null + */ + public function getDiagnosticsDataCollectionOptions() + { + return $this->diagnostics_data_collection_options; + } + + public function hasDiagnosticsDataCollectionOptions() + { + return isset($this->diagnostics_data_collection_options); + } + + public function clearDiagnosticsDataCollectionOptions() + { + unset($this->diagnostics_data_collection_options); + } + + /** + * Optional. Data collection options for diagnostics. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DataCollectionOptions diagnostics_data_collection_options = 19 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\OracleDatabase\V1\DataCollectionOptions $var + * @return $this + */ + public function setDiagnosticsDataCollectionOptions($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\DataCollectionOptions::class); + $this->diagnostics_data_collection_options = $var; + + return $this; + } + + /** + * Output only. State of the cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the cluster. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmClusterProperties.State state = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. SCAN listener port - TCP + * + * Generated from protobuf field int32 scan_listener_port_tcp = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getScanListenerPortTcp() + { + return $this->scan_listener_port_tcp; + } + + /** + * Output only. SCAN listener port - TCP + * + * Generated from protobuf field int32 scan_listener_port_tcp = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setScanListenerPortTcp($var) + { + GPBUtil::checkInt32($var); + $this->scan_listener_port_tcp = $var; + + return $this; + } + + /** + * Output only. SCAN listener port - TLS + * + * Generated from protobuf field int32 scan_listener_port_tcp_ssl = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getScanListenerPortTcpSsl() + { + return $this->scan_listener_port_tcp_ssl; + } + + /** + * Output only. SCAN listener port - TLS + * + * Generated from protobuf field int32 scan_listener_port_tcp_ssl = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setScanListenerPortTcpSsl($var) + { + GPBUtil::checkInt32($var); + $this->scan_listener_port_tcp_ssl = $var; + + return $this; + } + + /** + * Output only. Parent DNS domain where SCAN DNS and hosts names are + * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com + * + * Generated from protobuf field string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDomain() + { + return $this->domain; + } + + /** + * Output only. Parent DNS domain where SCAN DNS and hosts names are + * qualified. ex: ocispdelegated.ocisp10jvnet.oraclevcn.com + * + * Generated from protobuf field string domain = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDomain($var) + { + GPBUtil::checkString($var, True); + $this->domain = $var; + + return $this; + } + + /** + * Output only. SCAN DNS name. + * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com + * + * Generated from protobuf field string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getScanDns() + { + return $this->scan_dns; + } + + /** + * Output only. SCAN DNS name. + * ex: sp2-yi0xq-scan.ocispdelegated.ocisp10jvnet.oraclevcn.com + * + * Generated from protobuf field string scan_dns = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setScanDns($var) + { + GPBUtil::checkString($var, True); + $this->scan_dns = $var; + + return $this; + } + + /** + * Output only. host name without domain. + * format: "-" with some suffix. + * ex: sp2-yi0xq where "sp2" is the hostname_prefix. + * + * Generated from protobuf field string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getHostname() + { + return $this->hostname; + } + + /** + * Output only. host name without domain. + * format: "-" with some suffix. + * ex: sp2-yi0xq where "sp2" is the hostname_prefix. + * + * Generated from protobuf field string hostname = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setHostname($var) + { + GPBUtil::checkString($var, True); + $this->hostname = $var; + + return $this; + } + + /** + * Required. Number of enabled CPU cores. + * + * Generated from protobuf field int32 cpu_core_count = 26 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getCpuCoreCount() + { + return $this->cpu_core_count; + } + + /** + * Required. Number of enabled CPU cores. + * + * Generated from protobuf field int32 cpu_core_count = 26 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setCpuCoreCount($var) + { + GPBUtil::checkInt32($var); + $this->cpu_core_count = $var; + + return $this; + } + + /** + * Optional. Operating system version of the image. + * + * Generated from protobuf field string system_version = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSystemVersion() + { + return $this->system_version; + } + + /** + * Optional. Operating system version of the image. + * + * Generated from protobuf field string system_version = 27 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSystemVersion($var) + { + GPBUtil::checkString($var, True); + $this->system_version = $var; + + return $this; + } + + /** + * Output only. OCIDs of scan IPs. + * + * Generated from protobuf field repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getScanIpIds() + { + return $this->scan_ip_ids; + } + + /** + * Output only. OCIDs of scan IPs. + * + * Generated from protobuf field repeated string scan_ip_ids = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setScanIpIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->scan_ip_ids = $arr; + + return $this; + } + + /** + * Output only. OCID of scan DNS record. + * + * Generated from protobuf field string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getScanDnsRecordId() + { + return $this->scan_dns_record_id; + } + + /** + * Output only. OCID of scan DNS record. + * + * Generated from protobuf field string scan_dns_record_id = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setScanDnsRecordId($var) + { + GPBUtil::checkString($var, True); + $this->scan_dns_record_id = $var; + + return $this; + } + + /** + * Output only. Deep link to the OCI console to view this resource. + * + * Generated from protobuf field string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOciUrl() + { + return $this->oci_url; + } + + /** + * Output only. Deep link to the OCI console to view this resource. + * + * Generated from protobuf field string oci_url = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOciUrl($var) + { + GPBUtil::checkString($var, True); + $this->oci_url = $var; + + return $this; + } + + /** + * Optional. OCID of database servers. + * + * Generated from protobuf field repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDbServerOcids() + { + return $this->db_server_ocids; + } + + /** + * Optional. OCID of database servers. + * + * Generated from protobuf field repeated string db_server_ocids = 31 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDbServerOcids($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->db_server_ocids = $arr; + + return $this; + } + + /** + * Output only. Compartment ID of cluster. + * + * Generated from protobuf field string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getCompartmentId() + { + return $this->compartment_id; + } + + /** + * Output only. Compartment ID of cluster. + * + * Generated from protobuf field string compartment_id = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setCompartmentId($var) + { + GPBUtil::checkString($var, True); + $this->compartment_id = $var; + + return $this; + } + + /** + * Output only. DNS listener IP. + * + * Generated from protobuf field string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDnsListenerIp() + { + return $this->dns_listener_ip; + } + + /** + * Output only. DNS listener IP. + * + * Generated from protobuf field string dns_listener_ip = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDnsListenerIp($var) + { + GPBUtil::checkString($var, True); + $this->dns_listener_ip = $var; + + return $this; + } + + /** + * Optional. OCI Cluster name. + * + * Generated from protobuf field string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getClusterName() + { + return $this->cluster_name; + } + + /** + * Optional. OCI Cluster name. + * + * Generated from protobuf field string cluster_name = 36 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setClusterName($var) + { + GPBUtil::checkString($var, True); + $this->cluster_name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/DiskRedundancy.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/DiskRedundancy.php new file mode 100644 index 00000000000..b386169f41a --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/DiskRedundancy.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.CloudVmClusterProperties.DiskRedundancy + */ +class DiskRedundancy +{ + /** + * Unspecified. + * + * Generated from protobuf enum DISK_REDUNDANCY_UNSPECIFIED = 0; + */ + const DISK_REDUNDANCY_UNSPECIFIED = 0; + /** + * High - 3 way mirror. + * + * Generated from protobuf enum HIGH = 1; + */ + const HIGH = 1; + /** + * Normal - 2 way mirror. + * + * Generated from protobuf enum NORMAL = 2; + */ + const NORMAL = 2; + + private static $valueToName = [ + self::DISK_REDUNDANCY_UNSPECIFIED => 'DISK_REDUNDANCY_UNSPECIFIED', + self::HIGH => 'HIGH', + self::NORMAL => 'NORMAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DiskRedundancy::class, \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties_DiskRedundancy::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/LicenseType.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/LicenseType.php new file mode 100644 index 00000000000..2a21b015c8b --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/LicenseType.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.CloudVmClusterProperties.LicenseType + */ +class LicenseType +{ + /** + * Unspecified + * + * Generated from protobuf enum LICENSE_TYPE_UNSPECIFIED = 0; + */ + const LICENSE_TYPE_UNSPECIFIED = 0; + /** + * License included part of offer + * + * Generated from protobuf enum LICENSE_INCLUDED = 1; + */ + const LICENSE_INCLUDED = 1; + /** + * Bring your own license + * + * Generated from protobuf enum BRING_YOUR_OWN_LICENSE = 2; + */ + const BRING_YOUR_OWN_LICENSE = 2; + + private static $valueToName = [ + self::LICENSE_TYPE_UNSPECIFIED => 'LICENSE_TYPE_UNSPECIFIED', + self::LICENSE_INCLUDED => 'LICENSE_INCLUDED', + self::BRING_YOUR_OWN_LICENSE => 'BRING_YOUR_OWN_LICENSE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(LicenseType::class, \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties_LicenseType::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/State.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/State.php new file mode 100644 index 00000000000..4ae5c9489a2 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CloudVmClusterProperties/State.php @@ -0,0 +1,99 @@ +google.cloud.oracledatabase.v1.CloudVmClusterProperties.State + */ +class State +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Indicates that the resource is in provisioning state. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * Indicates that the resource is in available state. + * + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; + /** + * Indicates that the resource is in updating state. + * + * Generated from protobuf enum UPDATING = 3; + */ + const UPDATING = 3; + /** + * Indicates that the resource is in terminating state. + * + * Generated from protobuf enum TERMINATING = 4; + */ + const TERMINATING = 4; + /** + * Indicates that the resource is in terminated state. + * + * Generated from protobuf enum TERMINATED = 5; + */ + const TERMINATED = 5; + /** + * Indicates that the resource is in failed state. + * + * Generated from protobuf enum FAILED = 6; + */ + const FAILED = 6; + /** + * Indicates that the resource is in maintenance in progress state. + * + * Generated from protobuf enum MAINTENANCE_IN_PROGRESS = 7; + */ + const MAINTENANCE_IN_PROGRESS = 7; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::AVAILABLE => 'AVAILABLE', + self::UPDATING => 'UPDATING', + self::TERMINATING => 'TERMINATING', + self::TERMINATED => 'TERMINATED', + self::FAILED => 'FAILED', + self::MAINTENANCE_IN_PROGRESS => 'MAINTENANCE_IN_PROGRESS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\OracleDatabase\V1\CloudVmClusterProperties_State::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateAutonomousDatabaseRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateAutonomousDatabaseRequest.php new file mode 100644 index 00000000000..5e4dc3542c9 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateAutonomousDatabaseRequest.php @@ -0,0 +1,241 @@ +google.cloud.oracledatabase.v1.CreateAutonomousDatabaseRequest + */ +class CreateAutonomousDatabaseRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autonomous_database_id = ''; + /** + * Required. The Autonomous Database being created. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $autonomous_database = null; + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * @param \Google\Cloud\OracleDatabase\V1\AutonomousDatabase $autonomousDatabase Required. The Autonomous Database being created. + * @param string $autonomousDatabaseId 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. + * + * @return \Google\Cloud\OracleDatabase\V1\CreateAutonomousDatabaseRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\OracleDatabase\V1\AutonomousDatabase $autonomousDatabase, string $autonomousDatabaseId): self + { + return (new self()) + ->setParent($parent) + ->setAutonomousDatabase($autonomousDatabase) + ->setAutonomousDatabaseId($autonomousDatabaseId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @type string $autonomous_database_id + * 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. + * @type \Google\Cloud\OracleDatabase\V1\AutonomousDatabase $autonomous_database + * Required. The Autonomous Database being created. + * @type string $request_id + * 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). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getAutonomousDatabaseId() + { + return $this->autonomous_database_id; + } + + /** + * 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. + * + * Generated from protobuf field string autonomous_database_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setAutonomousDatabaseId($var) + { + GPBUtil::checkString($var, True); + $this->autonomous_database_id = $var; + + return $this; + } + + /** + * Required. The Autonomous Database being created. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\OracleDatabase\V1\AutonomousDatabase|null + */ + public function getAutonomousDatabase() + { + return $this->autonomous_database; + } + + public function hasAutonomousDatabase() + { + return isset($this->autonomous_database); + } + + public function clearAutonomousDatabase() + { + unset($this->autonomous_database); + } + + /** + * Required. The Autonomous Database being created. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_database = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\OracleDatabase\V1\AutonomousDatabase $var + * @return $this + */ + public function setAutonomousDatabase($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\AutonomousDatabase::class); + $this->autonomous_database = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateCloudExadataInfrastructureRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateCloudExadataInfrastructureRequest.php new file mode 100644 index 00000000000..51f846ed3a8 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateCloudExadataInfrastructureRequest.php @@ -0,0 +1,241 @@ +google.cloud.oracledatabase.v1.CreateCloudExadataInfrastructureRequest + */ +class CreateCloudExadataInfrastructureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_exadata_infrastructure_id = ''; + /** + * Required. Details of the Exadata Infrastructure instance to create. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_exadata_infrastructure = null; + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * @param \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure $cloudExadataInfrastructure Required. Details of the Exadata Infrastructure instance to create. + * @param string $cloudExadataInfrastructureId 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. + * + * @return \Google\Cloud\OracleDatabase\V1\CreateCloudExadataInfrastructureRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure $cloudExadataInfrastructure, string $cloudExadataInfrastructureId): self + { + return (new self()) + ->setParent($parent) + ->setCloudExadataInfrastructure($cloudExadataInfrastructure) + ->setCloudExadataInfrastructureId($cloudExadataInfrastructureId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @type string $cloud_exadata_infrastructure_id + * 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. + * @type \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure $cloud_exadata_infrastructure + * Required. Details of the Exadata Infrastructure instance to create. + * @type string $request_id + * 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). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCloudExadataInfrastructureId() + { + return $this->cloud_exadata_infrastructure_id; + } + + /** + * 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. + * + * Generated from protobuf field string cloud_exadata_infrastructure_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCloudExadataInfrastructureId($var) + { + GPBUtil::checkString($var, True); + $this->cloud_exadata_infrastructure_id = $var; + + return $this; + } + + /** + * Required. Details of the Exadata Infrastructure instance to create. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure|null + */ + public function getCloudExadataInfrastructure() + { + return $this->cloud_exadata_infrastructure; + } + + public function hasCloudExadataInfrastructure() + { + return isset($this->cloud_exadata_infrastructure); + } + + public function clearCloudExadataInfrastructure() + { + unset($this->cloud_exadata_infrastructure); + } + + /** + * Required. Details of the Exadata Infrastructure instance to create. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructure = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure $var + * @return $this + */ + public function setCloudExadataInfrastructure($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure::class); + $this->cloud_exadata_infrastructure = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateCloudVmClusterRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateCloudVmClusterRequest.php new file mode 100644 index 00000000000..fa1b9db56ff --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CreateCloudVmClusterRequest.php @@ -0,0 +1,241 @@ +google.cloud.oracledatabase.v1.CreateCloudVmClusterRequest + */ +class CreateCloudVmClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_vm_cluster_id = ''; + /** + * Required. The resource being created + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $cloud_vm_cluster = null; + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * @param \Google\Cloud\OracleDatabase\V1\CloudVmCluster $cloudVmCluster Required. The resource being created + * @param string $cloudVmClusterId 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. + * + * @return \Google\Cloud\OracleDatabase\V1\CreateCloudVmClusterRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Cloud\OracleDatabase\V1\CloudVmCluster $cloudVmCluster, string $cloudVmClusterId): self + { + return (new self()) + ->setParent($parent) + ->setCloudVmCluster($cloudVmCluster) + ->setCloudVmClusterId($cloudVmClusterId); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @type string $cloud_vm_cluster_id + * 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. + * @type \Google\Cloud\OracleDatabase\V1\CloudVmCluster $cloud_vm_cluster + * Required. The resource being created + * @type string $request_id + * 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). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCloudVmClusterId() + { + return $this->cloud_vm_cluster_id; + } + + /** + * 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. + * + * Generated from protobuf field string cloud_vm_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCloudVmClusterId($var) + { + GPBUtil::checkString($var, True); + $this->cloud_vm_cluster_id = $var; + + return $this; + } + + /** + * Required. The resource being created + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Cloud\OracleDatabase\V1\CloudVmCluster|null + */ + public function getCloudVmCluster() + { + return $this->cloud_vm_cluster; + } + + public function hasCloudVmCluster() + { + return isset($this->cloud_vm_cluster); + } + + public function clearCloudVmCluster() + { + unset($this->cloud_vm_cluster); + } + + /** + * Required. The resource being created + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Cloud\OracleDatabase\V1\CloudVmCluster $var + * @return $this + */ + public function setCloudVmCluster($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\CloudVmCluster::class); + $this->cloud_vm_cluster = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CustomerContact.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CustomerContact.php new file mode 100644 index 00000000000..0fa28d175e7 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/CustomerContact.php @@ -0,0 +1,72 @@ +google.cloud.oracledatabase.v1.CustomerContact + */ +class CustomerContact extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The email address used by Oracle to send notifications regarding + * databases and infrastructure. + * + * Generated from protobuf field string email = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $email = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $email + * Required. The email address used by Oracle to send notifications regarding + * databases and infrastructure. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Common::initOnce(); + parent::__construct($data); + } + + /** + * Required. The email address used by Oracle to send notifications regarding + * databases and infrastructure. + * + * Generated from protobuf field string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * Required. The email address used by Oracle to send notifications regarding + * databases and infrastructure. + * + * Generated from protobuf field string email = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DBWorkload.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DBWorkload.php new file mode 100644 index 00000000000..72cf4268477 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DBWorkload.php @@ -0,0 +1,76 @@ +google.cloud.oracledatabase.v1.DBWorkload + */ +class DBWorkload +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum DB_WORKLOAD_UNSPECIFIED = 0; + */ + const DB_WORKLOAD_UNSPECIFIED = 0; + /** + * Autonomous Transaction Processing database. + * + * Generated from protobuf enum OLTP = 1; + */ + const OLTP = 1; + /** + * Autonomous Data Warehouse database. + * + * Generated from protobuf enum DW = 2; + */ + const DW = 2; + /** + * Autonomous JSON Database. + * + * Generated from protobuf enum AJD = 3; + */ + const AJD = 3; + /** + * Autonomous Database with the Oracle APEX Application Development workload + * type. + * + * Generated from protobuf enum APEX = 4; + */ + const APEX = 4; + + private static $valueToName = [ + self::DB_WORKLOAD_UNSPECIFIED => 'DB_WORKLOAD_UNSPECIFIED', + self::OLTP => 'OLTP', + self::DW => 'DW', + self::AJD => 'AJD', + self::APEX => 'APEX', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DataCollectionOptions.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DataCollectionOptions.php new file mode 100644 index 00000000000..d7c34a0fe64 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DataCollectionOptions.php @@ -0,0 +1,143 @@ +google.cloud.oracledatabase.v1.DataCollectionOptions + */ +class DataCollectionOptions extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. Indicates whether diagnostic collection is enabled for the VM + * cluster + * + * Generated from protobuf field bool diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $diagnostics_events_enabled = false; + /** + * Optional. Indicates whether health monitoring is enabled for the VM cluster + * + * Generated from protobuf field bool health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $health_monitoring_enabled = false; + /** + * Optional. Indicates whether incident logs and trace collection are enabled + * for the VM cluster + * + * Generated from protobuf field bool incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $incident_logs_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $diagnostics_events_enabled + * Optional. Indicates whether diagnostic collection is enabled for the VM + * cluster + * @type bool $health_monitoring_enabled + * Optional. Indicates whether health monitoring is enabled for the VM cluster + * @type bool $incident_logs_enabled + * Optional. Indicates whether incident logs and trace collection are enabled + * for the VM cluster + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\VmCluster::initOnce(); + parent::__construct($data); + } + + /** + * Optional. Indicates whether diagnostic collection is enabled for the VM + * cluster + * + * Generated from protobuf field bool diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getDiagnosticsEventsEnabled() + { + return $this->diagnostics_events_enabled; + } + + /** + * Optional. Indicates whether diagnostic collection is enabled for the VM + * cluster + * + * Generated from protobuf field bool diagnostics_events_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setDiagnosticsEventsEnabled($var) + { + GPBUtil::checkBool($var); + $this->diagnostics_events_enabled = $var; + + return $this; + } + + /** + * Optional. Indicates whether health monitoring is enabled for the VM cluster + * + * Generated from protobuf field bool health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getHealthMonitoringEnabled() + { + return $this->health_monitoring_enabled; + } + + /** + * Optional. Indicates whether health monitoring is enabled for the VM cluster + * + * Generated from protobuf field bool health_monitoring_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setHealthMonitoringEnabled($var) + { + GPBUtil::checkBool($var); + $this->health_monitoring_enabled = $var; + + return $this; + } + + /** + * Optional. Indicates whether incident logs and trace collection are enabled + * for the VM cluster + * + * Generated from protobuf field bool incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIncidentLogsEnabled() + { + return $this->incident_logs_enabled; + } + + /** + * Optional. Indicates whether incident logs and trace collection are enabled + * for the VM cluster + * + * Generated from protobuf field bool incident_logs_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIncidentLogsEnabled($var) + { + GPBUtil::checkBool($var); + $this->incident_logs_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile.php new file mode 100644 index 00000000000..8b1f7064767 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile.php @@ -0,0 +1,352 @@ +google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile + */ +class DatabaseConnectionStringProfile extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The current consumer group being used by the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $consumer_group = 0; + /** + * Output only. The display name for the database connection. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $display_name = ''; + /** + * Output only. The host name format being currently used in connection + * string. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $host_format = 0; + /** + * Output only. This field indicates if the connection string is regional and + * is only applicable for cross-region Data Guard. + * + * Generated from protobuf field bool is_regional = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $is_regional = false; + /** + * Output only. The protocol being used by the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $protocol = 0; + /** + * Output only. The current session mode of the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $session_mode = 0; + /** + * Output only. The syntax of the connection string. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $syntax_format = 0; + /** + * Output only. This field indicates the TLS authentication type of the + * connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $tls_authentication = 0; + /** + * Output only. The value of the connection string. + * + * Generated from protobuf field string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $consumer_group + * Output only. The current consumer group being used by the connection. + * @type string $display_name + * Output only. The display name for the database connection. + * @type int $host_format + * Output only. The host name format being currently used in connection + * string. + * @type bool $is_regional + * Output only. This field indicates if the connection string is regional and + * is only applicable for cross-region Data Guard. + * @type int $protocol + * Output only. The protocol being used by the connection. + * @type int $session_mode + * Output only. The current session mode of the connection. + * @type int $syntax_format + * Output only. The syntax of the connection string. + * @type int $tls_authentication + * Output only. This field indicates the TLS authentication type of the + * connection. + * @type string $value + * Output only. The value of the connection string. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The current consumer group being used by the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getConsumerGroup() + { + return $this->consumer_group; + } + + /** + * Output only. The current consumer group being used by the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup consumer_group = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setConsumerGroup($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile\ConsumerGroup::class); + $this->consumer_group = $var; + + return $this; + } + + /** + * Output only. The display name for the database connection. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Output only. The display name for the database connection. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The host name format being currently used in connection + * string. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getHostFormat() + { + return $this->host_format; + } + + /** + * Output only. The host name format being currently used in connection + * string. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat host_format = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setHostFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile\HostFormat::class); + $this->host_format = $var; + + return $this; + } + + /** + * Output only. This field indicates if the connection string is regional and + * is only applicable for cross-region Data Guard. + * + * Generated from protobuf field bool is_regional = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getIsRegional() + { + return $this->is_regional; + } + + /** + * Output only. This field indicates if the connection string is regional and + * is only applicable for cross-region Data Guard. + * + * Generated from protobuf field bool is_regional = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setIsRegional($var) + { + GPBUtil::checkBool($var); + $this->is_regional = $var; + + return $this; + } + + /** + * Output only. The protocol being used by the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getProtocol() + { + return $this->protocol; + } + + /** + * Output only. The protocol being used by the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol protocol = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setProtocol($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile\Protocol::class); + $this->protocol = $var; + + return $this; + } + + /** + * Output only. The current session mode of the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSessionMode() + { + return $this->session_mode; + } + + /** + * Output only. The current session mode of the connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode session_mode = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSessionMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile\SessionMode::class); + $this->session_mode = $var; + + return $this; + } + + /** + * Output only. The syntax of the connection string. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getSyntaxFormat() + { + return $this->syntax_format; + } + + /** + * Output only. The syntax of the connection string. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat syntax_format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setSyntaxFormat($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile\SyntaxFormat::class); + $this->syntax_format = $var; + + return $this; + } + + /** + * Output only. This field indicates the TLS authentication type of the + * connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getTlsAuthentication() + { + return $this->tls_authentication; + } + + /** + * Output only. This field indicates the TLS authentication type of the + * connection. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication tls_authentication = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setTlsAuthentication($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile\TLSAuthentication::class); + $this->tls_authentication = $var; + + return $this; + } + + /** + * Output only. The value of the connection string. + * + * Generated from protobuf field string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Output only. The value of the connection string. + * + * Generated from protobuf field string value = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/ConsumerGroup.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/ConsumerGroup.php new file mode 100644 index 00000000000..929945ac2eb --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/ConsumerGroup.php @@ -0,0 +1,85 @@ +google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.ConsumerGroup + */ +class ConsumerGroup +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum CONSUMER_GROUP_UNSPECIFIED = 0; + */ + const CONSUMER_GROUP_UNSPECIFIED = 0; + /** + * High consumer group. + * + * Generated from protobuf enum HIGH = 1; + */ + const HIGH = 1; + /** + * Medium consumer group. + * + * Generated from protobuf enum MEDIUM = 2; + */ + const MEDIUM = 2; + /** + * Low consumer group. + * + * Generated from protobuf enum LOW = 3; + */ + const LOW = 3; + /** + * TP consumer group. + * + * Generated from protobuf enum TP = 4; + */ + const TP = 4; + /** + * TPURGENT consumer group. + * + * Generated from protobuf enum TPURGENT = 5; + */ + const TPURGENT = 5; + + private static $valueToName = [ + self::CONSUMER_GROUP_UNSPECIFIED => 'CONSUMER_GROUP_UNSPECIFIED', + self::HIGH => 'HIGH', + self::MEDIUM => 'MEDIUM', + self::LOW => 'LOW', + self::TP => 'TP', + self::TPURGENT => 'TPURGENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConsumerGroup::class, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile_ConsumerGroup::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/HostFormat.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/HostFormat.php new file mode 100644 index 00000000000..4c80de56aed --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/HostFormat.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.HostFormat + */ +class HostFormat +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum HOST_FORMAT_UNSPECIFIED = 0; + */ + const HOST_FORMAT_UNSPECIFIED = 0; + /** + * FQDN + * + * Generated from protobuf enum FQDN = 1; + */ + const FQDN = 1; + /** + * IP + * + * Generated from protobuf enum IP = 2; + */ + const IP = 2; + + private static $valueToName = [ + self::HOST_FORMAT_UNSPECIFIED => 'HOST_FORMAT_UNSPECIFIED', + self::FQDN => 'FQDN', + self::IP => 'IP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(HostFormat::class, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile_HostFormat::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/Protocol.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/Protocol.php new file mode 100644 index 00000000000..b997f9c87ff --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/Protocol.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.Protocol + */ +class Protocol +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum PROTOCOL_UNSPECIFIED = 0; + */ + const PROTOCOL_UNSPECIFIED = 0; + /** + * Tcp + * + * Generated from protobuf enum TCP = 1; + */ + const TCP = 1; + /** + * Tcps + * + * Generated from protobuf enum TCPS = 2; + */ + const TCPS = 2; + + private static $valueToName = [ + self::PROTOCOL_UNSPECIFIED => 'PROTOCOL_UNSPECIFIED', + self::TCP => 'TCP', + self::TCPS => 'TCPS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Protocol::class, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile_Protocol::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/SessionMode.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/SessionMode.php new file mode 100644 index 00000000000..03776dd8298 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/SessionMode.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SessionMode + */ +class SessionMode +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum SESSION_MODE_UNSPECIFIED = 0; + */ + const SESSION_MODE_UNSPECIFIED = 0; + /** + * Direct + * + * Generated from protobuf enum DIRECT = 1; + */ + const DIRECT = 1; + /** + * Indirect + * + * Generated from protobuf enum INDIRECT = 2; + */ + const INDIRECT = 2; + + private static $valueToName = [ + self::SESSION_MODE_UNSPECIFIED => 'SESSION_MODE_UNSPECIFIED', + self::DIRECT => 'DIRECT', + self::INDIRECT => 'INDIRECT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SessionMode::class, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile_SessionMode::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/SyntaxFormat.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/SyntaxFormat.php new file mode 100644 index 00000000000..1aec22587f7 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/SyntaxFormat.php @@ -0,0 +1,71 @@ +google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.SyntaxFormat + */ +class SyntaxFormat +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum SYNTAX_FORMAT_UNSPECIFIED = 0; + */ + const SYNTAX_FORMAT_UNSPECIFIED = 0; + /** + * Long + * + * Generated from protobuf enum LONG = 1; + */ + const LONG = 1; + /** + * Ezconnect + * + * Generated from protobuf enum EZCONNECT = 2; + */ + const EZCONNECT = 2; + /** + * Ezconnectplus + * + * Generated from protobuf enum EZCONNECTPLUS = 3; + */ + const EZCONNECTPLUS = 3; + + private static $valueToName = [ + self::SYNTAX_FORMAT_UNSPECIFIED => 'SYNTAX_FORMAT_UNSPECIFIED', + self::LONG => 'LONG', + self::EZCONNECT => 'EZCONNECT', + self::EZCONNECTPLUS => 'EZCONNECTPLUS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SyntaxFormat::class, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile_SyntaxFormat::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/TLSAuthentication.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/TLSAuthentication.php new file mode 100644 index 00000000000..e94024b177f --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DatabaseConnectionStringProfile/TLSAuthentication.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.DatabaseConnectionStringProfile.TLSAuthentication + */ +class TLSAuthentication +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum TLS_AUTHENTICATION_UNSPECIFIED = 0; + */ + const TLS_AUTHENTICATION_UNSPECIFIED = 0; + /** + * Server + * + * Generated from protobuf enum SERVER = 1; + */ + const SERVER = 1; + /** + * Mutual + * + * Generated from protobuf enum MUTUAL = 2; + */ + const MUTUAL = 2; + + private static $valueToName = [ + self::TLS_AUTHENTICATION_UNSPECIFIED => 'TLS_AUTHENTICATION_UNSPECIFIED', + self::SERVER => 'SERVER', + self::MUTUAL => 'MUTUAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(TLSAuthentication::class, \Google\Cloud\OracleDatabase\V1\DatabaseConnectionStringProfile_TLSAuthentication::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNode.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNode.php new file mode 100644 index 00000000000..fadef514cd9 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNode.php @@ -0,0 +1,116 @@ +google.cloud.oracledatabase.v1.DbNode + */ +class DbNode extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the database node resource in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. Various properties of the database node. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the database node resource in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node} + * @type \Google\Cloud\OracleDatabase\V1\DbNodeProperties $properties + * Optional. Various properties of the database node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\DbNode::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the database node resource in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the database node resource in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}/dbNodes/{db_node} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. Various properties of the database node. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\OracleDatabase\V1\DbNodeProperties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Optional. Various properties of the database node. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbNodeProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\OracleDatabase\V1\DbNodeProperties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\DbNodeProperties::class); + $this->properties = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNodeProperties.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNodeProperties.php new file mode 100644 index 00000000000..039b98065d2 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNodeProperties.php @@ -0,0 +1,305 @@ +google.cloud.oracledatabase.v1.DbNodeProperties + */ +class DbNodeProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. OCID of database node. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ocid = ''; + /** + * Optional. OCPU count per database node. + * + * Generated from protobuf field int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ocpu_count = 0; + /** + * Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 3; + */ + protected $memory_size_gb = 0; + /** + * Optional. Local storage per database node. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $db_node_storage_size_gb = 0; + /** + * Optional. Database server OCID. + * + * Generated from protobuf field string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $db_server_ocid = ''; + /** + * Optional. DNS + * + * Generated from protobuf field string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $hostname = ''; + /** + * Output only. State of the database node. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Total CPU core count of the database node. + * + * Generated from protobuf field int32 total_cpu_core_count = 10; + */ + protected $total_cpu_core_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ocid + * Output only. OCID of database node. + * @type int $ocpu_count + * Optional. OCPU count per database node. + * @type int $memory_size_gb + * Memory allocated in GBs. + * @type int $db_node_storage_size_gb + * Optional. Local storage per database node. + * @type string $db_server_ocid + * Optional. Database server OCID. + * @type string $hostname + * Optional. DNS + * @type int $state + * Output only. State of the database node. + * @type int $total_cpu_core_count + * Total CPU core count of the database node. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\DbNode::initOnce(); + parent::__construct($data); + } + + /** + * Output only. OCID of database node. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOcid() + { + return $this->ocid; + } + + /** + * Output only. OCID of database node. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOcid($var) + { + GPBUtil::checkString($var, True); + $this->ocid = $var; + + return $this; + } + + /** + * Optional. OCPU count per database node. + * + * Generated from protobuf field int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOcpuCount() + { + return $this->ocpu_count; + } + + /** + * Optional. OCPU count per database node. + * + * Generated from protobuf field int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOcpuCount($var) + { + GPBUtil::checkInt32($var); + $this->ocpu_count = $var; + + return $this; + } + + /** + * Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 3; + * @return int + */ + public function getMemorySizeGb() + { + return $this->memory_size_gb; + } + + /** + * Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 3; + * @param int $var + * @return $this + */ + public function setMemorySizeGb($var) + { + GPBUtil::checkInt32($var); + $this->memory_size_gb = $var; + + return $this; + } + + /** + * Optional. Local storage per database node. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDbNodeStorageSizeGb() + { + return $this->db_node_storage_size_gb; + } + + /** + * Optional. Local storage per database node. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDbNodeStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->db_node_storage_size_gb = $var; + + return $this; + } + + /** + * Optional. Database server OCID. + * + * Generated from protobuf field string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDbServerOcid() + { + return $this->db_server_ocid; + } + + /** + * Optional. Database server OCID. + * + * Generated from protobuf field string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDbServerOcid($var) + { + GPBUtil::checkString($var, True); + $this->db_server_ocid = $var; + + return $this; + } + + /** + * Optional. DNS + * + * Generated from protobuf field string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getHostname() + { + return $this->hostname; + } + + /** + * Optional. DNS + * + * Generated from protobuf field string hostname = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setHostname($var) + { + GPBUtil::checkString($var, True); + $this->hostname = $var; + + return $this; + } + + /** + * Output only. State of the database node. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the database node. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DbNodeProperties\State::class); + $this->state = $var; + + return $this; + } + + /** + * Total CPU core count of the database node. + * + * Generated from protobuf field int32 total_cpu_core_count = 10; + * @return int + */ + public function getTotalCpuCoreCount() + { + return $this->total_cpu_core_count; + } + + /** + * Total CPU core count of the database node. + * + * Generated from protobuf field int32 total_cpu_core_count = 10; + * @param int $var + * @return $this + */ + public function setTotalCpuCoreCount($var) + { + GPBUtil::checkInt32($var); + $this->total_cpu_core_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNodeProperties/State.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNodeProperties/State.php new file mode 100644 index 00000000000..dc053f553af --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbNodeProperties/State.php @@ -0,0 +1,113 @@ +google.cloud.oracledatabase.v1.DbNodeProperties.State + */ +class State +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Indicates that the resource is in provisioning state. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * Indicates that the resource is in available state. + * + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; + /** + * Indicates that the resource is in updating state. + * + * Generated from protobuf enum UPDATING = 3; + */ + const UPDATING = 3; + /** + * Indicates that the resource is in stopping state. + * + * Generated from protobuf enum STOPPING = 4; + */ + const STOPPING = 4; + /** + * Indicates that the resource is in stopped state. + * + * Generated from protobuf enum STOPPED = 5; + */ + const STOPPED = 5; + /** + * Indicates that the resource is in starting state. + * + * Generated from protobuf enum STARTING = 6; + */ + const STARTING = 6; + /** + * Indicates that the resource is in terminating state. + * + * Generated from protobuf enum TERMINATING = 7; + */ + const TERMINATING = 7; + /** + * Indicates that the resource is in terminated state. + * + * Generated from protobuf enum TERMINATED = 8; + */ + const TERMINATED = 8; + /** + * Indicates that the resource is in failed state. + * + * Generated from protobuf enum FAILED = 9; + */ + const FAILED = 9; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::AVAILABLE => 'AVAILABLE', + self::UPDATING => 'UPDATING', + self::STOPPING => 'STOPPING', + self::STOPPED => 'STOPPED', + self::STARTING => 'STARTING', + self::TERMINATING => 'TERMINATING', + self::TERMINATED => 'TERMINATED', + self::FAILED => 'FAILED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\OracleDatabase\V1\DbNodeProperties_State::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServer.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServer.php new file mode 100644 index 00000000000..c0ffe3f9951 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServer.php @@ -0,0 +1,150 @@ +google.cloud.oracledatabase.v1.DbServer + */ +class DbServer extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the database server resource with the format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $display_name = ''; + /** + * Optional. Various properties of the database server. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $properties = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the database server resource with the format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server} + * @type string $display_name + * Optional. User friendly name for this resource. + * @type \Google\Cloud\OracleDatabase\V1\DbServerProperties $properties + * Optional. Various properties of the database server. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\DbServer::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the database server resource with the format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the database server resource with the format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}/dbServers/{db_server} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. User friendly name for this resource. + * + * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. Various properties of the database server. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\OracleDatabase\V1\DbServerProperties|null + */ + public function getProperties() + { + return $this->properties; + } + + public function hasProperties() + { + return isset($this->properties); + } + + public function clearProperties() + { + unset($this->properties); + } + + /** + * Optional. Various properties of the database server. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbServerProperties properties = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\OracleDatabase\V1\DbServerProperties $var + * @return $this + */ + public function setProperties($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\DbServerProperties::class); + $this->properties = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServerProperties.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServerProperties.php new file mode 100644 index 00000000000..61585de65cc --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServerProperties.php @@ -0,0 +1,373 @@ +google.cloud.oracledatabase.v1.DbServerProperties + */ +class DbServerProperties extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. OCID of database server. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $ocid = ''; + /** + * Optional. OCPU count per database. + * + * Generated from protobuf field int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ocpu_count = 0; + /** + * Optional. Maximum OCPU count per database. + * + * Generated from protobuf field int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_ocpu_count = 0; + /** + * Optional. Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $memory_size_gb = 0; + /** + * Optional. Maximum memory allocated in GBs. + * + * Generated from protobuf field int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_memory_size_gb = 0; + /** + * Optional. Local storage per VM. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $db_node_storage_size_gb = 0; + /** + * Optional. Maximum local storage per VM. + * + * Generated from protobuf field int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_db_node_storage_size_gb = 0; + /** + * Optional. Vm count per database. + * + * Generated from protobuf field int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $vm_count = 0; + /** + * Output only. State of the database server. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + /** + * Output only. OCID of database nodes associated with the database server. + * + * Generated from protobuf field repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $db_node_ids; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $ocid + * Output only. OCID of database server. + * @type int $ocpu_count + * Optional. OCPU count per database. + * @type int $max_ocpu_count + * Optional. Maximum OCPU count per database. + * @type int $memory_size_gb + * Optional. Memory allocated in GBs. + * @type int $max_memory_size_gb + * Optional. Maximum memory allocated in GBs. + * @type int $db_node_storage_size_gb + * Optional. Local storage per VM. + * @type int $max_db_node_storage_size_gb + * Optional. Maximum local storage per VM. + * @type int $vm_count + * Optional. Vm count per database. + * @type int $state + * Output only. State of the database server. + * @type array|\Google\Protobuf\Internal\RepeatedField $db_node_ids + * Output only. OCID of database nodes associated with the database server. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\DbServer::initOnce(); + parent::__construct($data); + } + + /** + * Output only. OCID of database server. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getOcid() + { + return $this->ocid; + } + + /** + * Output only. OCID of database server. + * + * Generated from protobuf field string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setOcid($var) + { + GPBUtil::checkString($var, True); + $this->ocid = $var; + + return $this; + } + + /** + * Optional. OCPU count per database. + * + * Generated from protobuf field int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOcpuCount() + { + return $this->ocpu_count; + } + + /** + * Optional. OCPU count per database. + * + * Generated from protobuf field int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOcpuCount($var) + { + GPBUtil::checkInt32($var); + $this->ocpu_count = $var; + + return $this; + } + + /** + * Optional. Maximum OCPU count per database. + * + * Generated from protobuf field int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxOcpuCount() + { + return $this->max_ocpu_count; + } + + /** + * Optional. Maximum OCPU count per database. + * + * Generated from protobuf field int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxOcpuCount($var) + { + GPBUtil::checkInt32($var); + $this->max_ocpu_count = $var; + + return $this; + } + + /** + * Optional. Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMemorySizeGb() + { + return $this->memory_size_gb; + } + + /** + * Optional. Memory allocated in GBs. + * + * Generated from protobuf field int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMemorySizeGb($var) + { + GPBUtil::checkInt32($var); + $this->memory_size_gb = $var; + + return $this; + } + + /** + * Optional. Maximum memory allocated in GBs. + * + * Generated from protobuf field int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxMemorySizeGb() + { + return $this->max_memory_size_gb; + } + + /** + * Optional. Maximum memory allocated in GBs. + * + * Generated from protobuf field int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxMemorySizeGb($var) + { + GPBUtil::checkInt32($var); + $this->max_memory_size_gb = $var; + + return $this; + } + + /** + * Optional. Local storage per VM. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDbNodeStorageSizeGb() + { + return $this->db_node_storage_size_gb; + } + + /** + * Optional. Local storage per VM. + * + * Generated from protobuf field int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDbNodeStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->db_node_storage_size_gb = $var; + + return $this; + } + + /** + * Optional. Maximum local storage per VM. + * + * Generated from protobuf field int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxDbNodeStorageSizeGb() + { + return $this->max_db_node_storage_size_gb; + } + + /** + * Optional. Maximum local storage per VM. + * + * Generated from protobuf field int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxDbNodeStorageSizeGb($var) + { + GPBUtil::checkInt32($var); + $this->max_db_node_storage_size_gb = $var; + + return $this; + } + + /** + * Optional. Vm count per database. + * + * Generated from protobuf field int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getVmCount() + { + return $this->vm_count; + } + + /** + * Optional. Vm count per database. + * + * Generated from protobuf field int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setVmCount($var) + { + GPBUtil::checkInt32($var); + $this->vm_count = $var; + + return $this; + } + + /** + * Output only. State of the database server. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. State of the database server. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\DbServerProperties\State::class); + $this->state = $var; + + return $this; + } + + /** + * Output only. OCID of database nodes associated with the database server. + * + * Generated from protobuf field repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDbNodeIds() + { + return $this->db_node_ids; + } + + /** + * Output only. OCID of database nodes associated with the database server. + * + * Generated from protobuf field repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDbNodeIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->db_node_ids = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServerProperties/State.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServerProperties/State.php new file mode 100644 index 00000000000..9418d0c58bd --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbServerProperties/State.php @@ -0,0 +1,85 @@ +google.cloud.oracledatabase.v1.DbServerProperties.State + */ +class State +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Indicates that the resource is in creating state. + * + * Generated from protobuf enum CREATING = 1; + */ + const CREATING = 1; + /** + * Indicates that the resource is in available state. + * + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; + /** + * Indicates that the resource is in unavailable state. + * + * Generated from protobuf enum UNAVAILABLE = 3; + */ + const UNAVAILABLE = 3; + /** + * Indicates that the resource is in deleting state. + * + * Generated from protobuf enum DELETING = 4; + */ + const DELETING = 4; + /** + * Indicates that the resource is in deleted state. + * + * Generated from protobuf enum DELETED = 5; + */ + const DELETED = 5; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::CREATING => 'CREATING', + self::AVAILABLE => 'AVAILABLE', + self::UNAVAILABLE => 'UNAVAILABLE', + self::DELETING => 'DELETING', + self::DELETED => 'DELETED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\OracleDatabase\V1\DbServerProperties_State::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbSystemShape.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbSystemShape.php new file mode 100644 index 00000000000..9d22965d8b4 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DbSystemShape.php @@ -0,0 +1,446 @@ +google.cloud.oracledatabase.v1.DbSystemShape + */ +class DbSystemShape extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Database System Shape resource with the format: + * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. shape + * + * Generated from protobuf field string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $shape = ''; + /** + * Optional. Minimum number of database servers. + * + * Generated from protobuf field int32 min_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_node_count = 0; + /** + * Optional. Maximum number of database servers. + * + * Generated from protobuf field int32 max_node_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_node_count = 0; + /** + * Optional. Minimum number of storage servers. + * + * Generated from protobuf field int32 min_storage_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_storage_count = 0; + /** + * Optional. Maximum number of storage servers. + * + * Generated from protobuf field int32 max_storage_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_storage_count = 0; + /** + * Optional. Number of cores per node. + * + * Generated from protobuf field int32 available_core_count_per_node = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $available_core_count_per_node = 0; + /** + * Optional. Memory per database server node in gigabytes. + * + * Generated from protobuf field int32 available_memory_per_node_gb = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $available_memory_per_node_gb = 0; + /** + * Optional. Storage per storage server in terabytes. + * + * Generated from protobuf field int32 available_data_storage_tb = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $available_data_storage_tb = 0; + /** + * Optional. Minimum core count per node. + * + * Generated from protobuf field int32 min_core_count_per_node = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_core_count_per_node = 0; + /** + * Optional. Minimum memory per node in gigabytes. + * + * Generated from protobuf field int32 min_memory_per_node_gb = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_memory_per_node_gb = 0; + /** + * Optional. Minimum node storage per database server in gigabytes. + * + * Generated from protobuf field int32 min_db_node_storage_per_node_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_db_node_storage_per_node_gb = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Database System Shape resource with the format: + * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape} + * @type string $shape + * Optional. shape + * @type int $min_node_count + * Optional. Minimum number of database servers. + * @type int $max_node_count + * Optional. Maximum number of database servers. + * @type int $min_storage_count + * Optional. Minimum number of storage servers. + * @type int $max_storage_count + * Optional. Maximum number of storage servers. + * @type int $available_core_count_per_node + * Optional. Number of cores per node. + * @type int $available_memory_per_node_gb + * Optional. Memory per database server node in gigabytes. + * @type int $available_data_storage_tb + * Optional. Storage per storage server in terabytes. + * @type int $min_core_count_per_node + * Optional. Minimum core count per node. + * @type int $min_memory_per_node_gb + * Optional. Minimum memory per node in gigabytes. + * @type int $min_db_node_storage_per_node_gb + * Optional. Minimum node storage per database server in gigabytes. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\DbSystemShape::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Database System Shape resource with the format: + * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Database System Shape resource with the format: + * projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. shape + * + * Generated from protobuf field string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getShape() + { + return $this->shape; + } + + /** + * Optional. shape + * + * Generated from protobuf field string shape = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setShape($var) + { + GPBUtil::checkString($var, True); + $this->shape = $var; + + return $this; + } + + /** + * Optional. Minimum number of database servers. + * + * Generated from protobuf field int32 min_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMinNodeCount() + { + return $this->min_node_count; + } + + /** + * Optional. Minimum number of database servers. + * + * Generated from protobuf field int32 min_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMinNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_node_count = $var; + + return $this; + } + + /** + * Optional. Maximum number of database servers. + * + * Generated from protobuf field int32 max_node_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxNodeCount() + { + return $this->max_node_count; + } + + /** + * Optional. Maximum number of database servers. + * + * Generated from protobuf field int32 max_node_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_node_count = $var; + + return $this; + } + + /** + * Optional. Minimum number of storage servers. + * + * Generated from protobuf field int32 min_storage_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMinStorageCount() + { + return $this->min_storage_count; + } + + /** + * Optional. Minimum number of storage servers. + * + * Generated from protobuf field int32 min_storage_count = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMinStorageCount($var) + { + GPBUtil::checkInt32($var); + $this->min_storage_count = $var; + + return $this; + } + + /** + * Optional. Maximum number of storage servers. + * + * Generated from protobuf field int32 max_storage_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxStorageCount() + { + return $this->max_storage_count; + } + + /** + * Optional. Maximum number of storage servers. + * + * Generated from protobuf field int32 max_storage_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxStorageCount($var) + { + GPBUtil::checkInt32($var); + $this->max_storage_count = $var; + + return $this; + } + + /** + * Optional. Number of cores per node. + * + * Generated from protobuf field int32 available_core_count_per_node = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAvailableCoreCountPerNode() + { + return $this->available_core_count_per_node; + } + + /** + * Optional. Number of cores per node. + * + * Generated from protobuf field int32 available_core_count_per_node = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAvailableCoreCountPerNode($var) + { + GPBUtil::checkInt32($var); + $this->available_core_count_per_node = $var; + + return $this; + } + + /** + * Optional. Memory per database server node in gigabytes. + * + * Generated from protobuf field int32 available_memory_per_node_gb = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAvailableMemoryPerNodeGb() + { + return $this->available_memory_per_node_gb; + } + + /** + * Optional. Memory per database server node in gigabytes. + * + * Generated from protobuf field int32 available_memory_per_node_gb = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAvailableMemoryPerNodeGb($var) + { + GPBUtil::checkInt32($var); + $this->available_memory_per_node_gb = $var; + + return $this; + } + + /** + * Optional. Storage per storage server in terabytes. + * + * Generated from protobuf field int32 available_data_storage_tb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getAvailableDataStorageTb() + { + return $this->available_data_storage_tb; + } + + /** + * Optional. Storage per storage server in terabytes. + * + * Generated from protobuf field int32 available_data_storage_tb = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setAvailableDataStorageTb($var) + { + GPBUtil::checkInt32($var); + $this->available_data_storage_tb = $var; + + return $this; + } + + /** + * Optional. Minimum core count per node. + * + * Generated from protobuf field int32 min_core_count_per_node = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMinCoreCountPerNode() + { + return $this->min_core_count_per_node; + } + + /** + * Optional. Minimum core count per node. + * + * Generated from protobuf field int32 min_core_count_per_node = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMinCoreCountPerNode($var) + { + GPBUtil::checkInt32($var); + $this->min_core_count_per_node = $var; + + return $this; + } + + /** + * Optional. Minimum memory per node in gigabytes. + * + * Generated from protobuf field int32 min_memory_per_node_gb = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMinMemoryPerNodeGb() + { + return $this->min_memory_per_node_gb; + } + + /** + * Optional. Minimum memory per node in gigabytes. + * + * Generated from protobuf field int32 min_memory_per_node_gb = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMinMemoryPerNodeGb($var) + { + GPBUtil::checkInt32($var); + $this->min_memory_per_node_gb = $var; + + return $this; + } + + /** + * Optional. Minimum node storage per database server in gigabytes. + * + * Generated from protobuf field int32 min_db_node_storage_per_node_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMinDbNodeStoragePerNodeGb() + { + return $this->min_db_node_storage_per_node_gb; + } + + /** + * Optional. Minimum node storage per database server in gigabytes. + * + * Generated from protobuf field int32 min_db_node_storage_per_node_gb = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMinDbNodeStoragePerNodeGb($var) + { + GPBUtil::checkInt32($var); + $this->min_db_node_storage_per_node_gb = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteAutonomousDatabaseRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteAutonomousDatabaseRequest.php new file mode 100644 index 00000000000..178fadebc4f --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteAutonomousDatabaseRequest.php @@ -0,0 +1,144 @@ +google.cloud.oracledatabase.v1.DeleteAutonomousDatabaseRequest + */ +class DeleteAutonomousDatabaseRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + + /** + * @param string $name Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see + * {@see OracleDatabaseClient::autonomousDatabaseName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\DeleteAutonomousDatabaseRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @type string $request_id + * 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). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the resource in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteCloudExadataInfrastructureRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteCloudExadataInfrastructureRequest.php new file mode 100644 index 00000000000..6501036f454 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteCloudExadataInfrastructureRequest.php @@ -0,0 +1,191 @@ +google.cloud.oracledatabase.v1.DeleteCloudExadataInfrastructureRequest + */ +class DeleteCloudExadataInfrastructureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + /** + * 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. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. Please see + * {@see OracleDatabaseClient::cloudExadataInfrastructureName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\DeleteCloudExadataInfrastructureRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * @type string $request_id + * 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). + * @type bool $force + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * 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. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteCloudVmClusterRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteCloudVmClusterRequest.php new file mode 100644 index 00000000000..6618b7516b2 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/DeleteCloudVmClusterRequest.php @@ -0,0 +1,186 @@ +google.cloud.oracledatabase.v1.DeleteCloudVmClusterRequest + */ +class DeleteCloudVmClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + */ + protected $request_id = ''; + /** + * 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. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $force = false; + + /** + * @param string $name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. Please see + * {@see OracleDatabaseClient::cloudVmClusterName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\DeleteCloudVmClusterRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * @type string $request_id + * 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). + * @type bool $force + * 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. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @return string + */ + public function getRequestId() + { + return $this->request_id; + } + + /** + * 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). + * + * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { + * @param string $var + * @return $this + */ + public function setRequestId($var) + { + GPBUtil::checkString($var, True); + $this->request_id = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getForce() + { + return $this->force; + } + + /** + * 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. + * + * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setForce($var) + { + GPBUtil::checkBool($var); + $this->force = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/Entitlement.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/Entitlement.php new file mode 100644 index 00000000000..d534ed0dc08 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/Entitlement.php @@ -0,0 +1,183 @@ +google.cloud.oracledatabase.v1.Entitlement + */ +class Entitlement extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Entitlement resource with the format: + * projects/{project}/locations/{region}/entitlements/{entitlement} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Details of the OCI Cloud Account. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + */ + protected $cloud_account_details = null; + /** + * Output only. Google Cloud Marketplace order ID (aka entitlement ID) + * + * Generated from protobuf field string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $entitlement_id = ''; + /** + * Output only. Entitlement State. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $state = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Entitlement resource with the format: + * projects/{project}/locations/{region}/entitlements/{entitlement} + * @type \Google\Cloud\OracleDatabase\V1\CloudAccountDetails $cloud_account_details + * Details of the OCI Cloud Account. + * @type string $entitlement_id + * Output only. Google Cloud Marketplace order ID (aka entitlement ID) + * @type int $state + * Output only. Entitlement State. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Entitlement::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Entitlement resource with the format: + * projects/{project}/locations/{region}/entitlements/{entitlement} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Entitlement resource with the format: + * projects/{project}/locations/{region}/entitlements/{entitlement} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Details of the OCI Cloud Account. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + * @return \Google\Cloud\OracleDatabase\V1\CloudAccountDetails|null + */ + public function getCloudAccountDetails() + { + return $this->cloud_account_details; + } + + public function hasCloudAccountDetails() + { + return isset($this->cloud_account_details); + } + + public function clearCloudAccountDetails() + { + unset($this->cloud_account_details); + } + + /** + * Details of the OCI Cloud Account. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.CloudAccountDetails cloud_account_details = 2; + * @param \Google\Cloud\OracleDatabase\V1\CloudAccountDetails $var + * @return $this + */ + public function setCloudAccountDetails($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\OracleDatabase\V1\CloudAccountDetails::class); + $this->cloud_account_details = $var; + + return $this; + } + + /** + * Output only. Google Cloud Marketplace order ID (aka entitlement ID) + * + * Generated from protobuf field string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getEntitlementId() + { + return $this->entitlement_id; + } + + /** + * Output only. Google Cloud Marketplace order ID (aka entitlement ID) + * + * Generated from protobuf field string entitlement_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setEntitlementId($var) + { + GPBUtil::checkString($var, True); + $this->entitlement_id = $var; + + return $this; + } + + /** + * Output only. Entitlement State. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getState() + { + return $this->state; + } + + /** + * Output only. Entitlement State. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.Entitlement.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setState($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\Entitlement\State::class); + $this->state = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/Entitlement/State.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/Entitlement/State.php new file mode 100644 index 00000000000..5f4dde2882b --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/Entitlement/State.php @@ -0,0 +1,71 @@ +google.cloud.oracledatabase.v1.Entitlement.State + */ +class State +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Account not linked. + * + * Generated from protobuf enum ACCOUNT_NOT_LINKED = 1; + */ + const ACCOUNT_NOT_LINKED = 1; + /** + * Account is linked but not active. + * + * Generated from protobuf enum ACCOUNT_NOT_ACTIVE = 2; + */ + const ACCOUNT_NOT_ACTIVE = 2; + /** + * Entitlement and Account are active. + * + * Generated from protobuf enum ACTIVE = 3; + */ + const ACTIVE = 3; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::ACCOUNT_NOT_LINKED => 'ACCOUNT_NOT_LINKED', + self::ACCOUNT_NOT_ACTIVE => 'ACCOUNT_NOT_ACTIVE', + self::ACTIVE => 'ACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(State::class, \Google\Cloud\OracleDatabase\V1\Entitlement_State::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateAutonomousDatabaseWalletRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateAutonomousDatabaseWalletRequest.php new file mode 100644 index 00000000000..ed1220a9948 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateAutonomousDatabaseWalletRequest.php @@ -0,0 +1,210 @@ +google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletRequest + */ +class GenerateAutonomousDatabaseWalletRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Optional. The type of wallet generation for the Autonomous Database. The + * default value is SINGLE. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $type = 0; + /** + * Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * + * Generated from protobuf field bool is_regional = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_regional = false; + /** + * Required. The password used to encrypt the keys inside the wallet. The + * password must be a minimum of 8 characters. + * + * Generated from protobuf field string password = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $password = ''; + + /** + * @param string $name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see + * {@see OracleDatabaseClient::autonomousDatabaseName()} for help formatting this field. + * @param int $type Optional. The type of wallet generation for the Autonomous Database. The + * default value is SINGLE. + * For allowed values, use constants defined on {@see \Google\Cloud\OracleDatabase\V1\GenerateType} + * @param bool $isRegional Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * @param string $password Required. The password used to encrypt the keys inside the wallet. The + * password must be a minimum of 8 characters. + * + * @return \Google\Cloud\OracleDatabase\V1\GenerateAutonomousDatabaseWalletRequest + * + * @experimental + */ + public static function build(string $name, int $type, bool $isRegional, string $password): self + { + return (new self()) + ->setName($name) + ->setType($type) + ->setIsRegional($isRegional) + ->setPassword($password); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @type int $type + * Optional. The type of wallet generation for the Autonomous Database. The + * default value is SINGLE. + * @type bool $is_regional + * Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * @type string $password + * Required. The password used to encrypt the keys inside the wallet. The + * password must be a minimum of 8 characters. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. The type of wallet generation for the Autonomous Database. The + * default value is SINGLE. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Optional. The type of wallet generation for the Autonomous Database. The + * default value is SINGLE. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.GenerateType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\GenerateType::class); + $this->type = $var; + + return $this; + } + + /** + * Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * + * Generated from protobuf field bool is_regional = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsRegional() + { + return $this->is_regional; + } + + /** + * Optional. True when requesting regional connection strings in PDB connect + * info, applicable to cross-region Data Guard only. + * + * Generated from protobuf field bool is_regional = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsRegional($var) + { + GPBUtil::checkBool($var); + $this->is_regional = $var; + + return $this; + } + + /** + * Required. The password used to encrypt the keys inside the wallet. The + * password must be a minimum of 8 characters. + * + * Generated from protobuf field string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getPassword() + { + return $this->password; + } + + /** + * Required. The password used to encrypt the keys inside the wallet. The + * password must be a minimum of 8 characters. + * + * Generated from protobuf field string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setPassword($var) + { + GPBUtil::checkString($var, True); + $this->password = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateAutonomousDatabaseWalletResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateAutonomousDatabaseWalletResponse.php new file mode 100644 index 00000000000..24215559cd7 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateAutonomousDatabaseWalletResponse.php @@ -0,0 +1,67 @@ +google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse + */ +class GenerateAutonomousDatabaseWalletResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The base64 encoded wallet files. + * + * Generated from protobuf field bytes archive_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $archive_content = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $archive_content + * Output only. The base64 encoded wallet files. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The base64 encoded wallet files. + * + * Generated from protobuf field bytes archive_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getArchiveContent() + { + return $this->archive_content; + } + + /** + * Output only. The base64 encoded wallet files. + * + * Generated from protobuf field bytes archive_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setArchiveContent($var) + { + GPBUtil::checkString($var, False); + $this->archive_content = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateType.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateType.php new file mode 100644 index 00000000000..d8962124827 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GenerateType.php @@ -0,0 +1,61 @@ +google.cloud.oracledatabase.v1.GenerateType + */ +class GenerateType +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum GENERATE_TYPE_UNSPECIFIED = 0; + */ + const GENERATE_TYPE_UNSPECIFIED = 0; + /** + * Used to generate wallet for all databases in the region. + * + * Generated from protobuf enum ALL = 1; + */ + const ALL = 1; + /** + * Used to generate wallet for a single database. + * + * Generated from protobuf enum SINGLE = 2; + */ + const SINGLE = 2; + + private static $valueToName = [ + self::GENERATE_TYPE_UNSPECIFIED => 'GENERATE_TYPE_UNSPECIFIED', + self::ALL => 'ALL', + self::SINGLE => 'SINGLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetAutonomousDatabaseRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetAutonomousDatabaseRequest.php new file mode 100644 index 00000000000..ef3ff3dfa6f --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetAutonomousDatabaseRequest.php @@ -0,0 +1,86 @@ +google.cloud.oracledatabase.v1.GetAutonomousDatabaseRequest + */ +class GetAutonomousDatabaseRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see + * {@see OracleDatabaseClient::autonomousDatabaseName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\GetAutonomousDatabaseRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetCloudExadataInfrastructureRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetCloudExadataInfrastructureRequest.php new file mode 100644 index 00000000000..b432c93d58f --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetCloudExadataInfrastructureRequest.php @@ -0,0 +1,91 @@ +google.cloud.oracledatabase.v1.GetCloudExadataInfrastructureRequest + */ +class GetCloudExadataInfrastructureRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. Please see + * {@see OracleDatabaseClient::cloudExadataInfrastructureName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\GetCloudExadataInfrastructureRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Cloud Exadata Infrastructure in the following + * format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetCloudVmClusterRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetCloudVmClusterRequest.php new file mode 100644 index 00000000000..abc510235f4 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GetCloudVmClusterRequest.php @@ -0,0 +1,86 @@ +google.cloud.oracledatabase.v1.GetCloudVmClusterRequest + */ +class GetCloudVmClusterRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. Please see + * {@see OracleDatabaseClient::cloudVmClusterName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\GetCloudVmClusterRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Cloud VM Cluster in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GiVersion.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GiVersion.php new file mode 100644 index 00000000000..16f04164876 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/GiVersion.php @@ -0,0 +1,110 @@ +google.cloud.oracledatabase.v1.GiVersion + */ +class GiVersion extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The name of the Oracle Grid Infrastructure (GI) version + * resource with the format: + * projects/{project}/locations/{region}/giVersions/{gi_versions} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Optional. version + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $version = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The name of the Oracle Grid Infrastructure (GI) version + * resource with the format: + * projects/{project}/locations/{region}/giVersions/{gi_versions} + * @type string $version + * Optional. version + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\GiVersion::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The name of the Oracle Grid Infrastructure (GI) version + * resource with the format: + * projects/{project}/locations/{region}/giVersions/{gi_versions} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The name of the Oracle Grid Infrastructure (GI) version + * resource with the format: + * projects/{project}/locations/{region}/giVersions/{gi_versions} + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Optional. version + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Optional. version + * + * Generated from protobuf field string version = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, True); + $this->version = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseBackupsRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseBackupsRequest.php new file mode 100644 index 00000000000..18b0e3b6667 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseBackupsRequest.php @@ -0,0 +1,220 @@ +google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest + */ +class ListAutonomousDatabaseBackupsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for ListAutonomousDatabaseBackups in the + * following format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent value for ListAutonomousDatabaseBackups in the + * following format: projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListAutonomousDatabaseBackupsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for ListAutonomousDatabaseBackups in the + * following format: projects/{project}/locations/{location}. + * @type string $filter + * 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. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for ListAutonomousDatabaseBackups in the + * following format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for ListAutonomousDatabaseBackups in the + * following format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * 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. + * + * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseBackupsResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseBackupsResponse.php new file mode 100644 index 00000000000..4350618c2c3 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseBackupsResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse + */ +class ListAutonomousDatabaseBackupsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Autonomous Database Backups. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + */ + private $autonomous_database_backups; + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackup>|\Google\Protobuf\Internal\RepeatedField $autonomous_database_backups + * The list of Autonomous Database Backups. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of Autonomous Database Backups. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutonomousDatabaseBackups() + { + return $this->autonomous_database_backups; + } + + /** + * The list of Autonomous Database Backups. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseBackup autonomous_database_backups = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackup>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutonomousDatabaseBackups($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseBackup::class); + $this->autonomous_database_backups = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseCharacterSetsRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseCharacterSetsRequest.php new file mode 100644 index 00000000000..4c2d224e314 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseCharacterSetsRequest.php @@ -0,0 +1,208 @@ +google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest + */ +class ListAutonomousDatabaseCharacterSetsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * 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`. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListAutonomousDatabaseCharacterSetsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * @type string $filter + * 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`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * 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`. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * 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`. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseCharacterSetsResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseCharacterSetsResponse.php new file mode 100644 index 00000000000..7466b5277d9 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabaseCharacterSetsResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse + */ +class ListAutonomousDatabaseCharacterSetsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Autonomous Database Character Sets. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + */ + private $autonomous_database_character_sets; + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\AutonomousDatabaseCharacterSet>|\Google\Protobuf\Internal\RepeatedField $autonomous_database_character_sets + * The list of Autonomous Database Character Sets. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of Autonomous Database Character Sets. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutonomousDatabaseCharacterSets() + { + return $this->autonomous_database_character_sets; + } + + /** + * The list of Autonomous Database Character Sets. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabaseCharacterSet autonomous_database_character_sets = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\AutonomousDatabaseCharacterSet>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutonomousDatabaseCharacterSets($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\AutonomousDatabaseCharacterSet::class); + $this->autonomous_database_character_sets = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabasesRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabasesRequest.php new file mode 100644 index 00000000000..38e445f51d6 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabasesRequest.php @@ -0,0 +1,230 @@ +google.cloud.oracledatabase.v1.ListAutonomousDatabasesRequest + */ +class ListAutonomousDatabasesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. An expression for filtering the results of the request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. An expression for ordering the results of the request. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + + /** + * @param string $parent Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListAutonomousDatabasesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * @type string $filter + * Optional. An expression for filtering the results of the request. + * @type string $order_by + * Optional. An expression for ordering the results of the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. An expression for filtering the results of the request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. An expression for filtering the results of the request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. An expression for ordering the results of the request. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. An expression for ordering the results of the request. + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabasesResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabasesResponse.php new file mode 100644 index 00000000000..0c570e1c353 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDatabasesResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse + */ +class ListAutonomousDatabasesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Autonomous Databases. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + */ + private $autonomous_databases; + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\AutonomousDatabase>|\Google\Protobuf\Internal\RepeatedField $autonomous_databases + * The list of Autonomous Databases. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of Autonomous Databases. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutonomousDatabases() + { + return $this->autonomous_databases; + } + + /** + * The list of Autonomous Databases. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDatabase autonomous_databases = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\AutonomousDatabase>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutonomousDatabases($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\AutonomousDatabase::class); + $this->autonomous_databases = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDbVersionsRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDbVersionsRequest.php new file mode 100644 index 00000000000..7acc6d2b594 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDbVersionsRequest.php @@ -0,0 +1,162 @@ +google.cloud.oracledatabase.v1.ListAutonomousDbVersionsRequest + */ +class ListAutonomousDbVersionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListAutonomousDbVersionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for the Autonomous Database in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDbVersionsResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDbVersionsResponse.php new file mode 100644 index 00000000000..a4d26a12226 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListAutonomousDbVersionsResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse + */ +class ListAutonomousDbVersionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Autonomous Database versions. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + */ + private $autonomous_db_versions; + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\AutonomousDbVersion>|\Google\Protobuf\Internal\RepeatedField $autonomous_db_versions + * The list of Autonomous Database versions. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of Autonomous Database versions. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAutonomousDbVersions() + { + return $this->autonomous_db_versions; + } + + /** + * The list of Autonomous Database versions. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.AutonomousDbVersion autonomous_db_versions = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\AutonomousDbVersion>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAutonomousDbVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\AutonomousDbVersion::class); + $this->autonomous_db_versions = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudExadataInfrastructuresRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudExadataInfrastructuresRequest.php new file mode 100644 index 00000000000..0f0045bf050 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudExadataInfrastructuresRequest.php @@ -0,0 +1,162 @@ +google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest + */ +class ListCloudExadataInfrastructuresRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListCloudExadataInfrastructuresRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for CloudExadataInfrastructure in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudExadataInfrastructuresResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudExadataInfrastructuresResponse.php new file mode 100644 index 00000000000..c54cb824f6a --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudExadataInfrastructuresResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse + */ +class ListCloudExadataInfrastructuresResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Exadata Infrastructures. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + */ + private $cloud_exadata_infrastructures; + /** + * A token for fetching next page of response. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure>|\Google\Protobuf\Internal\RepeatedField $cloud_exadata_infrastructures + * The list of Exadata Infrastructures. + * @type string $next_page_token + * A token for fetching next page of response. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of Exadata Infrastructures. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCloudExadataInfrastructures() + { + return $this->cloud_exadata_infrastructures; + } + + /** + * The list of Exadata Infrastructures. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CloudExadataInfrastructure cloud_exadata_infrastructures = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCloudExadataInfrastructures($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure::class); + $this->cloud_exadata_infrastructures = $arr; + + return $this; + } + + /** + * A token for fetching next page of response. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token for fetching next page of response. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudVmClustersRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudVmClustersRequest.php new file mode 100644 index 00000000000..91204da83c5 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudVmClustersRequest.php @@ -0,0 +1,196 @@ +google.cloud.oracledatabase.v1.ListCloudVmClustersRequest + */ +class ListCloudVmClustersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The number of VM clusters to return. + * If unspecified, at most 50 VM clusters will be returned. + * The maximum value is 1,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying the page of results the server returns. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. An expression for filtering the results of the request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + + /** + * @param string $parent Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListCloudVmClustersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * @type int $page_size + * Optional. The number of VM clusters to return. + * If unspecified, at most 50 VM clusters will be returned. + * The maximum value is 1,000. + * @type string $page_token + * Optional. A token identifying the page of results the server returns. + * @type string $filter + * Optional. An expression for filtering the results of the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The name of the parent in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The number of VM clusters to return. + * If unspecified, at most 50 VM clusters will be returned. + * The maximum value is 1,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The number of VM clusters to return. + * If unspecified, at most 50 VM clusters will be returned. + * The maximum value is 1,000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying the page of results the server returns. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying the page of results the server returns. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. An expression for filtering the results of the request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. An expression for filtering the results of the request. + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudVmClustersResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudVmClustersResponse.php new file mode 100644 index 00000000000..b42cbec7c46 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListCloudVmClustersResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListCloudVmClustersResponse + */ +class ListCloudVmClustersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of VM Clusters. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + */ + private $cloud_vm_clusters; + /** + * A token to fetch the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\CloudVmCluster>|\Google\Protobuf\Internal\RepeatedField $cloud_vm_clusters + * The list of VM Clusters. + * @type string $next_page_token + * A token to fetch the next page of results. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of VM Clusters. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCloudVmClusters() + { + return $this->cloud_vm_clusters; + } + + /** + * The list of VM Clusters. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.CloudVmCluster cloud_vm_clusters = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\CloudVmCluster>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCloudVmClusters($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\CloudVmCluster::class); + $this->cloud_vm_clusters = $arr; + + return $this; + } + + /** + * A token to fetch the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token to fetch the next page of results. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbNodesRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbNodesRequest.php new file mode 100644 index 00000000000..aeda44f1565 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbNodesRequest.php @@ -0,0 +1,162 @@ +google.cloud.oracledatabase.v1.ListDbNodesRequest + */ +class ListDbNodesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the node should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. Please see + * {@see OracleDatabaseClient::cloudVmClusterName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListDbNodesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the node should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for database node in the following format: + * projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the node should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the node should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbNodesResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbNodesResponse.php new file mode 100644 index 00000000000..88f95f531ea --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbNodesResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListDbNodesResponse + */ +class ListDbNodesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of DB Nodes + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + */ + private $db_nodes; + /** + * A token identifying a page of results the node should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\DbNode>|\Google\Protobuf\Internal\RepeatedField $db_nodes + * The list of DB Nodes + * @type string $next_page_token + * A token identifying a page of results the node should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of DB Nodes + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDbNodes() + { + return $this->db_nodes; + } + + /** + * The list of DB Nodes + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbNode db_nodes = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\DbNode>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDbNodes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\DbNode::class); + $this->db_nodes = $arr; + + return $this; + } + + /** + * A token identifying a page of results the node should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the node should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbServersRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbServersRequest.php new file mode 100644 index 00000000000..18561a941cd --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbServersRequest.php @@ -0,0 +1,162 @@ +google.cloud.oracledatabase.v1.ListDbServersRequest + */ +class ListDbServersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. Please see + * {@see OracleDatabaseClient::cloudExadataInfrastructureName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListDbServersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for database server in the following format: + * projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloudExadataInfrastructure}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbServersResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbServersResponse.php new file mode 100644 index 00000000000..dbad0dea9b2 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbServersResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListDbServersResponse + */ +class ListDbServersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of database servers. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + */ + private $db_servers; + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\DbServer>|\Google\Protobuf\Internal\RepeatedField $db_servers + * The list of database servers. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of database servers. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDbServers() + { + return $this->db_servers; + } + + /** + * The list of database servers. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbServer db_servers = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\DbServer>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDbServers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\DbServer::class); + $this->db_servers = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbSystemShapesRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbSystemShapesRequest.php new file mode 100644 index 00000000000..9c19cfa0fa2 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbSystemShapesRequest.php @@ -0,0 +1,162 @@ +google.cloud.oracledatabase.v1.ListDbSystemShapesRequest + */ +class ListDbSystemShapesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for Database System Shapes in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent value for Database System Shapes in the following + * format: projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListDbSystemShapesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for Database System Shapes in the following + * format: projects/{project}/locations/{location}. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for Database System Shapes in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for Database System Shapes in the following + * format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbSystemShapesResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbSystemShapesResponse.php new file mode 100644 index 00000000000..550a89a04c2 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListDbSystemShapesResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListDbSystemShapesResponse + */ +class ListDbSystemShapesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Database System shapes. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + */ + private $db_system_shapes; + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\DbSystemShape>|\Google\Protobuf\Internal\RepeatedField $db_system_shapes + * The list of Database System shapes. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of Database System shapes. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDbSystemShapes() + { + return $this->db_system_shapes; + } + + /** + * The list of Database System shapes. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.DbSystemShape db_system_shapes = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\DbSystemShape>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDbSystemShapes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\DbSystemShape::class); + $this->db_system_shapes = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListEntitlementsRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListEntitlementsRequest.php new file mode 100644 index 00000000000..47ff2ed941d --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListEntitlementsRequest.php @@ -0,0 +1,162 @@ +google.cloud.oracledatabase.v1.ListEntitlementsRequest + */ +class ListEntitlementsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of items to return. + * If unspecified, a maximum of 50 entitlements will be returned. + * The maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListEntitlementsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. + * @type int $page_size + * Optional. The maximum number of items to return. + * If unspecified, a maximum of 50 entitlements will be returned. + * The maximum value is 1000. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for the entitlement in the following format: + * projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of items to return. + * If unspecified, a maximum of 50 entitlements will be returned. + * The maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of items to return. + * If unspecified, a maximum of 50 entitlements will be returned. + * The maximum value is 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListEntitlementsResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListEntitlementsResponse.php new file mode 100644 index 00000000000..d0c5b817d87 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListEntitlementsResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListEntitlementsResponse + */ +class ListEntitlementsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Entitlements + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + */ + private $entitlements; + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $entitlements + * The list of Entitlements + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of Entitlements + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getEntitlements() + { + return $this->entitlements; + } + + /** + * The list of Entitlements + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.Entitlement entitlements = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\Entitlement>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setEntitlements($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\Entitlement::class); + $this->entitlements = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListGiVersionsRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListGiVersionsRequest.php new file mode 100644 index 00000000000..05e7af35808 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListGiVersionsRequest.php @@ -0,0 +1,166 @@ +google.cloud.oracledatabase.v1.ListGiVersionsRequest + */ +class ListGiVersionsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + + /** + * @param string $parent Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. Please see + * {@see OracleDatabaseClient::locationName()} for help formatting this field. + * + * @return \Google\Cloud\OracleDatabase\V1\ListGiVersionsRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. + * @type int $page_size + * 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. + * @type string $page_token + * Optional. A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent value for Grid Infrastructure Version in the following + * format: Format: projects/{project}/locations/{location}. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * 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. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A token identifying a page of results the server should return. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListGiVersionsResponse.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListGiVersionsResponse.php new file mode 100644 index 00000000000..6f80f31c045 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ListGiVersionsResponse.php @@ -0,0 +1,101 @@ +google.cloud.oracledatabase.v1.ListGiVersionsResponse + */ +class ListGiVersionsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The list of Oracle Grid Infrastructure (GI) versions. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + */ + private $gi_versions; + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Cloud\OracleDatabase\V1\GiVersion>|\Google\Protobuf\Internal\RepeatedField $gi_versions + * The list of Oracle Grid Infrastructure (GI) versions. + * @type string $next_page_token + * A token identifying a page of results the server should return. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * The list of Oracle Grid Infrastructure (GI) versions. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGiVersions() + { + return $this->gi_versions; + } + + /** + * The list of Oracle Grid Infrastructure (GI) versions. + * + * Generated from protobuf field repeated .google.cloud.oracledatabase.v1.GiVersion gi_versions = 1; + * @param array<\Google\Cloud\OracleDatabase\V1\GiVersion>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGiVersions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\OracleDatabase\V1\GiVersion::class); + $this->gi_versions = $arr; + + return $this; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token identifying a page of results the server should return. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/LocationMetadata.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/LocationMetadata.php new file mode 100644 index 00000000000..d843ad111c9 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/LocationMetadata.php @@ -0,0 +1,67 @@ +google.cloud.oracledatabase.v1.LocationMetadata + */ +class LocationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Google Cloud Platform Oracle zones in a location. + * + * Generated from protobuf field repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $gcp_oracle_zones; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $gcp_oracle_zones + * Output only. Google Cloud Platform Oracle zones in a location. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\LocationMetadata::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Google Cloud Platform Oracle zones in a location. + * + * Generated from protobuf field repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getGcpOracleZones() + { + return $this->gcp_oracle_zones; + } + + /** + * Output only. Google Cloud Platform Oracle zones in a location. + * + * Generated from protobuf field repeated string gcp_oracle_zones = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setGcpOracleZones($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->gcp_oracle_zones = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow.php new file mode 100644 index 00000000000..0eff7f6bc70 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow.php @@ -0,0 +1,404 @@ +google.cloud.oracledatabase.v1.MaintenanceWindow + */ +class MaintenanceWindow extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The maintenance window scheduling preference. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $preference = 0; + /** + * Optional. Months during the year when maintenance should be performed. + * + * Generated from protobuf field repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $months; + /** + * 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. + * + * Generated from protobuf field repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $weeks_of_month; + /** + * Optional. Days during the week when maintenance should be performed. + * + * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $days_of_week; + /** + * 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 + * + * Generated from protobuf field repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $hours_of_day; + /** + * 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. + * + * Generated from protobuf field int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $lead_time_week = 0; + /** + * Optional. Cloud CloudExadataInfrastructure node patching method, either + * "ROLLING" + * or "NONROLLING". Default value is ROLLING. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $patching_mode = 0; + /** + * 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). + * + * Generated from protobuf field int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $custom_action_timeout_mins = 0; + /** + * Optional. If true, enables the configuration of a custom action timeout + * (waiting period) between database server patching operations. + * + * Generated from protobuf field bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $is_custom_action_timeout_enabled = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $preference + * Optional. The maintenance window scheduling preference. + * @type array|\Google\Protobuf\Internal\RepeatedField $months + * Optional. Months during the year when maintenance should be performed. + * @type array|\Google\Protobuf\Internal\RepeatedField $weeks_of_month + * 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. + * @type array|\Google\Protobuf\Internal\RepeatedField $days_of_week + * Optional. Days during the week when maintenance should be performed. + * @type array|\Google\Protobuf\Internal\RepeatedField $hours_of_day + * 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 + * @type int $lead_time_week + * 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. + * @type int $patching_mode + * Optional. Cloud CloudExadataInfrastructure node patching method, either + * "ROLLING" + * or "NONROLLING". Default value is ROLLING. + * @type int $custom_action_timeout_mins + * 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). + * @type bool $is_custom_action_timeout_enabled + * Optional. If true, enables the configuration of a custom action timeout + * (waiting period) between database server patching operations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\ExadataInfra::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The maintenance window scheduling preference. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPreference() + { + return $this->preference; + } + + /** + * Optional. The maintenance window scheduling preference. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference preference = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPreference($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\MaintenanceWindow\MaintenanceWindowPreference::class); + $this->preference = $var; + + return $this; + } + + /** + * Optional. Months during the year when maintenance should be performed. + * + * Generated from protobuf field repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMonths() + { + return $this->months; + } + + /** + * Optional. Months during the year when maintenance should be performed. + * + * Generated from protobuf field repeated .google.type.Month months = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMonths($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\Month::class); + $this->months = $arr; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getWeeksOfMonth() + { + return $this->weeks_of_month; + } + + /** + * 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. + * + * Generated from protobuf field repeated int32 weeks_of_month = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setWeeksOfMonth($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->weeks_of_month = $arr; + + return $this; + } + + /** + * Optional. Days during the week when maintenance should be performed. + * + * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDaysOfWeek() + { + return $this->days_of_week; + } + + /** + * Optional. Days during the week when maintenance should be performed. + * + * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDaysOfWeek($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class); + $this->days_of_week = $arr; + + return $this; + } + + /** + * 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 + * + * Generated from protobuf field repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getHoursOfDay() + { + return $this->hours_of_day; + } + + /** + * 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 + * + * Generated from protobuf field repeated int32 hours_of_day = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setHoursOfDay($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); + $this->hours_of_day = $arr; + + return $this; + } + + /** + * 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. + * + * Generated from protobuf field int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getLeadTimeWeek() + { + return $this->lead_time_week; + } + + /** + * 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. + * + * Generated from protobuf field int32 lead_time_week = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setLeadTimeWeek($var) + { + GPBUtil::checkInt32($var); + $this->lead_time_week = $var; + + return $this; + } + + /** + * Optional. Cloud CloudExadataInfrastructure node patching method, either + * "ROLLING" + * or "NONROLLING". Default value is ROLLING. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPatchingMode() + { + return $this->patching_mode; + } + + /** + * Optional. Cloud CloudExadataInfrastructure node patching method, either + * "ROLLING" + * or "NONROLLING". Default value is ROLLING. + * + * Generated from protobuf field .google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode patching_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPatchingMode($var) + { + GPBUtil::checkEnum($var, \Google\Cloud\OracleDatabase\V1\MaintenanceWindow\PatchingMode::class); + $this->patching_mode = $var; + + return $this; + } + + /** + * 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). + * + * Generated from protobuf field int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCustomActionTimeoutMins() + { + return $this->custom_action_timeout_mins; + } + + /** + * 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). + * + * Generated from protobuf field int32 custom_action_timeout_mins = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCustomActionTimeoutMins($var) + { + GPBUtil::checkInt32($var); + $this->custom_action_timeout_mins = $var; + + return $this; + } + + /** + * Optional. If true, enables the configuration of a custom action timeout + * (waiting period) between database server patching operations. + * + * Generated from protobuf field bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return bool + */ + public function getIsCustomActionTimeoutEnabled() + { + return $this->is_custom_action_timeout_enabled; + } + + /** + * Optional. If true, enables the configuration of a custom action timeout + * (waiting period) between database server patching operations. + * + * Generated from protobuf field bool is_custom_action_timeout_enabled = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param bool $var + * @return $this + */ + public function setIsCustomActionTimeoutEnabled($var) + { + GPBUtil::checkBool($var); + $this->is_custom_action_timeout_enabled = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow/MaintenanceWindowPreference.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow/MaintenanceWindowPreference.php new file mode 100644 index 00000000000..b191c681436 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow/MaintenanceWindowPreference.php @@ -0,0 +1,64 @@ +google.cloud.oracledatabase.v1.MaintenanceWindow.MaintenanceWindowPreference + */ +class MaintenanceWindowPreference +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED = 0; + */ + const MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED = 0; + /** + * Custom preference. + * + * Generated from protobuf enum CUSTOM_PREFERENCE = 1; + */ + const CUSTOM_PREFERENCE = 1; + /** + * No preference. + * + * Generated from protobuf enum NO_PREFERENCE = 2; + */ + const NO_PREFERENCE = 2; + + private static $valueToName = [ + self::MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED => 'MAINTENANCE_WINDOW_PREFERENCE_UNSPECIFIED', + self::CUSTOM_PREFERENCE => 'CUSTOM_PREFERENCE', + self::NO_PREFERENCE => 'NO_PREFERENCE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MaintenanceWindowPreference::class, \Google\Cloud\OracleDatabase\V1\MaintenanceWindow_MaintenanceWindowPreference::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow/PatchingMode.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow/PatchingMode.php new file mode 100644 index 00000000000..862cc625089 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/MaintenanceWindow/PatchingMode.php @@ -0,0 +1,65 @@ +google.cloud.oracledatabase.v1.MaintenanceWindow.PatchingMode + */ +class PatchingMode +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum PATCHING_MODE_UNSPECIFIED = 0; + */ + const PATCHING_MODE_UNSPECIFIED = 0; + /** + * Updates the Cloud Exadata database server hosts in a rolling fashion. + * + * Generated from protobuf enum ROLLING = 1; + */ + const ROLLING = 1; + /** + * The non-rolling maintenance method first updates your storage servers at + * the same time, then your database servers at the same time. + * + * Generated from protobuf enum NON_ROLLING = 2; + */ + const NON_ROLLING = 2; + + private static $valueToName = [ + self::PATCHING_MODE_UNSPECIFIED => 'PATCHING_MODE_UNSPECIFIED', + self::ROLLING => 'ROLLING', + self::NON_ROLLING => 'NON_ROLLING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PatchingMode::class, \Google\Cloud\OracleDatabase\V1\MaintenanceWindow_PatchingMode::class); + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/OperationMetadata.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/OperationMetadata.php new file mode 100644 index 00000000000..d170cd2d8f0 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/OperationMetadata.php @@ -0,0 +1,345 @@ +google.cloud.oracledatabase.v1.OperationMetadata + */ +class OperationMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $create_time = null; + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $end_time = null; + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $target = ''; + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $verb = ''; + /** + * Output only. The status of the operation. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status_message = ''; + /** + * 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`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $requested_cancellation = false; + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $api_version = ''; + /** + * Output only. An estimated percentage of the operation that has been + * completed at a given moment of time, between 0 and 100. + * + * Generated from protobuf field double percent_complete = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $percent_complete = 0.0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Protobuf\Timestamp $create_time + * Output only. The time the operation was created. + * @type \Google\Protobuf\Timestamp $end_time + * Output only. The time the operation finished running. + * @type string $target + * Output only. Server-defined resource path for the target of the operation. + * @type string $verb + * Output only. Name of the verb executed by the operation. + * @type string $status_message + * Output only. The status of the operation. + * @type bool $requested_cancellation + * 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`. + * @type string $api_version + * Output only. API version used to start the operation. + * @type float $percent_complete + * Output only. An estimated percentage of the operation that has been + * completed at a given moment of time, between 0 and 100. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getCreateTime() + { + return $this->create_time; + } + + public function hasCreateTime() + { + return isset($this->create_time); + } + + public function clearCreateTime() + { + unset($this->create_time); + } + + /** + * Output only. The time the operation was created. + * + * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setCreateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->create_time = $var; + + return $this; + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getEndTime() + { + return $this->end_time; + } + + public function hasEndTime() + { + return isset($this->end_time); + } + + public function clearEndTime() + { + unset($this->end_time); + } + + /** + * Output only. The time the operation finished running. + * + * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setEndTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->end_time = $var; + + return $this; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getTarget() + { + return $this->target; + } + + /** + * Output only. Server-defined resource path for the target of the operation. + * + * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkString($var, True); + $this->target = $var; + + return $this; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getVerb() + { + return $this->verb; + } + + /** + * Output only. Name of the verb executed by the operation. + * + * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setVerb($var) + { + GPBUtil::checkString($var, True); + $this->verb = $var; + + return $this; + } + + /** + * Output only. The status of the operation. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getStatusMessage() + { + return $this->status_message; + } + + /** + * Output only. The status of the operation. + * + * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setStatusMessage($var) + { + GPBUtil::checkString($var, True); + $this->status_message = $var; + + return $this; + } + + /** + * 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`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return bool + */ + public function getRequestedCancellation() + { + return $this->requested_cancellation; + } + + /** + * 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`. + * + * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param bool $var + * @return $this + */ + public function setRequestedCancellation($var) + { + GPBUtil::checkBool($var); + $this->requested_cancellation = $var; + + return $this; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getApiVersion() + { + return $this->api_version; + } + + /** + * Output only. API version used to start the operation. + * + * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setApiVersion($var) + { + GPBUtil::checkString($var, True); + $this->api_version = $var; + + return $this; + } + + /** + * Output only. An estimated percentage of the operation that has been + * completed at a given moment of time, between 0 and 100. + * + * Generated from protobuf field double percent_complete = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getPercentComplete() + { + return $this->percent_complete; + } + + /** + * Output only. An estimated percentage of the operation that has been + * completed at a given moment of time, between 0 and 100. + * + * Generated from protobuf field double percent_complete = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setPercentComplete($var) + { + GPBUtil::checkDouble($var); + $this->percent_complete = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/OperationsInsightsState.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/OperationsInsightsState.php new file mode 100644 index 00000000000..7dc7914c861 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/OperationsInsightsState.php @@ -0,0 +1,89 @@ +google.cloud.oracledatabase.v1.OperationsInsightsState + */ +class OperationsInsightsState +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0; + */ + const OPERATIONS_INSIGHTS_STATE_UNSPECIFIED = 0; + /** + * Enabling status for operation insights. + * + * Generated from protobuf enum ENABLING = 1; + */ + const ENABLING = 1; + /** + * Enabled status for operation insights. + * + * Generated from protobuf enum ENABLED = 2; + */ + const ENABLED = 2; + /** + * Disabling status for operation insights. + * + * Generated from protobuf enum DISABLING = 3; + */ + const DISABLING = 3; + /** + * Not Enabled status for operation insights. + * + * Generated from protobuf enum NOT_ENABLED = 4; + */ + const NOT_ENABLED = 4; + /** + * Failed enabling status for operation insights. + * + * Generated from protobuf enum FAILED_ENABLING = 5; + */ + const FAILED_ENABLING = 5; + /** + * Failed disabling status for operation insights. + * + * Generated from protobuf enum FAILED_DISABLING = 6; + */ + const FAILED_DISABLING = 6; + + private static $valueToName = [ + self::OPERATIONS_INSIGHTS_STATE_UNSPECIFIED => 'OPERATIONS_INSIGHTS_STATE_UNSPECIFIED', + self::ENABLING => 'ENABLING', + self::ENABLED => 'ENABLED', + self::DISABLING => 'DISABLING', + self::NOT_ENABLED => 'NOT_ENABLED', + self::FAILED_ENABLING => 'FAILED_ENABLING', + self::FAILED_DISABLING => 'FAILED_DISABLING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/RestoreAutonomousDatabaseRequest.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/RestoreAutonomousDatabaseRequest.php new file mode 100644 index 00000000000..42a50fa6066 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/RestoreAutonomousDatabaseRequest.php @@ -0,0 +1,132 @@ +google.cloud.oracledatabase.v1.RestoreAutonomousDatabaseRequest + */ +class RestoreAutonomousDatabaseRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + /** + * Required. The time and date to restore the database to. + * + * Generated from protobuf field .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $restore_time = null; + + /** + * @param string $name Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. Please see + * {@see OracleDatabaseClient::autonomousDatabaseName()} for help formatting this field. + * @param \Google\Protobuf\Timestamp $restoreTime Required. The time and date to restore the database to. + * + * @return \Google\Cloud\OracleDatabase\V1\RestoreAutonomousDatabaseRequest + * + * @experimental + */ + public static function build(string $name, \Google\Protobuf\Timestamp $restoreTime): self + { + return (new self()) + ->setName($name) + ->setRestoreTime($restoreTime); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * @type \Google\Protobuf\Timestamp $restore_time + * Required. The time and date to restore the database to. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\Oracledatabase::initOnce(); + parent::__construct($data); + } + + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The name of the Autonomous Database in the following format: + * projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The time and date to restore the database to. + * + * Generated from protobuf field .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getRestoreTime() + { + return $this->restore_time; + } + + public function hasRestoreTime() + { + return isset($this->restore_time); + } + + public function clearRestoreTime() + { + unset($this->restore_time); + } + + /** + * Required. The time and date to restore the database to. + * + * Generated from protobuf field .google.protobuf.Timestamp restore_time = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setRestoreTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->restore_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ScheduledOperationDetails.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ScheduledOperationDetails.php new file mode 100644 index 00000000000..47023e1d5ec --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/ScheduledOperationDetails.php @@ -0,0 +1,156 @@ +google.cloud.oracledatabase.v1.ScheduledOperationDetails + */ +class ScheduledOperationDetails extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. Day of week. + * + * Generated from protobuf field .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $day_of_week = 0; + /** + * Output only. Auto start time. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $start_time = null; + /** + * Output only. Auto stop time. + * + * Generated from protobuf field .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $stop_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $day_of_week + * Output only. Day of week. + * @type \Google\Type\TimeOfDay $start_time + * Output only. Auto start time. + * @type \Google\Type\TimeOfDay $stop_time + * Output only. Auto stop time. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Oracledatabase\V1\AutonomousDatabase::initOnce(); + parent::__construct($data); + } + + /** + * Output only. Day of week. + * + * Generated from protobuf field .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getDayOfWeek() + { + return $this->day_of_week; + } + + /** + * Output only. Day of week. + * + * Generated from protobuf field .google.type.DayOfWeek day_of_week = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setDayOfWeek($var) + { + GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); + $this->day_of_week = $var; + + return $this; + } + + /** + * Output only. Auto start time. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\TimeOfDay|null + */ + public function getStartTime() + { + return $this->start_time; + } + + public function hasStartTime() + { + return isset($this->start_time); + } + + public function clearStartTime() + { + unset($this->start_time); + } + + /** + * Output only. Auto start time. + * + * Generated from protobuf field .google.type.TimeOfDay start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setStartTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->start_time = $var; + + return $this; + } + + /** + * Output only. Auto stop time. + * + * Generated from protobuf field .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Type\TimeOfDay|null + */ + public function getStopTime() + { + return $this->stop_time; + } + + public function hasStopTime() + { + return isset($this->stop_time); + } + + public function clearStopTime() + { + unset($this->stop_time); + } + + /** + * Output only. Auto stop time. + * + * Generated from protobuf field .google.type.TimeOfDay stop_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Type\TimeOfDay $var + * @return $this + */ + public function setStopTime($var) + { + GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); + $this->stop_time = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/State.php b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/State.php new file mode 100644 index 00000000000..a66420d3d46 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/proto/src/Google/Cloud/OracleDatabase/V1/State.php @@ -0,0 +1,195 @@ +google.cloud.oracledatabase.v1.State + */ +class State +{ + /** + * Default unspecified value. + * + * Generated from protobuf enum STATE_UNSPECIFIED = 0; + */ + const STATE_UNSPECIFIED = 0; + /** + * Indicates that the Autonomous Database is in provisioning state. + * + * Generated from protobuf enum PROVISIONING = 1; + */ + const PROVISIONING = 1; + /** + * Indicates that the Autonomous Database is in available state. + * + * Generated from protobuf enum AVAILABLE = 2; + */ + const AVAILABLE = 2; + /** + * Indicates that the Autonomous Database is in stopping state. + * + * Generated from protobuf enum STOPPING = 3; + */ + const STOPPING = 3; + /** + * Indicates that the Autonomous Database is in stopped state. + * + * Generated from protobuf enum STOPPED = 4; + */ + const STOPPED = 4; + /** + * Indicates that the Autonomous Database is in starting state. + * + * Generated from protobuf enum STARTING = 5; + */ + const STARTING = 5; + /** + * Indicates that the Autonomous Database is in terminating state. + * + * Generated from protobuf enum TERMINATING = 6; + */ + const TERMINATING = 6; + /** + * Indicates that the Autonomous Database is in terminated state. + * + * Generated from protobuf enum TERMINATED = 7; + */ + const TERMINATED = 7; + /** + * Indicates that the Autonomous Database is in unavailable state. + * + * Generated from protobuf enum UNAVAILABLE = 8; + */ + const UNAVAILABLE = 8; + /** + * Indicates that the Autonomous Database restore is in progress. + * + * Generated from protobuf enum RESTORE_IN_PROGRESS = 9; + */ + const RESTORE_IN_PROGRESS = 9; + /** + * Indicates that the Autonomous Database failed to restore. + * + * Generated from protobuf enum RESTORE_FAILED = 10; + */ + const RESTORE_FAILED = 10; + /** + * Indicates that the Autonomous Database backup is in progress. + * + * Generated from protobuf enum BACKUP_IN_PROGRESS = 11; + */ + const BACKUP_IN_PROGRESS = 11; + /** + * Indicates that the Autonomous Database scale is in progress. + * + * Generated from protobuf enum SCALE_IN_PROGRESS = 12; + */ + const SCALE_IN_PROGRESS = 12; + /** + * Indicates that the Autonomous Database is available but needs attention + * state. + * + * Generated from protobuf enum AVAILABLE_NEEDS_ATTENTION = 13; + */ + const AVAILABLE_NEEDS_ATTENTION = 13; + /** + * Indicates that the Autonomous Database is in updating state. + * + * Generated from protobuf enum UPDATING = 14; + */ + const UPDATING = 14; + /** + * Indicates that the Autonomous Database's maintenance is in progress state. + * + * Generated from protobuf enum MAINTENANCE_IN_PROGRESS = 15; + */ + const MAINTENANCE_IN_PROGRESS = 15; + /** + * Indicates that the Autonomous Database is in restarting state. + * + * Generated from protobuf enum RESTARTING = 16; + */ + const RESTARTING = 16; + /** + * Indicates that the Autonomous Database is in recreating state. + * + * Generated from protobuf enum RECREATING = 17; + */ + const RECREATING = 17; + /** + * Indicates that the Autonomous Database's role change is in progress state. + * + * Generated from protobuf enum ROLE_CHANGE_IN_PROGRESS = 18; + */ + const ROLE_CHANGE_IN_PROGRESS = 18; + /** + * Indicates that the Autonomous Database is in upgrading state. + * + * Generated from protobuf enum UPGRADING = 19; + */ + const UPGRADING = 19; + /** + * Indicates that the Autonomous Database is in inaccessible state. + * + * Generated from protobuf enum INACCESSIBLE = 20; + */ + const INACCESSIBLE = 20; + /** + * Indicates that the Autonomous Database is in standby state. + * + * Generated from protobuf enum STANDBY = 21; + */ + const STANDBY = 21; + + private static $valueToName = [ + self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', + self::PROVISIONING => 'PROVISIONING', + self::AVAILABLE => 'AVAILABLE', + self::STOPPING => 'STOPPING', + self::STOPPED => 'STOPPED', + self::STARTING => 'STARTING', + self::TERMINATING => 'TERMINATING', + self::TERMINATED => 'TERMINATED', + self::UNAVAILABLE => 'UNAVAILABLE', + self::RESTORE_IN_PROGRESS => 'RESTORE_IN_PROGRESS', + self::RESTORE_FAILED => 'RESTORE_FAILED', + self::BACKUP_IN_PROGRESS => 'BACKUP_IN_PROGRESS', + self::SCALE_IN_PROGRESS => 'SCALE_IN_PROGRESS', + self::AVAILABLE_NEEDS_ATTENTION => 'AVAILABLE_NEEDS_ATTENTION', + self::UPDATING => 'UPDATING', + self::MAINTENANCE_IN_PROGRESS => 'MAINTENANCE_IN_PROGRESS', + self::RESTARTING => 'RESTARTING', + self::RECREATING => 'RECREATING', + self::ROLE_CHANGE_IN_PROGRESS => 'ROLE_CHANGE_IN_PROGRESS', + self::UPGRADING => 'UPGRADING', + self::INACCESSIBLE => 'INACCESSIBLE', + self::STANDBY => 'STANDBY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_autonomous_database.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_autonomous_database.php new file mode 100644 index 00000000000..3b4bf8a3431 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_autonomous_database.php @@ -0,0 +1,109 @@ +setNetwork($formattedAutonomousDatabaseNetwork) + ->setCidr($autonomousDatabaseCidr); + $request = (new CreateAutonomousDatabaseRequest()) + ->setParent($formattedParent) + ->setAutonomousDatabaseId($autonomousDatabaseId) + ->setAutonomousDatabase($autonomousDatabase); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $oracleDatabaseClient->createAutonomousDatabase($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AutonomousDatabase $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + $autonomousDatabaseId = '[AUTONOMOUS_DATABASE_ID]'; + $formattedAutonomousDatabaseNetwork = OracleDatabaseClient::networkName('[PROJECT]', '[NETWORK]'); + $autonomousDatabaseCidr = '[CIDR]'; + + create_autonomous_database_sample( + $formattedParent, + $autonomousDatabaseId, + $formattedAutonomousDatabaseNetwork, + $autonomousDatabaseCidr + ); +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_cloud_exadata_infrastructure.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_cloud_exadata_infrastructure.php new file mode 100644 index 00000000000..fbca8315735 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_cloud_exadata_infrastructure.php @@ -0,0 +1,94 @@ +setParent($formattedParent) + ->setCloudExadataInfrastructureId($cloudExadataInfrastructureId) + ->setCloudExadataInfrastructure($cloudExadataInfrastructure); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $oracleDatabaseClient->createCloudExadataInfrastructure($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var CloudExadataInfrastructure $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + $cloudExadataInfrastructureId = '[CLOUD_EXADATA_INFRASTRUCTURE_ID]'; + + create_cloud_exadata_infrastructure_sample($formattedParent, $cloudExadataInfrastructureId); +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_cloud_vm_cluster.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_cloud_vm_cluster.php new file mode 100644 index 00000000000..cbe1aafb165 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/create_cloud_vm_cluster.php @@ -0,0 +1,126 @@ +setExadataInfrastructure($formattedCloudVmClusterExadataInfrastructure) + ->setCidr($cloudVmClusterCidr) + ->setBackupSubnetCidr($cloudVmClusterBackupSubnetCidr) + ->setNetwork($formattedCloudVmClusterNetwork); + $request = (new CreateCloudVmClusterRequest()) + ->setParent($formattedParent) + ->setCloudVmClusterId($cloudVmClusterId) + ->setCloudVmCluster($cloudVmCluster); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $oracleDatabaseClient->createCloudVmCluster($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var CloudVmCluster $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + $cloudVmClusterId = '[CLOUD_VM_CLUSTER_ID]'; + $formattedCloudVmClusterExadataInfrastructure = OracleDatabaseClient::cloudExadataInfrastructureName( + '[PROJECT]', + '[LOCATION]', + '[CLOUD_EXADATA_INFRASTRUCTURE]' + ); + $cloudVmClusterCidr = '[CIDR]'; + $cloudVmClusterBackupSubnetCidr = '[BACKUP_SUBNET_CIDR]'; + $formattedCloudVmClusterNetwork = OracleDatabaseClient::networkName('[PROJECT]', '[NETWORK]'); + + create_cloud_vm_cluster_sample( + $formattedParent, + $cloudVmClusterId, + $formattedCloudVmClusterExadataInfrastructure, + $cloudVmClusterCidr, + $cloudVmClusterBackupSubnetCidr, + $formattedCloudVmClusterNetwork + ); +} +// [END oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_autonomous_database.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_autonomous_database.php new file mode 100644 index 00000000000..e6af6a2dc9d --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_autonomous_database.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $oracleDatabaseClient->deleteAutonomousDatabase($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OracleDatabaseClient::autonomousDatabaseName( + '[PROJECT]', + '[LOCATION]', + '[AUTONOMOUS_DATABASE]' + ); + + delete_autonomous_database_sample($formattedName); +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_cloud_exadata_infrastructure.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_cloud_exadata_infrastructure.php new file mode 100644 index 00000000000..4b7afcf4a92 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_cloud_exadata_infrastructure.php @@ -0,0 +1,86 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $oracleDatabaseClient->deleteCloudExadataInfrastructure($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OracleDatabaseClient::cloudExadataInfrastructureName( + '[PROJECT]', + '[LOCATION]', + '[CLOUD_EXADATA_INFRASTRUCTURE]' + ); + + delete_cloud_exadata_infrastructure_sample($formattedName); +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_cloud_vm_cluster.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_cloud_vm_cluster.php new file mode 100644 index 00000000000..a971443cdf1 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/delete_cloud_vm_cluster.php @@ -0,0 +1,85 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $oracleDatabaseClient->deleteCloudVmCluster($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + printf('Operation completed successfully.' . PHP_EOL); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OracleDatabaseClient::cloudVmClusterName( + '[PROJECT]', + '[LOCATION]', + '[CLOUD_VM_CLUSTER]' + ); + + delete_cloud_vm_cluster_sample($formattedName); +} +// [END oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/generate_autonomous_database_wallet.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/generate_autonomous_database_wallet.php new file mode 100644 index 00000000000..e0757f98cb4 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/generate_autonomous_database_wallet.php @@ -0,0 +1,80 @@ +setName($formattedName) + ->setPassword($password); + + // Call the API and handle any network failures. + try { + /** @var GenerateAutonomousDatabaseWalletResponse $response */ + $response = $oracleDatabaseClient->generateAutonomousDatabaseWallet($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OracleDatabaseClient::autonomousDatabaseName( + '[PROJECT]', + '[LOCATION]', + '[AUTONOMOUS_DATABASE]' + ); + $password = '[PASSWORD]'; + + generate_autonomous_database_wallet_sample($formattedName, $password); +} +// [END oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_autonomous_database.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_autonomous_database.php new file mode 100644 index 00000000000..bf467eb7da2 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_autonomous_database.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var AutonomousDatabase $response */ + $response = $oracleDatabaseClient->getAutonomousDatabase($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OracleDatabaseClient::autonomousDatabaseName( + '[PROJECT]', + '[LOCATION]', + '[AUTONOMOUS_DATABASE]' + ); + + get_autonomous_database_sample($formattedName); +} +// [END oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_cloud_exadata_infrastructure.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_cloud_exadata_infrastructure.php new file mode 100644 index 00000000000..6ce8d7a5c38 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_cloud_exadata_infrastructure.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CloudExadataInfrastructure $response */ + $response = $oracleDatabaseClient->getCloudExadataInfrastructure($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OracleDatabaseClient::cloudExadataInfrastructureName( + '[PROJECT]', + '[LOCATION]', + '[CLOUD_EXADATA_INFRASTRUCTURE]' + ); + + get_cloud_exadata_infrastructure_sample($formattedName); +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_cloud_vm_cluster.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_cloud_vm_cluster.php new file mode 100644 index 00000000000..67a769478d7 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_cloud_vm_cluster.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CloudVmCluster $response */ + $response = $oracleDatabaseClient->getCloudVmCluster($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OracleDatabaseClient::cloudVmClusterName( + '[PROJECT]', + '[LOCATION]', + '[CLOUD_VM_CLUSTER]' + ); + + get_cloud_vm_cluster_sample($formattedName); +} +// [END oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_location.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_location.php new file mode 100644 index 00000000000..67dc6ba23c5 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/get_location.php @@ -0,0 +1,57 @@ +getLocation($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END oracledatabase_v1_generated_OracleDatabase_GetLocation_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_database_backups.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_database_backups.php new file mode 100644 index 00000000000..72e1dee62c2 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_database_backups.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listAutonomousDatabaseBackups($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_autonomous_database_backups_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_database_character_sets.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_database_character_sets.php new file mode 100644 index 00000000000..8a424c263e7 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_database_character_sets.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listAutonomousDatabaseCharacterSets($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_autonomous_database_character_sets_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_databases.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_databases.php new file mode 100644 index 00000000000..ff094e45040 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_databases.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listAutonomousDatabases($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_autonomous_databases_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_db_versions.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_db_versions.php new file mode 100644 index 00000000000..899cd273ea9 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_autonomous_db_versions.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listAutonomousDbVersions($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_autonomous_db_versions_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_cloud_exadata_infrastructures.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_cloud_exadata_infrastructures.php new file mode 100644 index 00000000000..d037024a351 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_cloud_exadata_infrastructures.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listCloudExadataInfrastructures($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_cloud_exadata_infrastructures_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_cloud_vm_clusters.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_cloud_vm_clusters.php new file mode 100644 index 00000000000..069da68c2e1 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_cloud_vm_clusters.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listCloudVmClusters($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_cloud_vm_clusters_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_nodes.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_nodes.php new file mode 100644 index 00000000000..8413c75329b --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_nodes.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listDbNodes($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::cloudVmClusterName( + '[PROJECT]', + '[LOCATION]', + '[CLOUD_VM_CLUSTER]' + ); + + list_db_nodes_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbNodes_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_servers.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_servers.php new file mode 100644 index 00000000000..8736f953eda --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_servers.php @@ -0,0 +1,79 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listDbServers($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::cloudExadataInfrastructureName( + '[PROJECT]', + '[LOCATION]', + '[CLOUD_EXADATA_INFRASTRUCTURE]' + ); + + list_db_servers_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbServers_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_system_shapes.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_system_shapes.php new file mode 100644 index 00000000000..117561fab94 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_db_system_shapes.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listDbSystemShapes($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_db_system_shapes_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_entitlements.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_entitlements.php new file mode 100644 index 00000000000..61314f4039b --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_entitlements.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listEntitlements($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_entitlements_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListEntitlements_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_gi_versions.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_gi_versions.php new file mode 100644 index 00000000000..2ff6b520aef --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_gi_versions.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $oracleDatabaseClient->listGiVersions($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = OracleDatabaseClient::locationName('[PROJECT]', '[LOCATION]'); + + list_gi_versions_sample($formattedParent); +} +// [END oracledatabase_v1_generated_OracleDatabase_ListGiVersions_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_locations.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_locations.php new file mode 100644 index 00000000000..640bf67064b --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/list_locations.php @@ -0,0 +1,60 @@ +listLocations($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END oracledatabase_v1_generated_OracleDatabase_ListLocations_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/restore_autonomous_database.php b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/restore_autonomous_database.php new file mode 100644 index 00000000000..14c1afeabc0 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/samples/V1/OracleDatabaseClient/restore_autonomous_database.php @@ -0,0 +1,91 @@ +setName($formattedName) + ->setRestoreTime($restoreTime); + + // Call the API and handle any network failures. + try { + /** @var OperationResponse $response */ + $response = $oracleDatabaseClient->restoreAutonomousDatabase($request); + $response->pollUntilComplete(); + + if ($response->operationSucceeded()) { + /** @var AutonomousDatabase $result */ + $result = $response->getResult(); + printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); + } else { + /** @var Status $error */ + $error = $response->getError(); + printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample 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, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = OracleDatabaseClient::autonomousDatabaseName( + '[PROJECT]', + '[LOCATION]', + '[AUTONOMOUS_DATABASE]' + ); + + restore_autonomous_database_sample($formattedName); +} +// [END oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_sync] diff --git a/owl-bot-staging/OracleDatabase/v1/src/V1/Client/OracleDatabaseClient.php b/owl-bot-staging/OracleDatabase/v1/src/V1/Client/OracleDatabaseClient.php new file mode 100644 index 00000000000..267aad209d1 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/src/V1/Client/OracleDatabaseClient.php @@ -0,0 +1,1047 @@ + createAutonomousDatabaseAsync(CreateAutonomousDatabaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCloudExadataInfrastructureAsync(CreateCloudExadataInfrastructureRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCloudVmClusterAsync(CreateCloudVmClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAutonomousDatabaseAsync(DeleteAutonomousDatabaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteCloudExadataInfrastructureAsync(DeleteCloudExadataInfrastructureRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteCloudVmClusterAsync(DeleteCloudVmClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface generateAutonomousDatabaseWalletAsync(GenerateAutonomousDatabaseWalletRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAutonomousDatabaseAsync(GetAutonomousDatabaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCloudExadataInfrastructureAsync(GetCloudExadataInfrastructureRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCloudVmClusterAsync(GetCloudVmClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAutonomousDatabaseBackupsAsync(ListAutonomousDatabaseBackupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAutonomousDatabaseCharacterSetsAsync(ListAutonomousDatabaseCharacterSetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAutonomousDatabasesAsync(ListAutonomousDatabasesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAutonomousDbVersionsAsync(ListAutonomousDbVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCloudExadataInfrastructuresAsync(ListCloudExadataInfrastructuresRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCloudVmClustersAsync(ListCloudVmClustersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDbNodesAsync(ListDbNodesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDbServersAsync(ListDbServersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDbSystemShapesAsync(ListDbSystemShapesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEntitlementsAsync(ListEntitlementsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGiVersionsAsync(ListGiVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface restoreAutonomousDatabaseAsync(RestoreAutonomousDatabaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + */ +final class OracleDatabaseClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.cloud.oracledatabase.v1.OracleDatabase'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'oracledatabase.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'oracledatabase.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + + private $operationsClient; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/oracle_database_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/oracle_database_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/oracle_database_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return [ + 'rest', + ]; + } + + /** + * Return an OperationsClient object with the same endpoint as $this. + * + * @return OperationsClient + */ + public function getOperationsClient() + { + return $this->operationsClient; + } + + /** + * Resume an existing long running operation that was previously started by a long + * running API method. If $methodName is not provided, or does not match a long + * running API method, then the operation can still be resumed, but the + * OperationResponse object will not deserialize the final response. + * + * @param string $operationName The name of the long running operation + * @param string $methodName The name of the method used to start the operation + * + * @return OperationResponse + */ + public function resumeOperation($operationName, $methodName = null) + { + $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; + $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); + $operation->reload(); + return $operation; + } + + /** + * Create the default operation client for the service. + * + * @param array $options ClientOptions for the client. + * + * @return OperationsClient + */ + private function createOperationsClient(array $options) + { + // Unset client-specific configuration options + unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); + + if (isset($options['operationsClient'])) { + return $options['operationsClient']; + } + + return new OperationsClient($options); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * autonomous_database resource. + * + * @param string $project + * @param string $location + * @param string $autonomousDatabase + * + * @return string The formatted autonomous_database resource. + */ + public static function autonomousDatabaseName(string $project, string $location, string $autonomousDatabase): string + { + return self::getPathTemplate('autonomousDatabase')->render([ + 'project' => $project, + 'location' => $location, + 'autonomous_database' => $autonomousDatabase, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cloud_exadata_infrastructure resource. + * + * @param string $project + * @param string $location + * @param string $cloudExadataInfrastructure + * + * @return string The formatted cloud_exadata_infrastructure resource. + */ + public static function cloudExadataInfrastructureName(string $project, string $location, string $cloudExadataInfrastructure): string + { + return self::getPathTemplate('cloudExadataInfrastructure')->render([ + 'project' => $project, + 'location' => $location, + 'cloud_exadata_infrastructure' => $cloudExadataInfrastructure, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * cloud_vm_cluster resource. + * + * @param string $project + * @param string $location + * @param string $cloudVmCluster + * + * @return string The formatted cloud_vm_cluster resource. + */ + public static function cloudVmClusterName(string $project, string $location, string $cloudVmCluster): string + { + return self::getPathTemplate('cloudVmCluster')->render([ + 'project' => $project, + 'location' => $location, + 'cloud_vm_cluster' => $cloudVmCluster, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a location + * resource. + * + * @param string $project + * @param string $location + * + * @return string The formatted location resource. + */ + public static function locationName(string $project, string $location): string + { + return self::getPathTemplate('location')->render([ + 'project' => $project, + 'location' => $location, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $project + * @param string $network + * + * @return string The formatted network resource. + */ + public static function networkName(string $project, string $network): string + { + return self::getPathTemplate('network')->render([ + 'project' => $project, + 'network' => $network, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - autonomousDatabase: projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database} + * - cloudExadataInfrastructure: projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure} + * - cloudVmCluster: projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster} + * - location: projects/{project}/locations/{location} + * - network: projects/{project}/global/networks/{network} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'oracledatabase.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * } + * + * @throws ValidationException + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + $this->operationsClient = $this->createOperationsClient($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates a new Autonomous Database in a given project and location. + * + * The async variant is + * {@see OracleDatabaseClient::createAutonomousDatabaseAsync()} . + * + * @example samples/V1/OracleDatabaseClient/create_autonomous_database.php + * + * @param CreateAutonomousDatabaseRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createAutonomousDatabase(CreateAutonomousDatabaseRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateAutonomousDatabase', $request, $callOptions)->wait(); + } + + /** + * Creates a new Exadata Infrastructure in a given project and location. + * + * The async variant is + * {@see OracleDatabaseClient::createCloudExadataInfrastructureAsync()} . + * + * @example samples/V1/OracleDatabaseClient/create_cloud_exadata_infrastructure.php + * + * @param CreateCloudExadataInfrastructureRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCloudExadataInfrastructure(CreateCloudExadataInfrastructureRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateCloudExadataInfrastructure', $request, $callOptions)->wait(); + } + + /** + * Creates a new VM Cluster in a given project and location. + * + * The async variant is {@see OracleDatabaseClient::createCloudVmClusterAsync()} . + * + * @example samples/V1/OracleDatabaseClient/create_cloud_vm_cluster.php + * + * @param CreateCloudVmClusterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCloudVmCluster(CreateCloudVmClusterRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('CreateCloudVmCluster', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Autonomous Database. + * + * The async variant is + * {@see OracleDatabaseClient::deleteAutonomousDatabaseAsync()} . + * + * @example samples/V1/OracleDatabaseClient/delete_autonomous_database.php + * + * @param DeleteAutonomousDatabaseRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteAutonomousDatabase(DeleteAutonomousDatabaseRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteAutonomousDatabase', $request, $callOptions)->wait(); + } + + /** + * Deletes a single Exadata Infrastructure. + * + * The async variant is + * {@see OracleDatabaseClient::deleteCloudExadataInfrastructureAsync()} . + * + * @example samples/V1/OracleDatabaseClient/delete_cloud_exadata_infrastructure.php + * + * @param DeleteCloudExadataInfrastructureRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteCloudExadataInfrastructure(DeleteCloudExadataInfrastructureRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteCloudExadataInfrastructure', $request, $callOptions)->wait(); + } + + /** + * Deletes a single VM Cluster. + * + * The async variant is {@see OracleDatabaseClient::deleteCloudVmClusterAsync()} . + * + * @example samples/V1/OracleDatabaseClient/delete_cloud_vm_cluster.php + * + * @param DeleteCloudVmClusterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function deleteCloudVmCluster(DeleteCloudVmClusterRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('DeleteCloudVmCluster', $request, $callOptions)->wait(); + } + + /** + * Generates a wallet for an Autonomous Database. + * + * The async variant is + * {@see OracleDatabaseClient::generateAutonomousDatabaseWalletAsync()} . + * + * @example samples/V1/OracleDatabaseClient/generate_autonomous_database_wallet.php + * + * @param GenerateAutonomousDatabaseWalletRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return GenerateAutonomousDatabaseWalletResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function generateAutonomousDatabaseWallet(GenerateAutonomousDatabaseWalletRequest $request, array $callOptions = []): GenerateAutonomousDatabaseWalletResponse + { + return $this->startApiCall('GenerateAutonomousDatabaseWallet', $request, $callOptions)->wait(); + } + + /** + * Gets the details of a single Autonomous Database. + * + * The async variant is {@see OracleDatabaseClient::getAutonomousDatabaseAsync()} . + * + * @example samples/V1/OracleDatabaseClient/get_autonomous_database.php + * + * @param GetAutonomousDatabaseRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return AutonomousDatabase + * + * @throws ApiException Thrown if the API call fails. + */ + public function getAutonomousDatabase(GetAutonomousDatabaseRequest $request, array $callOptions = []): AutonomousDatabase + { + return $this->startApiCall('GetAutonomousDatabase', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single Exadata Infrastructure. + * + * The async variant is + * {@see OracleDatabaseClient::getCloudExadataInfrastructureAsync()} . + * + * @example samples/V1/OracleDatabaseClient/get_cloud_exadata_infrastructure.php + * + * @param GetCloudExadataInfrastructureRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CloudExadataInfrastructure + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCloudExadataInfrastructure(GetCloudExadataInfrastructureRequest $request, array $callOptions = []): CloudExadataInfrastructure + { + return $this->startApiCall('GetCloudExadataInfrastructure', $request, $callOptions)->wait(); + } + + /** + * Gets details of a single VM Cluster. + * + * The async variant is {@see OracleDatabaseClient::getCloudVmClusterAsync()} . + * + * @example samples/V1/OracleDatabaseClient/get_cloud_vm_cluster.php + * + * @param GetCloudVmClusterRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CloudVmCluster + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCloudVmCluster(GetCloudVmClusterRequest $request, array $callOptions = []): CloudVmCluster + { + return $this->startApiCall('GetCloudVmCluster', $request, $callOptions)->wait(); + } + + /** + * Lists the long-term and automatic backups of an Autonomous Database. + * + * The async variant is + * {@see OracleDatabaseClient::listAutonomousDatabaseBackupsAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_autonomous_database_backups.php + * + * @param ListAutonomousDatabaseBackupsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAutonomousDatabaseBackups(ListAutonomousDatabaseBackupsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAutonomousDatabaseBackups', $request, $callOptions); + } + + /** + * Lists Autonomous Database Character Sets in a given project and location. + * + * The async variant is + * {@see OracleDatabaseClient::listAutonomousDatabaseCharacterSetsAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_autonomous_database_character_sets.php + * + * @param ListAutonomousDatabaseCharacterSetsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAutonomousDatabaseCharacterSets(ListAutonomousDatabaseCharacterSetsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAutonomousDatabaseCharacterSets', $request, $callOptions); + } + + /** + * Lists the Autonomous Databases in a given project and location. + * + * The async variant is {@see OracleDatabaseClient::listAutonomousDatabasesAsync()} + * . + * + * @example samples/V1/OracleDatabaseClient/list_autonomous_databases.php + * + * @param ListAutonomousDatabasesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAutonomousDatabases(ListAutonomousDatabasesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAutonomousDatabases', $request, $callOptions); + } + + /** + * Lists all the available Autonomous Database versions for a project and + * location. + * + * The async variant is + * {@see OracleDatabaseClient::listAutonomousDbVersionsAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_autonomous_db_versions.php + * + * @param ListAutonomousDbVersionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listAutonomousDbVersions(ListAutonomousDbVersionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListAutonomousDbVersions', $request, $callOptions); + } + + /** + * Lists Exadata Infrastructures in a given project and location. + * + * The async variant is + * {@see OracleDatabaseClient::listCloudExadataInfrastructuresAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_cloud_exadata_infrastructures.php + * + * @param ListCloudExadataInfrastructuresRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCloudExadataInfrastructures(ListCloudExadataInfrastructuresRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCloudExadataInfrastructures', $request, $callOptions); + } + + /** + * Lists the VM Clusters in a given project and location. + * + * The async variant is {@see OracleDatabaseClient::listCloudVmClustersAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_cloud_vm_clusters.php + * + * @param ListCloudVmClustersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCloudVmClusters(ListCloudVmClustersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListCloudVmClusters', $request, $callOptions); + } + + /** + * Lists the database nodes of a VM Cluster. + * + * The async variant is {@see OracleDatabaseClient::listDbNodesAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_db_nodes.php + * + * @param ListDbNodesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDbNodes(ListDbNodesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDbNodes', $request, $callOptions); + } + + /** + * Lists the database servers of an Exadata Infrastructure instance. + * + * The async variant is {@see OracleDatabaseClient::listDbServersAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_db_servers.php + * + * @param ListDbServersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDbServers(ListDbServersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDbServers', $request, $callOptions); + } + + /** + * Lists the database system shapes available for the project and location. + * + * The async variant is {@see OracleDatabaseClient::listDbSystemShapesAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_db_system_shapes.php + * + * @param ListDbSystemShapesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDbSystemShapes(ListDbSystemShapesRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListDbSystemShapes', $request, $callOptions); + } + + /** + * Lists the entitlements in a given project. + * + * The async variant is {@see OracleDatabaseClient::listEntitlementsAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_entitlements.php + * + * @param ListEntitlementsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listEntitlements(ListEntitlementsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListEntitlements', $request, $callOptions); + } + + /** + * Lists all the valid Oracle Grid Infrastructure (GI) versions for the given + * project and location. + * + * The async variant is {@see OracleDatabaseClient::listGiVersionsAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_gi_versions.php + * + * @param ListGiVersionsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listGiVersions(ListGiVersionsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListGiVersions', $request, $callOptions); + } + + /** + * Restores a single Autonomous Database. + * + * The async variant is + * {@see OracleDatabaseClient::restoreAutonomousDatabaseAsync()} . + * + * @example samples/V1/OracleDatabaseClient/restore_autonomous_database.php + * + * @param RestoreAutonomousDatabaseRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return OperationResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function restoreAutonomousDatabase(RestoreAutonomousDatabaseRequest $request, array $callOptions = []): OperationResponse + { + return $this->startApiCall('RestoreAutonomousDatabase', $request, $callOptions)->wait(); + } + + /** + * Gets information about a location. + * + * The async variant is {@see OracleDatabaseClient::getLocationAsync()} . + * + * @example samples/V1/OracleDatabaseClient/get_location.php + * + * @param GetLocationRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Location + * + * @throws ApiException Thrown if the API call fails. + */ + public function getLocation(GetLocationRequest $request, array $callOptions = []): Location + { + return $this->startApiCall('GetLocation', $request, $callOptions)->wait(); + } + + /** + * Lists information about the supported locations for this service. + * + * The async variant is {@see OracleDatabaseClient::listLocationsAsync()} . + * + * @example samples/V1/OracleDatabaseClient/list_locations.php + * + * @param ListLocationsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListLocations', $request, $callOptions); + } +} diff --git a/owl-bot-staging/OracleDatabase/v1/src/V1/gapic_metadata.json b/owl-bot-staging/OracleDatabase/v1/src/V1/gapic_metadata.json new file mode 100644 index 00000000000..8cf55064f96 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/src/V1/gapic_metadata.json @@ -0,0 +1,138 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.cloud.oracledatabase.v1", + "libraryPackage": "Google\\Cloud\\OracleDatabase\\V1", + "services": { + "OracleDatabase": { + "clients": { + "grpc": { + "libraryClient": "OracleDatabaseGapicClient", + "rpcs": { + "CreateAutonomousDatabase": { + "methods": [ + "createAutonomousDatabase" + ] + }, + "CreateCloudExadataInfrastructure": { + "methods": [ + "createCloudExadataInfrastructure" + ] + }, + "CreateCloudVmCluster": { + "methods": [ + "createCloudVmCluster" + ] + }, + "DeleteAutonomousDatabase": { + "methods": [ + "deleteAutonomousDatabase" + ] + }, + "DeleteCloudExadataInfrastructure": { + "methods": [ + "deleteCloudExadataInfrastructure" + ] + }, + "DeleteCloudVmCluster": { + "methods": [ + "deleteCloudVmCluster" + ] + }, + "GenerateAutonomousDatabaseWallet": { + "methods": [ + "generateAutonomousDatabaseWallet" + ] + }, + "GetAutonomousDatabase": { + "methods": [ + "getAutonomousDatabase" + ] + }, + "GetCloudExadataInfrastructure": { + "methods": [ + "getCloudExadataInfrastructure" + ] + }, + "GetCloudVmCluster": { + "methods": [ + "getCloudVmCluster" + ] + }, + "ListAutonomousDatabaseBackups": { + "methods": [ + "listAutonomousDatabaseBackups" + ] + }, + "ListAutonomousDatabaseCharacterSets": { + "methods": [ + "listAutonomousDatabaseCharacterSets" + ] + }, + "ListAutonomousDatabases": { + "methods": [ + "listAutonomousDatabases" + ] + }, + "ListAutonomousDbVersions": { + "methods": [ + "listAutonomousDbVersions" + ] + }, + "ListCloudExadataInfrastructures": { + "methods": [ + "listCloudExadataInfrastructures" + ] + }, + "ListCloudVmClusters": { + "methods": [ + "listCloudVmClusters" + ] + }, + "ListDbNodes": { + "methods": [ + "listDbNodes" + ] + }, + "ListDbServers": { + "methods": [ + "listDbServers" + ] + }, + "ListDbSystemShapes": { + "methods": [ + "listDbSystemShapes" + ] + }, + "ListEntitlements": { + "methods": [ + "listEntitlements" + ] + }, + "ListGiVersions": { + "methods": [ + "listGiVersions" + ] + }, + "RestoreAutonomousDatabase": { + "methods": [ + "restoreAutonomousDatabase" + ] + }, + "GetLocation": { + "methods": [ + "getLocation" + ] + }, + "ListLocations": { + "methods": [ + "listLocations" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_client_config.json b/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_client_config.json new file mode 100644 index 00000000000..396a3c00794 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_client_config.json @@ -0,0 +1,167 @@ +{ + "interfaces": { + "google.cloud.oracledatabase.v1.OracleDatabase": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "RESOURCE_EXHAUSTED", + "UNAVAILABLE", + "INTERNAL", + "DEADLINE_EXCEEDED" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 10000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "CreateAutonomousDatabase": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateCloudExadataInfrastructure": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CreateCloudVmCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteAutonomousDatabase": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteCloudExadataInfrastructure": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "DeleteCloudVmCluster": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GenerateAutonomousDatabaseWallet": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetAutonomousDatabase": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCloudExadataInfrastructure": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "GetCloudVmCluster": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAutonomousDatabaseBackups": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAutonomousDatabaseCharacterSets": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAutonomousDatabases": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListAutonomousDbVersions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCloudExadataInfrastructures": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListCloudVmClusters": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDbNodes": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDbServers": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListDbSystemShapes": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListEntitlements": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "ListGiVersions": { + "timeout_millis": 60000, + "retry_codes_name": "retry_policy_1_codes", + "retry_params_name": "retry_policy_1_params" + }, + "RestoreAutonomousDatabase": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetLocation": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "ListLocations": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_descriptor_config.php b/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_descriptor_config.php new file mode 100644 index 00000000000..64e1435d95b --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_descriptor_config.php @@ -0,0 +1,470 @@ + [ + 'google.cloud.oracledatabase.v1.OracleDatabase' => [ + 'CreateAutonomousDatabase' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\OracleDatabase\V1\AutonomousDatabase', + 'metadataReturnType' => '\Google\Cloud\OracleDatabase\V1\OperationMetadata', + 'initialPollDelayMillis' => '60000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '600000', + 'totalPollTimeoutMillis' => '432000000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCloudExadataInfrastructure' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure', + 'metadataReturnType' => '\Google\Cloud\OracleDatabase\V1\OperationMetadata', + 'initialPollDelayMillis' => '60000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '600000', + 'totalPollTimeoutMillis' => '432000000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCloudVmCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\OracleDatabase\V1\CloudVmCluster', + 'metadataReturnType' => '\Google\Cloud\OracleDatabase\V1\OperationMetadata', + 'initialPollDelayMillis' => '60000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '600000', + 'totalPollTimeoutMillis' => '432000000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'DeleteAutonomousDatabase' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\OracleDatabase\V1\OperationMetadata', + 'initialPollDelayMillis' => '60000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '600000', + 'totalPollTimeoutMillis' => '432000000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCloudExadataInfrastructure' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\OracleDatabase\V1\OperationMetadata', + 'initialPollDelayMillis' => '60000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '600000', + 'totalPollTimeoutMillis' => '432000000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCloudVmCluster' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Protobuf\GPBEmpty', + 'metadataReturnType' => '\Google\Cloud\OracleDatabase\V1\OperationMetadata', + 'initialPollDelayMillis' => '60000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '600000', + 'totalPollTimeoutMillis' => '432000000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'RestoreAutonomousDatabase' => [ + 'longRunning' => [ + 'operationReturnType' => '\Google\Cloud\OracleDatabase\V1\AutonomousDatabase', + 'metadataReturnType' => '\Google\Cloud\OracleDatabase\V1\OperationMetadata', + 'initialPollDelayMillis' => '60000', + 'pollDelayMultiplier' => '1.5', + 'maxPollDelayMillis' => '600000', + 'totalPollTimeoutMillis' => '432000000', + ], + 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GenerateAutonomousDatabaseWallet' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\GenerateAutonomousDatabaseWalletResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetAutonomousDatabase' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\AutonomousDatabase', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCloudExadataInfrastructure' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\CloudExadataInfrastructure', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'GetCloudVmCluster' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\CloudVmCluster', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListAutonomousDatabaseBackups' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAutonomousDatabaseBackups', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListAutonomousDatabaseBackupsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListAutonomousDatabaseCharacterSets' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAutonomousDatabaseCharacterSets', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListAutonomousDatabaseCharacterSetsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListAutonomousDatabases' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAutonomousDatabases', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListAutonomousDatabasesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListAutonomousDbVersions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getAutonomousDbVersions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListAutonomousDbVersionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCloudExadataInfrastructures' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCloudExadataInfrastructures', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListCloudExadataInfrastructuresResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListCloudVmClusters' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCloudVmClusters', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListCloudVmClustersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDbNodes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDbNodes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListDbNodesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDbServers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDbServers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListDbServersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListDbSystemShapes' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDbSystemShapes', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListDbSystemShapesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntitlements' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getEntitlements', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListEntitlementsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'ListGiVersions' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getGiVersions', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\OracleDatabase\V1\ListGiVersionsResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetLocation' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Cloud\Location\Location', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'ListLocations' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getLocations', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'templateMap' => [ + 'autonomousDatabase' => 'projects/{project}/locations/{location}/autonomousDatabases/{autonomous_database}', + 'cloudExadataInfrastructure' => 'projects/{project}/locations/{location}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}', + 'cloudVmCluster' => 'projects/{project}/locations/{location}/cloudVmClusters/{cloud_vm_cluster}', + 'location' => 'projects/{project}/locations/{location}', + 'network' => 'projects/{project}/global/networks/{network}', + ], + ], + ], +]; diff --git a/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_rest_client_config.php b/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_rest_client_config.php new file mode 100644 index 00000000000..4df758b9777 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/src/V1/resources/oracle_database_rest_client_config.php @@ -0,0 +1,356 @@ + [ + 'google.cloud.location.Locations' => [ + 'GetLocation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListLocations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*}/locations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.cloud.oracledatabase.v1.OracleDatabase' => [ + 'CreateAutonomousDatabase' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/autonomousDatabases', + 'body' => 'autonomous_database', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'autonomous_database_id', + ], + ], + 'CreateCloudExadataInfrastructure' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures', + 'body' => 'cloud_exadata_infrastructure', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'cloud_exadata_infrastructure_id', + ], + ], + 'CreateCloudVmCluster' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudVmClusters', + 'body' => 'cloud_vm_cluster', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + 'queryParams' => [ + 'cloud_vm_cluster_id', + ], + ], + 'DeleteAutonomousDatabase' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/autonomousDatabases/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCloudExadataInfrastructure' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteCloudVmCluster' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudVmClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GenerateAutonomousDatabaseWallet' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/autonomousDatabases/*}:generateWallet', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetAutonomousDatabase' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/autonomousDatabases/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCloudExadataInfrastructure' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudExadataInfrastructures/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetCloudVmCluster' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/cloudVmClusters/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListAutonomousDatabaseBackups' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/autonomousDatabaseBackups', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAutonomousDatabaseCharacterSets' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/autonomousDatabaseCharacterSets', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAutonomousDatabases' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/autonomousDatabases', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListAutonomousDbVersions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/autonomousDbVersions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCloudExadataInfrastructures' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudExadataInfrastructures', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListCloudVmClusters' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/cloudVmClusters', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDbNodes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/cloudVmClusters/*}/dbNodes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDbServers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*/cloudExadataInfrastructures/*}/dbServers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListDbSystemShapes' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dbSystemShapes', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListEntitlements' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/entitlements', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'ListGiVersions' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/giVersions', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'RestoreAutonomousDatabase' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/autonomousDatabases/*}:restore', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', + 'body' => '*', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'DeleteOperation' => [ + 'method' => 'delete', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListOperations' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/OracleDatabase/v1/tests/Unit/V1/Client/OracleDatabaseClientTest.php b/owl-bot-staging/OracleDatabase/v1/tests/Unit/V1/Client/OracleDatabaseClientTest.php new file mode 100644 index 00000000000..00e83ba8528 --- /dev/null +++ b/owl-bot-staging/OracleDatabase/v1/tests/Unit/V1/Client/OracleDatabaseClientTest.php @@ -0,0 +1,2376 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return OracleDatabaseClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new OracleDatabaseClient($options); + } + + /** @test */ + public function createAutonomousDatabaseTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAutonomousDatabaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $database = 'database1789464955'; + $displayName = 'displayName1615086568'; + $entitlementId = 'entitlementId-1715775123'; + $adminPassword = 'adminPassword1579561355'; + $network = 'network1843485230'; + $cidr = 'cidr3053428'; + $expectedResponse = new AutonomousDatabase(); + $expectedResponse->setName($name); + $expectedResponse->setDatabase($database); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEntitlementId($entitlementId); + $expectedResponse->setAdminPassword($adminPassword); + $expectedResponse->setNetwork($network); + $expectedResponse->setCidr($cidr); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAutonomousDatabaseTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $autonomousDatabaseId = 'autonomousDatabaseId-1188134896'; + $autonomousDatabase = new AutonomousDatabase(); + $autonomousDatabaseNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); + $autonomousDatabase->setNetwork($autonomousDatabaseNetwork); + $autonomousDatabaseCidr = 'autonomousDatabaseCidr-1677675745'; + $autonomousDatabase->setCidr($autonomousDatabaseCidr); + $request = (new CreateAutonomousDatabaseRequest()) + ->setParent($formattedParent) + ->setAutonomousDatabaseId($autonomousDatabaseId) + ->setAutonomousDatabase($autonomousDatabase); + $response = $gapicClient->createAutonomousDatabase($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/CreateAutonomousDatabase', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAutonomousDatabaseId(); + $this->assertProtobufEquals($autonomousDatabaseId, $actualValue); + $actualValue = $actualApiRequestObject->getAutonomousDatabase(); + $this->assertProtobufEquals($autonomousDatabase, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAutonomousDatabaseTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createAutonomousDatabaseExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAutonomousDatabaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $autonomousDatabaseId = 'autonomousDatabaseId-1188134896'; + $autonomousDatabase = new AutonomousDatabase(); + $autonomousDatabaseNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); + $autonomousDatabase->setNetwork($autonomousDatabaseNetwork); + $autonomousDatabaseCidr = 'autonomousDatabaseCidr-1677675745'; + $autonomousDatabase->setCidr($autonomousDatabaseCidr); + $request = (new CreateAutonomousDatabaseRequest()) + ->setParent($formattedParent) + ->setAutonomousDatabaseId($autonomousDatabaseId) + ->setAutonomousDatabase($autonomousDatabase); + $response = $gapicClient->createAutonomousDatabase($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAutonomousDatabaseTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createCloudExadataInfrastructureTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createCloudExadataInfrastructureTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $gcpOracleZone = 'gcpOracleZone1763347746'; + $entitlementId = 'entitlementId-1715775123'; + $expectedResponse = new CloudExadataInfrastructure(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setGcpOracleZone($gcpOracleZone); + $expectedResponse->setEntitlementId($entitlementId); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createCloudExadataInfrastructureTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $cloudExadataInfrastructureId = 'cloudExadataInfrastructureId642023910'; + $cloudExadataInfrastructure = new CloudExadataInfrastructure(); + $request = (new CreateCloudExadataInfrastructureRequest()) + ->setParent($formattedParent) + ->setCloudExadataInfrastructureId($cloudExadataInfrastructureId) + ->setCloudExadataInfrastructure($cloudExadataInfrastructure); + $response = $gapicClient->createCloudExadataInfrastructure($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/CreateCloudExadataInfrastructure', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getCloudExadataInfrastructureId(); + $this->assertProtobufEquals($cloudExadataInfrastructureId, $actualValue); + $actualValue = $actualApiRequestObject->getCloudExadataInfrastructure(); + $this->assertProtobufEquals($cloudExadataInfrastructure, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createCloudExadataInfrastructureTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createCloudExadataInfrastructureExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createCloudExadataInfrastructureTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $cloudExadataInfrastructureId = 'cloudExadataInfrastructureId642023910'; + $cloudExadataInfrastructure = new CloudExadataInfrastructure(); + $request = (new CreateCloudExadataInfrastructureRequest()) + ->setParent($formattedParent) + ->setCloudExadataInfrastructureId($cloudExadataInfrastructureId) + ->setCloudExadataInfrastructure($cloudExadataInfrastructure); + $response = $gapicClient->createCloudExadataInfrastructure($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createCloudExadataInfrastructureTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createCloudVmClusterTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createCloudVmClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $exadataInfrastructure = 'exadataInfrastructure94104074'; + $displayName = 'displayName1615086568'; + $gcpOracleZone = 'gcpOracleZone1763347746'; + $cidr = 'cidr3053428'; + $backupSubnetCidr = 'backupSubnetCidr-1604198375'; + $network = 'network1843485230'; + $expectedResponse = new CloudVmCluster(); + $expectedResponse->setName($name); + $expectedResponse->setExadataInfrastructure($exadataInfrastructure); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setGcpOracleZone($gcpOracleZone); + $expectedResponse->setCidr($cidr); + $expectedResponse->setBackupSubnetCidr($backupSubnetCidr); + $expectedResponse->setNetwork($network); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createCloudVmClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $cloudVmClusterId = 'cloudVmClusterId-117615746'; + $cloudVmCluster = new CloudVmCluster(); + $cloudVmClusterExadataInfrastructure = $gapicClient->cloudExadataInfrastructureName('[PROJECT]', '[LOCATION]', '[CLOUD_EXADATA_INFRASTRUCTURE]'); + $cloudVmCluster->setExadataInfrastructure($cloudVmClusterExadataInfrastructure); + $cloudVmClusterCidr = 'cloudVmClusterCidr-1405325022'; + $cloudVmCluster->setCidr($cloudVmClusterCidr); + $cloudVmClusterBackupSubnetCidr = 'cloudVmClusterBackupSubnetCidr1861461121'; + $cloudVmCluster->setBackupSubnetCidr($cloudVmClusterBackupSubnetCidr); + $cloudVmClusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); + $cloudVmCluster->setNetwork($cloudVmClusterNetwork); + $request = (new CreateCloudVmClusterRequest()) + ->setParent($formattedParent) + ->setCloudVmClusterId($cloudVmClusterId) + ->setCloudVmCluster($cloudVmCluster); + $response = $gapicClient->createCloudVmCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/CreateCloudVmCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getCloudVmClusterId(); + $this->assertProtobufEquals($cloudVmClusterId, $actualValue); + $actualValue = $actualApiRequestObject->getCloudVmCluster(); + $this->assertProtobufEquals($cloudVmCluster, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createCloudVmClusterTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function createCloudVmClusterExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createCloudVmClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $cloudVmClusterId = 'cloudVmClusterId-117615746'; + $cloudVmCluster = new CloudVmCluster(); + $cloudVmClusterExadataInfrastructure = $gapicClient->cloudExadataInfrastructureName('[PROJECT]', '[LOCATION]', '[CLOUD_EXADATA_INFRASTRUCTURE]'); + $cloudVmCluster->setExadataInfrastructure($cloudVmClusterExadataInfrastructure); + $cloudVmClusterCidr = 'cloudVmClusterCidr-1405325022'; + $cloudVmCluster->setCidr($cloudVmClusterCidr); + $cloudVmClusterBackupSubnetCidr = 'cloudVmClusterBackupSubnetCidr1861461121'; + $cloudVmCluster->setBackupSubnetCidr($cloudVmClusterBackupSubnetCidr); + $cloudVmClusterNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); + $cloudVmCluster->setNetwork($cloudVmClusterNetwork); + $request = (new CreateCloudVmClusterRequest()) + ->setParent($formattedParent) + ->setCloudVmClusterId($cloudVmClusterId) + ->setCloudVmCluster($cloudVmCluster); + $response = $gapicClient->createCloudVmCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createCloudVmClusterTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteAutonomousDatabaseTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteAutonomousDatabaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteAutonomousDatabaseTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->autonomousDatabaseName('[PROJECT]', '[LOCATION]', '[AUTONOMOUS_DATABASE]'); + $request = (new DeleteAutonomousDatabaseRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteAutonomousDatabase($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/DeleteAutonomousDatabase', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAutonomousDatabaseTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteAutonomousDatabaseExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteAutonomousDatabaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->autonomousDatabaseName('[PROJECT]', '[LOCATION]', '[AUTONOMOUS_DATABASE]'); + $request = (new DeleteAutonomousDatabaseRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteAutonomousDatabase($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteAutonomousDatabaseTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteCloudExadataInfrastructureTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteCloudExadataInfrastructureTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteCloudExadataInfrastructureTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->cloudExadataInfrastructureName('[PROJECT]', '[LOCATION]', '[CLOUD_EXADATA_INFRASTRUCTURE]'); + $request = (new DeleteCloudExadataInfrastructureRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteCloudExadataInfrastructure($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/DeleteCloudExadataInfrastructure', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteCloudExadataInfrastructureTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteCloudExadataInfrastructureExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteCloudExadataInfrastructureTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->cloudExadataInfrastructureName('[PROJECT]', '[LOCATION]', '[CLOUD_EXADATA_INFRASTRUCTURE]'); + $request = (new DeleteCloudExadataInfrastructureRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteCloudExadataInfrastructure($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteCloudExadataInfrastructureTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteCloudVmClusterTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteCloudVmClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $expectedResponse = new GPBEmpty(); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/deleteCloudVmClusterTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->cloudVmClusterName('[PROJECT]', '[LOCATION]', '[CLOUD_VM_CLUSTER]'); + $request = (new DeleteCloudVmClusterRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteCloudVmCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/DeleteCloudVmCluster', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteCloudVmClusterTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function deleteCloudVmClusterExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/deleteCloudVmClusterTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->cloudVmClusterName('[PROJECT]', '[LOCATION]', '[CLOUD_VM_CLUSTER]'); + $request = (new DeleteCloudVmClusterRequest()) + ->setName($formattedName); + $response = $gapicClient->deleteCloudVmCluster($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/deleteCloudVmClusterTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function generateAutonomousDatabaseWalletTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $archiveContent = '-4'; + $expectedResponse = new GenerateAutonomousDatabaseWalletResponse(); + $expectedResponse->setArchiveContent($archiveContent); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->autonomousDatabaseName('[PROJECT]', '[LOCATION]', '[AUTONOMOUS_DATABASE]'); + $password = 'password1216985755'; + $request = (new GenerateAutonomousDatabaseWalletRequest()) + ->setName($formattedName) + ->setPassword($password); + $response = $gapicClient->generateAutonomousDatabaseWallet($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/GenerateAutonomousDatabaseWallet', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualRequestObject->getPassword(); + $this->assertProtobufEquals($password, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function generateAutonomousDatabaseWalletExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->autonomousDatabaseName('[PROJECT]', '[LOCATION]', '[AUTONOMOUS_DATABASE]'); + $password = 'password1216985755'; + $request = (new GenerateAutonomousDatabaseWalletRequest()) + ->setName($formattedName) + ->setPassword($password); + try { + $gapicClient->generateAutonomousDatabaseWallet($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAutonomousDatabaseTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $database = 'database1789464955'; + $displayName = 'displayName1615086568'; + $entitlementId = 'entitlementId-1715775123'; + $adminPassword = 'adminPassword1579561355'; + $network = 'network1843485230'; + $cidr = 'cidr3053428'; + $expectedResponse = new AutonomousDatabase(); + $expectedResponse->setName($name2); + $expectedResponse->setDatabase($database); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEntitlementId($entitlementId); + $expectedResponse->setAdminPassword($adminPassword); + $expectedResponse->setNetwork($network); + $expectedResponse->setCidr($cidr); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->autonomousDatabaseName('[PROJECT]', '[LOCATION]', '[AUTONOMOUS_DATABASE]'); + $request = (new GetAutonomousDatabaseRequest()) + ->setName($formattedName); + $response = $gapicClient->getAutonomousDatabase($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/GetAutonomousDatabase', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getAutonomousDatabaseExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->autonomousDatabaseName('[PROJECT]', '[LOCATION]', '[AUTONOMOUS_DATABASE]'); + $request = (new GetAutonomousDatabaseRequest()) + ->setName($formattedName); + try { + $gapicClient->getAutonomousDatabase($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCloudExadataInfrastructureTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $gcpOracleZone = 'gcpOracleZone1763347746'; + $entitlementId = 'entitlementId-1715775123'; + $expectedResponse = new CloudExadataInfrastructure(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setGcpOracleZone($gcpOracleZone); + $expectedResponse->setEntitlementId($entitlementId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cloudExadataInfrastructureName('[PROJECT]', '[LOCATION]', '[CLOUD_EXADATA_INFRASTRUCTURE]'); + $request = (new GetCloudExadataInfrastructureRequest()) + ->setName($formattedName); + $response = $gapicClient->getCloudExadataInfrastructure($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/GetCloudExadataInfrastructure', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCloudExadataInfrastructureExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->cloudExadataInfrastructureName('[PROJECT]', '[LOCATION]', '[CLOUD_EXADATA_INFRASTRUCTURE]'); + $request = (new GetCloudExadataInfrastructureRequest()) + ->setName($formattedName); + try { + $gapicClient->getCloudExadataInfrastructure($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCloudVmClusterTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $exadataInfrastructure = 'exadataInfrastructure94104074'; + $displayName = 'displayName1615086568'; + $gcpOracleZone = 'gcpOracleZone1763347746'; + $cidr = 'cidr3053428'; + $backupSubnetCidr = 'backupSubnetCidr-1604198375'; + $network = 'network1843485230'; + $expectedResponse = new CloudVmCluster(); + $expectedResponse->setName($name2); + $expectedResponse->setExadataInfrastructure($exadataInfrastructure); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setGcpOracleZone($gcpOracleZone); + $expectedResponse->setCidr($cidr); + $expectedResponse->setBackupSubnetCidr($backupSubnetCidr); + $expectedResponse->setNetwork($network); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->cloudVmClusterName('[PROJECT]', '[LOCATION]', '[CLOUD_VM_CLUSTER]'); + $request = (new GetCloudVmClusterRequest()) + ->setName($formattedName); + $response = $gapicClient->getCloudVmCluster($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/GetCloudVmCluster', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCloudVmClusterExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->cloudVmClusterName('[PROJECT]', '[LOCATION]', '[CLOUD_VM_CLUSTER]'); + $request = (new GetCloudVmClusterRequest()) + ->setName($formattedName); + try { + $gapicClient->getCloudVmCluster($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutonomousDatabaseBackupsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $autonomousDatabaseBackupsElement = new AutonomousDatabaseBackup(); + $autonomousDatabaseBackups = [ + $autonomousDatabaseBackupsElement, + ]; + $expectedResponse = new ListAutonomousDatabaseBackupsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAutonomousDatabaseBackups($autonomousDatabaseBackups); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAutonomousDatabaseBackupsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAutonomousDatabaseBackups($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAutonomousDatabaseBackups()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListAutonomousDatabaseBackups', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutonomousDatabaseBackupsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAutonomousDatabaseBackupsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAutonomousDatabaseBackups($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutonomousDatabaseCharacterSetsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $autonomousDatabaseCharacterSetsElement = new AutonomousDatabaseCharacterSet(); + $autonomousDatabaseCharacterSets = [ + $autonomousDatabaseCharacterSetsElement, + ]; + $expectedResponse = new ListAutonomousDatabaseCharacterSetsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAutonomousDatabaseCharacterSets($autonomousDatabaseCharacterSets); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAutonomousDatabaseCharacterSetsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAutonomousDatabaseCharacterSets($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAutonomousDatabaseCharacterSets()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListAutonomousDatabaseCharacterSets', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutonomousDatabaseCharacterSetsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAutonomousDatabaseCharacterSetsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAutonomousDatabaseCharacterSets($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutonomousDatabasesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $autonomousDatabasesElement = new AutonomousDatabase(); + $autonomousDatabases = [ + $autonomousDatabasesElement, + ]; + $expectedResponse = new ListAutonomousDatabasesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAutonomousDatabases($autonomousDatabases); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAutonomousDatabasesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAutonomousDatabases($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAutonomousDatabases()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListAutonomousDatabases', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutonomousDatabasesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAutonomousDatabasesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAutonomousDatabases($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutonomousDbVersionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $autonomousDbVersionsElement = new AutonomousDbVersion(); + $autonomousDbVersions = [ + $autonomousDbVersionsElement, + ]; + $expectedResponse = new ListAutonomousDbVersionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setAutonomousDbVersions($autonomousDbVersions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAutonomousDbVersionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listAutonomousDbVersions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getAutonomousDbVersions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListAutonomousDbVersions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listAutonomousDbVersionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListAutonomousDbVersionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listAutonomousDbVersions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCloudExadataInfrastructuresTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $cloudExadataInfrastructuresElement = new CloudExadataInfrastructure(); + $cloudExadataInfrastructures = [ + $cloudExadataInfrastructuresElement, + ]; + $expectedResponse = new ListCloudExadataInfrastructuresResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCloudExadataInfrastructures($cloudExadataInfrastructures); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListCloudExadataInfrastructuresRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCloudExadataInfrastructures($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCloudExadataInfrastructures()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListCloudExadataInfrastructures', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCloudExadataInfrastructuresExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListCloudExadataInfrastructuresRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCloudExadataInfrastructures($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCloudVmClustersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $cloudVmClustersElement = new CloudVmCluster(); + $cloudVmClusters = [ + $cloudVmClustersElement, + ]; + $expectedResponse = new ListCloudVmClustersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setCloudVmClusters($cloudVmClusters); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListCloudVmClustersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listCloudVmClusters($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCloudVmClusters()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListCloudVmClusters', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCloudVmClustersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListCloudVmClustersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listCloudVmClusters($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDbNodesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dbNodesElement = new DbNode(); + $dbNodes = [ + $dbNodesElement, + ]; + $expectedResponse = new ListDbNodesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDbNodes($dbNodes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->cloudVmClusterName('[PROJECT]', '[LOCATION]', '[CLOUD_VM_CLUSTER]'); + $request = (new ListDbNodesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDbNodes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDbNodes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListDbNodes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDbNodesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->cloudVmClusterName('[PROJECT]', '[LOCATION]', '[CLOUD_VM_CLUSTER]'); + $request = (new ListDbNodesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDbNodes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDbServersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dbServersElement = new DbServer(); + $dbServers = [ + $dbServersElement, + ]; + $expectedResponse = new ListDbServersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDbServers($dbServers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->cloudExadataInfrastructureName('[PROJECT]', '[LOCATION]', '[CLOUD_EXADATA_INFRASTRUCTURE]'); + $request = (new ListDbServersRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDbServers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDbServers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListDbServers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDbServersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->cloudExadataInfrastructureName('[PROJECT]', '[LOCATION]', '[CLOUD_EXADATA_INFRASTRUCTURE]'); + $request = (new ListDbServersRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDbServers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDbSystemShapesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $dbSystemShapesElement = new DbSystemShape(); + $dbSystemShapes = [ + $dbSystemShapesElement, + ]; + $expectedResponse = new ListDbSystemShapesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setDbSystemShapes($dbSystemShapes); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDbSystemShapesRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listDbSystemShapes($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDbSystemShapes()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListDbSystemShapes', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDbSystemShapesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListDbSystemShapesRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listDbSystemShapes($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitlementsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $entitlementsElement = new Entitlement(); + $entitlements = [ + $entitlementsElement, + ]; + $expectedResponse = new ListEntitlementsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setEntitlements($entitlements); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListEntitlementsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listEntitlements($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getEntitlements()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListEntitlements', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listEntitlementsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListEntitlementsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listEntitlements($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGiVersionsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $giVersionsElement = new GiVersion(); + $giVersions = [ + $giVersionsElement, + ]; + $expectedResponse = new ListGiVersionsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setGiVersions($giVersions); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListGiVersionsRequest()) + ->setParent($formattedParent); + $response = $gapicClient->listGiVersions($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getGiVersions()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/ListGiVersions', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listGiVersionsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $request = (new ListGiVersionsRequest()) + ->setParent($formattedParent); + try { + $gapicClient->listGiVersions($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function restoreAutonomousDatabaseTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/restoreAutonomousDatabaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name2 = 'name2-1052831874'; + $database = 'database1789464955'; + $displayName = 'displayName1615086568'; + $entitlementId = 'entitlementId-1715775123'; + $adminPassword = 'adminPassword1579561355'; + $network = 'network1843485230'; + $cidr = 'cidr3053428'; + $expectedResponse = new AutonomousDatabase(); + $expectedResponse->setName($name2); + $expectedResponse->setDatabase($database); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEntitlementId($entitlementId); + $expectedResponse->setAdminPassword($adminPassword); + $expectedResponse->setNetwork($network); + $expectedResponse->setCidr($cidr); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/restoreAutonomousDatabaseTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedName = $gapicClient->autonomousDatabaseName('[PROJECT]', '[LOCATION]', '[AUTONOMOUS_DATABASE]'); + $restoreTime = new Timestamp(); + $request = (new RestoreAutonomousDatabaseRequest()) + ->setName($formattedName) + ->setRestoreTime($restoreTime); + $response = $gapicClient->restoreAutonomousDatabase($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/RestoreAutonomousDatabase', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $actualValue = $actualApiRequestObject->getRestoreTime(); + $this->assertProtobufEquals($restoreTime, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/restoreAutonomousDatabaseTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function restoreAutonomousDatabaseExceptionTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/restoreAutonomousDatabaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $operationsTransport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->autonomousDatabaseName('[PROJECT]', '[LOCATION]', '[AUTONOMOUS_DATABASE]'); + $restoreTime = new Timestamp(); + $request = (new RestoreAutonomousDatabaseRequest()) + ->setName($formattedName) + ->setRestoreTime($restoreTime); + $response = $gapicClient->restoreAutonomousDatabase($request); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/restoreAutonomousDatabaseTest'); + try { + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + // If the pollUntilComplete() method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stubs are exhausted + $transport->popReceivedCalls(); + $operationsTransport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } + + /** @test */ + public function getLocationTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $locationId = 'locationId552319461'; + $displayName = 'displayName1615086568'; + $expectedResponse = new Location(); + $expectedResponse->setName($name2); + $expectedResponse->setLocationId($locationId); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + $request = new GetLocationRequest(); + $response = $gapicClient->getLocation($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getLocationExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new GetLocationRequest(); + try { + $gapicClient->getLocation($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $locationsElement = new Location(); + $locations = [ + $locationsElement, + ]; + $expectedResponse = new ListLocationsResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setLocations($locations); + $transport->addResponse($expectedResponse); + $request = new ListLocationsRequest(); + $response = $gapicClient->listLocations($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listLocationsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new ListLocationsRequest(); + try { + $gapicClient->listLocations($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createAutonomousDatabaseAsyncTest() + { + $operationsTransport = $this->createTransport(); + $operationsClient = new OperationsClient([ + 'apiEndpoint' => '', + 'transport' => $operationsTransport, + 'credentials' => $this->createCredentials(), + ]); + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + 'operationsClient' => $operationsClient, + ]); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + // Mock response + $incompleteOperation = new Operation(); + $incompleteOperation->setName('operations/createAutonomousDatabaseTest'); + $incompleteOperation->setDone(false); + $transport->addResponse($incompleteOperation); + $name = 'name3373707'; + $database = 'database1789464955'; + $displayName = 'displayName1615086568'; + $entitlementId = 'entitlementId-1715775123'; + $adminPassword = 'adminPassword1579561355'; + $network = 'network1843485230'; + $cidr = 'cidr3053428'; + $expectedResponse = new AutonomousDatabase(); + $expectedResponse->setName($name); + $expectedResponse->setDatabase($database); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEntitlementId($entitlementId); + $expectedResponse->setAdminPassword($adminPassword); + $expectedResponse->setNetwork($network); + $expectedResponse->setCidr($cidr); + $anyResponse = new Any(); + $anyResponse->setValue($expectedResponse->serializeToString()); + $completeOperation = new Operation(); + $completeOperation->setName('operations/createAutonomousDatabaseTest'); + $completeOperation->setDone(true); + $completeOperation->setResponse($anyResponse); + $operationsTransport->addResponse($completeOperation); + // Mock request + $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); + $autonomousDatabaseId = 'autonomousDatabaseId-1188134896'; + $autonomousDatabase = new AutonomousDatabase(); + $autonomousDatabaseNetwork = $gapicClient->networkName('[PROJECT]', '[NETWORK]'); + $autonomousDatabase->setNetwork($autonomousDatabaseNetwork); + $autonomousDatabaseCidr = 'autonomousDatabaseCidr-1677675745'; + $autonomousDatabase->setCidr($autonomousDatabaseCidr); + $request = (new CreateAutonomousDatabaseRequest()) + ->setParent($formattedParent) + ->setAutonomousDatabaseId($autonomousDatabaseId) + ->setAutonomousDatabase($autonomousDatabase); + $response = $gapicClient->createAutonomousDatabaseAsync($request)->wait(); + $this->assertFalse($response->isDone()); + $this->assertNull($response->getResult()); + $apiRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($apiRequests)); + $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); + $this->assertSame(0, count($operationsRequestsEmpty)); + $actualApiFuncCall = $apiRequests[0]->getFuncCall(); + $actualApiRequestObject = $apiRequests[0]->getRequestObject(); + $this->assertSame('/google.cloud.oracledatabase.v1.OracleDatabase/CreateAutonomousDatabase', $actualApiFuncCall); + $actualValue = $actualApiRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualApiRequestObject->getAutonomousDatabaseId(); + $this->assertProtobufEquals($autonomousDatabaseId, $actualValue); + $actualValue = $actualApiRequestObject->getAutonomousDatabase(); + $this->assertProtobufEquals($autonomousDatabase, $actualValue); + $expectedOperationsRequestObject = new GetOperationRequest(); + $expectedOperationsRequestObject->setName('operations/createAutonomousDatabaseTest'); + $response->pollUntilComplete([ + 'initialPollDelayMillis' => 1, + ]); + $this->assertTrue($response->isDone()); + $this->assertEquals($expectedResponse, $response->getResult()); + $apiRequestsEmpty = $transport->popReceivedCalls(); + $this->assertSame(0, count($apiRequestsEmpty)); + $operationsRequests = $operationsTransport->popReceivedCalls(); + $this->assertSame(1, count($operationsRequests)); + $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); + $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); + $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); + $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); + $this->assertTrue($transport->isExhausted()); + $this->assertTrue($operationsTransport->isExhausted()); + } +}