diff --git a/discovery/sasportal-v1alpha1.json b/discovery/sasportal-v1alpha1.json index dd81566102..e0995c04da 100644 --- a/discovery/sasportal-v1alpha1.json +++ b/discovery/sasportal-v1alpha1.json @@ -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}", @@ -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", @@ -2652,7 +2652,7 @@ } } }, - "revision": "20240111", + "revision": "20240204", "rootUrl": "https://sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -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", @@ -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", @@ -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", diff --git a/src/apis/sasportal/v1alpha1.ts b/src/apis/sasportal/v1alpha1.ts index aee21519ac..8db54b8616 100644 --- a/src/apis/sasportal/v1alpha1.ts +++ b/src/apis/sasportal/v1alpha1.ts @@ -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. */ @@ -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. */ @@ -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]. */ @@ -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; - checkHasProvisionedDeployment( - params?: Params$Resource$Customers$Checkhasprovisioneddeployment, - options?: MethodOptions - ): GaxiosPromise; - checkHasProvisionedDeployment( - params: Params$Resource$Customers$Checkhasprovisioneddeployment, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - checkHasProvisionedDeployment( - params: Params$Resource$Customers$Checkhasprovisioneddeployment, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - checkHasProvisionedDeployment( - params: Params$Resource$Customers$Checkhasprovisioneddeployment, - callback: BodyResponseCallback - ): void; - checkHasProvisionedDeployment( - callback: BodyResponseCallback - ): void; - checkHasProvisionedDeployment( - paramsOrCallback?: - | Params$Resource$Customers$Checkhasprovisioneddeployment - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - 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( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest( - parameters - ); - } - } - /** * Returns a requested customer. * @@ -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; + listGcpProjectDeployments( + params?: Params$Resource$Customers$Listgcpprojectdeployments, + options?: MethodOptions + ): GaxiosPromise; + listGcpProjectDeployments( + params: Params$Resource$Customers$Listgcpprojectdeployments, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + listGcpProjectDeployments( + params: Params$Resource$Customers$Listgcpprojectdeployments, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + listGcpProjectDeployments( + params: Params$Resource$Customers$Listgcpprojectdeployments, + callback: BodyResponseCallback + ): void; + listGcpProjectDeployments( + callback: BodyResponseCallback + ): void; + listGcpProjectDeployments( + paramsOrCallback?: + | Params$Resource$Customers$Listgcpprojectdeployments + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + 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( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Returns a list of legacy organizations. * * @param params - Parameters for request * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. @@ -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. @@ -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