Skip to content

Commit fb8a1bd

Browse files
yoshi-automationsofisl
authored andcommitted
feat(beyondcorp): update the API
#### beyondcorp:v1alpha The following keys were added: - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.description - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.flatPath - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.httpMethod - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.id - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameterOrder - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameters.name.description - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameters.name.location - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameters.name.pattern - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameters.name.required - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameters.name.type - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameters.requestId.description - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameters.requestId.location - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.parameters.requestId.type - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.path - resources.organizations.resources.locations.resources.subscriptions.methods.cancel.response.$ref - schemas.AppGateway.properties.satisfiesPzi.description - schemas.AppGateway.properties.satisfiesPzi.readOnly - schemas.AppGateway.properties.satisfiesPzi.type - schemas.AppGateway.properties.satisfiesPzs.description - schemas.AppGateway.properties.satisfiesPzs.readOnly - schemas.AppGateway.properties.satisfiesPzs.type - schemas.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection.properties.satisfiesPzi.description - schemas.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection.properties.satisfiesPzi.readOnly - schemas.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection.properties.satisfiesPzi.type - schemas.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection.properties.satisfiesPzs.description - schemas.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection.properties.satisfiesPzs.readOnly - schemas.GoogleCloudBeyondcorpAppconnectionsV1alphaAppConnection.properties.satisfiesPzs.type - schemas.GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse.description - schemas.GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse.id - schemas.GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse.properties.effectiveCancellationTime.description - schemas.GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse.properties.effectiveCancellationTime.format - schemas.GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse.properties.effectiveCancellationTime.type - schemas.GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse.type - schemas.GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription.properties.billingAccount.description - schemas.GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription.properties.billingAccount.type The following keys were changed: - resources.organizations.resources.locations.resources.subscriptions.methods.patch.parameters.updateMask.description #### beyondcorp:v1 The following keys were added: - schemas.AppGateway.properties.satisfiesPzi.description - schemas.AppGateway.properties.satisfiesPzi.readOnly - schemas.AppGateway.properties.satisfiesPzi.type - schemas.AppGateway.properties.satisfiesPzs.description - schemas.AppGateway.properties.satisfiesPzs.readOnly - schemas.AppGateway.properties.satisfiesPzs.type - schemas.GoogleCloudBeyondcorpAppconnectionsV1AppConnection.properties.satisfiesPzi.description - schemas.GoogleCloudBeyondcorpAppconnectionsV1AppConnection.properties.satisfiesPzi.readOnly - schemas.GoogleCloudBeyondcorpAppconnectionsV1AppConnection.properties.satisfiesPzi.type - schemas.GoogleCloudBeyondcorpAppconnectionsV1AppConnection.properties.satisfiesPzs.description - schemas.GoogleCloudBeyondcorpAppconnectionsV1AppConnection.properties.satisfiesPzs.readOnly - schemas.GoogleCloudBeyondcorpAppconnectionsV1AppConnection.properties.satisfiesPzs.type
1 parent 4fba2fd commit fb8a1bd

File tree

4 files changed

+241
-4
lines changed

4 files changed

+241
-4
lines changed

