Skip to content

Commit

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

#### sasportal:v1alpha1

The following keys were deleted:
- resources.customers.methods.checkHasProvisionedDeployment.description
- resources.customers.methods.checkHasProvisionedDeployment.flatPath
- resources.customers.methods.checkHasProvisionedDeployment.httpMethod
- resources.customers.methods.checkHasProvisionedDeployment.id
- resources.customers.methods.checkHasProvisionedDeployment.parameterOrder
- resources.customers.methods.checkHasProvisionedDeployment.path
- resources.customers.methods.checkHasProvisionedDeployment.response.$ref
- resources.customers.methods.checkHasProvisionedDeployment.scopes
- schemas.SasPortalCheckHasProvisionedDeploymentResponse.description
- schemas.SasPortalCheckHasProvisionedDeploymentResponse.id
- schemas.SasPortalCheckHasProvisionedDeploymentResponse.properties.hasProvisionedDeployment.description
- schemas.SasPortalCheckHasProvisionedDeploymentResponse.properties.hasProvisionedDeployment.type
- schemas.SasPortalCheckHasProvisionedDeploymentResponse.type

The following keys were added:
- resources.customers.methods.listGcpProjectDeployments.description
- resources.customers.methods.listGcpProjectDeployments.flatPath
- resources.customers.methods.listGcpProjectDeployments.httpMethod
- resources.customers.methods.listGcpProjectDeployments.id
- resources.customers.methods.listGcpProjectDeployments.parameterOrder
- resources.customers.methods.listGcpProjectDeployments.path
- resources.customers.methods.listGcpProjectDeployments.response.$ref
- resources.customers.methods.listGcpProjectDeployments.scopes
- schemas.SasPortalGcpProjectDeployment.description
- schemas.SasPortalGcpProjectDeployment.id
- schemas.SasPortalGcpProjectDeployment.properties.deployment.$ref
- schemas.SasPortalGcpProjectDeployment.properties.deployment.description
- schemas.SasPortalGcpProjectDeployment.properties.hasEnabledAnalytics.description
- schemas.SasPortalGcpProjectDeployment.properties.hasEnabledAnalytics.type
- schemas.SasPortalGcpProjectDeployment.type
- schemas.SasPortalListGcpProjectDeploymentsResponse.description
- schemas.SasPortalListGcpProjectDeploymentsResponse.id
- schemas.SasPortalListGcpProjectDeploymentsResponse.properties.deployments.description
- schemas.SasPortalListGcpProjectDeploymentsResponse.properties.deployments.items.$ref
- schemas.SasPortalListGcpProjectDeploymentsResponse.properties.deployments.type
- schemas.SasPortalListGcpProjectDeploymentsResponse.type

