Skip to content

Commit

Permalink
feat(gkeonprem)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.

#### gkeonprem:v1

The following keys were deleted:
- schemas.VmwareNetworkConfig.properties.vcenterNetwork.readOnly

The following keys were added:
- schemas.VmwareAdminAuthorizationConfig.description
- schemas.VmwareAdminAuthorizationConfig.id
- schemas.VmwareAdminAuthorizationConfig.properties.viewerUsers.description
- schemas.VmwareAdminAuthorizationConfig.properties.viewerUsers.items.$ref
- schemas.VmwareAdminAuthorizationConfig.properties.viewerUsers.type
- schemas.VmwareAdminAuthorizationConfig.type
- schemas.VmwareAdminCluster.properties.authorization.$ref
- schemas.VmwareAdminCluster.properties.authorization.description

The following keys were changed:
- schemas.Authorization.properties.adminUsers.description
- schemas.VmwareNetworkConfig.properties.vcenterNetwork.description
  • Loading branch information
yoshi-automation authored and sofisl committed Nov 27, 2023
1 parent 473e4e0 commit f47bbad
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
25 changes: 21 additions & 4 deletions discovery/gkeonprem-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2996,15 +2996,15 @@
}
}
},
"revision": "20231011",
"revision": "20231108",
"rootUrl": "https://gkeonprem.googleapis.com/",
"schemas": {
"Authorization": {
"description": "Authorization defines the On-Prem cluster authorization configuration to bootstrap onto the admin cluster.",
"id": "Authorization",
"properties": {
"adminUsers": {
"description": "Required. For VMware and bare metal user clusters, users will be granted the cluster-admin role on the cluster, which provides full administrative access to the cluster. For bare metal admin clusters, users will be granted the cluster-view role, which limits users to read-only access.",
"description": "For VMware and bare metal user clusters, users will be granted the cluster-admin role on the cluster, which provides full administrative access to the cluster. For bare metal admin clusters, users will be granted the cluster-view role, which limits users to read-only access.",
"items": {
"$ref": "ClusterUser"
},
Expand Down Expand Up @@ -5419,6 +5419,20 @@
},
"type": "object"
},
"VmwareAdminAuthorizationConfig": {
"description": "VmwareAdminAuthorizationConfig represents configuration for admin cluster authorization.",
"id": "VmwareAdminAuthorizationConfig",
"properties": {
"viewerUsers": {
"description": "For VMware admin clusters, users will be granted the cluster-viewer role on the cluster.",
"items": {
"$ref": "ClusterUser"
},
"type": "array"
}
},
"type": "object"
},
"VmwareAdminCluster": {
"description": "Resource that represents a VMware admin cluster.",
"id": "VmwareAdminCluster",
Expand All @@ -5438,6 +5452,10 @@
"$ref": "VmwareAAGConfig",
"description": "The VMware admin cluster anti affinity group configuration."
},
"authorization": {
"$ref": "VmwareAdminAuthorizationConfig",
"description": "The VMware admin cluster authorization configuration."
},
"autoRepairConfig": {
"$ref": "VmwareAutoRepairConfig",
"description": "The VMware admin cluster auto repair configuration."
Expand Down Expand Up @@ -6309,8 +6327,7 @@
"description": "Configuration settings for a static IP configuration."
},
"vcenterNetwork": {
"description": "Output only. vcenter_network specifies vCenter network name. Inherited from the admin cluster.",
"readOnly": true,
"description": "vcenter_network specifies vCenter network name. Inherited from the admin cluster.",
"type": "string"
}
},
Expand Down
17 changes: 15 additions & 2 deletions src/apis/gkeonprem/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export namespace gkeonprem_v1 {
*/
export interface Schema$Authorization {
/**
* Required. For VMware and bare metal user clusters, users will be granted the cluster-admin role on the cluster, which provides full administrative access to the cluster. For bare metal admin clusters, users will be granted the cluster-view role, which limits users to read-only access.
* For VMware and bare metal user clusters, users will be granted the cluster-admin role on the cluster, which provides full administrative access to the cluster. For bare metal admin clusters, users will be granted the cluster-view role, which limits users to read-only access.
*/
adminUsers?: Schema$ClusterUser[];
}
Expand Down Expand Up @@ -1841,6 +1841,15 @@ export namespace gkeonprem_v1 {
*/
autoResizeConfig?: Schema$VmwareAutoResizeConfig;
}
/**
* VmwareAdminAuthorizationConfig represents configuration for admin cluster authorization.
*/
export interface Schema$VmwareAdminAuthorizationConfig {
/**
* For VMware admin clusters, users will be granted the cluster-viewer role on the cluster.
*/
viewerUsers?: Schema$ClusterUser[];
}
/**
* Resource that represents a VMware admin cluster.
*/
Expand All @@ -1857,6 +1866,10 @@ export namespace gkeonprem_v1 {
* The VMware admin cluster anti affinity group configuration.
*/
antiAffinityGroups?: Schema$VmwareAAGConfig;
/**
* The VMware admin cluster authorization configuration.
*/
authorization?: Schema$VmwareAdminAuthorizationConfig;
/**
* The VMware admin cluster auto repair configuration.
*/
Expand Down Expand Up @@ -2551,7 +2564,7 @@ export namespace gkeonprem_v1 {
*/
staticIpConfig?: Schema$VmwareStaticIpConfig;
/**
* Output only. vcenter_network specifies vCenter network name. Inherited from the admin cluster.
* vcenter_network specifies vCenter network name. Inherited from the admin cluster.
*/
vcenterNetwork?: string | null;
}
Expand Down

0 comments on commit f47bbad

Please sign in to comment.