Skip to content

Commit 355a0e1

Browse files
feat(oracledatabase): update the API
#### oracledatabase:v1 The following keys were added: - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.description - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.flatPath - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.httpMethod - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.id - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameterOrder - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.pageSize.format - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.pageSize.location - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.pageSize.type - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.pageToken.description - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.pageToken.location - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.pageToken.type - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.parent.location - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.parent.pattern - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.parent.required - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.parameters.parent.type - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.path - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.response.$ref - resources.projects.resources.locations.resources.exadbVmClusters.resources.dbNodes.methods.list.scopes The following keys were changed: - resources.projects.resources.locations.resources.databases.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.dbSystemInitialStorageSizes.methods.list.parameters.pageSize.description - resources.projects.resources.locations.resources.dbVersions.methods.list.parameters.pageSize.description
1 parent b51d559 commit 355a0e1

File tree

2 files changed

+225
-10
lines changed

2 files changed

+225
-10
lines changed

discovery/oracledatabase-v1.json

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@
11531153
"type": "string"
11541154
},
11551155
"pageSize": {
1156-
"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.",
1156+
"description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 Databases will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.",
11571157
"format": "int32",
11581158
"location": "query",
11591159
"type": "integer"
@@ -1193,7 +1193,7 @@
11931193
],
11941194
"parameters": {
11951195
"pageSize": {
1196-
"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.",
1196+
"description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.",
11971197
"format": "int32",
11981198
"location": "query",
11991199
"type": "integer"
@@ -1426,7 +1426,7 @@
14261426
"type": "string"
14271427
},
14281428
"pageSize": {
1429-
"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.",
1429+
"description": "Optional. The maximum number of items to return. If unspecified, a maximum of 50 DbVersions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.",
14301430
"format": "int32",
14311431
"location": "query",
14321432
"type": "integer"
@@ -1702,6 +1702,48 @@
17021702
"https://www.googleapis.com/auth/cloud-platform"
17031703
]
17041704
}
1705+
},
1706+
"resources": {
1707+
"dbNodes": {
1708+
"methods": {
1709+
"list": {
1710+
"description": "Lists the database nodes of a VM Cluster.",
1711+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/exadbVmClusters/{exadbVmClustersId}/dbNodes",
1712+
"httpMethod": "GET",
1713+
"id": "oracledatabase.projects.locations.exadbVmClusters.dbNodes.list",
1714+
"parameterOrder": [
1715+
"parent"
1716+
],
1717+
"parameters": {
1718+
"pageSize": {
1719+
"description": "Optional. The maximum number of items to return. If unspecified, at most 50 db nodes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.",
1720+
"format": "int32",
1721+
"location": "query",
1722+
"type": "integer"
1723+
},
1724+
"pageToken": {
1725+
"description": "Optional. A token identifying a page of results the node should return.",
1726+
"location": "query",
1727+
"type": "string"
1728+
},
1729+
"parent": {
1730+
"description": "Required. The parent value for database node in the following format: projects/{project}/locations/{location}/cloudVmClusters/{cloudVmCluster}. .",
1731+
"location": "path",
1732+
"pattern": "^projects/[^/]+/locations/[^/]+/exadbVmClusters/[^/]+$",
1733+
"required": true,
1734+
"type": "string"
1735+
}
1736+
},
1737+
"path": "v1/{+parent}/dbNodes",
1738+
"response": {
1739+
"$ref": "ListDbNodesResponse"
1740+
},
1741+
"scopes": [
1742+
"https://www.googleapis.com/auth/cloud-platform"
1743+
]
1744+
}
1745+
}
1746+
}
17051747
}
17061748
},
17071749
"exascaleDbStorageVaults": {
@@ -2430,7 +2472,7 @@
24302472
}
24312473
}
24322474
},
2433-
"revision": "20250925",
2475+
"revision": "20251009",
24342476
"rootUrl": "https://oracledatabase.googleapis.com/",
24352477
"schemas": {
24362478
"AllConnectionStrings": {

src/apis/oracledatabase/v1.ts

Lines changed: 179 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7947,7 +7947,7 @@ export namespace oracledatabase_v1 {
79477947
* const res = await oracledatabase.projects.locations.databases.list({
79487948
* // 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\}"`
79497949
* filter: 'placeholder-value',
7950-
* // 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.
7950+
* // Optional. The maximum number of items to return. If unspecified, a maximum of 50 Databases will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.
79517951
* pageSize: 'placeholder-value',
79527952
* // 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.
79537953
* pageToken: 'placeholder-value',
@@ -8076,7 +8076,7 @@ export namespace oracledatabase_v1 {
80768076
*/
80778077
filter?: string;
80788078
/**
8079-
* 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.
8079+
* Optional. The maximum number of items to return. If unspecified, a maximum of 50 Databases will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.
80808080
*/
80818081
pageSize?: number;
80828082
/**
@@ -8127,7 +8127,7 @@ export namespace oracledatabase_v1 {
81278127
* // Do the magic
81288128
* const res =
81298129
* await oracledatabase.projects.locations.dbSystemInitialStorageSizes.list({
8130-
* // 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.
8130+
* // Optional. The maximum number of items to return. If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.
81318131
* pageSize: 'placeholder-value',
81328132
* // 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.
81338133
* pageToken: 'placeholder-value',
@@ -8253,7 +8253,7 @@ export namespace oracledatabase_v1 {
82538253
export interface Params$Resource$Projects$Locations$Dbsysteminitialstoragesizes$List
82548254
extends StandardParameters {
82558255
/**
8256-
* 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.
8256+
* Optional. The maximum number of items to return. If unspecified, a maximum of 50 DbSystemInitialStorageSizes will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.
82578257
*/
82588258
pageSize?: number;
82598259
/**
@@ -9147,7 +9147,7 @@ export namespace oracledatabase_v1 {
91479147
* const res = await oracledatabase.projects.locations.dbVersions.list({
91489148
* // 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.
91499149
* filter: 'placeholder-value',
9150-
* // 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.
9150+
* // Optional. The maximum number of items to return. If unspecified, a maximum of 50 DbVersions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.
91519151
* pageSize: 'placeholder-value',
91529152
* // 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.
91539153
* pageToken: 'placeholder-value',
@@ -9269,7 +9269,7 @@ export namespace oracledatabase_v1 {
92699269
*/
92709270
filter?: string;
92719271
/**
9272-
* 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.
9272+
* Optional. The maximum number of items to return. If unspecified, a maximum of 50 DbVersions will be returned. The maximum value is 1000; values above 1000 will be reset to 1000.
92739273
*/
92749274
pageSize?: number;
92759275
/**
@@ -9452,8 +9452,12 @@ export namespace oracledatabase_v1 {
94529452

94539453
export class Resource$Projects$Locations$Exadbvmclusters {
94549454
context: APIRequestContext;
9455+
dbNodes: Resource$Projects$Locations$Exadbvmclusters$Dbnodes;
94559456
constructor(context: APIRequestContext) {
94569457
this.context = context;
9458+
this.dbNodes = new Resource$Projects$Locations$Exadbvmclusters$Dbnodes(
9459+
this.context
9460+
);
94579461
}
94589462

94599463
/**
@@ -10469,6 +10473,175 @@ export namespace oracledatabase_v1 {
1046910473
requestBody?: Schema$RemoveVirtualMachineExadbVmClusterRequest;
1047010474
}
1047110475

10476+
export class Resource$Projects$Locations$Exadbvmclusters$Dbnodes {
10477+
context: APIRequestContext;
10478+
constructor(context: APIRequestContext) {
10479+
this.context = context;
10480+
}
10481+
10482+
/**
10483+
* Lists the database nodes of a VM Cluster.
10484+
* @example
10485+
* ```js
10486+
* // Before running the sample:
10487+
* // - Enable the API at:
10488+
* // https://console.developers.google.com/apis/api/oracledatabase.googleapis.com
10489+
* // - Login into gcloud by running:
10490+
* // ```sh
10491+
* // $ gcloud auth application-default login
10492+
* // ```
10493+
* // - Install the npm module by running:
10494+
* // ```sh
10495+
* // $ npm install googleapis
10496+
* // ```
10497+
*
10498+
* const {google} = require('googleapis');
10499+
* const oracledatabase = google.oracledatabase('v1');
10500+
*
10501+
* async function main() {
10502+
* const auth = new google.auth.GoogleAuth({
10503+
* // Scopes can be specified either as an array or as a single, space-delimited string.
10504+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
10505+
* });
10506+
*
10507+
* // Acquire an auth client, and bind it to all future calls
10508+
* const authClient = await auth.getClient();
10509+
* google.options({auth: authClient});
10510+
*
10511+
* // Do the magic
10512+
* const res =
10513+
* await oracledatabase.projects.locations.exadbVmClusters.dbNodes.list({
10514+
* // Optional. The maximum number of items to return. If unspecified, at most 50 db nodes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
10515+
* pageSize: 'placeholder-value',
10516+
* // Optional. A token identifying a page of results the node should return.
10517+
* pageToken: 'placeholder-value',
10518+
* // Required. The parent value for database node in the following format: projects/{project\}/locations/{location\}/cloudVmClusters/{cloudVmCluster\}. .
10519+
* parent:
10520+
* 'projects/my-project/locations/my-location/exadbVmClusters/my-exadbVmCluster',
10521+
* });
10522+
* console.log(res.data);
10523+
*
10524+
* // Example response
10525+
* // {
10526+
* // "dbNodes": [],
10527+
* // "nextPageToken": "my_nextPageToken"
10528+
* // }
10529+
* }
10530+
*
10531+
* main().catch(e => {
10532+
* console.error(e);
10533+
* throw e;
10534+
* });
10535+
*
10536+
* ```
10537+
*
10538+
* @param params - Parameters for request
10539+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
10540+
* @param callback - Optional callback that handles the response.
10541+
* @returns A promise if used with async/await, or void if used with a callback.
10542+
*/
10543+
list(
10544+
params: Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List,
10545+
options: StreamMethodOptions
10546+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
10547+
list(
10548+
params?: Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List,
10549+
options?: MethodOptions
10550+
): Promise<GaxiosResponseWithHTTP2<Schema$ListDbNodesResponse>>;
10551+
list(
10552+
params: Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List,
10553+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
10554+
callback: BodyResponseCallback<Readable>
10555+
): void;
10556+
list(
10557+
params: Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List,
10558+
options: MethodOptions | BodyResponseCallback<Schema$ListDbNodesResponse>,
10559+
callback: BodyResponseCallback<Schema$ListDbNodesResponse>
10560+
): void;
10561+
list(
10562+
params: Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List,
10563+
callback: BodyResponseCallback<Schema$ListDbNodesResponse>
10564+
): void;
10565+
list(callback: BodyResponseCallback<Schema$ListDbNodesResponse>): void;
10566+
list(
10567+
paramsOrCallback?:
10568+
| Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List
10569+
| BodyResponseCallback<Schema$ListDbNodesResponse>
10570+
| BodyResponseCallback<Readable>,
10571+
optionsOrCallback?:
10572+
| MethodOptions
10573+
| StreamMethodOptions
10574+
| BodyResponseCallback<Schema$ListDbNodesResponse>
10575+
| BodyResponseCallback<Readable>,
10576+
callback?:
10577+
| BodyResponseCallback<Schema$ListDbNodesResponse>
10578+
| BodyResponseCallback<Readable>
10579+
):
10580+
| void
10581+
| Promise<GaxiosResponseWithHTTP2<Schema$ListDbNodesResponse>>
10582+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
10583+
let params = (paramsOrCallback ||
10584+
{}) as Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List;
10585+
let options = (optionsOrCallback || {}) as MethodOptions;
10586+
10587+
if (typeof paramsOrCallback === 'function') {
10588+
callback = paramsOrCallback;
10589+
params =
10590+
{} as Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List;
10591+
options = {};
10592+
}
10593+
10594+
if (typeof optionsOrCallback === 'function') {
10595+
callback = optionsOrCallback;
10596+
options = {};
10597+
}
10598+
10599+
const rootUrl =
10600+
options.rootUrl || 'https://oracledatabase.googleapis.com/';
10601+
const parameters = {
10602+
options: Object.assign(
10603+
{
10604+
url: (rootUrl + '/v1/{+parent}/dbNodes').replace(
10605+
/([^:]\/)\/+/g,
10606+
'$1'
10607+
),
10608+
method: 'GET',
10609+
apiVersion: '',
10610+
},
10611+
options
10612+
),
10613+
params,
10614+
requiredParams: ['parent'],
10615+
pathParams: ['parent'],
10616+
context: this.context,
10617+
};
10618+
if (callback) {
10619+
createAPIRequest<Schema$ListDbNodesResponse>(
10620+
parameters,
10621+
callback as BodyResponseCallback<unknown>
10622+
);
10623+
} else {
10624+
return createAPIRequest<Schema$ListDbNodesResponse>(parameters);
10625+
}
10626+
}
10627+
}
10628+
10629+
export interface Params$Resource$Projects$Locations$Exadbvmclusters$Dbnodes$List
10630+
extends StandardParameters {
10631+
/**
10632+
* Optional. The maximum number of items to return. If unspecified, at most 50 db nodes will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
10633+
*/
10634+
pageSize?: number;
10635+
/**
10636+
* Optional. A token identifying a page of results the node should return.
10637+
*/
10638+
pageToken?: string;
10639+
/**
10640+
* Required. The parent value for database node in the following format: projects/{project\}/locations/{location\}/cloudVmClusters/{cloudVmCluster\}. .
10641+
*/
10642+
parent?: string;
10643+
}
10644+
1047210645
export class Resource$Projects$Locations$Exascaledbstoragevaults {
1047310646
context: APIRequestContext;
1047410647
constructor(context: APIRequestContext) {

0 commit comments

Comments
 (0)