The following keys were changed:
- resources.customers.methods.listLegacyOrganizations.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 7, 2024
1 parent 10c815f commit db1e629
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 136 deletions.
76 changes: 47 additions & 29 deletions discovery/sasportal-v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,6 @@
"resources": {
"customers": {
"methods": {
"checkHasProvisionedDeployment": {
"description": "Checks whether a SAS deployment for the authentication context exists.",
"flatPath": "v1alpha1/customers:checkHasProvisionedDeployment",
"httpMethod": "GET",
"id": "sasportal.customers.checkHasProvisionedDeployment",
"parameterOrder": [],
"parameters": {},
"path": "v1alpha1/customers:checkHasProvisionedDeployment",
"response": {
"$ref": "SasPortalCheckHasProvisionedDeploymentResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sasportal"
]
},
"get": {
"description": "Returns a requested customer.",
"flatPath": "v1alpha1/customers/{customersId}",
Expand Down Expand Up @@ -179,8 +163,24 @@
"https://www.googleapis.com/auth/sasportal"
]
},
"listGcpProjectDeployments": {
"description": "Returns a list of SAS deployments associated with current GCP project. Includes whether SAS analytics has been enabled or not.",
"flatPath": "v1alpha1/customers:listGcpProjectDeployments",
"httpMethod": "GET",
"id": "sasportal.customers.listGcpProjectDeployments",
"parameterOrder": [],
"parameters": {},
"path": "v1alpha1/customers:listGcpProjectDeployments",
"response": {
"$ref": "SasPortalListGcpProjectDeploymentsResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/sasportal"
]
},
"listLegacyOrganizations": {
"description": "Checks whether account is legacy.",
"description": "Returns a list of legacy organizations.",
"flatPath": "v1alpha1/customers:listLegacyOrganizations",
"httpMethod": "GET",
"id": "sasportal.customers.listLegacyOrganizations",
Expand Down Expand Up @@ -2652,7 +2652,7 @@
}
}
},
"revision": "20240111",
"revision": "20240204",
"rootUrl": "https://sasportal.googleapis.com/",
"schemas": {
"SasPortalAssignment": {
Expand Down Expand Up @@ -2689,17 +2689,6 @@
},
"type": "object"
},
"SasPortalCheckHasProvisionedDeploymentResponse": {
"description": "Response for [CheckHasProvisionedDeployment]. [spectrum.sas.portal.v1alpha1.Provisioning.CheckHasProvisionedDeployment].",
"id": "SasPortalCheckHasProvisionedDeploymentResponse",
"properties": {
"hasProvisionedDeployment": {
"description": "Whether a SAS deployment for the authentication context exists.",
"type": "boolean"
}
},
"type": "object"
},
"SasPortalCreateSignedDeviceRequest": {
"description": "Request for CreateSignedDevice.",
"id": "SasPortalCreateSignedDeviceRequest",
Expand Down Expand Up @@ -3148,6 +3137,21 @@
},
"type": "object"
},
"SasPortalGcpProjectDeployment": {
"description": "Deployment associated with the GCP project. Includes whether SAS analytics has been enabled or not.",
"id": "SasPortalGcpProjectDeployment",
"properties": {
"deployment": {
"$ref": "SasPortalDeployment",
"description": "Deployment associated with the GCP project."
},
"hasEnabledAnalytics": {
"description": "Whether SAS analytics has been enabled.",
"type": "boolean"
}
},
"type": "object"
},
"SasPortalGenerateSecretRequest": {
"description": "Request for GenerateSecret.",
"id": "SasPortalGenerateSecretRequest",
Expand Down Expand Up @@ -3313,6 +3317,20 @@
},
"type": "object"
},
"SasPortalListGcpProjectDeploymentsResponse": {
"description": "Response for [ListGcpProjectDeployments].",
"id": "SasPortalListGcpProjectDeploymentsResponse",
"properties": {
"deployments": {
"description": "Optional. Deployments associated with the GCP project",
"items": {
"$ref": "SasPortalGcpProjectDeployment"
},
"type": "array"
}
},
"type": "object"
},
"SasPortalListLegacyOrganizationsResponse": {
"description": "Response for [ListLegacyOrganizations]. [spectrum.sas.portal.v1alpha1.Provisioning.ListLegacyOrganizations].",
"id": "SasPortalListLegacyOrganizationsResponse",
Expand Down
227 changes: 120 additions & 107 deletions src/apis/sasportal/v1alpha1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,6 @@ export namespace sasportal_v1alpha1 {
*/
score?: number | null;
}
/**
* Response for [CheckHasProvisionedDeployment]. [spectrum.sas.portal.v1alpha1.Provisioning.CheckHasProvisionedDeployment].
*/
export interface Schema$SasPortalCheckHasProvisionedDeploymentResponse {
/**
* Whether a SAS deployment for the authentication context exists.
*/
hasProvisionedDeployment?: boolean | null;
}
/**
* Request for CreateSignedDevice.
*/
Expand Down Expand Up @@ -456,6 +447,19 @@ export namespace sasportal_v1alpha1 {
*/
lowFrequencyMhz?: number | null;
}
/**
* Deployment associated with the GCP project. Includes whether SAS analytics has been enabled or not.
*/
export interface Schema$SasPortalGcpProjectDeployment {
/**
* Deployment associated with the GCP project.
*/
deployment?: Schema$SasPortalDeployment;
/**
* Whether SAS analytics has been enabled.
*/
hasEnabledAnalytics?: boolean | null;
}
/**
* Request for GenerateSecret.
*/
Expand Down Expand Up @@ -578,6 +582,15 @@ export namespace sasportal_v1alpha1 {
*/
nextPageToken?: string | null;
}
/**
* Response for [ListGcpProjectDeployments].
*/
export interface Schema$SasPortalListGcpProjectDeploymentsResponse {
/**
* Optional. Deployments associated with the GCP project
*/
deployments?: Schema$SasPortalGcpProjectDeployment[];
}
/**
* Response for [ListLegacyOrganizations]. [spectrum.sas.portal.v1alpha1.Provisioning.ListLegacyOrganizations].
*/
Expand Down Expand Up @@ -902,101 +915,6 @@ export namespace sasportal_v1alpha1 {
this.nodes = new Resource$Customers$Nodes(this.context);
}

/**
* Checks whether a SAS deployment for the authentication context exists.
*
* @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.
*/
checkHasProvisionedDeployment(
params: Params$Resource$Customers$Checkhasprovisioneddeployment,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
checkHasProvisionedDeployment(
params?: Params$Resource$Customers$Checkhasprovisioneddeployment,
options?: MethodOptions
): GaxiosPromise<Schema$SasPortalCheckHasProvisionedDeploymentResponse>;
checkHasProvisionedDeployment(
params: Params$Resource$Customers$Checkhasprovisioneddeployment,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
checkHasProvisionedDeployment(
params: Params$Resource$Customers$Checkhasprovisioneddeployment,
options:
| MethodOptions
| BodyResponseCallback<Schema$SasPortalCheckHasProvisionedDeploymentResponse>,
callback: BodyResponseCallback<Schema$SasPortalCheckHasProvisionedDeploymentResponse>
): void;
checkHasProvisionedDeployment(
params: Params$Resource$Customers$Checkhasprovisioneddeployment,
callback: BodyResponseCallback<Schema$SasPortalCheckHasProvisionedDeploymentResponse>
): void;
checkHasProvisionedDeployment(
callback: BodyResponseCallback<Schema$SasPortalCheckHasProvisionedDeploymentResponse>
): void;
checkHasProvisionedDeployment(
paramsOrCallback?:
| Params$Resource$Customers$Checkhasprovisioneddeployment
| BodyResponseCallback<Schema$SasPortalCheckHasProvisionedDeploymentResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$SasPortalCheckHasProvisionedDeploymentResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$SasPortalCheckHasProvisionedDeploymentResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$SasPortalCheckHasProvisionedDeploymentResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Customers$Checkhasprovisioneddeployment;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Customers$Checkhasprovisioneddeployment;
options = {};
}

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

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

/**
* Returns a requested customer.
*
Expand Down Expand Up @@ -1179,7 +1097,102 @@ export namespace sasportal_v1alpha1 {
}

/**
* Checks whether account is legacy.
* Returns a list of SAS deployments associated with current GCP project. Includes whether SAS analytics has been enabled or not.
*
* @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.
*/
listGcpProjectDeployments(
params: Params$Resource$Customers$Listgcpprojectdeployments,
options: StreamMethodOptions
): GaxiosPromise<Readable>;
listGcpProjectDeployments(
params?: Params$Resource$Customers$Listgcpprojectdeployments,
options?: MethodOptions
): GaxiosPromise<Schema$SasPortalListGcpProjectDeploymentsResponse>;
listGcpProjectDeployments(
params: Params$Resource$Customers$Listgcpprojectdeployments,
options: StreamMethodOptions | BodyResponseCallback<Readable>,
callback: BodyResponseCallback<Readable>
): void;
listGcpProjectDeployments(
params: Params$Resource$Customers$Listgcpprojectdeployments,
options:
| MethodOptions
| BodyResponseCallback<Schema$SasPortalListGcpProjectDeploymentsResponse>,
callback: BodyResponseCallback<Schema$SasPortalListGcpProjectDeploymentsResponse>
): void;
listGcpProjectDeployments(
params: Params$Resource$Customers$Listgcpprojectdeployments,
callback: BodyResponseCallback<Schema$SasPortalListGcpProjectDeploymentsResponse>
): void;
listGcpProjectDeployments(
callback: BodyResponseCallback<Schema$SasPortalListGcpProjectDeploymentsResponse>
): void;
listGcpProjectDeployments(
paramsOrCallback?:
| Params$Resource$Customers$Listgcpprojectdeployments
| BodyResponseCallback<Schema$SasPortalListGcpProjectDeploymentsResponse>
| BodyResponseCallback<Readable>,
optionsOrCallback?:
| MethodOptions
| StreamMethodOptions
| BodyResponseCallback<Schema$SasPortalListGcpProjectDeploymentsResponse>
| BodyResponseCallback<Readable>,
callback?:
| BodyResponseCallback<Schema$SasPortalListGcpProjectDeploymentsResponse>
| BodyResponseCallback<Readable>
):
| void
| GaxiosPromise<Schema$SasPortalListGcpProjectDeploymentsResponse>
| GaxiosPromise<Readable> {
let params = (paramsOrCallback ||
{}) as Params$Resource$Customers$Listgcpprojectdeployments;
let options = (optionsOrCallback || {}) as MethodOptions;

if (typeof paramsOrCallback === 'function') {
callback = paramsOrCallback;
params = {} as Params$Resource$Customers$Listgcpprojectdeployments;
options = {};
}

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

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

/**
* Returns a list of legacy organizations.
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -1640,8 +1653,6 @@ export namespace sasportal_v1alpha1 {
}
}

export interface Params$Resource$Customers$Checkhasprovisioneddeployment
extends StandardParameters {}
export interface Params$Resource$Customers$Get extends StandardParameters {
/**
* Required. The name of the customer.
Expand All @@ -1658,6 +1669,8 @@ export namespace sasportal_v1alpha1 {
*/
pageToken?: string;
}
export interface Params$Resource$Customers$Listgcpprojectdeployments
extends StandardParameters {}
export interface Params$Resource$Customers$Listlegacyorganizations
extends StandardParameters {}
export interface Params$Resource$Customers$Migrateorganization
Expand Down

0 comments on commit db1e629

Please sign in to comment.