From d9455e82decf3ad09cac449ac172baa7c764b1e0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 16 Sep 2025 07:12:45 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- oracledatabase/v1/oracledatabase-api.json | 1990 +++++++++++++-- oracledatabase/v1/oracledatabase-gen.go | 2808 ++++++++++++++++++++- redis/v1/redis-api.json | 83 +- redis/v1/redis-gen.go | 71 +- vmmigration/v1/vmmigration-api.json | 40 +- vmmigration/v1/vmmigration-gen.go | 53 +- vmmigration/v1alpha1/vmmigration-api.json | 40 +- vmmigration/v1alpha1/vmmigration-gen.go | 53 +- 8 files changed, 4797 insertions(+), 341 deletions(-) diff --git a/oracledatabase/v1/oracledatabase-api.json b/oracledatabase/v1/oracledatabase-api.json index 2ca758555d..6d1945e071 100644 --- a/oracledatabase/v1/oracledatabase-api.json +++ b/oracledatabase/v1/oracledatabase-api.json @@ -999,44 +999,44 @@ } } }, - "dbSystemShapes": { + "databaseCharacterSets": { "methods": { "list": { - "description": "Lists the database system shapes available for the project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystemShapes", + "description": "List DatabaseCharacterSets for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/databaseCharacterSets", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.dbSystemShapes.list", + "id": "oracledatabase.projects.locations.databaseCharacterSets.list", "parameterOrder": [ "parent" ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. Only the gcp_oracle_zone_id field is supported in this format: `gcp_oracle_zone_id=\"{gcp_oracle_zone_id}\"`.", + "description": "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`.", "location": "query", "type": "string" }, "pageSize": { - "description": "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.", + "description": "Optional. The maximum number of DatabaseCharacterSets to return. The service may return fewer than this value. If unspecified, at most 50 DatabaseCharacterSets will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Optional. A token identifying a page of results the server should return.", + "description": "Optional. A page token, received from a previous `ListDatabaseCharacterSets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDatabaseCharacterSets` must match the call that provided the page token.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.", + "description": "Required. The parent value for DatabaseCharacterSets in the following format: projects/{project}/locations/{location}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/dbSystemShapes", + "path": "v1/{+parent}/databaseCharacterSets", "response": { - "$ref": "ListDbSystemShapesResponse" + "$ref": "ListDatabaseCharacterSetsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1044,39 +1044,69 @@ } } }, - "entitlements": { + "databases": { "methods": { + "get": { + "description": "Gets details of a single Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/databases/{databasesId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.databases.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/databases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Database" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { - "description": "Lists the entitlements in a given project.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entitlements", + "description": "Lists all the Databases for the given project, location and DbSystem.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/databases", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.entitlements.list", + "id": "oracledatabase.projects.locations.databases.list", "parameterOrder": [ "parent" ], "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. list for container databases is supported only with a valid dbSystem (full resource name) filter in this format: `dbSystem=\"projects/{project}/locations/{location}/dbSystems/{dbSystemId}\"`", + "location": "query", + "type": "string" + }, "pageSize": { - "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 entitlements will be returned. The maximum value is 1000.", + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 System Versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "Optional. A token identifying a page of results the server should return.", + "description": "Optional. A token identifying the requested page of results to return. All fields except the filter should remain the same as in the request that provided this page token.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}.", + "description": "Required. The parent resource name in the following format: projects/{project}/locations/{region}", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/entitlements", + "path": "v1/{+parent}/databases", "response": { - "$ref": "ListEntitlementsResponse" + "$ref": "ListDatabasesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1084,24 +1114,64 @@ } } }, - "giVersions": { + "dbSystemInitialStorageSizes": { "methods": { "list": { - "description": "Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/giVersions", + "description": "Lists all the DbSystemInitialStorageSizes for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystemInitialStorageSizes", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.giVersions.list", + "id": "oracledatabase.projects.locations.dbSystemInitialStorageSizes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 System Versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying the requested page of results to return. All fields except the filter should remain the same as in the request that provided this page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the DbSystemInitialStorageSize resource with the format: projects/{project}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dbSystemInitialStorageSizes", + "response": { + "$ref": "ListDbSystemInitialStorageSizesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "dbSystemShapes": { + "methods": { + "list": { + "description": "Lists the database system shapes available for the project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystemShapes", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.dbSystemShapes.list", "parameterOrder": [ "parent" ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. Only the shape, gcp_oracle_zone and gi_version fields are supported in this format: `shape=\"{shape}\"`.", + "description": "Optional. An expression for filtering the results of the request. Only the gcp_oracle_zone_id field is supported in this format: `gcp_oracle_zone_id=\"{gcp_oracle_zone_id}\"`.", "location": "query", "type": "string" }, "pageSize": { - "description": "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.", + "description": "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.", "format": "int32", "location": "query", "type": "integer" @@ -1112,16 +1182,16 @@ "type": "string" }, "parent": { - "description": "Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.", + "description": "Required. The parent value for Database System Shapes in the following format: projects/{project}/locations/{location}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/giVersions", + "path": "v1/{+parent}/dbSystemShapes", "response": { - "$ref": "ListGiVersionsResponse" + "$ref": "ListDbSystemShapesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1129,38 +1199,38 @@ } } }, - "odbNetworks": { + "dbSystems": { "methods": { "create": { - "description": "Creates a new ODB Network in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks", + "description": "Creates a new DbSystem in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystems", "httpMethod": "POST", - "id": "oracledatabase.projects.locations.odbNetworks.create", + "id": "oracledatabase.projects.locations.dbSystems.create", "parameterOrder": [ "parent" ], "parameters": { - "odbNetworkId": { - "description": "Required. The ID of the OdbNetwork to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "dbSystemId": { + "description": "Required. The ID of the DbSystem to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}.", + "description": "Required. The value for parent of the DbSystem in the following format: projects/{project}/locations/{location}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" }, "requestId": { - "description": "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).", + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" } }, - "path": "v1/{+parent}/odbNetworks", + "path": "v1/{+parent}/dbSystems", "request": { - "$ref": "OdbNetwork" + "$ref": "DbSystem" }, "response": { "$ref": "Operation" @@ -1170,18 +1240,18 @@ ] }, "delete": { - "description": "Deletes a single ODB Network.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}", + "description": "Deletes a single DbSystem.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}", "httpMethod": "DELETE", - "id": "oracledatabase.projects.locations.odbNetworks.delete", + "id": "oracledatabase.projects.locations.dbSystems.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "description": "Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+$", "required": true, "type": "string" }, @@ -1200,35 +1270,35 @@ ] }, "get": { - "description": "Gets details of a single ODB Network.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}", + "description": "Gets details of a single DbSystem.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystems/{dbSystemsId}", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.odbNetworks.get", + "id": "oracledatabase.projects.locations.dbSystems.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "description": "Required. The name of the DbSystem in the following format: projects/{project}/locations/{location}/dbSystems/{db_system}.", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/dbSystems/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "OdbNetwork" + "$ref": "DbSystem" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists the ODB Networks in a given project and location.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks", + "description": "Lists all the DbSystems for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbSystems", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.odbNetworks.list", + "id": "oracledatabase.projects.locations.dbSystems.list", "parameterOrder": [ "parent" ], @@ -1244,7 +1314,7 @@ "type": "string" }, "pageSize": { - "description": "Optional. The maximum number of items to return. If unspecified, at most 50 ODB Networks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 DbSystems will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "format": "int32", "location": "query", "type": "integer" @@ -1255,141 +1325,414 @@ "type": "string" }, "parent": { - "description": "Required. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}.", + "description": "Required. The parent value for DbSystems in the following format: projects/{project}/locations/{location}.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" } }, - "path": "v1/{+parent}/odbNetworks", + "path": "v1/{+parent}/dbSystems", "response": { - "$ref": "ListOdbNetworksResponse" + "$ref": "ListDbSystemsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] } - }, - "resources": { - "odbSubnets": { - "methods": { - "create": { - "description": "Creates a new ODB Subnet in a given ODB Network.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets", - "httpMethod": "POST", - "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "odbSubnetId": { - "description": "Required. The ID of the OdbSubnet to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "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).", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+parent}/odbSubnets", - "request": { - "$ref": "OdbSubnet" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + } + }, + "dbVersions": { + "methods": { + "list": { + "description": "List DbVersions for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/dbVersions", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.dbVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filter expression that matches a subset of the DbVersions to show. The supported filter for dbSystem creation is `db_system_shape = {db_system_shape} AND storage_management = {storage_management}`. If no filter is provided, all DbVersions will be returned.", + "location": "query", + "type": "string" }, - "delete": { - "description": "Deletes a single ODB Subnet.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets/{odbSubnetsId}", - "httpMethod": "DELETE", - "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+$", - "required": true, - "type": "string" - }, - "requestId": { - "description": "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).", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 System Versions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.", + "format": "int32", + "location": "query", + "type": "integer" }, - "get": { - "description": "Gets details of a single ODB Subnet.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets/{odbSubnetsId}", - "httpMethod": "GET", - "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "OdbSubnet" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] + "pageToken": { + "description": "Optional. A token identifying the requested page of results to return. All fields except the filter should remain the same as in the request that provided this page token.", + "location": "query", + "type": "string" }, - "list": { - "description": "Lists all the ODB Subnets in a given ODB Network.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets", - "httpMethod": "GET", - "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. An expression for filtering the results of the request.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. An expression for ordering the results of the request.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of items to return. If unspecified, at most 50 ODB Networks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "format": "int32", - "location": "query", + "parent": { + "description": "Required. The parent value for the DbVersion resource with the format: projects/{project}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/dbVersions", + "response": { + "$ref": "ListDbVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "entitlements": { + "methods": { + "list": { + "description": "Lists the entitlements in a given project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/entitlements", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.entitlements.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 entitlements will be returned. The maximum value is 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the entitlement in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/entitlements", + "response": { + "$ref": "ListEntitlementsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "giVersions": { + "methods": { + "list": { + "description": "Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/giVersions", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.giVersions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request. Only the shape, gcp_oracle_zone and gi_version fields are supported in this format: `shape=\"{shape}\"`.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "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.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for Grid Infrastructure Version in the following format: Format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/giVersions", + "response": { + "$ref": "ListGiVersionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "odbNetworks": { + "methods": { + "create": { + "description": "Creates a new ODB Network in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.odbNetworks.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "odbNetworkId": { + "description": "Required. The ID of the OdbNetwork to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the OdbNetwork in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "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).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/odbNetworks", + "request": { + "$ref": "OdbNetwork" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ODB Network.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}", + "httpMethod": "DELETE", + "id": "oracledatabase.projects.locations.odbNetworks.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the resource in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "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).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single ODB Network.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.odbNetworks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the OdbNetwork in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "OdbNetwork" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists the ODB Networks in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.odbNetworks.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. An expression for ordering the results of the request.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 ODB Networks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the ODB Network in the following format: projects/{project}/locations/{location}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/odbNetworks", + "response": { + "$ref": "ListOdbNetworksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "odbSubnets": { + "methods": { + "create": { + "description": "Creates a new ODB Subnet in a given ODB Network.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets", + "httpMethod": "POST", + "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "odbSubnetId": { + "description": "Required. The ID of the OdbSubnet to create. This value is restricted to (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in length. The value must start with a letter and end with a letter or a number.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent value for the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "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).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/odbSubnets", + "request": { + "$ref": "OdbSubnet" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single ODB Subnet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets/{odbSubnetsId}", + "httpMethod": "DELETE", + "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the resource in the following format: projects/{project}/locations/{region}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "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).", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single ODB Subnet.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets/{odbSubnetsId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the OdbSubnet in the following format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/odbNetworks/[^/]+/odbSubnets/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "OdbSubnet" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all the ODB Subnets in a given ODB Network.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/odbNetworks/{odbNetworksId}/odbSubnets", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.odbNetworks.odbSubnets.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. An expression for filtering the results of the request.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. An expression for ordering the results of the request.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If unspecified, at most 50 ODB Networks will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", "type": "integer" }, "pageToken": { @@ -1473,66 +1816,136 @@ ] }, "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "oracledatabase.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "pluggableDatabases": { + "methods": { + "get": { + "description": "Gets details of a single PluggableDatabase.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pluggableDatabases/{pluggableDatabasesId}", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.operations.get", + "id": "oracledatabase.projects.locations.pluggableDatabases.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource.", + "description": "Required. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/pluggableDatabases/[^/]+$", "required": true, "type": "string" } }, "path": "v1/{+name}", "response": { - "$ref": "Operation" + "$ref": "PluggableDatabase" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "description": "Lists all the PluggableDatabases for the given project, location and Container Database.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/pluggableDatabases", "httpMethod": "GET", - "id": "oracledatabase.projects.locations.operations.list", + "id": "oracledatabase.projects.locations.pluggableDatabases.list", "parameterOrder": [ - "name" + "parent" ], "parameters": { "filter": { - "description": "The standard list filter.", + "description": "Optional. An expression for filtering the results of the request. List for pluggable databases is supported only with a valid container database (full resource name) filter in this format: `database=\"projects/{project}/locations/{location}/databases/{database}\"`", "location": "query", "type": "string" }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, "pageSize": { - "description": "The standard list page size.", + "description": "Optional. The maximum number of PluggableDatabases to return. The service may return fewer than this value.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The standard list page token.", + "description": "Optional. A page token, received from a previous `ListPluggableDatabases` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPluggableDatabases` must match the call that provided the page token.", "location": "query", "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of PluggableDatabases. Format: projects/{project}/locations/{location}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" } }, - "path": "v1/{+name}/operations", + "path": "v1/{+parent}/pluggableDatabases", "response": { - "$ref": "ListOperationsResponse" + "$ref": "ListPluggableDatabasesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -1545,7 +1958,7 @@ } } }, - "revision": "20250910", + "revision": "20250914", "rootUrl": "https://oracledatabase.googleapis.com/", "schemas": { "AllConnectionStrings": { @@ -2608,6 +3021,33 @@ }, "type": "object" }, + "BackupDestinationDetails": { + "description": "The details of the database backup destination.", + "id": "BackupDestinationDetails", + "properties": { + "type": { + "description": "Optional. The type of the database backup destination.", + "enum": [ + "BACKUP_DESTINATION_TYPE_UNSPECIFIED", + "NFS", + "RECOVERY_APPLIANCE", + "OBJECT_STORE", + "LOCAL", + "DBRS" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Backup destination type is NFS.", + "Backup destination type is Recovery Appliance.", + "Backup destination type is Object Store.", + "Backup destination type is Local.", + "Backup destination type is DBRS." + ], + "type": "string" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -3204,6 +3644,138 @@ }, "type": "object" }, + "DataCollectionOptionsDbSystem": { + "description": "Data collection options for DbSystem.", + "id": "DataCollectionOptionsDbSystem", + "properties": { + "isDiagnosticsEventsEnabled": { + "description": "Optional. Indicates whether to enable data collection for diagnostics.", + "type": "boolean" + }, + "isIncidentLogsEnabled": { + "description": "Optional. Indicates whether to enable incident logs and trace collection.", + "type": "boolean" + } + }, + "type": "object" + }, + "Database": { + "description": "Details of the Database resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/", + "id": "Database", + "properties": { + "adminPassword": { + "description": "Required. The password for the default ADMIN user.", + "type": "string" + }, + "characterSet": { + "description": "Optional. The character set for the database. The default is AL32UTF8.", + "type": "string" + }, + "createTime": { + "description": "Output only. The date and time that the Database was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "databaseId": { + "description": "Optional. The database ID of the Database.", + "type": "string" + }, + "dbHomeName": { + "description": "Optional. The name of the DbHome resource associated with the Database.", + "type": "string" + }, + "dbName": { + "description": "Optional. The database name. The name must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted.", + "type": "string" + }, + "dbUniqueName": { + "description": "Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.", + "type": "string" + }, + "gcpOracleZone": { + "description": "Output only. The GCP Oracle zone where the Database is created.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the Database resource in the following format: projects/{project}/locations/{region}/databases/{database}", + "type": "string" + }, + "ncharacterSet": { + "description": "Optional. The national character set for the database. The default is AL16UTF16.", + "type": "string" + }, + "ociUrl": { + "description": "Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.", + "readOnly": true, + "type": "string" + }, + "opsInsightsStatus": { + "description": "Output only. The Status of Operations Insights for this Database.", + "enum": [ + "OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED", + "ENABLING", + "ENABLED", + "DISABLING", + "NOT_ENABLED", + "FAILED_ENABLING", + "FAILED_DISABLING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the operations insights are being enabled.", + "Indicates that the operations insights are enabled.", + "Indicates that the operations insights are being disabled.", + "Indicates that the operations insights are not enabled.", + "Indicates that the operations insights failed to enable.", + "Indicates that the operations insights failed to disable." + ], + "readOnly": true, + "type": "string" + }, + "properties": { + "$ref": "DatabaseProperties", + "description": "Optional. The properties of the Database." + }, + "tdeWalletPassword": { + "description": "Optional. The TDE wallet password for the database.", + "type": "string" + } + }, + "type": "object" + }, + "DatabaseCharacterSet": { + "description": "Details of the Database character set resource.", + "id": "DatabaseCharacterSet", + "properties": { + "characterSet": { + "description": "Output only. The character set name for the Database which is the ID in the resource name.", + "readOnly": true, + "type": "string" + }, + "characterSetType": { + "description": "Output only. The character set type for the Database.", + "enum": [ + "CHARACTER_SET_TYPE_UNSPECIFIED", + "DATABASE", + "NATIONAL" + ], + "enumDescriptions": [ + "Character set type is not specified.", + "Character set type is set to database.", + "Character set type is set to national." + ], + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the Database Character Set resource in the following format: projects/{project}/locations/{region}/databaseCharacterSets/{database_character_set}", + "type": "string" + } + }, + "type": "object" + }, "DatabaseConnectionStringProfile": { "description": "The connection string profile to allow clients to group. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile", "id": "DatabaseConnectionStringProfile", @@ -3254,72 +3826,324 @@ "readOnly": true, "type": "boolean" }, - "protocol": { - "description": "Output only. The protocol being used by the connection.", + "protocol": { + "description": "Output only. The protocol being used by the connection.", + "enum": [ + "PROTOCOL_UNSPECIFIED", + "TCP", + "TCPS" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Tcp", + "Tcps" + ], + "readOnly": true, + "type": "string" + }, + "sessionMode": { + "description": "Output only. The current session mode of the connection.", + "enum": [ + "SESSION_MODE_UNSPECIFIED", + "DIRECT", + "INDIRECT" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Direct", + "Indirect" + ], + "readOnly": true, + "type": "string" + }, + "syntaxFormat": { + "description": "Output only. The syntax of the connection string.", + "enum": [ + "SYNTAX_FORMAT_UNSPECIFIED", + "LONG", + "EZCONNECT", + "EZCONNECTPLUS" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Long", + "Ezconnect", + "Ezconnectplus" + ], + "readOnly": true, + "type": "string" + }, + "tlsAuthentication": { + "description": "Output only. This field indicates the TLS authentication type of the connection.", + "enum": [ + "TLS_AUTHENTICATION_UNSPECIFIED", + "SERVER", + "MUTUAL" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Server", + "Mutual" + ], + "readOnly": true, + "type": "string" + }, + "value": { + "description": "Output only. The value of the connection string.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DatabaseManagementConfig": { + "description": "The configuration of the Database Management service.", + "id": "DatabaseManagementConfig", + "properties": { + "managementState": { + "description": "Output only. The status of the Database Management service.", + "enum": [ + "MANAGEMENT_STATE_UNSPECIFIED", + "ENABLING", + "ENABLED", + "DISABLING", + "DISABLED", + "UPDATING", + "FAILED_ENABLING", + "FAILED_DISABLING", + "FAILED_UPDATING" + ], + "enumDescriptions": [ + "The status is not specified.", + "The Database Management service is enabling.", + "The Database Management service is enabled.", + "The Database Management service is disabling.", + "The Database Management service is disabled.", + "The Database Management service is updating.", + "The Database Management service failed to enable.", + "The Database Management service failed to disable.", + "The Database Management service failed to update." + ], + "readOnly": true, + "type": "string" + }, + "managementType": { + "description": "Output only. The Database Management type.", + "enum": [ + "MANAGEMENT_TYPE_UNSPECIFIED", + "BASIC", + "ADVANCED" + ], + "enumDescriptions": [ + "The type is not specified.", + "Basic Database Management.", + "Advanced Database Management." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DatabaseProperties": { + "description": "The properties of a Database.", + "id": "DatabaseProperties", + "properties": { + "databaseManagementConfig": { + "$ref": "DatabaseManagementConfig", + "description": "Output only. The Database Management config.", + "readOnly": true + }, + "dbBackupConfig": { + "$ref": "DbBackupConfig", + "description": "Optional. Backup options for the Database." + }, + "dbVersion": { + "description": "Required. The Oracle Database version.", + "type": "string" + }, + "state": { + "description": "Output only. State of the Database.", + "enum": [ + "DATABASE_LIFECYCLE_STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "BACKUP_IN_PROGRESS", + "UPGRADING", + "CONVERTING", + "TERMINATING", + "TERMINATED", + "RESTORE_FAILED", + "FAILED" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the resource is in provisioning state.", + "Indicates that the resource is in available state.", + "Indicates that the resource is in updating state.", + "Indicates that the resource is in backup in progress state.", + "Indicates that the resource is in upgrading state.", + "Indicates that the resource is in converting state.", + "Indicates that the resource is in terminating state.", + "Indicates that the resource is in terminated state.", + "Indicates that the resource is in restore failed state.", + "Indicates that the resource is in failed state." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DbBackupConfig": { + "description": "Backup Options for the Database.", + "id": "DbBackupConfig", + "properties": { + "autoBackupEnabled": { + "description": "Optional. If set to true, enables automatic backups on the database.", + "type": "boolean" + }, + "autoFullBackupDay": { + "description": "Optional. The day of the week on which the full backup should be performed on the database. If no value is provided, it will default to Sunday.", "enum": [ - "PROTOCOL_UNSPECIFIED", - "TCP", - "TCPS" + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" ], "enumDescriptions": [ - "Default unspecified value.", - "Tcp", - "Tcps" + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" ], - "readOnly": true, "type": "string" }, - "sessionMode": { - "description": "Output only. The current session mode of the connection.", + "autoFullBackupWindow": { + "description": "Optional. The window in which the full backup should be performed on the database. If no value is provided, the default is anytime.", "enum": [ - "SESSION_MODE_UNSPECIFIED", - "DIRECT", - "INDIRECT" + "BACKUP_WINDOW_UNSPECIFIED", + "SLOT_ONE", + "SLOT_TWO", + "SLOT_THREE", + "SLOT_FOUR", + "SLOT_FIVE", + "SLOT_SIX", + "SLOT_SEVEN", + "SLOT_EIGHT", + "SLOT_NINE", + "SLOT_TEN", + "SLOT_ELEVEN", + "SLOT_TWELVE" ], "enumDescriptions": [ "Default unspecified value.", - "Direct", - "Indirect" + "12:00 AM - 2:00 AM", + "2:00 AM - 4:00 AM", + "4:00 AM - 6:00 AM", + "6:00 AM - 8:00 AM", + "8:00 AM - 10:00 AM", + "10:00 AM - 12:00 PM", + "12:00 PM - 2:00 PM", + "2:00 PM - 4:00 PM", + "4:00 PM - 6:00 PM", + "6:00 PM - 8:00 PM", + "8:00 PM - 10:00 PM", + "10:00 PM - 12:00 AM" ], - "readOnly": true, "type": "string" }, - "syntaxFormat": { - "description": "Output only. The syntax of the connection string.", + "autoIncrementalBackupWindow": { + "description": "Optional. The window in which the incremental backup should be performed on the database. If no value is provided, the default is anytime except the auto full backup day.", "enum": [ - "SYNTAX_FORMAT_UNSPECIFIED", - "LONG", - "EZCONNECT", - "EZCONNECTPLUS" + "BACKUP_WINDOW_UNSPECIFIED", + "SLOT_ONE", + "SLOT_TWO", + "SLOT_THREE", + "SLOT_FOUR", + "SLOT_FIVE", + "SLOT_SIX", + "SLOT_SEVEN", + "SLOT_EIGHT", + "SLOT_NINE", + "SLOT_TEN", + "SLOT_ELEVEN", + "SLOT_TWELVE" ], "enumDescriptions": [ "Default unspecified value.", - "Long", - "Ezconnect", - "Ezconnectplus" + "12:00 AM - 2:00 AM", + "2:00 AM - 4:00 AM", + "4:00 AM - 6:00 AM", + "6:00 AM - 8:00 AM", + "8:00 AM - 10:00 AM", + "10:00 AM - 12:00 PM", + "12:00 PM - 2:00 PM", + "2:00 PM - 4:00 PM", + "4:00 PM - 6:00 PM", + "6:00 PM - 8:00 PM", + "8:00 PM - 10:00 PM", + "10:00 PM - 12:00 AM" ], - "readOnly": true, "type": "string" }, - "tlsAuthentication": { - "description": "Output only. This field indicates the TLS authentication type of the connection.", + "backupDeletionPolicy": { + "description": "Optional. This defines when the backups will be deleted after Database termination.", "enum": [ - "TLS_AUTHENTICATION_UNSPECIFIED", - "SERVER", - "MUTUAL" + "BACKUP_DELETION_POLICY_UNSPECIFIED", + "DELETE_IMMEDIATELY", + "DELETE_AFTER_RETENTION_PERIOD" ], "enumDescriptions": [ "Default unspecified value.", - "Server", - "Mutual" + "Keeps the backup for predefined time i.e. 72 hours and then delete permanently.", + "Keeps the backups as per the policy defined for database backups." ], - "readOnly": true, "type": "string" }, - "value": { - "description": "Output only. The value of the connection string.", - "readOnly": true, + "backupDestinationDetails": { + "description": "Optional. Details of the database backup destinations.", + "items": { + "$ref": "BackupDestinationDetails" + }, + "type": "array" + }, + "retentionPeriodDays": { + "description": "Optional. The number of days an automatic backup is retained before being automatically deleted. This value determines the earliest point in time to which a database can be restored. Min: 1, Max: 60.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DbHome": { + "description": "Details of the Database Home resource.", + "id": "DbHome", + "properties": { + "database": { + "$ref": "Database", + "description": "Required. The Database resource." + }, + "dbVersion": { + "description": "Required. A valid Oracle Database version. For a list of supported versions, use the ListDbVersions operation.", + "type": "string" + }, + "displayName": { + "description": "Optional. The display name for the Database Home. The name does not have to be unique within your project.", "type": "string" + }, + "isUnifiedAuditingEnabled": { + "description": "Optional. Whether unified auditing is enabled for the Database Home.", + "type": "boolean" } }, "type": "object" @@ -3509,6 +4333,310 @@ }, "type": "object" }, + "DbSystem": { + "description": "Details of the DbSystem (BaseDB) resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/", + "id": "DbSystem", + "properties": { + "createTime": { + "description": "Output only. The date and time that the DbSystem was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Required. The display name for the System db. The name does not have to be unique within your project.", + "type": "string" + }, + "entitlementId": { + "description": "Output only. The ID of the subscription entitlement associated with the DbSystem", + "readOnly": true, + "type": "string" + }, + "gcpOracleZone": { + "description": "Optional. The GCP Oracle zone where Oracle DbSystem is hosted. Example: us-east4-b-r2. If not specified, the system will pick a zone based on availability.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels or tags associated with the DbSystem.", + "type": "object" + }, + "name": { + "description": "Identifier. The name of the DbSystem resource in the following format: projects/{project}/locations/{region}/dbSystems/{db_system}", + "type": "string" + }, + "ociUrl": { + "description": "Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.", + "readOnly": true, + "type": "string" + }, + "odbNetwork": { + "description": "Optional. The name of the OdbNetwork associated with the DbSystem. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network} It is optional but if specified, this should match the parent ODBNetwork of the OdbSubnet.", + "type": "string" + }, + "odbSubnet": { + "description": "Required. The name of the OdbSubnet associated with the DbSystem for IP allocation. Format: projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/{odb_subnet}", + "type": "string" + }, + "properties": { + "$ref": "DbSystemProperties", + "description": "Optional. The properties of the DbSystem." + } + }, + "type": "object" + }, + "DbSystemInitialStorageSize": { + "description": "Summary of the DbSystem initial storage size.", + "id": "DbSystemInitialStorageSize", + "properties": { + "name": { + "description": "Output only. The name of the resource.", + "readOnly": true, + "type": "string" + }, + "properties": { + "$ref": "DbSystemInitialStorageSizeProperties", + "description": "Output only. The properties of the DbSystem initial storage size summary.", + "readOnly": true + } + }, + "type": "object" + }, + "DbSystemInitialStorageSizeProperties": { + "description": "The properties of a DbSystem initial storage size summary.", + "id": "DbSystemInitialStorageSizeProperties", + "properties": { + "launchFromBackupStorageSizeDetails": { + "description": "Output only. List of storage disk details available for launches from backup.", + "items": { + "$ref": "StorageSizeDetails" + }, + "readOnly": true, + "type": "array" + }, + "shapeType": { + "description": "Output only. VM shape platform type", + "enum": [ + "SHAPE_TYPE_UNSPECIFIED", + "STANDARD_X86" + ], + "enumDescriptions": [ + "Unspecified shape type.", + "Standard X86." + ], + "readOnly": true, + "type": "string" + }, + "storageManagement": { + "description": "Output only. The storage option used in DB system.", + "enum": [ + "STORAGE_MANAGEMENT_UNSPECIFIED", + "ASM", + "LVM" + ], + "enumDescriptions": [ + "Unspecified storage management.", + "Automatic Storage Management.", + "Logical Volume Management." + ], + "readOnly": true, + "type": "string" + }, + "storageSizeDetails": { + "description": "Output only. List of storage disk details.", + "items": { + "$ref": "StorageSizeDetails" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "DbSystemOptions": { + "description": "Details of the DbSystem Options.", + "id": "DbSystemOptions", + "properties": { + "storageManagement": { + "description": "Optional. The storage option used in DB system.", + "enum": [ + "STORAGE_MANAGEMENT_UNSPECIFIED", + "ASM", + "LVM" + ], + "enumDescriptions": [ + "The storage management is unspecified.", + "Automatic storage management.", + "Logical Volume management." + ], + "type": "string" + } + }, + "type": "object" + }, + "DbSystemProperties": { + "description": "The properties of a DbSystem.", + "id": "DbSystemProperties", + "properties": { + "computeCount": { + "description": "Required. The number of CPU cores to enable for the DbSystem.", + "format": "int32", + "type": "integer" + }, + "computeModel": { + "description": "Optional. The compute model of the DbSystem.", + "enum": [ + "COMPUTE_MODEL_UNSPECIFIED", + "ECPU", + "OCPU" + ], + "enumDescriptions": [ + "The compute model is unspecified.", + "The compute model is virtual.", + "The compute model is physical." + ], + "type": "string" + }, + "dataCollectionOptions": { + "$ref": "DataCollectionOptionsDbSystem", + "description": "Optional. Data collection options for diagnostics." + }, + "dataStorageSizeGb": { + "description": "Optional. The data storage size in GB that is currently available to DbSystems.", + "format": "int32", + "type": "integer" + }, + "databaseEdition": { + "description": "Required. The database edition of the DbSystem.", + "enum": [ + "DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED", + "STANDARD_EDITION", + "ENTERPRISE_EDITION", + "ENTERPRISE_EDITION_HIGH_PERFORMANCE" + ], + "enumDescriptions": [ + "The database edition is unspecified.", + "The database edition is Standard.", + "The database edition is Enterprise.", + "The database edition is Enterprise Edition." + ], + "type": "string" + }, + "dbHome": { + "$ref": "DbHome", + "description": "Optional. Details for creating a Database Home." + }, + "dbSystemOptions": { + "$ref": "DbSystemOptions", + "description": "Optional. The options for the DbSystem." + }, + "domain": { + "description": "Optional. The host domain name of the DbSystem.", + "type": "string" + }, + "hostname": { + "description": "Output only. The hostname of the DbSystem.", + "readOnly": true, + "type": "string" + }, + "hostnamePrefix": { + "description": "Optional. Prefix for DB System host names.", + "type": "string" + }, + "initialDataStorageSizeGb": { + "description": "Required. The initial data storage size in GB.", + "format": "int32", + "type": "integer" + }, + "licenseModel": { + "description": "Required. The license model of the DbSystem.", + "enum": [ + "LICENSE_MODEL_UNSPECIFIED", + "LICENSE_INCLUDED", + "BRING_YOUR_OWN_LICENSE" + ], + "enumDescriptions": [ + "The license model is unspecified.", + "The license model is included.", + "The license model is bring your own license." + ], + "type": "string" + }, + "lifecycleState": { + "description": "Output only. State of the DbSystem.", + "enum": [ + "DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + "MIGRATED", + "MAINTENANCE_IN_PROGRESS", + "NEEDS_ATTENTION", + "UPGRADING" + ], + "enumDescriptions": [ + "Default unspecified value.", + "Indicates that the resource is in provisioning state.", + "Indicates that the resource is in available state.", + "Indicates that the resource is in updating state.", + "Indicates that the resource is in terminating state.", + "Indicates that the resource is in terminated state.", + "Indicates that the resource is in failed state.", + "Indicates that the resource has been migrated.", + "Indicates that the resource is in maintenance in progress state.", + "Indicates that the resource needs attention.", + "Indicates that the resource is upgrading." + ], + "readOnly": true, + "type": "string" + }, + "memorySizeGb": { + "description": "Optional. The memory size in GB.", + "format": "int32", + "type": "integer" + }, + "nodeCount": { + "description": "Optional. The number of nodes in the DbSystem.", + "format": "int32", + "type": "integer" + }, + "ocid": { + "description": "Output only. OCID of the DbSystem.", + "readOnly": true, + "type": "string" + }, + "privateIp": { + "description": "Optional. The private IP address of the DbSystem.", + "type": "string" + }, + "recoStorageSizeGb": { + "description": "Optional. The reco/redo storage size in GB.", + "format": "int32", + "type": "integer" + }, + "shape": { + "description": "Required. Shape of DB System.", + "type": "string" + }, + "sshPublicKeys": { + "description": "Required. SSH public keys to be stored with the DbSystem.", + "items": { + "type": "string" + }, + "type": "array" + }, + "timeZone": { + "$ref": "TimeZone", + "description": "Optional. Time zone of the DbSystem." + } + }, + "type": "object" + }, "DbSystemShape": { "description": "Details of the Database System Shapes resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/", "id": "DbSystemShape", @@ -3574,6 +4702,69 @@ }, "type": "object" }, + "DbVersion": { + "description": "A valid Oracle Database version.", + "id": "DbVersion", + "properties": { + "name": { + "description": "Output only. The name of the DbVersion resource in the following format: projects/{project}/locations/{region}/dbVersions/{db_version}", + "readOnly": true, + "type": "string" + }, + "properties": { + "$ref": "DbVersionProperties", + "description": "Output only. The properties of the DbVersion.", + "readOnly": true + } + }, + "type": "object" + }, + "DbVersionProperties": { + "description": "The properties of a DbVersion.", + "id": "DbVersionProperties", + "properties": { + "isLatestForMajorVersion": { + "description": "Output only. True if this version of the Oracle Database software is the latest version for a release.", + "readOnly": true, + "type": "boolean" + }, + "isPreviewDbVersion": { + "description": "Output only. True if this version of the Oracle Database software is the preview version.", + "readOnly": true, + "type": "boolean" + }, + "isUpgradeSupported": { + "description": "Output only. True if this version of the Oracle Database software is supported for Upgrade.", + "readOnly": true, + "type": "boolean" + }, + "supportsPdb": { + "description": "Output only. True if this version of the Oracle Database software supports pluggable databases.", + "readOnly": true, + "type": "boolean" + }, + "version": { + "description": "Output only. A valid Oracle Database version.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DefinedTagValue": { + "description": "Wrapper message for the value of a defined tag.", + "id": "DefinedTagValue", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "The tags within the namespace.", + "type": "object" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -3817,6 +5008,42 @@ }, "type": "object" }, + "ListDatabaseCharacterSetsResponse": { + "description": "The response for `DatabaseCharacterSet.List`.", + "id": "ListDatabaseCharacterSetsResponse", + "properties": { + "databaseCharacterSets": { + "description": "The list of DatabaseCharacterSets.", + "items": { + "$ref": "DatabaseCharacterSet" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListDatabasesResponse": { + "description": "The response for `Database.List`.", + "id": "ListDatabasesResponse", + "properties": { + "databases": { + "description": "The list of Databases.", + "items": { + "$ref": "Database" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, "ListDbNodesResponse": { "description": "The response for `DbNode.List`.", "id": "ListDbNodesResponse", @@ -3853,6 +5080,24 @@ }, "type": "object" }, + "ListDbSystemInitialStorageSizesResponse": { + "description": "The response for `DbSystemInitialStorageSizes.List`.", + "id": "ListDbSystemInitialStorageSizesResponse", + "properties": { + "dbSystemInitialStorageSizes": { + "description": "The list of DbSystemInitialStorageSizes.", + "items": { + "$ref": "DbSystemInitialStorageSize" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, "ListDbSystemShapesResponse": { "description": "The response for `DbSystemShape.List`.", "id": "ListDbSystemShapesResponse", @@ -3871,6 +5116,42 @@ }, "type": "object" }, + "ListDbSystemsResponse": { + "description": "The response for `DbSystem.List`.", + "id": "ListDbSystemsResponse", + "properties": { + "dbSystems": { + "description": "The list of DbSystems.", + "items": { + "$ref": "DbSystem" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, + "ListDbVersionsResponse": { + "description": "The response for `DbVersions.List`.", + "id": "ListDbVersionsResponse", + "properties": { + "dbVersions": { + "description": "The list of DbVersions.", + "items": { + "$ref": "DbVersion" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + } + }, + "type": "object" + }, "ListEntitlementsResponse": { "description": "The response for `Entitlement.List`.", "id": "ListEntitlementsResponse", @@ -3993,6 +5274,24 @@ }, "type": "object" }, + "ListPluggableDatabasesResponse": { + "description": "The response for `PluggableDatabase.List`.", + "id": "ListPluggableDatabasesResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "pluggableDatabases": { + "description": "The list of PluggableDatabases.", + "items": { + "$ref": "PluggableDatabase" + }, + "type": "array" + } + }, + "type": "object" + }, "Location": { "description": "A resource that represents a Google Cloud location.", "id": "Location", @@ -4373,6 +5672,210 @@ }, "type": "object" }, + "PluggableDatabase": { + "description": "The PluggableDatabase resource. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/", + "id": "PluggableDatabase", + "properties": { + "createTime": { + "description": "Output only. The date and time that the PluggableDatabase was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Identifier. The name of the PluggableDatabase resource in the following format: projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database}", + "type": "string" + }, + "ociUrl": { + "description": "Output only. HTTPS link to OCI resources exposed to Customer via UI Interface.", + "readOnly": true, + "type": "string" + }, + "properties": { + "$ref": "PluggableDatabaseProperties", + "description": "Optional. The properties of the PluggableDatabase." + } + }, + "type": "object" + }, + "PluggableDatabaseConnectionStrings": { + "description": "The connection strings used to connect to the Oracle Database.", + "id": "PluggableDatabaseConnectionStrings", + "properties": { + "allConnectionStrings": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. All connection strings to use to connect to the pluggable database.", + "type": "object" + }, + "pdbDefault": { + "description": "Optional. The default connection string to use to connect to the pluggable database.", + "type": "string" + }, + "pdbIpDefault": { + "description": "Optional. The default connection string to use to connect to the pluggable database using IP.", + "type": "string" + } + }, + "type": "object" + }, + "PluggableDatabaseNodeLevelDetails": { + "description": "The Pluggable Database Node Level Details.", + "id": "PluggableDatabaseNodeLevelDetails", + "properties": { + "nodeName": { + "description": "Required. The Node name of the Database home.", + "type": "string" + }, + "openMode": { + "description": "Required. The mode that the pluggable database is in to open it.", + "enum": [ + "PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED", + "READ_ONLY", + "READ_WRITE", + "MOUNTED", + "MIGRATE" + ], + "enumDescriptions": [ + "The open mode is unspecified.", + "The pluggable database is opened in read-only mode.", + "The pluggable database is opened in read-write mode.", + "The pluggable database is mounted.", + "The pluggable database is migrated." + ], + "type": "string" + }, + "pluggableDatabaseId": { + "description": "Required. The OCID of the Pluggable Database.", + "type": "string" + } + }, + "type": "object" + }, + "PluggableDatabaseProperties": { + "description": "The properties of a PluggableDatabase.", + "id": "PluggableDatabaseProperties", + "properties": { + "compartmentId": { + "description": "Required. The OCID of the compartment.", + "type": "string" + }, + "connectionStrings": { + "$ref": "PluggableDatabaseConnectionStrings", + "description": "Optional. The Connection strings used to connect to the Oracle Database." + }, + "containerDatabaseOcid": { + "description": "Required. The OCID of the CDB.", + "type": "string" + }, + "databaseManagementConfig": { + "$ref": "DatabaseManagementConfig", + "description": "Output only. The configuration of the Database Management service.", + "readOnly": true + }, + "definedTags": { + "additionalProperties": { + "$ref": "DefinedTagValue" + }, + "description": "Optional. Defined tags for this resource. Each key is predefined and scoped to a namespace.", + "type": "object" + }, + "freeformTags": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.", + "type": "object" + }, + "isRestricted": { + "description": "Optional. The restricted mode of the pluggable database. If a pluggable database is opened in restricted mode, the user needs both create a session and have restricted session privileges to connect to it.", + "type": "boolean" + }, + "lifecycleDetails": { + "description": "Output only. Additional information about the current lifecycle state.", + "readOnly": true, + "type": "string" + }, + "lifecycleState": { + "description": "Output only. The current state of the pluggable database.", + "enum": [ + "PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED", + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + "FAILED", + "RELOCATING", + "RELOCATED", + "REFRESHING", + "RESTORE_IN_PROGRESS", + "RESTORE_FAILED", + "BACKUP_IN_PROGRESS", + "DISABLED" + ], + "enumDescriptions": [ + "The lifecycle state is unspecified.", + "The pluggable database is provisioning.", + "The pluggable database is available.", + "The pluggable database is terminating.", + "The pluggable database is terminated.", + "The pluggable database is updating.", + "The pluggable database is in a failed state.", + "The pluggable database is relocating.", + "The pluggable database is relocated.", + "The pluggable database is refreshing.", + "The pluggable database is restoring.", + "The pluggable database restore failed.", + "The pluggable database is backing up.", + "The pluggable database is disabled." + ], + "readOnly": true, + "type": "string" + }, + "ocid": { + "description": "Output only. The OCID of the pluggable database.", + "readOnly": true, + "type": "string" + }, + "operationsInsightsState": { + "description": "Output only. The status of Operations Insights for this Database.", + "enum": [ + "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED", + "ENABLING", + "ENABLED", + "DISABLING", + "NOT_ENABLED", + "FAILED_ENABLING", + "FAILED_DISABLING" + ], + "enumDescriptions": [ + "The status is not specified.", + "Operations Insights is enabling.", + "Operations Insights is enabled.", + "Operations Insights is disabling.", + "Operations Insights is not enabled.", + "Operations Insights failed to enable.", + "Operations Insights failed to disable." + ], + "readOnly": true, + "type": "string" + }, + "pdbName": { + "description": "Required. The database name.", + "type": "string" + }, + "pdbNodeLevelDetails": { + "description": "Optional. Pluggable Database Node Level Details", + "items": { + "$ref": "PluggableDatabaseNodeLevelDetails" + }, + "type": "array" + } + }, + "type": "object" + }, "RestartAutonomousDatabaseRequest": { "description": "The request for `AutonomousDatabase.Restart`.", "id": "RestartAutonomousDatabaseRequest", @@ -4487,6 +5990,25 @@ "properties": {}, "type": "object" }, + "StorageSizeDetails": { + "description": "The initial storage size, in gigabytes, that is applicable for virtual machine DBSystem.", + "id": "StorageSizeDetails", + "properties": { + "dataStorageSizeInGbs": { + "description": "Output only. The data storage size, in gigabytes, that is applicable for virtual machine DBSystem.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "recoStorageSizeInGbs": { + "description": "Output only. The RECO/REDO storage size, in gigabytes, that is applicable for virtual machine DBSystem.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, "SwitchoverAutonomousDatabaseRequest": { "description": "The request for `OracleDatabase.SwitchoverAutonomousDatabase`.", "id": "SwitchoverAutonomousDatabaseRequest", diff --git a/oracledatabase/v1/oracledatabase-gen.go b/oracledatabase/v1/oracledatabase-gen.go index 4532ec9b27..045a67fe89 100644 --- a/oracledatabase/v1/oracledatabase-gen.go +++ b/oracledatabase/v1/oracledatabase-gen.go @@ -174,11 +174,17 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.AutonomousDbVersions = NewProjectsLocationsAutonomousDbVersionsService(s) rs.CloudExadataInfrastructures = NewProjectsLocationsCloudExadataInfrastructuresService(s) rs.CloudVmClusters = NewProjectsLocationsCloudVmClustersService(s) + rs.DatabaseCharacterSets = NewProjectsLocationsDatabaseCharacterSetsService(s) + rs.Databases = NewProjectsLocationsDatabasesService(s) + rs.DbSystemInitialStorageSizes = NewProjectsLocationsDbSystemInitialStorageSizesService(s) rs.DbSystemShapes = NewProjectsLocationsDbSystemShapesService(s) + rs.DbSystems = NewProjectsLocationsDbSystemsService(s) + rs.DbVersions = NewProjectsLocationsDbVersionsService(s) rs.Entitlements = NewProjectsLocationsEntitlementsService(s) rs.GiVersions = NewProjectsLocationsGiVersionsService(s) rs.OdbNetworks = NewProjectsLocationsOdbNetworksService(s) rs.Operations = NewProjectsLocationsOperationsService(s) + rs.PluggableDatabases = NewProjectsLocationsPluggableDatabasesService(s) return rs } @@ -197,8 +203,18 @@ type ProjectsLocationsService struct { CloudVmClusters *ProjectsLocationsCloudVmClustersService + DatabaseCharacterSets *ProjectsLocationsDatabaseCharacterSetsService + + Databases *ProjectsLocationsDatabasesService + + DbSystemInitialStorageSizes *ProjectsLocationsDbSystemInitialStorageSizesService + DbSystemShapes *ProjectsLocationsDbSystemShapesService + DbSystems *ProjectsLocationsDbSystemsService + + DbVersions *ProjectsLocationsDbVersionsService + Entitlements *ProjectsLocationsEntitlementsService GiVersions *ProjectsLocationsGiVersionsService @@ -206,6 +222,8 @@ type ProjectsLocationsService struct { OdbNetworks *ProjectsLocationsOdbNetworksService Operations *ProjectsLocationsOperationsService + + PluggableDatabases *ProjectsLocationsPluggableDatabasesService } func NewProjectsLocationsAutonomousDatabaseBackupsService(s *Service) *ProjectsLocationsAutonomousDatabaseBackupsService { @@ -286,6 +304,33 @@ type ProjectsLocationsCloudVmClustersDbNodesService struct { s *Service } +func NewProjectsLocationsDatabaseCharacterSetsService(s *Service) *ProjectsLocationsDatabaseCharacterSetsService { + rs := &ProjectsLocationsDatabaseCharacterSetsService{s: s} + return rs +} + +type ProjectsLocationsDatabaseCharacterSetsService struct { + s *Service +} + +func NewProjectsLocationsDatabasesService(s *Service) *ProjectsLocationsDatabasesService { + rs := &ProjectsLocationsDatabasesService{s: s} + return rs +} + +type ProjectsLocationsDatabasesService struct { + s *Service +} + +func NewProjectsLocationsDbSystemInitialStorageSizesService(s *Service) *ProjectsLocationsDbSystemInitialStorageSizesService { + rs := &ProjectsLocationsDbSystemInitialStorageSizesService{s: s} + return rs +} + +type ProjectsLocationsDbSystemInitialStorageSizesService struct { + s *Service +} + func NewProjectsLocationsDbSystemShapesService(s *Service) *ProjectsLocationsDbSystemShapesService { rs := &ProjectsLocationsDbSystemShapesService{s: s} return rs @@ -295,6 +340,24 @@ type ProjectsLocationsDbSystemShapesService struct { s *Service } +func NewProjectsLocationsDbSystemsService(s *Service) *ProjectsLocationsDbSystemsService { + rs := &ProjectsLocationsDbSystemsService{s: s} + return rs +} + +type ProjectsLocationsDbSystemsService struct { + s *Service +} + +func NewProjectsLocationsDbVersionsService(s *Service) *ProjectsLocationsDbVersionsService { + rs := &ProjectsLocationsDbVersionsService{s: s} + return rs +} + +type ProjectsLocationsDbVersionsService struct { + s *Service +} + func NewProjectsLocationsEntitlementsService(s *Service) *ProjectsLocationsEntitlementsService { rs := &ProjectsLocationsEntitlementsService{s: s} return rs @@ -343,6 +406,15 @@ type ProjectsLocationsOperationsService struct { s *Service } +func NewProjectsLocationsPluggableDatabasesService(s *Service) *ProjectsLocationsPluggableDatabasesService { + rs := &ProjectsLocationsPluggableDatabasesService{s: s} + return rs +} + +type ProjectsLocationsPluggableDatabasesService struct { + s *Service +} + // AllConnectionStrings: A list of all connection strings that can be used to // connect to the Autonomous Database. type AllConnectionStrings struct { @@ -1207,6 +1279,36 @@ func (s AutonomousDbVersion) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// BackupDestinationDetails: The details of the database backup destination. +type BackupDestinationDetails struct { + // Type: Optional. The type of the database backup destination. + // + // Possible values: + // "BACKUP_DESTINATION_TYPE_UNSPECIFIED" - Default unspecified value. + // "NFS" - Backup destination type is NFS. + // "RECOVERY_APPLIANCE" - Backup destination type is Recovery Appliance. + // "OBJECT_STORE" - Backup destination type is Object Store. + // "LOCAL" - Backup destination type is Local. + // "DBRS" - Backup destination type is DBRS. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "Type") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Type") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s BackupDestinationDetails) MarshalJSON() ([]byte, error) { + type NoMethod BackupDestinationDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } @@ -1680,6 +1782,140 @@ func (s DataCollectionOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DataCollectionOptionsDbSystem: Data collection options for DbSystem. +type DataCollectionOptionsDbSystem struct { + // IsDiagnosticsEventsEnabled: Optional. Indicates whether to enable data + // collection for diagnostics. + IsDiagnosticsEventsEnabled bool `json:"isDiagnosticsEventsEnabled,omitempty"` + // IsIncidentLogsEnabled: Optional. Indicates whether to enable incident logs + // and trace collection. + IsIncidentLogsEnabled bool `json:"isIncidentLogsEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "IsDiagnosticsEventsEnabled") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IsDiagnosticsEventsEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DataCollectionOptionsDbSystem) MarshalJSON() ([]byte, error) { + type NoMethod DataCollectionOptionsDbSystem + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// Database: Details of the Database resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/Database/ +type Database struct { + // AdminPassword: Required. The password for the default ADMIN user. + AdminPassword string `json:"adminPassword,omitempty"` + // CharacterSet: Optional. The character set for the database. The default is + // AL32UTF8. + CharacterSet string `json:"characterSet,omitempty"` + // CreateTime: Output only. The date and time that the Database was created. + CreateTime string `json:"createTime,omitempty"` + // DatabaseId: Optional. The database ID of the Database. + DatabaseId string `json:"databaseId,omitempty"` + // DbHomeName: Optional. The name of the DbHome resource associated with the + // Database. + DbHomeName string `json:"dbHomeName,omitempty"` + // DbName: Optional. The database name. The name must begin with an alphabetic + // character and can contain a maximum of eight alphanumeric characters. + // Special characters are not permitted. + DbName string `json:"dbName,omitempty"` + // DbUniqueName: Optional. The DB_UNIQUE_NAME of the Oracle Database being + // backed up. + DbUniqueName string `json:"dbUniqueName,omitempty"` + // GcpOracleZone: Output only. The GCP Oracle zone where the Database is + // created. + GcpOracleZone string `json:"gcpOracleZone,omitempty"` + // Name: Identifier. The name of the Database resource in the following format: + // projects/{project}/locations/{region}/databases/{database} + Name string `json:"name,omitempty"` + // NcharacterSet: Optional. The national character set for the database. The + // default is AL16UTF16. + NcharacterSet string `json:"ncharacterSet,omitempty"` + // OciUrl: Output only. HTTPS link to OCI resources exposed to Customer via UI + // Interface. + OciUrl string `json:"ociUrl,omitempty"` + // OpsInsightsStatus: Output only. The Status of Operations Insights for this + // Database. + // + // Possible values: + // "OPERATIONS_INSIGHTS_STATUS_UNSPECIFIED" - Default unspecified value. + // "ENABLING" - Indicates that the operations insights are being enabled. + // "ENABLED" - Indicates that the operations insights are enabled. + // "DISABLING" - Indicates that the operations insights are being disabled. + // "NOT_ENABLED" - Indicates that the operations insights are not enabled. + // "FAILED_ENABLING" - Indicates that the operations insights failed to + // enable. + // "FAILED_DISABLING" - Indicates that the operations insights failed to + // disable. + OpsInsightsStatus string `json:"opsInsightsStatus,omitempty"` + // Properties: Optional. The properties of the Database. + Properties *DatabaseProperties `json:"properties,omitempty"` + // TdeWalletPassword: Optional. The TDE wallet password for the database. + TdeWalletPassword string `json:"tdeWalletPassword,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AdminPassword") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AdminPassword") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Database) MarshalJSON() ([]byte, error) { + type NoMethod Database + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseCharacterSet: Details of the Database character set resource. +type DatabaseCharacterSet struct { + // CharacterSet: Output only. The character set name for the Database which is + // the ID in the resource name. + CharacterSet string `json:"characterSet,omitempty"` + // CharacterSetType: Output only. The character set type for the Database. + // + // Possible values: + // "CHARACTER_SET_TYPE_UNSPECIFIED" - Character set type is not specified. + // "DATABASE" - Character set type is set to database. + // "NATIONAL" - Character set type is set to national. + CharacterSetType string `json:"characterSetType,omitempty"` + // Name: Identifier. The name of the Database Character Set resource in the + // following format: + // projects/{project}/locations/{region}/databaseCharacterSets/{database_charact + // er_set} + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "CharacterSet") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CharacterSet") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseCharacterSet) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseCharacterSet + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DatabaseConnectionStringProfile: The connection string profile to allow // clients to group. // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/datatypes/DatabaseConnectionStringProfile @@ -1758,6 +1994,212 @@ func (s DatabaseConnectionStringProfile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DatabaseManagementConfig: The configuration of the Database Management +// service. +type DatabaseManagementConfig struct { + // ManagementState: Output only. The status of the Database Management service. + // + // Possible values: + // "MANAGEMENT_STATE_UNSPECIFIED" - The status is not specified. + // "ENABLING" - The Database Management service is enabling. + // "ENABLED" - The Database Management service is enabled. + // "DISABLING" - The Database Management service is disabling. + // "DISABLED" - The Database Management service is disabled. + // "UPDATING" - The Database Management service is updating. + // "FAILED_ENABLING" - The Database Management service failed to enable. + // "FAILED_DISABLING" - The Database Management service failed to disable. + // "FAILED_UPDATING" - The Database Management service failed to update. + ManagementState string `json:"managementState,omitempty"` + // ManagementType: Output only. The Database Management type. + // + // Possible values: + // "MANAGEMENT_TYPE_UNSPECIFIED" - The type is not specified. + // "BASIC" - Basic Database Management. + // "ADVANCED" - Advanced Database Management. + ManagementType string `json:"managementType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ManagementState") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ManagementState") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseManagementConfig) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseManagementConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DatabaseProperties: The properties of a Database. +type DatabaseProperties struct { + // DatabaseManagementConfig: Output only. The Database Management config. + DatabaseManagementConfig *DatabaseManagementConfig `json:"databaseManagementConfig,omitempty"` + // DbBackupConfig: Optional. Backup options for the Database. + DbBackupConfig *DbBackupConfig `json:"dbBackupConfig,omitempty"` + // DbVersion: Required. The Oracle Database version. + DbVersion string `json:"dbVersion,omitempty"` + // State: Output only. State of the Database. + // + // Possible values: + // "DATABASE_LIFECYCLE_STATE_UNSPECIFIED" - Default unspecified value. + // "PROVISIONING" - Indicates that the resource is in provisioning state. + // "AVAILABLE" - Indicates that the resource is in available state. + // "UPDATING" - Indicates that the resource is in updating state. + // "BACKUP_IN_PROGRESS" - Indicates that the resource is in backup in + // progress state. + // "UPGRADING" - Indicates that the resource is in upgrading state. + // "CONVERTING" - Indicates that the resource is in converting state. + // "TERMINATING" - Indicates that the resource is in terminating state. + // "TERMINATED" - Indicates that the resource is in terminated state. + // "RESTORE_FAILED" - Indicates that the resource is in restore failed state. + // "FAILED" - Indicates that the resource is in failed state. + State string `json:"state,omitempty"` + // ForceSendFields is a list of field names (e.g. "DatabaseManagementConfig") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DatabaseManagementConfig") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseProperties) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbBackupConfig: Backup Options for the Database. +type DbBackupConfig struct { + // AutoBackupEnabled: Optional. If set to true, enables automatic backups on + // the database. + AutoBackupEnabled bool `json:"autoBackupEnabled,omitempty"` + // AutoFullBackupDay: Optional. The day of the week on which the full backup + // should be performed on the database. If no value is provided, it will + // default to Sunday. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + AutoFullBackupDay string `json:"autoFullBackupDay,omitempty"` + // AutoFullBackupWindow: Optional. The window in which the full backup should + // be performed on the database. If no value is provided, the default is + // anytime. + // + // Possible values: + // "BACKUP_WINDOW_UNSPECIFIED" - Default unspecified value. + // "SLOT_ONE" - 12:00 AM - 2:00 AM + // "SLOT_TWO" - 2:00 AM - 4:00 AM + // "SLOT_THREE" - 4:00 AM - 6:00 AM + // "SLOT_FOUR" - 6:00 AM - 8:00 AM + // "SLOT_FIVE" - 8:00 AM - 10:00 AM + // "SLOT_SIX" - 10:00 AM - 12:00 PM + // "SLOT_SEVEN" - 12:00 PM - 2:00 PM + // "SLOT_EIGHT" - 2:00 PM - 4:00 PM + // "SLOT_NINE" - 4:00 PM - 6:00 PM + // "SLOT_TEN" - 6:00 PM - 8:00 PM + // "SLOT_ELEVEN" - 8:00 PM - 10:00 PM + // "SLOT_TWELVE" - 10:00 PM - 12:00 AM + AutoFullBackupWindow string `json:"autoFullBackupWindow,omitempty"` + // AutoIncrementalBackupWindow: Optional. The window in which the incremental + // backup should be performed on the database. If no value is provided, the + // default is anytime except the auto full backup day. + // + // Possible values: + // "BACKUP_WINDOW_UNSPECIFIED" - Default unspecified value. + // "SLOT_ONE" - 12:00 AM - 2:00 AM + // "SLOT_TWO" - 2:00 AM - 4:00 AM + // "SLOT_THREE" - 4:00 AM - 6:00 AM + // "SLOT_FOUR" - 6:00 AM - 8:00 AM + // "SLOT_FIVE" - 8:00 AM - 10:00 AM + // "SLOT_SIX" - 10:00 AM - 12:00 PM + // "SLOT_SEVEN" - 12:00 PM - 2:00 PM + // "SLOT_EIGHT" - 2:00 PM - 4:00 PM + // "SLOT_NINE" - 4:00 PM - 6:00 PM + // "SLOT_TEN" - 6:00 PM - 8:00 PM + // "SLOT_ELEVEN" - 8:00 PM - 10:00 PM + // "SLOT_TWELVE" - 10:00 PM - 12:00 AM + AutoIncrementalBackupWindow string `json:"autoIncrementalBackupWindow,omitempty"` + // BackupDeletionPolicy: Optional. This defines when the backups will be + // deleted after Database termination. + // + // Possible values: + // "BACKUP_DELETION_POLICY_UNSPECIFIED" - Default unspecified value. + // "DELETE_IMMEDIATELY" - Keeps the backup for predefined time i.e. 72 hours + // and then delete permanently. + // "DELETE_AFTER_RETENTION_PERIOD" - Keeps the backups as per the policy + // defined for database backups. + BackupDeletionPolicy string `json:"backupDeletionPolicy,omitempty"` + // BackupDestinationDetails: Optional. Details of the database backup + // destinations. + BackupDestinationDetails []*BackupDestinationDetails `json:"backupDestinationDetails,omitempty"` + // RetentionPeriodDays: Optional. The number of days an automatic backup is + // retained before being automatically deleted. This value determines the + // earliest point in time to which a database can be restored. Min: 1, Max: 60. + RetentionPeriodDays int64 `json:"retentionPeriodDays,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutoBackupEnabled") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutoBackupEnabled") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbBackupConfig) MarshalJSON() ([]byte, error) { + type NoMethod DbBackupConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbHome: Details of the Database Home resource. +type DbHome struct { + // Database: Required. The Database resource. + Database *Database `json:"database,omitempty"` + // DbVersion: Required. A valid Oracle Database version. For a list of + // supported versions, use the ListDbVersions operation. + DbVersion string `json:"dbVersion,omitempty"` + // DisplayName: Optional. The display name for the Database Home. The name does + // not have to be unique within your project. + DisplayName string `json:"displayName,omitempty"` + // IsUnifiedAuditingEnabled: Optional. Whether unified auditing is enabled for + // the Database Home. + IsUnifiedAuditingEnabled bool `json:"isUnifiedAuditingEnabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "Database") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Database") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbHome) MarshalJSON() ([]byte, error) { + type NoMethod DbHome + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DbNode: Details of the database node resource. // https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbNode/ type DbNode struct { @@ -1916,39 +2358,284 @@ func (s DbServerProperties) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// DbSystemShape: Details of the Database System Shapes resource. -// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/ -type DbSystemShape struct { - // AvailableCoreCountPerNode: Optional. Number of cores per node. - AvailableCoreCountPerNode int64 `json:"availableCoreCountPerNode,omitempty"` - // AvailableDataStorageTb: Optional. Storage per storage server in terabytes. - AvailableDataStorageTb int64 `json:"availableDataStorageTb,omitempty"` - // AvailableMemoryPerNodeGb: Optional. Memory per database server node in - // gigabytes. - AvailableMemoryPerNodeGb int64 `json:"availableMemoryPerNodeGb,omitempty"` - // MaxNodeCount: Optional. Maximum number of database servers. - MaxNodeCount int64 `json:"maxNodeCount,omitempty"` - // MaxStorageCount: Optional. Maximum number of storage servers. - MaxStorageCount int64 `json:"maxStorageCount,omitempty"` - // MinCoreCountPerNode: Optional. Minimum core count per node. - MinCoreCountPerNode int64 `json:"minCoreCountPerNode,omitempty"` - // MinDbNodeStoragePerNodeGb: Optional. Minimum node storage per database - // server in gigabytes. - MinDbNodeStoragePerNodeGb int64 `json:"minDbNodeStoragePerNodeGb,omitempty"` - // MinMemoryPerNodeGb: Optional. Minimum memory per node in gigabytes. - MinMemoryPerNodeGb int64 `json:"minMemoryPerNodeGb,omitempty"` - // MinNodeCount: Optional. Minimum number of database servers. - MinNodeCount int64 `json:"minNodeCount,omitempty"` - // MinStorageCount: Optional. Minimum number of storage servers. - MinStorageCount int64 `json:"minStorageCount,omitempty"` - // Name: Identifier. The name of the Database System Shape resource with the - // format: - // projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape} +// DbSystem: Details of the DbSystem (BaseDB) resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystem/ +type DbSystem struct { + // CreateTime: Output only. The date and time that the DbSystem was created. + CreateTime string `json:"createTime,omitempty"` + // DisplayName: Required. The display name for the System db. The name does not + // have to be unique within your project. + DisplayName string `json:"displayName,omitempty"` + // EntitlementId: Output only. The ID of the subscription entitlement + // associated with the DbSystem + EntitlementId string `json:"entitlementId,omitempty"` + // GcpOracleZone: Optional. The GCP Oracle zone where Oracle DbSystem is + // hosted. Example: us-east4-b-r2. If not specified, the system will pick a + // zone based on availability. + GcpOracleZone string `json:"gcpOracleZone,omitempty"` + // Labels: Optional. The labels or tags associated with the DbSystem. + Labels map[string]string `json:"labels,omitempty"` + // Name: Identifier. The name of the DbSystem resource in the following format: + // projects/{project}/locations/{region}/dbSystems/{db_system} Name string `json:"name,omitempty"` - // Shape: Optional. shape - Shape string `json:"shape,omitempty"` - // ForceSendFields is a list of field names (e.g. "AvailableCoreCountPerNode") - // to unconditionally include in API requests. By default, fields with empty or + // OciUrl: Output only. HTTPS link to OCI resources exposed to Customer via UI + // Interface. + OciUrl string `json:"ociUrl,omitempty"` + // OdbNetwork: Optional. The name of the OdbNetwork associated with the + // DbSystem. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network} It is + // optional but if specified, this should match the parent ODBNetwork of the + // OdbSubnet. + OdbNetwork string `json:"odbNetwork,omitempty"` + // OdbSubnet: Required. The name of the OdbSubnet associated with the DbSystem + // for IP allocation. Format: + // projects/{project}/locations/{location}/odbNetworks/{odb_network}/odbSubnets/ + // {odb_subnet} + OdbSubnet string `json:"odbSubnet,omitempty"` + // Properties: Optional. The properties of the DbSystem. + Properties *DbSystemProperties `json:"properties,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbSystem) MarshalJSON() ([]byte, error) { + type NoMethod DbSystem + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbSystemInitialStorageSize: Summary of the DbSystem initial storage size. +type DbSystemInitialStorageSize struct { + // Name: Output only. The name of the resource. + Name string `json:"name,omitempty"` + // Properties: Output only. The properties of the DbSystem initial storage size + // summary. + Properties *DbSystemInitialStorageSizeProperties `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbSystemInitialStorageSize) MarshalJSON() ([]byte, error) { + type NoMethod DbSystemInitialStorageSize + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbSystemInitialStorageSizeProperties: The properties of a DbSystem initial +// storage size summary. +type DbSystemInitialStorageSizeProperties struct { + // LaunchFromBackupStorageSizeDetails: Output only. List of storage disk + // details available for launches from backup. + LaunchFromBackupStorageSizeDetails []*StorageSizeDetails `json:"launchFromBackupStorageSizeDetails,omitempty"` + // ShapeType: Output only. VM shape platform type + // + // Possible values: + // "SHAPE_TYPE_UNSPECIFIED" - Unspecified shape type. + // "STANDARD_X86" - Standard X86. + ShapeType string `json:"shapeType,omitempty"` + // StorageManagement: Output only. The storage option used in DB system. + // + // Possible values: + // "STORAGE_MANAGEMENT_UNSPECIFIED" - Unspecified storage management. + // "ASM" - Automatic Storage Management. + // "LVM" - Logical Volume Management. + StorageManagement string `json:"storageManagement,omitempty"` + // StorageSizeDetails: Output only. List of storage disk details. + StorageSizeDetails []*StorageSizeDetails `json:"storageSizeDetails,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "LaunchFromBackupStorageSizeDetails") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. + // "LaunchFromBackupStorageSizeDetails") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. + NullFields []string `json:"-"` +} + +func (s DbSystemInitialStorageSizeProperties) MarshalJSON() ([]byte, error) { + type NoMethod DbSystemInitialStorageSizeProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbSystemOptions: Details of the DbSystem Options. +type DbSystemOptions struct { + // StorageManagement: Optional. The storage option used in DB system. + // + // Possible values: + // "STORAGE_MANAGEMENT_UNSPECIFIED" - The storage management is unspecified. + // "ASM" - Automatic storage management. + // "LVM" - Logical Volume management. + StorageManagement string `json:"storageManagement,omitempty"` + // ForceSendFields is a list of field names (e.g. "StorageManagement") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "StorageManagement") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbSystemOptions) MarshalJSON() ([]byte, error) { + type NoMethod DbSystemOptions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbSystemProperties: The properties of a DbSystem. +type DbSystemProperties struct { + // ComputeCount: Required. The number of CPU cores to enable for the DbSystem. + ComputeCount int64 `json:"computeCount,omitempty"` + // ComputeModel: Optional. The compute model of the DbSystem. + // + // Possible values: + // "COMPUTE_MODEL_UNSPECIFIED" - The compute model is unspecified. + // "ECPU" - The compute model is virtual. + // "OCPU" - The compute model is physical. + ComputeModel string `json:"computeModel,omitempty"` + // DataCollectionOptions: Optional. Data collection options for diagnostics. + DataCollectionOptions *DataCollectionOptionsDbSystem `json:"dataCollectionOptions,omitempty"` + // DataStorageSizeGb: Optional. The data storage size in GB that is currently + // available to DbSystems. + DataStorageSizeGb int64 `json:"dataStorageSizeGb,omitempty"` + // DatabaseEdition: Required. The database edition of the DbSystem. + // + // Possible values: + // "DB_SYSTEM_DATABASE_EDITION_UNSPECIFIED" - The database edition is + // unspecified. + // "STANDARD_EDITION" - The database edition is Standard. + // "ENTERPRISE_EDITION" - The database edition is Enterprise. + // "ENTERPRISE_EDITION_HIGH_PERFORMANCE" - The database edition is Enterprise + // Edition. + DatabaseEdition string `json:"databaseEdition,omitempty"` + // DbHome: Optional. Details for creating a Database Home. + DbHome *DbHome `json:"dbHome,omitempty"` + // DbSystemOptions: Optional. The options for the DbSystem. + DbSystemOptions *DbSystemOptions `json:"dbSystemOptions,omitempty"` + // Domain: Optional. The host domain name of the DbSystem. + Domain string `json:"domain,omitempty"` + // Hostname: Output only. The hostname of the DbSystem. + Hostname string `json:"hostname,omitempty"` + // HostnamePrefix: Optional. Prefix for DB System host names. + HostnamePrefix string `json:"hostnamePrefix,omitempty"` + // InitialDataStorageSizeGb: Required. The initial data storage size in GB. + InitialDataStorageSizeGb int64 `json:"initialDataStorageSizeGb,omitempty"` + // LicenseModel: Required. The license model of the DbSystem. + // + // Possible values: + // "LICENSE_MODEL_UNSPECIFIED" - The license model is unspecified. + // "LICENSE_INCLUDED" - The license model is included. + // "BRING_YOUR_OWN_LICENSE" - The license model is bring your own license. + LicenseModel string `json:"licenseModel,omitempty"` + // LifecycleState: Output only. State of the DbSystem. + // + // Possible values: + // "DB_SYSTEM_LIFECYCLE_STATE_UNSPECIFIED" - Default unspecified value. + // "PROVISIONING" - Indicates that the resource is in provisioning state. + // "AVAILABLE" - Indicates that the resource is in available state. + // "UPDATING" - Indicates that the resource is in updating state. + // "TERMINATING" - Indicates that the resource is in terminating state. + // "TERMINATED" - Indicates that the resource is in terminated state. + // "FAILED" - Indicates that the resource is in failed state. + // "MIGRATED" - Indicates that the resource has been migrated. + // "MAINTENANCE_IN_PROGRESS" - Indicates that the resource is in maintenance + // in progress state. + // "NEEDS_ATTENTION" - Indicates that the resource needs attention. + // "UPGRADING" - Indicates that the resource is upgrading. + LifecycleState string `json:"lifecycleState,omitempty"` + // MemorySizeGb: Optional. The memory size in GB. + MemorySizeGb int64 `json:"memorySizeGb,omitempty"` + // NodeCount: Optional. The number of nodes in the DbSystem. + NodeCount int64 `json:"nodeCount,omitempty"` + // Ocid: Output only. OCID of the DbSystem. + Ocid string `json:"ocid,omitempty"` + // PrivateIp: Optional. The private IP address of the DbSystem. + PrivateIp string `json:"privateIp,omitempty"` + // RecoStorageSizeGb: Optional. The reco/redo storage size in GB. + RecoStorageSizeGb int64 `json:"recoStorageSizeGb,omitempty"` + // Shape: Required. Shape of DB System. + Shape string `json:"shape,omitempty"` + // SshPublicKeys: Required. SSH public keys to be stored with the DbSystem. + SshPublicKeys []string `json:"sshPublicKeys,omitempty"` + // TimeZone: Optional. Time zone of the DbSystem. + TimeZone *TimeZone `json:"timeZone,omitempty"` + // ForceSendFields is a list of field names (e.g. "ComputeCount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ComputeCount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbSystemProperties) MarshalJSON() ([]byte, error) { + type NoMethod DbSystemProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbSystemShape: Details of the Database System Shapes resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbSystemShapeSummary/ +type DbSystemShape struct { + // AvailableCoreCountPerNode: Optional. Number of cores per node. + AvailableCoreCountPerNode int64 `json:"availableCoreCountPerNode,omitempty"` + // AvailableDataStorageTb: Optional. Storage per storage server in terabytes. + AvailableDataStorageTb int64 `json:"availableDataStorageTb,omitempty"` + // AvailableMemoryPerNodeGb: Optional. Memory per database server node in + // gigabytes. + AvailableMemoryPerNodeGb int64 `json:"availableMemoryPerNodeGb,omitempty"` + // MaxNodeCount: Optional. Maximum number of database servers. + MaxNodeCount int64 `json:"maxNodeCount,omitempty"` + // MaxStorageCount: Optional. Maximum number of storage servers. + MaxStorageCount int64 `json:"maxStorageCount,omitempty"` + // MinCoreCountPerNode: Optional. Minimum core count per node. + MinCoreCountPerNode int64 `json:"minCoreCountPerNode,omitempty"` + // MinDbNodeStoragePerNodeGb: Optional. Minimum node storage per database + // server in gigabytes. + MinDbNodeStoragePerNodeGb int64 `json:"minDbNodeStoragePerNodeGb,omitempty"` + // MinMemoryPerNodeGb: Optional. Minimum memory per node in gigabytes. + MinMemoryPerNodeGb int64 `json:"minMemoryPerNodeGb,omitempty"` + // MinNodeCount: Optional. Minimum number of database servers. + MinNodeCount int64 `json:"minNodeCount,omitempty"` + // MinStorageCount: Optional. Minimum number of storage servers. + MinStorageCount int64 `json:"minStorageCount,omitempty"` + // Name: Identifier. The name of the Database System Shape resource with the + // format: + // projects/{project}/locations/{region}/dbSystemShapes/{db_system_shape} + Name string `json:"name,omitempty"` + // Shape: Optional. shape + Shape string `json:"shape,omitempty"` + // ForceSendFields is a list of field names (e.g. "AvailableCoreCountPerNode") + // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. @@ -1965,6 +2652,87 @@ func (s DbSystemShape) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DbVersion: A valid Oracle Database version. +type DbVersion struct { + // Name: Output only. The name of the DbVersion resource in the following + // format: projects/{project}/locations/{region}/dbVersions/{db_version} + Name string `json:"name,omitempty"` + // Properties: Output only. The properties of the DbVersion. + Properties *DbVersionProperties `json:"properties,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbVersion) MarshalJSON() ([]byte, error) { + type NoMethod DbVersion + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DbVersionProperties: The properties of a DbVersion. +type DbVersionProperties struct { + // IsLatestForMajorVersion: Output only. True if this version of the Oracle + // Database software is the latest version for a release. + IsLatestForMajorVersion bool `json:"isLatestForMajorVersion,omitempty"` + // IsPreviewDbVersion: Output only. True if this version of the Oracle Database + // software is the preview version. + IsPreviewDbVersion bool `json:"isPreviewDbVersion,omitempty"` + // IsUpgradeSupported: Output only. True if this version of the Oracle Database + // software is supported for Upgrade. + IsUpgradeSupported bool `json:"isUpgradeSupported,omitempty"` + // SupportsPdb: Output only. True if this version of the Oracle Database + // software supports pluggable databases. + SupportsPdb bool `json:"supportsPdb,omitempty"` + // Version: Output only. A valid Oracle Database version. + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "IsLatestForMajorVersion") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IsLatestForMajorVersion") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DbVersionProperties) MarshalJSON() ([]byte, error) { + type NoMethod DbVersionProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// DefinedTagValue: Wrapper message for the value of a defined tag. +type DefinedTagValue struct { + // Tags: The tags within the namespace. + Tags map[string]string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tags") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DefinedTagValue) MarshalJSON() ([]byte, error) { + type NoMethod DefinedTagValue + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -2309,6 +3077,63 @@ func (s ListCloudVmClustersResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListDatabaseCharacterSetsResponse: The response for +// `DatabaseCharacterSet.List`. +type ListDatabaseCharacterSetsResponse struct { + // DatabaseCharacterSets: The list of DatabaseCharacterSets. + DatabaseCharacterSets []*DatabaseCharacterSet `json:"databaseCharacterSets,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DatabaseCharacterSets") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DatabaseCharacterSets") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListDatabaseCharacterSetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDatabaseCharacterSetsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListDatabasesResponse: The response for `Database.List`. +type ListDatabasesResponse struct { + // Databases: The list of Databases. + Databases []*Database `json:"databases,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Databases") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Databases") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListDatabasesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDatabasesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListDbNodesResponse: The response for `DbNode.List`. type ListDbNodesResponse struct { // DbNodes: The list of DB Nodes @@ -2364,21 +3189,50 @@ func (s ListDbServersResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ListDbSystemShapesResponse: The response for `DbSystemShape.List`. -type ListDbSystemShapesResponse struct { - // DbSystemShapes: The list of Database System shapes. - DbSystemShapes []*DbSystemShape `json:"dbSystemShapes,omitempty"` +// ListDbSystemInitialStorageSizesResponse: The response for +// `DbSystemInitialStorageSizes.List`. +type ListDbSystemInitialStorageSizesResponse struct { + // DbSystemInitialStorageSizes: The list of DbSystemInitialStorageSizes. + DbSystemInitialStorageSizes []*DbSystemInitialStorageSize `json:"dbSystemInitialStorageSizes,omitempty"` // NextPageToken: A token identifying a page of results the server should // return. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DbSystemShapes") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "DbSystemInitialStorageSizes") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbSystemInitialStorageSizes") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListDbSystemInitialStorageSizesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDbSystemInitialStorageSizesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListDbSystemShapesResponse: The response for `DbSystemShape.List`. +type ListDbSystemShapesResponse struct { + // DbSystemShapes: The list of Database System shapes. + DbSystemShapes []*DbSystemShape `json:"dbSystemShapes,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DbSystemShapes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DbSystemShapes") to include in // API requests with the JSON null value. By default, fields with empty values @@ -2392,6 +3246,62 @@ func (s ListDbSystemShapesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListDbSystemsResponse: The response for `DbSystem.List`. +type ListDbSystemsResponse struct { + // DbSystems: The list of DbSystems. + DbSystems []*DbSystem `json:"dbSystems,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DbSystems") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbSystems") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListDbSystemsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDbSystemsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// ListDbVersionsResponse: The response for `DbVersions.List`. +type ListDbVersionsResponse struct { + // DbVersions: The list of DbVersions. + DbVersions []*DbVersion `json:"dbVersions,omitempty"` + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DbVersions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DbVersions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListDbVersionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDbVersionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListEntitlementsResponse: The response for `Entitlement.List`. type ListEntitlementsResponse struct { // Entitlements: The list of Entitlements @@ -2566,6 +3476,34 @@ func (s ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListPluggableDatabasesResponse: The response for `PluggableDatabase.List`. +type ListPluggableDatabasesResponse struct { + // NextPageToken: A token identifying a page of results the server should + // return. + NextPageToken string `json:"nextPageToken,omitempty"` + // PluggableDatabases: The list of PluggableDatabases. + PluggableDatabases []*PluggableDatabase `json:"pluggableDatabases,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ListPluggableDatabasesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPluggableDatabasesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Location: A resource that represents a Google Cloud location. type Location struct { // DisplayName: The friendly name for this location, typically a nearby city @@ -2923,6 +3861,186 @@ func (s *OperationMetadata) UnmarshalJSON(data []byte) error { return nil } +// PluggableDatabase: The PluggableDatabase resource. +// https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/PluggableDatabase/ +type PluggableDatabase struct { + // CreateTime: Output only. The date and time that the PluggableDatabase was + // created. + CreateTime string `json:"createTime,omitempty"` + // Name: Identifier. The name of the PluggableDatabase resource in the + // following format: + // projects/{project}/locations/{region}/pluggableDatabases/{pluggable_database} + Name string `json:"name,omitempty"` + // OciUrl: Output only. HTTPS link to OCI resources exposed to Customer via UI + // Interface. + OciUrl string `json:"ociUrl,omitempty"` + // Properties: Optional. The properties of the PluggableDatabase. + Properties *PluggableDatabaseProperties `json:"properties,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CreateTime") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PluggableDatabase) MarshalJSON() ([]byte, error) { + type NoMethod PluggableDatabase + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PluggableDatabaseConnectionStrings: The connection strings used to connect +// to the Oracle Database. +type PluggableDatabaseConnectionStrings struct { + // AllConnectionStrings: Optional. All connection strings to use to connect to + // the pluggable database. + AllConnectionStrings map[string]string `json:"allConnectionStrings,omitempty"` + // PdbDefault: Optional. The default connection string to use to connect to the + // pluggable database. + PdbDefault string `json:"pdbDefault,omitempty"` + // PdbIpDefault: Optional. The default connection string to use to connect to + // the pluggable database using IP. + PdbIpDefault string `json:"pdbIpDefault,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllConnectionStrings") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AllConnectionStrings") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PluggableDatabaseConnectionStrings) MarshalJSON() ([]byte, error) { + type NoMethod PluggableDatabaseConnectionStrings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PluggableDatabaseNodeLevelDetails: The Pluggable Database Node Level +// Details. +type PluggableDatabaseNodeLevelDetails struct { + // NodeName: Required. The Node name of the Database home. + NodeName string `json:"nodeName,omitempty"` + // OpenMode: Required. The mode that the pluggable database is in to open it. + // + // Possible values: + // "PLUGGABLE_DATABASE_OPEN_MODE_UNSPECIFIED" - The open mode is unspecified. + // "READ_ONLY" - The pluggable database is opened in read-only mode. + // "READ_WRITE" - The pluggable database is opened in read-write mode. + // "MOUNTED" - The pluggable database is mounted. + // "MIGRATE" - The pluggable database is migrated. + OpenMode string `json:"openMode,omitempty"` + // PluggableDatabaseId: Required. The OCID of the Pluggable Database. + PluggableDatabaseId string `json:"pluggableDatabaseId,omitempty"` + // ForceSendFields is a list of field names (e.g. "NodeName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NodeName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PluggableDatabaseNodeLevelDetails) MarshalJSON() ([]byte, error) { + type NoMethod PluggableDatabaseNodeLevelDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PluggableDatabaseProperties: The properties of a PluggableDatabase. +type PluggableDatabaseProperties struct { + // CompartmentId: Required. The OCID of the compartment. + CompartmentId string `json:"compartmentId,omitempty"` + // ConnectionStrings: Optional. The Connection strings used to connect to the + // Oracle Database. + ConnectionStrings *PluggableDatabaseConnectionStrings `json:"connectionStrings,omitempty"` + // ContainerDatabaseOcid: Required. The OCID of the CDB. + ContainerDatabaseOcid string `json:"containerDatabaseOcid,omitempty"` + // DatabaseManagementConfig: Output only. The configuration of the Database + // Management service. + DatabaseManagementConfig *DatabaseManagementConfig `json:"databaseManagementConfig,omitempty"` + // DefinedTags: Optional. Defined tags for this resource. Each key is + // predefined and scoped to a namespace. + DefinedTags map[string]DefinedTagValue `json:"definedTags,omitempty"` + // FreeformTags: Optional. Free-form tags for this resource. Each tag is a + // simple key-value pair with no predefined name, type, or namespace. + FreeformTags map[string]string `json:"freeformTags,omitempty"` + // IsRestricted: Optional. The restricted mode of the pluggable database. If a + // pluggable database is opened in restricted mode, the user needs both create + // a session and have restricted session privileges to connect to it. + IsRestricted bool `json:"isRestricted,omitempty"` + // LifecycleDetails: Output only. Additional information about the current + // lifecycle state. + LifecycleDetails string `json:"lifecycleDetails,omitempty"` + // LifecycleState: Output only. The current state of the pluggable database. + // + // Possible values: + // "PLUGGABLE_DATABASE_LIFECYCLE_STATE_UNSPECIFIED" - The lifecycle state is + // unspecified. + // "PROVISIONING" - The pluggable database is provisioning. + // "AVAILABLE" - The pluggable database is available. + // "TERMINATING" - The pluggable database is terminating. + // "TERMINATED" - The pluggable database is terminated. + // "UPDATING" - The pluggable database is updating. + // "FAILED" - The pluggable database is in a failed state. + // "RELOCATING" - The pluggable database is relocating. + // "RELOCATED" - The pluggable database is relocated. + // "REFRESHING" - The pluggable database is refreshing. + // "RESTORE_IN_PROGRESS" - The pluggable database is restoring. + // "RESTORE_FAILED" - The pluggable database restore failed. + // "BACKUP_IN_PROGRESS" - The pluggable database is backing up. + // "DISABLED" - The pluggable database is disabled. + LifecycleState string `json:"lifecycleState,omitempty"` + // Ocid: Output only. The OCID of the pluggable database. + Ocid string `json:"ocid,omitempty"` + // OperationsInsightsState: Output only. The status of Operations Insights for + // this Database. + // + // Possible values: + // "OPERATIONS_INSIGHTS_STATE_UNSPECIFIED" - The status is not specified. + // "ENABLING" - Operations Insights is enabling. + // "ENABLED" - Operations Insights is enabled. + // "DISABLING" - Operations Insights is disabling. + // "NOT_ENABLED" - Operations Insights is not enabled. + // "FAILED_ENABLING" - Operations Insights failed to enable. + // "FAILED_DISABLING" - Operations Insights failed to disable. + OperationsInsightsState string `json:"operationsInsightsState,omitempty"` + // PdbName: Required. The database name. + PdbName string `json:"pdbName,omitempty"` + // PdbNodeLevelDetails: Optional. Pluggable Database Node Level Details + PdbNodeLevelDetails []*PluggableDatabaseNodeLevelDetails `json:"pdbNodeLevelDetails,omitempty"` + // ForceSendFields is a list of field names (e.g. "CompartmentId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CompartmentId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PluggableDatabaseProperties) MarshalJSON() ([]byte, error) { + type NoMethod PluggableDatabaseProperties + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RestartAutonomousDatabaseRequest: The request for // `AutonomousDatabase.Restart`. type RestartAutonomousDatabaseRequest struct { @@ -3058,6 +4176,33 @@ func (s Status) MarshalJSON() ([]byte, error) { type StopAutonomousDatabaseRequest struct { } +// StorageSizeDetails: The initial storage size, in gigabytes, that is +// applicable for virtual machine DBSystem. +type StorageSizeDetails struct { + // DataStorageSizeInGbs: Output only. The data storage size, in gigabytes, that + // is applicable for virtual machine DBSystem. + DataStorageSizeInGbs int64 `json:"dataStorageSizeInGbs,omitempty"` + // RecoStorageSizeInGbs: Output only. The RECO/REDO storage size, in gigabytes, + // that is applicable for virtual machine DBSystem. + RecoStorageSizeInGbs int64 `json:"recoStorageSizeInGbs,omitempty"` + // ForceSendFields is a list of field names (e.g. "DataStorageSizeInGbs") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "DataStorageSizeInGbs") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StorageSizeDetails) MarshalJSON() ([]byte, error) { + type NoMethod StorageSizeDetails + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // SwitchoverAutonomousDatabaseRequest: The request for // `OracleDatabase.SwitchoverAutonomousDatabase`. type SwitchoverAutonomousDatabaseRequest struct { @@ -6351,7 +7496,7 @@ func (c *ProjectsLocationsCloudVmClustersDbNodesListCall) Pages(ctx context.Cont } } -type ProjectsLocationsDbSystemShapesListCall struct { +type ProjectsLocationsDatabaseCharacterSetsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -6360,37 +7505,1282 @@ type ProjectsLocationsDbSystemShapesListCall struct { header_ http.Header } -// List: Lists the database system shapes available for the project and -// location. +// List: List DatabaseCharacterSets for the given project and location. // -// - parent: The parent value for Database System Shapes in the following +// - parent: The parent value for DatabaseCharacterSets in the following // format: projects/{project}/locations/{location}. -func (r *ProjectsLocationsDbSystemShapesService) List(parent string) *ProjectsLocationsDbSystemShapesListCall { - c := &ProjectsLocationsDbSystemShapesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsDatabaseCharacterSetsService) List(parent string) *ProjectsLocationsDatabaseCharacterSetsListCall { + c := &ProjectsLocationsDatabaseCharacterSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": 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`. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Filter(filter string) *ProjectsLocationsDatabaseCharacterSetsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// DatabaseCharacterSets to return. The service may return fewer than this +// value. If unspecified, at most 50 DatabaseCharacterSets will be returned. +// The maximum value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) PageSize(pageSize int64) *ProjectsLocationsDatabaseCharacterSetsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListDatabaseCharacterSets` call. Provide this to retrieve +// the subsequent page. When paginating, all other parameters provided to +// `ListDatabaseCharacterSets` must match the call that provided the page +// token. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) PageToken(pageToken string) *ProjectsLocationsDatabaseCharacterSetsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatabaseCharacterSetsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatabaseCharacterSetsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Context(ctx context.Context) *ProjectsLocationsDatabaseCharacterSetsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/databaseCharacterSets") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databaseCharacterSets.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.databaseCharacterSets.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDatabaseCharacterSetsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Do(opts ...googleapi.CallOption) (*ListDatabaseCharacterSetsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDatabaseCharacterSetsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databaseCharacterSets.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDatabaseCharacterSetsListCall) Pages(ctx context.Context, f func(*ListDatabaseCharacterSetsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsDatabasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Database. +// +// - name: The name of the Database resource in the following format: +// projects/{project}/locations/{region}/databases/{database}. +func (r *ProjectsLocationsDatabasesService) Get(name string) *ProjectsLocationsDatabasesGetCall { + c := &ProjectsLocationsDatabasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDatabasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatabasesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDatabasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatabasesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDatabasesGetCall) Context(ctx context.Context) *ProjectsLocationsDatabasesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDatabasesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatabasesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databases.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.databases.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *Database.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsDatabasesGetCall) Do(opts ...googleapi.CallOption) (*Database, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Database{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databases.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsDatabasesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all the Databases for the given project, location and DbSystem. +// +// - parent: The parent resource name in the following format: +// projects/{project}/locations/{region}. +func (r *ProjectsLocationsDatabasesService) List(parent string) *ProjectsLocationsDatabasesListCall { + c := &ProjectsLocationsDatabasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. list for container databases is supported only with +// a valid dbSystem (full resource name) filter in this format: +// `dbSystem="projects/{project}/locations/{location}/dbSystems/{dbSystemId}" +func (c *ProjectsLocationsDatabasesListCall) Filter(filter string) *ProjectsLocationsDatabasesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, a maximum of 50 System Versions will be returned. +// The maximum value is 1000; values above 1000 will be reset to 1000. +func (c *ProjectsLocationsDatabasesListCall) PageSize(pageSize int64) *ProjectsLocationsDatabasesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying the +// requested page of results to return. All fields except the filter should +// remain the same as in the request that provided this page token. +func (c *ProjectsLocationsDatabasesListCall) PageToken(pageToken string) *ProjectsLocationsDatabasesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDatabasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDatabasesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDatabasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDatabasesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDatabasesListCall) Context(ctx context.Context) *ProjectsLocationsDatabasesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDatabasesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDatabasesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/databases") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databases.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.databases.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDatabasesResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDatabasesListCall) Do(opts ...googleapi.CallOption) (*ListDatabasesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDatabasesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.databases.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDatabasesListCall) Pages(ctx context.Context, f func(*ListDatabasesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsDbSystemInitialStorageSizesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all the DbSystemInitialStorageSizes for the given project and +// location. +// +// - parent: The parent value for the DbSystemInitialStorageSize resource with +// the format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsDbSystemInitialStorageSizesService) List(parent string) *ProjectsLocationsDbSystemInitialStorageSizesListCall { + c := &ProjectsLocationsDbSystemInitialStorageSizesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, a maximum of 50 System Versions will be returned. +// The maximum value is 1000; values above 1000 will be reset to 1000. +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) PageSize(pageSize int64) *ProjectsLocationsDbSystemInitialStorageSizesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying the +// requested page of results to return. All fields except the filter should +// remain the same as in the request that provided this page token. +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) PageToken(pageToken string) *ProjectsLocationsDbSystemInitialStorageSizesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemInitialStorageSizesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemInitialStorageSizesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Context(ctx context.Context) *ProjectsLocationsDbSystemInitialStorageSizesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystemInitialStorageSizes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemInitialStorageSizes.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.dbSystemInitialStorageSizes.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDbSystemInitialStorageSizesResponse.ServerResponse.Header or (if a +// response was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Do(opts ...googleapi.CallOption) (*ListDbSystemInitialStorageSizesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDbSystemInitialStorageSizesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemInitialStorageSizes.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDbSystemInitialStorageSizesListCall) Pages(ctx context.Context, f func(*ListDbSystemInitialStorageSizesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsDbSystemShapesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the database system shapes available for the project and +// location. +// +// - parent: The parent value for Database System Shapes in the following +// format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsDbSystemShapesService) List(parent string) *ProjectsLocationsDbSystemShapesListCall { + c := &ProjectsLocationsDbSystemShapesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. Only the gcp_oracle_zone_id field is supported in +// this format: `gcp_oracle_zone_id="{gcp_oracle_zone_id}". +func (c *ProjectsLocationsDbSystemShapesListCall) Filter(filter string) *ProjectsLocationsDbSystemShapesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": 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. +func (c *ProjectsLocationsDbSystemShapesListCall) PageSize(pageSize int64) *ProjectsLocationsDbSystemShapesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsDbSystemShapesListCall) PageToken(pageToken string) *ProjectsLocationsDbSystemShapesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDbSystemShapesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemShapesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDbSystemShapesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemShapesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDbSystemShapesListCall) Context(ctx context.Context) *ProjectsLocationsDbSystemShapesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDbSystemShapesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDbSystemShapesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystemShapes") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemShapes.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.dbSystemShapes.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDbSystemShapesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsDbSystemShapesListCall) Do(opts ...googleapi.CallOption) (*ListDbSystemShapesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDbSystemShapesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemShapes.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDbSystemShapesListCall) Pages(ctx context.Context, f func(*ListDbSystemShapesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsDbSystemsCreateCall struct { + s *Service + parent string + dbsystem *DbSystem + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new DbSystem in a given project and location. +// +// - parent: The value for parent of the DbSystem in the following format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsDbSystemsService) Create(parent string, dbsystem *DbSystem) *ProjectsLocationsDbSystemsCreateCall { + c := &ProjectsLocationsDbSystemsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.dbsystem = dbsystem + return c +} + +// DbSystemId sets the optional parameter "dbSystemId": Required. The ID of the +// DbSystem to create. This value is restricted to (^a-z +// ([a-z0-9-]{0,61}[a-z0-9])?$) and must be a maximum of 63 characters in +// length. The value must start with a letter and end with a letter or a +// number. +func (c *ProjectsLocationsDbSystemsCreateCall) DbSystemId(dbSystemId string) *ProjectsLocationsDbSystemsCreateCall { + c.urlParams_.Set("dbSystemId", dbSystemId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server will know to ignore the request if it has already +// been completed. The server will guarantee that for at least 60 minutes since +// the first request. For example, consider a situation where you make an +// initial request and the request times out. If you make the request again +// with the same request ID, the server can check if original operation with +// the same request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsDbSystemsCreateCall) RequestId(requestId string) *ProjectsLocationsDbSystemsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDbSystemsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDbSystemsCreateCall) Context(ctx context.Context) *ProjectsLocationsDbSystemsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDbSystemsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDbSystemsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.dbsystem) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystems") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.dbSystems.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsDbSystemsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsDbSystemsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single DbSystem. +// +// - name: The name of the DbSystem in the following format: +// projects/{project}/locations/{location}/dbSystems/{db_system}. +func (r *ProjectsLocationsDbSystemsService) Delete(name string) *ProjectsLocationsDbSystemsDeleteCall { + c := &ProjectsLocationsDbSystemsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": 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). +func (c *ProjectsLocationsDbSystemsDeleteCall) RequestId(requestId string) *ProjectsLocationsDbSystemsDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDbSystemsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDbSystemsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDbSystemsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDbSystemsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDbSystemsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.dbSystems.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsDbSystemsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsDbSystemsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single DbSystem. +// +// - name: The name of the DbSystem in the following format: +// projects/{project}/locations/{location}/dbSystems/{db_system}. +func (r *ProjectsLocationsDbSystemsService) Get(name string) *ProjectsLocationsDbSystemsGetCall { + c := &ProjectsLocationsDbSystemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDbSystemsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDbSystemsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDbSystemsGetCall) Context(ctx context.Context) *ProjectsLocationsDbSystemsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDbSystemsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDbSystemsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.dbSystems.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *DbSystem.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsDbSystemsGetCall) Do(opts ...googleapi.CallOption) (*DbSystem, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &DbSystem{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsDbSystemsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all the DbSystems for the given project and location. +// +// - parent: The parent value for DbSystems in the following format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsDbSystemsService) List(parent string) *ProjectsLocationsDbSystemsListCall { + c := &ProjectsLocationsDbSystemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. +func (c *ProjectsLocationsDbSystemsListCall) Filter(filter string) *ProjectsLocationsDbSystemsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": An expression for ordering +// the results of the request. +func (c *ProjectsLocationsDbSystemsListCall) OrderBy(orderBy string) *ProjectsLocationsDbSystemsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of items +// to return. If unspecified, at most 50 DbSystems will be returned. The +// maximum value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsDbSystemsListCall) PageSize(pageSize int64) *ProjectsLocationsDbSystemsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results the server should return. +func (c *ProjectsLocationsDbSystemsListCall) PageToken(pageToken string) *ProjectsLocationsDbSystemsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsDbSystemsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsDbSystemsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDbSystemsListCall) Context(ctx context.Context) *ProjectsLocationsDbSystemsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsDbSystemsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDbSystemsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystems") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.dbSystems.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListDbSystemsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDbSystemsListCall) Do(opts ...googleapi.CallOption) (*ListDbSystemsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListDbSystemsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystems.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsDbSystemsListCall) Pages(ctx context.Context, f func(*ListDbSystemsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsDbVersionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List DbVersions for the given project and location. +// +// - parent: The parent value for the DbVersion resource with the format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsDbVersionsService) List(parent string) *ProjectsLocationsDbVersionsListCall { + c := &ProjectsLocationsDbVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// Filter sets the optional parameter "filter": An expression for filtering the -// results of the request. Only the gcp_oracle_zone_id field is supported in -// this format: `gcp_oracle_zone_id="{gcp_oracle_zone_id}". -func (c *ProjectsLocationsDbSystemShapesListCall) Filter(filter string) *ProjectsLocationsDbSystemShapesListCall { +// Filter sets the optional parameter "filter": Filter expression that matches +// a subset of the DbVersions to show. The supported filter for dbSystem +// creation is `db_system_shape = {db_system_shape} AND storage_management = +// {storage_management}`. If no filter is provided, all DbVersions will be +// returned. +func (c *ProjectsLocationsDbVersionsListCall) Filter(filter string) *ProjectsLocationsDbVersionsListCall { c.urlParams_.Set("filter", filter) return c } // PageSize sets the optional parameter "pageSize": 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. -func (c *ProjectsLocationsDbSystemShapesListCall) PageSize(pageSize int64) *ProjectsLocationsDbSystemShapesListCall { +// to return. If unspecified, a maximum of 50 System Versions will be returned. +// The maximum value is 1000; values above 1000 will be reset to 1000. +func (c *ProjectsLocationsDbVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsDbVersionsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": A token identifying a -// page of results the server should return. -func (c *ProjectsLocationsDbSystemShapesListCall) PageToken(pageToken string) *ProjectsLocationsDbSystemShapesListCall { +// PageToken sets the optional parameter "pageToken": A token identifying the +// requested page of results to return. All fields except the filter should +// remain the same as in the request that provided this page token. +func (c *ProjectsLocationsDbVersionsListCall) PageToken(pageToken string) *ProjectsLocationsDbVersionsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -6398,7 +8788,7 @@ func (c *ProjectsLocationsDbSystemShapesListCall) PageToken(pageToken string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsDbSystemShapesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbSystemShapesListCall { +func (c *ProjectsLocationsDbVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDbVersionsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6406,34 +8796,34 @@ func (c *ProjectsLocationsDbSystemShapesListCall) Fields(s ...googleapi.Field) * // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsDbSystemShapesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbSystemShapesListCall { +func (c *ProjectsLocationsDbVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDbVersionsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsDbSystemShapesListCall) Context(ctx context.Context) *ProjectsLocationsDbSystemShapesListCall { +func (c *ProjectsLocationsDbVersionsListCall) Context(ctx context.Context) *ProjectsLocationsDbVersionsListCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsDbSystemShapesListCall) Header() http.Header { +func (c *ProjectsLocationsDbVersionsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDbSystemShapesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDbVersionsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbSystemShapes") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dbVersions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -6443,17 +8833,17 @@ func (c *ProjectsLocationsDbSystemShapesListCall) doRequest(alt string) (*http.R googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemShapes.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbVersions.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "oracledatabase.projects.locations.dbSystemShapes.list" call. +// Do executes the "oracledatabase.projects.locations.dbVersions.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListDbSystemShapesResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsDbSystemShapesListCall) Do(opts ...googleapi.CallOption) (*ListDbSystemShapesResponse, error) { +// *ListDbVersionsResponse.ServerResponse.Header or (if a response was returned +// at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsDbVersionsListCall) Do(opts ...googleapi.CallOption) (*ListDbVersionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6472,7 +8862,7 @@ func (c *ProjectsLocationsDbSystemShapesListCall) Do(opts ...googleapi.CallOptio if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListDbSystemShapesResponse{ + ret := &ListDbVersionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6483,14 +8873,14 @@ func (c *ProjectsLocationsDbSystemShapesListCall) Do(opts ...googleapi.CallOptio if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbSystemShapes.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.dbVersions.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsDbSystemShapesListCall) Pages(ctx context.Context, f func(*ListDbSystemShapesResponse) error) error { +func (c *ProjectsLocationsDbVersionsListCall) Pages(ctx context.Context, f func(*ListDbVersionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -8301,3 +10691,273 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( c.PageToken(x.NextPageToken) } } + +type ProjectsLocationsPluggableDatabasesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single PluggableDatabase. +// +// - name: The name of the PluggableDatabase resource in the following format: +// projects/{project}/locations/{region}/pluggableDatabases/{pluggable_databas +// e}. +func (r *ProjectsLocationsPluggableDatabasesService) Get(name string) *ProjectsLocationsPluggableDatabasesGetCall { + c := &ProjectsLocationsPluggableDatabasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsPluggableDatabasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPluggableDatabasesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsPluggableDatabasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPluggableDatabasesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPluggableDatabasesGetCall) Context(ctx context.Context) *ProjectsLocationsPluggableDatabasesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsPluggableDatabasesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPluggableDatabasesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.pluggableDatabases.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.pluggableDatabases.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *PluggableDatabase.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsPluggableDatabasesGetCall) Do(opts ...googleapi.CallOption) (*PluggableDatabase, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &PluggableDatabase{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.pluggableDatabases.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsPluggableDatabasesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all the PluggableDatabases for the given project, location and +// Container Database. +// +// - parent: The parent, which owns this collection of PluggableDatabases. +// Format: projects/{project}/locations/{location}. +func (r *ProjectsLocationsPluggableDatabasesService) List(parent string) *ProjectsLocationsPluggableDatabasesListCall { + c := &ProjectsLocationsPluggableDatabasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": An expression for filtering the +// results of the request. List for pluggable databases is supported only with +// a valid container database (full resource name) filter in this format: +// `database="projects/{project}/locations/{location}/databases/{database}" +func (c *ProjectsLocationsPluggableDatabasesListCall) Filter(filter string) *ProjectsLocationsPluggableDatabasesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// PluggableDatabases to return. The service may return fewer than this value. +func (c *ProjectsLocationsPluggableDatabasesListCall) PageSize(pageSize int64) *ProjectsLocationsPluggableDatabasesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListPluggableDatabases` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListPluggableDatabases` must match the call that provided the page token. +func (c *ProjectsLocationsPluggableDatabasesListCall) PageToken(pageToken string) *ProjectsLocationsPluggableDatabasesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsPluggableDatabasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPluggableDatabasesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsPluggableDatabasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPluggableDatabasesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsPluggableDatabasesListCall) Context(ctx context.Context) *ProjectsLocationsPluggableDatabasesListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsPluggableDatabasesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsPluggableDatabasesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/pluggableDatabases") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.pluggableDatabases.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oracledatabase.projects.locations.pluggableDatabases.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListPluggableDatabasesResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsPluggableDatabasesListCall) Do(opts ...googleapi.CallOption) (*ListPluggableDatabasesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListPluggableDatabasesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "oracledatabase.projects.locations.pluggableDatabases.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsPluggableDatabasesListCall) Pages(ctx context.Context, f func(*ListPluggableDatabasesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 24a08d314f..bb9940a289 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1073,7 +1073,7 @@ } } }, - "revision": "20250902", + "revision": "20250909", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -2019,7 +2019,7 @@ "type": "object" }, "DatabaseResourceFeed": { - "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 11", + "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 13", "id": "DatabaseResourceFeed", "properties": { "backupdrMetadata": { @@ -2030,6 +2030,10 @@ "$ref": "ConfigBasedSignalData", "description": "Config based signal data is used to ingest signals that are generated based on the configuration of the database resource." }, + "databaseResourceSignalData": { + "$ref": "DatabaseResourceSignalData", + "description": "Database resource signal data is used to ingest signals from database resource signal feeds." + }, "feedTimestamp": { "description": "Required. Timestamp when feed is generated.", "format": "google-datetime", @@ -2044,7 +2048,8 @@ "SECURITY_FINDING_DATA", "RECOMMENDATION_SIGNAL_DATA", "CONFIG_BASED_SIGNAL_DATA", - "BACKUPDR_METADATA" + "BACKUPDR_METADATA", + "DATABASE_RESOURCE_SIGNAL_DATA" ], "enumDescriptions": [ "", @@ -2053,7 +2058,8 @@ "Database resource security health signal data", "Database resource recommendation signal data", "Database config based signal data", - "Database resource metadata from BackupDR" + "Database resource metadata from BackupDR", + "Database resource signal data" ], "type": "string" }, @@ -2569,7 +2575,7 @@ "type": "object" }, "DatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 26", + "description": "Common model for database resource instance metadata. Next ID: 27", "id": "DatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -2774,6 +2780,10 @@ "userLabelSet": { "$ref": "UserLabels", "description": "User-provided labels associated with the resource" + }, + "zone": { + "description": "The resource zone. This is only applicable for zonal resources and will be empty for regional and multi-regional resources.", + "type": "string" } }, "type": "object" @@ -3150,6 +3160,67 @@ }, "type": "object" }, + "DatabaseResourceSignalData": { + "description": "Database resource signal data. This is used to send signals to Condor which are based on the DB/Instance/Fleet level configurations. These will be used to send signals for all inventory types. Next ID: 7", + "id": "DatabaseResourceSignalData", + "properties": { + "fullResourceName": { + "description": "Required. Full Resource name of the source resource.", + "type": "string" + }, + "lastRefreshTime": { + "description": "Required. Last time signal was refreshed", + "format": "google-datetime", + "type": "string" + }, + "resourceId": { + "$ref": "DatabaseResourceId", + "description": "Database resource id." + }, + "signalBoolValue": { + "description": "Signal data for boolean signals.", + "type": "boolean" + }, + "signalState": { + "description": "Required. Output only. Signal state of the signal", + "enum": [ + "SIGNAL_STATE_UNSPECIFIED", + "ACTIVE", + "INACTIVE", + "DISMISSED" + ], + "enumDescriptions": [ + "Unspecified signal state.", + "Signal is active and requires attention.", + "Signal is inactive and does not require attention.", + "Signal is dismissed by the user and should not be shown to the user again." + ], + "readOnly": true, + "type": "string" + }, + "signalType": { + "description": "Required. Signal type of the signal", + "enum": [ + "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_OUTDATED_MINOR_VERSION", + "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", + "SIGNAL_TYPE_NO_ROOT_PASSWORD", + "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS", + "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" + ], + "enumDescriptions": [ + "Unspecified signal type.", + "Outdated Minor Version", + "Represents database auditing is disabled.", + "Represents if a database has a password configured for the root account or not.", + "Represents if a resource is exposed to public access.", + "Represents if a resources requires all incoming connections to use SSL or not." + ], + "type": "string" + } + }, + "type": "object" + }, "DiscoveryEndpoint": { "description": "Endpoints on each network, for Redis clients to connect to the cluster.", "id": "DiscoveryEndpoint", diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index cdaaf4f894..6eb6a57663 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -1196,7 +1196,7 @@ func (s CustomMetadataData) MarshalJSON() ([]byte, error) { // DatabaseResourceFeed: DatabaseResourceFeed is the top level proto to be used // to ingest different database resource level events into Condor platform. -// Next ID: 11 +// Next ID: 13 type DatabaseResourceFeed struct { // BackupdrMetadata: BackupDR metadata is used to ingest metadata from // BackupDR. @@ -1204,6 +1204,9 @@ type DatabaseResourceFeed struct { // ConfigBasedSignalData: Config based signal data is used to ingest signals // that are generated based on the configuration of the database resource. ConfigBasedSignalData *ConfigBasedSignalData `json:"configBasedSignalData,omitempty"` + // DatabaseResourceSignalData: Database resource signal data is used to ingest + // signals from database resource signal feeds. + DatabaseResourceSignalData *DatabaseResourceSignalData `json:"databaseResourceSignalData,omitempty"` // FeedTimestamp: Required. Timestamp when feed is generated. FeedTimestamp string `json:"feedTimestamp,omitempty"` // FeedType: Required. Type feed to be ingested into condor @@ -1217,6 +1220,7 @@ type DatabaseResourceFeed struct { // data // "CONFIG_BASED_SIGNAL_DATA" - Database config based signal data // "BACKUPDR_METADATA" - Database resource metadata from BackupDR + // "DATABASE_RESOURCE_SIGNAL_DATA" - Database resource signal data FeedType string `json:"feedType,omitempty"` ObservabilityMetricData *ObservabilityMetricData `json:"observabilityMetricData,omitempty"` RecommendationSignalData *DatabaseResourceRecommendationSignalData `json:"recommendationSignalData,omitempty"` @@ -1644,7 +1648,7 @@ func (s DatabaseResourceId) MarshalJSON() ([]byte, error) { } // DatabaseResourceMetadata: Common model for database resource instance -// metadata. Next ID: 26 +// metadata. Next ID: 27 type DatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *AvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -1762,6 +1766,9 @@ type DatabaseResourceMetadata struct { UpdationTime string `json:"updationTime,omitempty"` // UserLabelSet: User-provided labels associated with the resource UserLabelSet *UserLabels `json:"userLabelSet,omitempty"` + // Zone: The resource zone. This is only applicable for zonal resources and + // will be empty for regional and multi-regional resources. + Zone string `json:"zone,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityConfiguration") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2072,6 +2079,60 @@ func (s DatabaseResourceRecommendationSignalData) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DatabaseResourceSignalData: Database resource signal data. This is used to +// send signals to Condor which are based on the DB/Instance/Fleet level +// configurations. These will be used to send signals for all inventory types. +// Next ID: 7 +type DatabaseResourceSignalData struct { + // FullResourceName: Required. Full Resource name of the source resource. + FullResourceName string `json:"fullResourceName,omitempty"` + // LastRefreshTime: Required. Last time signal was refreshed + LastRefreshTime string `json:"lastRefreshTime,omitempty"` + // ResourceId: Database resource id. + ResourceId *DatabaseResourceId `json:"resourceId,omitempty"` + // SignalBoolValue: Signal data for boolean signals. + SignalBoolValue bool `json:"signalBoolValue,omitempty"` + // SignalState: Required. Output only. Signal state of the signal + // + // Possible values: + // "SIGNAL_STATE_UNSPECIFIED" - Unspecified signal state. + // "ACTIVE" - Signal is active and requires attention. + // "INACTIVE" - Signal is inactive and does not require attention. + // "DISMISSED" - Signal is dismissed by the user and should not be shown to + // the user again. + SignalState string `json:"signalState,omitempty"` + // SignalType: Required. Signal type of the signal + // + // Possible values: + // "SIGNAL_TYPE_UNSPECIFIED" - Unspecified signal type. + // "SIGNAL_TYPE_OUTDATED_MINOR_VERSION" - Outdated Minor Version + // "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED" - Represents database auditing is + // disabled. + // "SIGNAL_TYPE_NO_ROOT_PASSWORD" - Represents if a database has a password + // configured for the root account or not. + // "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS" - Represents if a resource is + // exposed to public access. + // "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" - Represents if a resources requires + // all incoming connections to use SSL or not. + SignalType string `json:"signalType,omitempty"` + // ForceSendFields is a list of field names (e.g. "FullResourceName") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "FullResourceName") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DatabaseResourceSignalData) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseResourceSignalData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DiscoveryEndpoint: Endpoints on each network, for Redis clients to connect // to the cluster. type DiscoveryEndpoint struct { @@ -4429,9 +4490,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index 67fca32321..b700379728 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -567,7 +567,7 @@ "imageImportJobs": { "methods": { "cancel": { - "description": "Initiates the cancellation of a running clone job.", + "description": "Initiates the cancellation of a running ImageImportJob.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/imageImports/{imageImportsId}/imageImportJobs/{imageImportJobsId}:cancel", "httpMethod": "POST", "id": "vmmigration.projects.locations.imageImports.imageImportJobs.cancel", @@ -2543,7 +2543,7 @@ } } }, - "revision": "20250904", + "revision": "20250911", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -2565,6 +2565,21 @@ }, "type": "object" }, + "AdaptationModifier": { + "description": "AdaptationModifier a modifier to be used for configuration of the OS adaptation process.", + "id": "AdaptationModifier", + "properties": { + "modifier": { + "description": "Optional. The modifier name.", + "type": "string" + }, + "value": { + "description": "Optional. The value of the modifier. The actual value depends on the modifier and can also be empty.", + "type": "string" + } + }, + "type": "object" + }, "AdaptingOSStep": { "description": "AdaptingOSStep contains specific step details.", "id": "AdaptingOSStep", @@ -3565,6 +3580,13 @@ "description": "ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.", "id": "ComputeEngineTargetDefaults", "properties": { + "adaptationModifiers": { + "description": "Optional. AdaptationModifiers are the set of modifiers used during OS adaptation.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "additionalLicenses": { "description": "Additional licenses to assign to the VM.", "items": { @@ -3728,6 +3750,13 @@ "description": "ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.", "id": "ComputeEngineTargetDetails", "properties": { + "adaptationModifiers": { + "description": "Optional. Modifiers to be used as configuration of the OS adaptation process.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "additionalLicenses": { "description": "Additional licenses to assign to the VM.", "items": { @@ -4832,6 +4861,13 @@ "description": "Parameters affecting the OS adaptation process.", "id": "ImageImportOsAdaptationParameters", "properties": { + "adaptationModifiers": { + "description": "Optional. Modifiers to be used as configuration of the OS adaptation process.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "bootConversion": { "description": "Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion", "enum": [ diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 80ee453a7f..2807dc2a0c 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -359,6 +359,32 @@ func (s AccessKeyCredentials) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AdaptationModifier: AdaptationModifier a modifier to be used for +// configuration of the OS adaptation process. +type AdaptationModifier struct { + // Modifier: Optional. The modifier name. + Modifier string `json:"modifier,omitempty"` + // Value: Optional. The value of the modifier. The actual value depends on the + // modifier and can also be empty. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Modifier") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Modifier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AdaptationModifier) MarshalJSON() ([]byte, error) { + type NoMethod AdaptationModifier + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AdaptingOSStep: AdaptingOSStep contains specific step details. type AdaptingOSStep struct { } @@ -1276,6 +1302,9 @@ func (s ComputeEngineDisksTargetDetails) MarshalJSON() ([]byte, error) { // ComputeEngineTargetDefaults: ComputeEngineTargetDefaults is a collection of // details for creating a VM in a target Compute Engine project. type ComputeEngineTargetDefaults struct { + // AdaptationModifiers: Optional. AdaptationModifiers are the set of modifiers + // used during OS adaptation. + AdaptationModifiers []*AdaptationModifier `json:"adaptationModifiers,omitempty"` // AdditionalLicenses: Additional licenses to assign to the VM. AdditionalLicenses []string `json:"additionalLicenses,omitempty"` // AppliedLicense: Output only. The OS license returned from the adaptation @@ -1366,13 +1395,13 @@ type ComputeEngineTargetDefaults struct { VmName string `json:"vmName,omitempty"` // Zone: The zone in which to create the VM. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalLicenses") to + // ForceSendFields is a list of field names (e.g. "AdaptationModifiers") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalLicenses") to include + // NullFields is a list of field names (e.g. "AdaptationModifiers") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1387,6 +1416,9 @@ func (s ComputeEngineTargetDefaults) MarshalJSON() ([]byte, error) { // ComputeEngineTargetDetails: ComputeEngineTargetDetails is a collection of // details for creating a VM in a target Compute Engine project. type ComputeEngineTargetDetails struct { + // AdaptationModifiers: Optional. Modifiers to be used as configuration of the + // OS adaptation process. + AdaptationModifiers []*AdaptationModifier `json:"adaptationModifiers,omitempty"` // AdditionalLicenses: Additional licenses to assign to the VM. AdditionalLicenses []string `json:"additionalLicenses,omitempty"` // AppliedLicense: The OS license returned from the adaptation module report. @@ -1473,13 +1505,13 @@ type ComputeEngineTargetDetails struct { VmName string `json:"vmName,omitempty"` // Zone: The zone in which to create the VM. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalLicenses") to + // ForceSendFields is a list of field names (e.g. "AdaptationModifiers") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalLicenses") to include + // NullFields is a list of field names (e.g. "AdaptationModifiers") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2394,6 +2426,9 @@ func (s ImageImportJob) MarshalJSON() ([]byte, error) { // ImageImportOsAdaptationParameters: Parameters affecting the OS adaptation // process. type ImageImportOsAdaptationParameters struct { + // AdaptationModifiers: Optional. Modifiers to be used as configuration of the + // OS adaptation process. + AdaptationModifiers []*AdaptationModifier `json:"adaptationModifiers,omitempty"` // BootConversion: Optional. By default the image will keep its existing boot // option. Setting this property will trigger an internal process which will // convert the image from using the existing boot option to another. The size @@ -2421,15 +2456,15 @@ type ImageImportOsAdaptationParameters struct { // "COMPUTE_ENGINE_LICENSE_TYPE_BYOL" - The license type is Bring Your Own // License type. LicenseType string `json:"licenseType,omitempty"` - // ForceSendFields is a list of field names (e.g. "BootConversion") to + // ForceSendFields is a list of field names (e.g. "AdaptationModifiers") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BootConversion") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "AdaptationModifiers") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -6125,7 +6160,7 @@ type ProjectsLocationsImageImportsImageImportJobsCancelCall struct { header_ http.Header } -// Cancel: Initiates the cancellation of a running clone job. +// Cancel: Initiates the cancellation of a running ImageImportJob. // // - name: The image import job id. func (r *ProjectsLocationsImageImportsImageImportJobsService) Cancel(name string, cancelimageimportjobrequest *CancelImageImportJobRequest) *ProjectsLocationsImageImportsImageImportJobsCancelCall { diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index cb18ea66b5..23d42abcbc 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -567,7 +567,7 @@ "imageImportJobs": { "methods": { "cancel": { - "description": "Initiates the cancellation of a running clone job.", + "description": "Initiates the cancellation of a running ImageImportJob.", "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/imageImports/{imageImportsId}/imageImportJobs/{imageImportJobsId}:cancel", "httpMethod": "POST", "id": "vmmigration.projects.locations.imageImports.imageImportJobs.cancel", @@ -2543,7 +2543,7 @@ } } }, - "revision": "20250904", + "revision": "20250911", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { @@ -2565,6 +2565,21 @@ }, "type": "object" }, + "AdaptationModifier": { + "description": "AdaptationModifier a modifier to be used for configuration of the OS adaptation process.", + "id": "AdaptationModifier", + "properties": { + "modifier": { + "description": "Optional. The modifier name.", + "type": "string" + }, + "value": { + "description": "Optional. The value of the modifier. The actual value depends on the modifier and can also be empty.", + "type": "string" + } + }, + "type": "object" + }, "AdaptingOSStep": { "description": "AdaptingOSStep contains specific step details.", "id": "AdaptingOSStep", @@ -3577,6 +3592,13 @@ "description": "ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.", "id": "ComputeEngineTargetDefaults", "properties": { + "adaptationModifiers": { + "description": "Optional. AdaptationModifiers are the set of modifiers used during OS adaptation.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "additionalLicenses": { "description": "Additional licenses to assign to the VM.", "items": { @@ -3740,6 +3762,13 @@ "description": "ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.", "id": "ComputeEngineTargetDetails", "properties": { + "adaptationModifiers": { + "description": "Optional. Modifiers to be used as configuration of the OS adaptation process.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "additionalLicenses": { "description": "Additional licenses to assign to the VM.", "items": { @@ -4867,6 +4896,13 @@ "description": "Parameters affecting the OS adaptation process.", "id": "ImageImportOsAdaptationParameters", "properties": { + "adaptationModifiers": { + "description": "Optional. Modifiers to be used as configuration of the OS adaptation process.", + "items": { + "$ref": "AdaptationModifier" + }, + "type": "array" + }, "bootConversion": { "description": "Optional. By default the image will keep its existing boot option. Setting this property will trigger an internal process which will convert the image from using the existing boot option to another. The size of the boot disk might be increased to allow the conversion", "enum": [ diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index cdc062b531..636afa5e38 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -359,6 +359,32 @@ func (s AccessKeyCredentials) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AdaptationModifier: AdaptationModifier a modifier to be used for +// configuration of the OS adaptation process. +type AdaptationModifier struct { + // Modifier: Optional. The modifier name. + Modifier string `json:"modifier,omitempty"` + // Value: Optional. The value of the modifier. The actual value depends on the + // modifier and can also be empty. + Value string `json:"value,omitempty"` + // ForceSendFields is a list of field names (e.g. "Modifier") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Modifier") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s AdaptationModifier) MarshalJSON() ([]byte, error) { + type NoMethod AdaptationModifier + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // AdaptingOSStep: AdaptingOSStep contains specific step details. type AdaptingOSStep struct { } @@ -1282,6 +1308,9 @@ func (s ComputeEngineDisksTargetDetails) MarshalJSON() ([]byte, error) { // ComputeEngineTargetDefaults: ComputeEngineTargetDefaults is a collection of // details for creating a VM in a target Compute Engine project. type ComputeEngineTargetDefaults struct { + // AdaptationModifiers: Optional. AdaptationModifiers are the set of modifiers + // used during OS adaptation. + AdaptationModifiers []*AdaptationModifier `json:"adaptationModifiers,omitempty"` // AdditionalLicenses: Additional licenses to assign to the VM. AdditionalLicenses []string `json:"additionalLicenses,omitempty"` // AppliedLicense: Output only. The OS license returned from the adaptation @@ -1372,13 +1401,13 @@ type ComputeEngineTargetDefaults struct { VmName string `json:"vmName,omitempty"` // Zone: The zone in which to create the VM. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalLicenses") to + // ForceSendFields is a list of field names (e.g. "AdaptationModifiers") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalLicenses") to include + // NullFields is a list of field names (e.g. "AdaptationModifiers") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1393,6 +1422,9 @@ func (s ComputeEngineTargetDefaults) MarshalJSON() ([]byte, error) { // ComputeEngineTargetDetails: ComputeEngineTargetDetails is a collection of // details for creating a VM in a target Compute Engine project. type ComputeEngineTargetDetails struct { + // AdaptationModifiers: Optional. Modifiers to be used as configuration of the + // OS adaptation process. + AdaptationModifiers []*AdaptationModifier `json:"adaptationModifiers,omitempty"` // AdditionalLicenses: Additional licenses to assign to the VM. AdditionalLicenses []string `json:"additionalLicenses,omitempty"` // AppliedLicense: The OS license returned from the adaptation module report. @@ -1479,13 +1511,13 @@ type ComputeEngineTargetDetails struct { VmName string `json:"vmName,omitempty"` // Zone: The zone in which to create the VM. Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdditionalLicenses") to + // ForceSendFields is a list of field names (e.g. "AdaptationModifiers") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdditionalLicenses") to include + // NullFields is a list of field names (e.g. "AdaptationModifiers") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2410,6 +2442,9 @@ func (s ImageImportJob) MarshalJSON() ([]byte, error) { // ImageImportOsAdaptationParameters: Parameters affecting the OS adaptation // process. type ImageImportOsAdaptationParameters struct { + // AdaptationModifiers: Optional. Modifiers to be used as configuration of the + // OS adaptation process. + AdaptationModifiers []*AdaptationModifier `json:"adaptationModifiers,omitempty"` // BootConversion: Optional. By default the image will keep its existing boot // option. Setting this property will trigger an internal process which will // convert the image from using the existing boot option to another. The size @@ -2437,15 +2472,15 @@ type ImageImportOsAdaptationParameters struct { // "COMPUTE_ENGINE_LICENSE_TYPE_BYOL" - The license type is Bring Your Own // License type. LicenseType string `json:"licenseType,omitempty"` - // ForceSendFields is a list of field names (e.g. "BootConversion") to + // ForceSendFields is a list of field names (e.g. "AdaptationModifiers") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "BootConversion") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "AdaptationModifiers") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -6262,7 +6297,7 @@ type ProjectsLocationsImageImportsImageImportJobsCancelCall struct { header_ http.Header } -// Cancel: Initiates the cancellation of a running clone job. +// Cancel: Initiates the cancellation of a running ImageImportJob. // // - name: The image import job id. func (r *ProjectsLocationsImageImportsImageImportJobsService) Cancel(name string, cancelimageimportjobrequest *CancelImageImportJobRequest) *ProjectsLocationsImageImportsImageImportJobsCancelCall {