Skip to content

Commit

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

#### beyondcorp:v1alpha

The following keys were deleted:
- 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 deleted:
- 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
  • Loading branch information
yoshi-automation authored and sofisl committed May 7, 2024
1 parent 2c2b2f8 commit 739d6c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 241 deletions.
22 changes: 1 addition & 21 deletions discovery/beyondcorp-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@
}
}
},
"revision": "20240424",
"revision": "20240417",
"rootUrl": "https://beyondcorp.googleapis.com/",
"schemas": {
"AllocatedConnection": {
Expand Down Expand Up @@ -1868,16 +1868,6 @@
"description": "Required. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.",
"type": "string"
},
"satisfiesPzi": {
"description": "Output only. Reserved for future use.",
"readOnly": true,
"type": "boolean"
},
"satisfiesPzs": {
"description": "Output only. Reserved for future use.",
"readOnly": true,
"type": "boolean"
},
"state": {
"description": "Output only. The current state of the AppGateway.",
"enum": [
Expand Down Expand Up @@ -2104,16 +2094,6 @@
"description": "Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.",
"type": "string"
},
"satisfiesPzi": {
"description": "Output only. Reserved for future use.",
"readOnly": true,
"type": "boolean"
},
"satisfiesPzs": {
"description": "Output only. Reserved for future use.",
"readOnly": true,
"type": "boolean"
},
"state": {
"description": "Output only. The current state of the AppConnection.",
"enum": [
Expand Down
67 changes: 2 additions & 65 deletions discovery/beyondcorp-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -1206,33 +1206,6 @@
},
"subscriptions": {
"methods": {
"cancel": {
"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",
"flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions/{subscriptionsId}:cancel",
"httpMethod": "GET",
"id": "beyondcorp.organizations.locations.subscriptions.cancel",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. Name of the resource.",
"location": "path",
"pattern": "^organizations/[^/]+/locations/[^/]+/subscriptions/[^/]+$",
"required": true,
"type": "string"
},
"requestId": {
"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).",
"location": "query",
"type": "string"
}
},
"path": "v1alpha/{+name}:cancel",
"response": {
"$ref": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse"
}
},
"create": {
"description": "Creates a new BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization.",
"flatPath": "v1alpha/organizations/{organizationsId}/locations/{locationsId}/subscriptions",
Expand Down Expand Up @@ -1335,7 +1308,7 @@
"type": "string"
},
"updateMask": {
"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.",
"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.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
Expand Down Expand Up @@ -3966,7 +3939,7 @@
}
}
},
"revision": "20240424",
"revision": "20240417",
"rootUrl": "https://beyondcorp.googleapis.com/",
"schemas": {
"AllocatedConnection": {
Expand Down Expand Up @@ -4030,16 +4003,6 @@
"description": "Required. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.",
"type": "string"
},
"satisfiesPzi": {
"description": "Output only. Reserved for future use.",
"readOnly": true,
"type": "boolean"
},
"satisfiesPzs": {
"description": "Output only. Reserved for future use.",
"readOnly": true,
"type": "boolean"
},
"state": {
"description": "Output only. The current state of the AppGateway.",
"enum": [
Expand Down Expand Up @@ -4682,16 +4645,6 @@
"description": "Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.",
"type": "string"
},
"satisfiesPzi": {
"description": "Output only. Reserved for future use.",
"readOnly": true,
"type": "boolean"
},
"satisfiesPzs": {
"description": "Output only. Reserved for future use.",
"readOnly": true,
"type": "boolean"
},
"state": {
"description": "Output only. The current state of the AppConnection.",
"enum": [
Expand Down Expand Up @@ -5983,18 +5936,6 @@
},
"type": "object"
},
"GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse": {
"description": "Response message for BeyondCorp.CancelSubscription",
"id": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse",
"properties": {
"effectiveCancellationTime": {
"description": "Time when the cancellation will become effective",
"format": "google-datetime",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse": {
"description": "Response message for BeyondCorp.ListSubscriptions.",
"id": "GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse",
Expand Down Expand Up @@ -6022,10 +5963,6 @@
"readOnly": true,
"type": "boolean"
},
"billingAccount": {
"description": "Optional. Name of the billing account in the format. e.g. billingAccounts/123456-123456-123456 Required if Subscription is of Paid type.",
"type": "string"
},
"createTime": {
"description": "Output only. Create time of the subscription.",
"format": "google-datetime",
Expand Down
16 changes: 0 additions & 16 deletions src/apis/beyondcorp/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,6 @@ export namespace beyondcorp_v1 {
* Required. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.
*/
name?: string | null;
/**
* Output only. Reserved for future use.
*/
satisfiesPzi?: boolean | null;
/**
* Output only. Reserved for future use.
*/
satisfiesPzs?: boolean | null;
/**
* Output only. The current state of the AppGateway.
*/
Expand Down Expand Up @@ -368,14 +360,6 @@ export namespace beyondcorp_v1 {
* Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.
*/
name?: string | null;
/**
* Output only. Reserved for future use.
*/
satisfiesPzi?: boolean | null;
/**
* Output only. Reserved for future use.
*/
satisfiesPzs?: boolean | null;
/**
* Output only. The current state of the AppConnection.
*/
Expand Down
140 changes: 1 addition & 139 deletions src/apis/beyondcorp/v1alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,6 @@ export namespace beyondcorp_v1alpha {
* Required. Unique resource name of the AppGateway. The name is ignored when creating an AppGateway.
*/
name?: string | null;
/**
* Output only. Reserved for future use.
*/
satisfiesPzi?: boolean | null;
/**
* Output only. Reserved for future use.
*/
satisfiesPzs?: boolean | null;
/**
* Output only. The current state of the AppGateway.
*/
Expand Down Expand Up @@ -585,14 +577,6 @@ export namespace beyondcorp_v1alpha {
* Required. Unique resource name of the AppConnection. The name is ignored when creating a AppConnection.
*/
name?: string | null;
/**
* Output only. Reserved for future use.
*/
satisfiesPzi?: boolean | null;
/**
* Output only. Reserved for future use.
*/
satisfiesPzs?: boolean | null;
/**
* Output only. The current state of the AppConnection.
*/
Expand Down Expand Up @@ -1532,15 +1516,6 @@ export namespace beyondcorp_v1alpha {
*/
value?: string | null;
}
/**
* Response message for BeyondCorp.CancelSubscription
*/
export interface Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse {
/**
* Time when the cancellation will become effective
*/
effectiveCancellationTime?: string | null;
}
/**
* Response message for BeyondCorp.ListSubscriptions.
*/
Expand All @@ -1562,10 +1537,6 @@ export namespace beyondcorp_v1alpha {
* Output only. Represents that, if subscription will renew or end when the term ends.
*/
autoRenewEnabled?: boolean | null;
/**
* Optional. Name of the billing account in the format. e.g. billingAccounts/123456-123456-123456 Required if Subscription is of Paid type.
*/
billingAccount?: string | null;
/**
* Output only. Create time of the subscription.
*/
Expand Down Expand Up @@ -5573,104 +5544,6 @@ export namespace beyondcorp_v1alpha {
this.context = context;
}

/**
* 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
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
* @param callback - Optional callback that handles the response.
* @returns A promise if used with async/await, or void if used with a callback.
*/
cancel(
params: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
cancel(
params?: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
options?: MethodOptions
): GaxiosPromise<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>;
cancel(
params: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
cancel(
params: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
options:
| MethodOptions
| BodyResponseCallback<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>,
callback: BodyResponseCallback<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>
): void;
cancel(
params: Params$Resource$Organizations$Locations$Subscriptions$Cancel,
callback: BodyResponseCallback<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>
): void;
cancel(
callback: BodyResponseCallback<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>
): void;
cancel(
paramsOrCallback?:
| Params$Resource$Organizations$Locations$Subscriptions$Cancel
| BodyResponseCallback<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Organizations$Locations$Subscriptions$Cancel;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params =
{} as Params$Resource$Organizations$Locations$Subscriptions$Cancel;
options = {};
}

if (typeof optionsOrCallback === 'function') {
callback = optionsOrCallback;
options = {};
}

const rootUrl = options.rootUrl || 'https://beyondcorp.googleapis.com/';
const parameters = {
options: Object.assign(
{
url: (rootUrl + '/v1alpha/{+name}:cancel').replace(
/([^:]\/)\/+/g,
'$1'
),
method: 'GET',
apiVersion: '',
},
options
),
params,
requiredParams: ['name'],
pathParams: ['name'],
context: this.context,
};
if (callback) {
createAPIRequest<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>(
parameters,
callback as BodyResponseCallback<unknown>
);
} else {
return createAPIRequest<Schema$GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaCancelSubscriptionResponse>(
parameters
);
}
}

/**
* Creates a new BeyondCorp Enterprise Subscription in a given organization. Location will always be global as BeyondCorp subscriptions are per organization.
*
Expand Down Expand Up @@ -6058,17 +5931,6 @@ export namespace beyondcorp_v1alpha {
}
}

export interface Params$Resource$Organizations$Locations$Subscriptions$Cancel
extends StandardParameters {
/**
* Required. Name of the resource.
*/
name?: string;
/**
* 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).
*/
requestId?: string;
}
export interface Params$Resource$Organizations$Locations$Subscriptions$Create
extends StandardParameters {
/**
Expand Down Expand Up @@ -6114,7 +5976,7 @@ export namespace beyondcorp_v1alpha {
*/
requestId?: string;
/**
* 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.
* 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.
*/
updateMask?: string;

Expand Down

0 comments on commit 739d6c2

Please sign in to comment.