Skip to content

Commit 80d4d99

Browse files
yoshi-automationsofisl
authored andcommitted
feat(gkeonprem): update the API
#### gkeonprem:v1 The following keys were added: - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.description - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.flatPath - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.httpMethod - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.id - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameterOrder - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.allowPreflightFailure.description - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.allowPreflightFailure.location - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.allowPreflightFailure.type - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.parent.description - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.parent.location - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.parent.pattern - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.parent.required - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.parent.type - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.validateOnly.description - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.validateOnly.location - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.validateOnly.type - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.vmwareAdminClusterId.description - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.vmwareAdminClusterId.location - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.parameters.vmwareAdminClusterId.type - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.path - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.request.$ref - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.response.$ref - resources.projects.resources.locations.resources.vmwareAdminClusters.methods.create.scopes - schemas.VmwareAdminMetalLbConfig.properties.enabled.description - schemas.VmwareAdminMetalLbConfig.properties.enabled.type The following keys were changed: - resources.projects.resources.locations.resources.operations.methods.cancel.description
1 parent 8ea588c commit 80d4d99

File tree

2 files changed

+171
-5
lines changed

2 files changed

+171
-5
lines changed

‎discovery/gkeonprem-v1.json

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@
15971597
"operations": {
15981598
"methods": {
15991599
"cancel": {
1600-
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
1600+
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
16011601
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
16021602
"httpMethod": "POST",
16031603
"id": "gkeonprem.projects.locations.operations.cancel",
@@ -1719,6 +1719,49 @@
17191719
},
17201720
"vmwareAdminClusters": {
17211721
"methods": {
1722+
"create": {
1723+
"description": "Creates a new VMware admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work.",
1724+
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vmwareAdminClusters",
1725+
"httpMethod": "POST",
1726+
"id": "gkeonprem.projects.locations.vmwareAdminClusters.create",
1727+
"parameterOrder": [
1728+
"parent"
1729+
],
1730+
"parameters": {
1731+
"allowPreflightFailure": {
1732+
"description": "Optional. If set to true, CLM will force CCFE to persist the cluster resource in RMS when the creation fails during standalone preflight checks. In that case the subsequent create call will fail with \"cluster already exists\" error and hence a update cluster is required to fix the cluster.",
1733+
"location": "query",
1734+
"type": "boolean"
1735+
},
1736+
"parent": {
1737+
"description": "Required. The parent of the project and location where the cluster is created in. Format: \"projects/{project}/locations/{location}\"",
1738+
"location": "path",
1739+
"pattern": "^projects/[^/]+/locations/[^/]+$",
1740+
"required": true,
1741+
"type": "string"
1742+
},
1743+
"validateOnly": {
1744+
"description": "Validate the request without actually doing any updates.",
1745+
"location": "query",
1746+
"type": "boolean"
1747+
},
1748+
"vmwareAdminClusterId": {
1749+
"description": "Required. User provided identifier that is used as part of the resource name; must conform to RFC-1034 and additionally restrict to lower-cased letters. This comes out roughly to: /^a-z+[a-z0-9]$/",
1750+
"location": "query",
1751+
"type": "string"
1752+
}
1753+
},
1754+
"path": "v1/{+parent}/vmwareAdminClusters",
1755+
"request": {
1756+
"$ref": "VmwareAdminCluster"
1757+
},
1758+
"response": {
1759+
"$ref": "Operation"
1760+
},
1761+
"scopes": [
1762+
"https://www.googleapis.com/auth/cloud-platform"
1763+
]
1764+
},
17221765
"enroll": {
17231766
"description": "Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API.",
17241767
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vmwareAdminClusters:enroll",
@@ -3051,7 +3094,7 @@
30513094
}
30523095
}
30533096
},
3054-
"revision": "20240814",
3097+
"revision": "20241204",
30553098
"rootUrl": "https://gkeonprem.googleapis.com/",
30563099
"schemas": {
30573100
"Authorization": {
@@ -5794,7 +5837,12 @@
57945837
"VmwareAdminMetalLbConfig": {
57955838
"description": "VmwareAdminMetalLbConfig represents configuration parameters for a MetalLB load balancer. For admin clusters, currently no configurations is needed.",
57965839
"id": "VmwareAdminMetalLbConfig",
5797-
"properties": {},
5840+
"properties": {
5841+
"enabled": {
5842+
"description": "Whether MetalLB is enabled.",
5843+
"type": "boolean"
5844+
}
5845+
},
57985846
"type": "object"
57995847
},
58005848
"VmwareAdminNetworkConfig": {

‎src/apis/gkeonprem/v1.ts

Lines changed: 120 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,12 @@ export namespace gkeonprem_v1 {
20902090
/**
20912091
* VmwareAdminMetalLbConfig represents configuration parameters for a MetalLB load balancer. For admin clusters, currently no configurations is needed.
20922092
*/
2093-
export interface Schema$VmwareAdminMetalLbConfig {}
2093+
export interface Schema$VmwareAdminMetalLbConfig {
2094+
/**
2095+
* Whether MetalLB is enabled.
2096+
*/
2097+
enabled?: boolean | null;
2098+
}
20942099
/**
20952100
* VmwareAdminNetworkConfig contains network configuration for VMware admin cluster.
20962101
*/
@@ -7176,7 +7181,7 @@ export namespace gkeonprem_v1 {
71767181
}
71777182

71787183
/**
7179-
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
7184+
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
71807185
*
71817186
* @param params - Parameters for request
71827187
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7581,6 +7586,95 @@ export namespace gkeonprem_v1 {
75817586
);
75827587
}
75837588

7589+
/**
7590+
* Creates a new VMware admin cluster in a given project and location. The API needs to be combined with creating a bootstrap cluster to work.
7591+
*
7592+
* @param params - Parameters for request
7593+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
7594+
* @param callback - Optional callback that handles the response.
7595+
* @returns A promise if used with async/await, or void if used with a callback.
7596+
*/
7597+
create(
7598+
params: Params$Resource$Projects$Locations$Vmwareadminclusters$Create,
7599+
options: StreamMethodOptions
7600+
): GaxiosPromise<Readable>;
7601+
create(
7602+
params?: Params$Resource$Projects$Locations$Vmwareadminclusters$Create,
7603+
options?: MethodOptions
7604+
): GaxiosPromise<Schema$Operation>;
7605+
create(
7606+
params: Params$Resource$Projects$Locations$Vmwareadminclusters$Create,
7607+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
7608+
callback: BodyResponseCallback<Readable>
7609+
): void;
7610+
create(
7611+
params: Params$Resource$Projects$Locations$Vmwareadminclusters$Create,
7612+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
7613+
callback: BodyResponseCallback<Schema$Operation>
7614+
): void;
7615+
create(
7616+
params: Params$Resource$Projects$Locations$Vmwareadminclusters$Create,
7617+
callback: BodyResponseCallback<Schema$Operation>
7618+
): void;
7619+
create(callback: BodyResponseCallback<Schema$Operation>): void;
7620+
create(
7621+
paramsOrCallback?:
7622+
| Params$Resource$Projects$Locations$Vmwareadminclusters$Create
7623+
| BodyResponseCallback<Schema$Operation>
7624+
| BodyResponseCallback<Readable>,
7625+
optionsOrCallback?:
7626+
| MethodOptions
7627+
| StreamMethodOptions
7628+
| BodyResponseCallback<Schema$Operation>
7629+
| BodyResponseCallback<Readable>,
7630+
callback?:
7631+
| BodyResponseCallback<Schema$Operation>
7632+
| BodyResponseCallback<Readable>
7633+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
7634+
let params = (paramsOrCallback ||
7635+
{}) as Params$Resource$Projects$Locations$Vmwareadminclusters$Create;
7636+
let options = (optionsOrCallback || {}) as MethodOptions;
7637+
7638+
if (typeof paramsOrCallback === 'function') {
7639+
callback = paramsOrCallback;
7640+
params =
7641+
{} as Params$Resource$Projects$Locations$Vmwareadminclusters$Create;
7642+
options = {};
7643+
}
7644+
7645+
if (typeof optionsOrCallback === 'function') {
7646+
callback = optionsOrCallback;
7647+
options = {};
7648+
}
7649+
7650+
const rootUrl = options.rootUrl || 'https://gkeonprem.googleapis.com/';
7651+
const parameters = {
7652+
options: Object.assign(
7653+
{
7654+
url: (rootUrl + '/v1/{+parent}/vmwareAdminClusters').replace(
7655+
/([^:]\/)\/+/g,
7656+
'$1'
7657+
),
7658+
method: 'POST',
7659+
apiVersion: '',
7660+
},
7661+
options
7662+
),
7663+
params,
7664+
requiredParams: ['parent'],
7665+
pathParams: ['parent'],
7666+
context: this.context,
7667+
};
7668+
if (callback) {
7669+
createAPIRequest<Schema$Operation>(
7670+
parameters,
7671+
callback as BodyResponseCallback<unknown>
7672+
);
7673+
} else {
7674+
return createAPIRequest<Schema$Operation>(parameters);
7675+
}
7676+
}
7677+
75847678
/**
75857679
* Enrolls an existing VMware admin cluster to the Anthos On-Prem API within a given project and location. Through enrollment, an existing admin cluster will become Anthos On-Prem API managed. The corresponding GCP resources will be created and all future modifications to the cluster will be expected to be performed through the API.
75867680
*
@@ -8307,6 +8401,30 @@ export namespace gkeonprem_v1 {
83078401
}
83088402
}
83098403

8404+
export interface Params$Resource$Projects$Locations$Vmwareadminclusters$Create
8405+
extends StandardParameters {
8406+
/**
8407+
* Optional. If set to true, CLM will force CCFE to persist the cluster resource in RMS when the creation fails during standalone preflight checks. In that case the subsequent create call will fail with "cluster already exists" error and hence a update cluster is required to fix the cluster.
8408+
*/
8409+
allowPreflightFailure?: boolean;
8410+
/**
8411+
* Required. The parent of the project and location where the cluster is created in. Format: "projects/{project\}/locations/{location\}"
8412+
*/
8413+
parent?: string;
8414+
/**
8415+
* Validate the request without actually doing any updates.
8416+
*/
8417+
validateOnly?: boolean;
8418+
/**
8419+
* Required. User provided identifier that is used as part of the resource name; must conform to RFC-1034 and additionally restrict to lower-cased letters. This comes out roughly to: /^a-z+[a-z0-9]$/
8420+
*/
8421+
vmwareAdminClusterId?: string;
8422+
8423+
/**
8424+
* Request body metadata
8425+
*/
8426+
requestBody?: Schema$VmwareAdminCluster;
8427+
}
83108428
export interface Params$Resource$Projects$Locations$Vmwareadminclusters$Enroll
83118429
extends StandardParameters {
83128430
/**

0 commit comments

Comments
 (0)