discovery/beyondcorp-v1.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1804,7 +1804,7 @@
18041804
}
18051805
}
18061806
},
1807-
"revision": "20240417",
1807+
"revision": "20240424",
18081808
"rootUrl": "https://beyondcorp.googleapis.com/",
18091809
"schemas": {
18101810
"AllocatedConnection": {
@@ -1868,6 +1868,16 @@
18681868
"description": "Required. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.",
18691869
"type": "string"
18701870
},
1871+
"satisfiesPzi": {
1872+
"description": "Output only. Reserved for future use.",
1873+
"readOnly": true,
1874+
"type": "boolean"
1875+
},
1876+
"satisfiesPzs": {
1877+
"description": "Output only. Reserved for future use.",
1878+
"readOnly": true,
1879+
"type": "boolean"
1880+
},
18711881
"state": {
18721882
"description": "Output only. The current state of the AppGateway.",
18731883
"enum": [
@@ -2094,6 +2104,16 @@
20942104
"description": "Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.",
20952105
"type": "string"
20962106
},
2107+
"satisfiesPzi": {
2108+
"description": "Output only. Reserved for future use.",
2109+
"readOnly": true,
2110+
"type": "boolean"
2111+
},
2112+
"satisfiesPzs": {
2113+
"description": "Output only. Reserved for future use.",
2114+
"readOnly": true,
2115+
"type": "boolean"
2116+
},
20972117
"state": {
20982118
"description": "Output only. The current state of the AppConnection.",
20992119
"enum": [

discovery/beyondcorp-v1alpha.json

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,33 @@
12061206
},
12071207
"subscriptions": {
12081208
"methods": {
1209+
"cancel": {
1210+
"description": "Cancels an existing BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization. Returns the timestamp for when the cancellation will become effective",
1211+
"flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions/{subscriptionsId}:cancel",
1212+
"httpMethod": "GET",
1213+
"id": "beyondcorp.organizations.locations.subscriptions.cancel",
1214+
"parameterOrder": [
1215+
"name"
1216+
],
1217+
"parameters": {
1218+
"name": {
1219+
"description": "Required. Name of the resource.",
1220+
"location": "path",
1221+
"pattern": "^organizations/[^/]+/locations/[^/]+/subscriptions/[^/]+$",
1222+
"required": true,
1223+
"type": "string"
1224+
},
1225+
"requestId": {
1226+
"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 after 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).",
1227+
"location": "query",
1228+
"type": "string"
1229+
}
1230+
},
1231+
"path": "v1alpha/{+name}:cancel",
1232+
"response": {
1233+
"$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse"
1234+
}
1235+
},
12091236
"create": {
12101237
"description": "Creates a new BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization.",
12111238
"flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions",
@@ -1308,7 +1335,7 @@
13081335
"type": "string"
13091336
},
13101337
"updateMask": {
1311-
"description": "Required. Field mask is used to specify the fields to be overwritten in the Subscription resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all mutable fields will be overwritten. Mutable fields: type, state.",
1338+
"description": "Required. Field mask is used to specify the fields to be overwritten in the Subscription resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. Mutable fields: seat_count.",
13121339
"format": "google-fieldmask",
13131340
"location": "query",
13141341
"type": "string"
@@ -3939,7 +3966,7 @@
39393966
}
39403967
}
39413968
},
3942-
"revision": "20240417",
3969+
"revision": "20240424",
39433970
"rootUrl": "https://beyondcorp.googleapis.com/",
39443971
"schemas": {
39453972
"AllocatedConnection": {
@@ -4003,6 +4030,16 @@
40034030
"description": "Required. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.",
40044031
"type": "string"
40054032
},
4033+
"satisfiesPzi": {
4034+
"description": "Output only. Reserved for future use.",
4035+
"readOnly": true,
4036+
"type": "boolean"
4037+
},
4038+
"satisfiesPzs": {
4039+
"description": "Output only. Reserved for future use.",
4040+
"readOnly": true,
4041+
"type": "boolean"
4042+
},
40064043
"state": {
40074044
"description": "Output only. The current state of the AppGateway.",
40084045
"enum": [
@@ -4645,6 +4682,16 @@
46454682
"description": "Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.",
46464683
"type": "string"
46474684
},
4685+
"satisfiesPzi": {
4686+
"description": "Output only. Reserved for future use.",
4687+
"readOnly": true,
4688+
"type": "boolean"
4689+
},
4690+
"satisfiesPzs": {
4691+
"description": "Output only. Reserved for future use.",
4692+
"readOnly": true,
4693+
"type": "boolean"
4694+
},
46484695
"state": {
46494696
"description": "Output only. The current state of the AppConnection.",
46504697
"enum": [
@@ -5936,6 +5983,18 @@
59365983
},
59375984
"type": "object"
59385985
},
5986+
"GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse": {
5987+
"description": "Response message for BeyondCorp.CancelSubscription",
5988+
"id": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse",
5989+
"properties": {
5990+
"effectiveCancellationTime": {
5991+
"description": "Time when the cancellation will become effective",
5992+
"format": "google-datetime",
5993+
"type": "string"
5994+
}
5995+
},
5996+
"type": "object"
5997+
},
59395998
"GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse": {
59405999
"description": "Response message for BeyondCorp.ListSubscriptions.",
59416000
"id": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse",
@@ -5963,6 +6022,10 @@
59636022
"readOnly": true,
59646023
"type": "boolean"
59656024
},
6025+
"billingAccount": {
6026+
"description": "Optional. Name of the billing account in the format. e.g. billingAccounts/123456-123456-123456 Required if Subscription is of Paid type.",
6027+
"type": "string"
6028+
},
59666029
"createTime": {
59676030
"description": "Output only. Create time of the subscription.",
59686031
"format": "google-datetime",

src/apis/beyondcorp/v1.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ export namespace beyondcorp_v1 {
167167
* Required. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.
168168
*/
169169
name?: string | null;
170+
/**
171+
* Output only. Reserved for future use.
172+
*/
173+
satisfiesPzi?: boolean | null;
174+
/**
175+
* Output only. Reserved for future use.
176+
*/
177+
satisfiesPzs?: boolean | null;
170178
/**
171179
* Output only. The current state of the AppGateway.
172180
*/
@@ -360,6 +368,14 @@ export namespace beyondcorp_v1 {
360368
* Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.
361369
*/
362370
name?: string | null;
371+
/**
372+
* Output only. Reserved for future use.
373+
*/
374+
satisfiesPzi?: boolean | null;
375+
/**
376+
* Output only. Reserved for future use.
377+
*/
378+
satisfiesPzs?: boolean | null;
363379
/**
364380
* Output only. The current state of the AppConnection.
365381
*/

src/apis/beyondcorp/v1alpha.ts

Lines changed: 139 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ export namespace beyondcorp_v1alpha {
167167
* Required. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.
168168
*/
169169
name?: string | null;
170+
/**
171+
* Output only. Reserved for future use.
172+
*/
173+
satisfiesPzi?: boolean | null;
174+
/**
175+
* Output only. Reserved for future use.
176+
*/
177+
satisfiesPzs?: boolean | null;
170178
/**
171179
* Output only. The current state of the AppGateway.
172180
*/
@@ -577,6 +585,14 @@ export namespace beyondcorp_v1alpha {
577585
* Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.
578586
*/
579587
name?: string | null;
588+
/**
589+
* Output only. Reserved for future use.
590+
*/
591+
satisfiesPzi?: boolean | null;
592+
/**
593+
* Output only. Reserved for future use.
594+
*/
595+
satisfiesPzs?: boolean | null;
580596
/**
581597
* Output only. The current state of the AppConnection.
582598
*/
@@ -1516,6 +1532,15 @@ export namespace beyondcorp_v1alpha {
15161532
*/
15171533
value?: string | null;
15181534
}
1535+
/**
1536+
* Response message for BeyondCorp.CancelSubscription
1537+
*/
1538+
export interface Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse {
1539+
/**
1540+
* Time when the cancellation will become effective
1541+
*/
1542+
effectiveCancellationTime?: string | null;
1543+
}
15191544
/**
15201545
* Response message for BeyondCorp.ListSubscriptions.
15211546
*/
@@ -1537,6 +1562,10 @@ export namespace beyondcorp_v1alpha {
15371562
* Output only. Represents that, if subscription will renew or end when the term ends.
15381563
*/
15391564
autoRenewEnabled?: boolean | null;
1565+
/**
1566+
* Optional. Name of the billing account in the format. e.g. billingAccounts/123456-123456-123456 Required if Subscription is of Paid type.
1567+
*/
1568+
billingAccount?: string | null;
15401569
/**
15411570
* Output only. Create time of the subscription.
15421571
*/
@@ -5544,6 +5573,104 @@ export namespace beyondcorp_v1alpha {
55445573
this.context = context;
55455574
}
55465575

5576+
/**
5577+
* Cancels an existing BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization. Returns the timestamp for when the cancellation will become effective
5578+
*
5579+
* @param params - Parameters for request
5580+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5581+
* @param callback - Optional callback that handles the response.
5582+
* @returns A promise if used with async/await, or void if used with a callback.
5583+
*/
5584+
cancel(
5585+
params: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
5586+
options: StreamMethodOptions
5587+
): GaxiosPromise;
5588+
cancel(
5589+
params?: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
5590+
options?: MethodOptions
5591+
): GaxiosPromise;
5592+
cancel(
5593+
params: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
5594+
options: StreamMethodOptions | BodyResponseCallback,
5595+
callback: BodyResponseCallback
5596+
): void;
5597+
cancel(
5598+
params: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
5599+
options:
5600+
| MethodOptions
5601+
| BodyResponseCallback,
5602+
callback: BodyResponseCallback
5603+
): void;
5604+
cancel(
5605+
params: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
5606+
callback: BodyResponseCallback
5607+
): void;
5608+
cancel(
5609+
callback: BodyResponseCallback
5610+
): void;
5611+
cancel(
5612+
paramsOrCallback?:
5613+
| Params$Resource$Organizations$Locations$Subscriptions$Cancel
5614+
| BodyResponseCallback
5615+
| BodyResponseCallback,
5616+
optionsOrCallback?:
5617+
| MethodOptions
5618+
| StreamMethodOptions
5619+
| BodyResponseCallback
5620+
| BodyResponseCallback,
5621+
callback?:
5622+
| BodyResponseCallback
5623+
| BodyResponseCallback
5624+
):
5625+
| void
5626+
| GaxiosPromise
5627+
| GaxiosPromise {
5628+
let params = (paramsOrCallback ||
5629+
{}) as Params$Resource$Organizations$Locations$Subscriptions$Cancel;
5630+
let options = (optionsOrCallback || {}) as MethodOptions;
5631+
5632+
if (typeof paramsOrCallback === 'function') {
5633+
callback = paramsOrCallback;
5634+
params =
5635+
{} as Params$Resource$Organizations$Locations$Subscriptions$Cancel;
5636+
options = {};
5637+
}
5638+
5639+
if (typeof optionsOrCallback === 'function') {
5640+
callback = optionsOrCallback;
5641+
options = {};
5642+
}
5643+
5644+
const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/';
5645+
const parameters = {
5646+
options: Object.assign(
5647+
{
5648+
url: (rootUrl + '/v1alpha/{+name}:cancel').replace(
5649+
/([^:]\/)\/+/g,
5650+
'$1'
5651+
),
5652+
method: 'GET',
5653+
apiVersion: '',
5654+
},
5655+
options
5656+
),
5657+
params,
5658+
requiredParams: ['name'],
5659+
pathParams: ['name'],
5660+
context: this.context,
5661+
};
5662+
if (callback) {
5663+
createAPIRequest(
5664+
parameters,
5665+
callback as BodyResponseCallback
5666+
);
5667+
} else {
5668+
return createAPIRequest(
5669+
parameters
5670+
);
5671+
}
5672+
}
5673+
55475674
/**
55485675
* Creates a new BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization.
55495676
*
@@ -5931,6 +6058,17 @@ export namespace beyondcorp_v1alpha {
59316058
}
59326059
}
59336060

6061+
export interface Params$Resource$Organizations$Locations$Subscriptions$Cancel
6062+
extends StandardParameters {
6063+
/**
6064+
* Required. Name of the resource.
6065+
*/
6066+
name?: string;
6067+
/**
6068+
* 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 after 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).
6069+
*/
6070+
requestId?: string;
6071+
}
59346072
export interface Params$Resource$Organizations$Locations$Subscriptions$Create
59356073
extends StandardParameters {
59366074
/**
@@ -5976,7 +6114,7 @@ export namespace beyondcorp_v1alpha {
59766114
*/
59776115
requestId?: string;
59786116
/**
5979-
* Required. Field mask is used to specify the fields to be overwritten in the Subscription resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all mutable fields will be overwritten. Mutable fields: type, state.
6117+
* Required. Field mask is used to specify the fields to be overwritten in the Subscription resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. Mutable fields: seat_count.
59806118
*/
59816119
updateMask?: string;
59826120

0 commit comments

Comments
 (0)