diff --git a/discovery/prod_tt_sasportal-v1alpha1.json b/discovery/prod_tt_sasportal-v1alpha1.json index 2444ab87d0..cedad17eb1 100644 --- a/discovery/prod_tt_sasportal-v1alpha1.json +++ b/discovery/prod_tt_sasportal-v1alpha1.json @@ -110,22 +110,6 @@ "resources": { "customers": { "methods": { - "checkHasProvisionedDeployment": { - "description": "Checks whether a SAS deployment for the authentication context exists.", - "flatPath": "v1alpha1/customers:checkHasProvisionedDeployment", - "httpMethod": "GET", - "id": "prod_tt_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}", @@ -180,8 +164,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": "prod_tt_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": "prod_tt_sasportal.customers.listLegacyOrganizations", @@ -2653,7 +2653,7 @@ } } }, - "revision": "20231221", + "revision": "20240131", "rootUrl": "https://prod-tt-sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -2690,17 +2690,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", @@ -2810,7 +2799,7 @@ "type": "string" }, "fccId": { - "description": "The FCC identifier of the device.", + "description": "The FCC identifier of the device. Refer to https://www.fcc.gov/oet/ea/fccid for FccID format.", "type": "string" }, "grantRangeAllowlists": { @@ -3149,6 +3138,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", @@ -3314,15 +3318,28 @@ }, "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", "properties": { - "organizationIds": { - "description": "Optional. IDs of legacy SAS organizations.", + "organizations": { + "description": "Optional. Legacy SAS organizations.", "items": { - "format": "int64", - "type": "string" + "$ref": "SasPortalOrganization" }, "type": "array" } @@ -3528,6 +3545,22 @@ }, "type": "object" }, + "SasPortalOrganization": { + "description": "Organization details.", + "id": "SasPortalOrganization", + "properties": { + "displayName": { + "description": "Name of organization", + "type": "string" + }, + "id": { + "description": "Id of organization", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "SasPortalPolicy": { "description": "Defines an access control policy to the resources.", "id": "SasPortalPolicy", diff --git a/src/apis/prod_tt_sasportal/v1alpha1.ts b/src/apis/prod_tt_sasportal/v1alpha1.ts index 403ef842fd..8e872261e9 100644 --- a/src/apis/prod_tt_sasportal/v1alpha1.ts +++ b/src/apis/prod_tt_sasportal/v1alpha1.ts @@ -158,15 +158,6 @@ export namespace prod_tt_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. */ @@ -249,7 +240,7 @@ export namespace prod_tt_sasportal_v1alpha1 { */ displayName?: string | null; /** - * The FCC identifier of the device. + * The FCC identifier of the device. Refer to https://www.fcc.gov/oet/ea/fccid for FccID format. */ fccId?: string | null; /** @@ -456,6 +447,19 @@ export namespace prod_tt_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,14 +582,23 @@ export namespace prod_tt_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]. */ export interface Schema$SasPortalListLegacyOrganizationsResponse { /** - * Optional. IDs of legacy SAS organizations. + * Optional. Legacy SAS organizations. */ - organizationIds?: string[] | null; + organizations?: Schema$SasPortalOrganization[]; } /** * Response for ListNodes. @@ -721,6 +734,19 @@ export namespace prod_tt_sasportal_v1alpha1 { */ response?: {[key: string]: any} | null; } + /** + * Organization details. + */ + export interface Schema$SasPortalOrganization { + /** + * Name of organization + */ + displayName?: string | null; + /** + * Id of organization + */ + id?: string | null; + } /** * Defines an access control policy to the resources. */ @@ -889,102 +915,6 @@ export namespace prod_tt_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://prod-tt-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. * @@ -1169,7 +1099,103 @@ export namespace prod_tt_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://prod-tt-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`. @@ -1635,8 +1661,6 @@ export namespace prod_tt_sasportal_v1alpha1 { } } - export interface Params$Resource$Customers$Checkhasprovisioneddeployment - extends StandardParameters {} export interface Params$Resource$Customers$Get extends StandardParameters { /** * Required. The name of the customer. @@ -1653,6 +1677,8 @@ export namespace prod_tt_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