Skip to content

Commit e6a79c7

Browse files
yoshi-automationsofisl
authored andcommitted
feat(prod_tt_sasportal): update the API
#### prod_tt_sasportal:v1alpha1 The following keys were added: - 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 - resources.customers.methods.migrateOrganization.description - resources.customers.methods.migrateOrganization.flatPath - resources.customers.methods.migrateOrganization.httpMethod - resources.customers.methods.migrateOrganization.id - resources.customers.methods.migrateOrganization.parameterOrder - resources.customers.methods.migrateOrganization.path - resources.customers.methods.migrateOrganization.request.$ref - resources.customers.methods.migrateOrganization.response.$ref - resources.customers.methods.migrateOrganization.scopes - schemas.SasPortalCheckHasProvisionedDeploymentResponse.description - schemas.SasPortalCheckHasProvisionedDeploymentResponse.id - schemas.SasPortalCheckHasProvisionedDeploymentResponse.properties.hasProvisionedDeployment.description - schemas.SasPortalCheckHasProvisionedDeploymentResponse.properties.hasProvisionedDeployment.type - schemas.SasPortalCheckHasProvisionedDeploymentResponse.type - schemas.SasPortalDeploymentAssociation.description - schemas.SasPortalDeploymentAssociation.id - schemas.SasPortalDeploymentAssociation.properties.gcpProjectId.description - schemas.SasPortalDeploymentAssociation.properties.gcpProjectId.type - schemas.SasPortalDeploymentAssociation.properties.userId.description - schemas.SasPortalDeploymentAssociation.properties.userId.type - schemas.SasPortalDeploymentAssociation.type - schemas.SasPortalDevice.properties.currentChannels.deprecated - schemas.SasPortalDeviceMetadata.properties.nrqzValidated.deprecated - schemas.SasPortalMigrateOrganizationMetadata.description - schemas.SasPortalMigrateOrganizationMetadata.id - schemas.SasPortalMigrateOrganizationMetadata.properties.operationState.description - schemas.SasPortalMigrateOrganizationMetadata.properties.operationState.enum - schemas.SasPortalMigrateOrganizationMetadata.properties.operationState.enumDescriptions - schemas.SasPortalMigrateOrganizationMetadata.properties.operationState.readOnly - schemas.SasPortalMigrateOrganizationMetadata.properties.operationState.type - schemas.SasPortalMigrateOrganizationMetadata.type - schemas.SasPortalMigrateOrganizationRequest.description - schemas.SasPortalMigrateOrganizationRequest.id - schemas.SasPortalMigrateOrganizationRequest.properties.organizationId.description - schemas.SasPortalMigrateOrganizationRequest.properties.organizationId.format - schemas.SasPortalMigrateOrganizationRequest.properties.organizationId.type - schemas.SasPortalMigrateOrganizationRequest.type - schemas.SasPortalMigrateOrganizationResponse.description - schemas.SasPortalMigrateOrganizationResponse.id - schemas.SasPortalMigrateOrganizationResponse.properties.deploymentAssociation.description - schemas.SasPortalMigrateOrganizationResponse.properties.deploymentAssociation.items.$ref - schemas.SasPortalMigrateOrganizationResponse.properties.deploymentAssociation.type - schemas.SasPortalMigrateOrganizationResponse.type
1 parent ec6cf33 commit e6a79c7

File tree

2 files changed

+461
-1
lines changed

2 files changed

+461
-1
lines changed

discovery/prod_tt_sasportal-v1alpha1.json

Lines changed: 116 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,22 @@
110110
"resources": {
111111
"customers": {
112112
"methods": {
113+
"checkHasProvisionedDeployment": {
114+
"description": "Checks whether a SAS deployment for the authentication context exists.",
115+
"flatPath": "v1alpha1/customers:checkHasProvisionedDeployment",
116+
"httpMethod": "GET",
117+
"id": "prod_tt_sasportal.customers.checkHasProvisionedDeployment",
118+
"parameterOrder": [],
119+
"parameters": {},
120+
"path": "v1alpha1/customers:checkHasProvisionedDeployment",
121+
"response": {
122+
"$ref": "SasPortalCheckHasProvisionedDeploymentResponse"
123+
},
124+
"scopes": [
125+
"https://www.googleapis.com/auth/cloud-platform",
126+
"https://www.googleapis.com/auth/sasportal"
127+
]
128+
},
113129
"get": {
114130
"description": "Returns a requested customer.",
115131
"flatPath": "v1alpha1/customers/{customersId}",
@@ -164,6 +180,25 @@
164180
"https://www.googleapis.com/auth/sasportal"
165181
]
166182
},
183+
"migrateOrganization": {
184+
"description": "Migrates a SAS organization to the cloud. This will create GCP projects for each deployment and associate them. The SAS Organization is linked to the gcp project that called the command. go/sas-legacy-customer-migration",
185+
"flatPath": "v1alpha1/customers:migrateOrganization",
186+
"httpMethod": "POST",
187+
"id": "prod_tt_sasportal.customers.migrateOrganization",
188+
"parameterOrder": [],
189+
"parameters": {},
190+
"path": "v1alpha1/customers:migrateOrganization",
191+
"request": {
192+
"$ref": "SasPortalMigrateOrganizationRequest"
193+
},
194+
"response": {
195+
"$ref": "SasPortalOperation"
196+
},
197+
"scopes": [
198+
"https://www.googleapis.com/auth/cloud-platform",
199+
"https://www.googleapis.com/auth/sasportal"
200+
]
201+
},
167202
"patch": {
168203
"description": "Updates an existing customer.",
169204
"flatPath": "v1alpha1/customers/{customersId}",
@@ -2583,7 +2618,7 @@
25832618
}
25842619
}
25852620
},
2586-
"revision": "20230612",
2621+
"revision": "20230706",
25872622
"rootUrl": "https://prod-tt-sasportal.googleapis.com/",
25882623
"schemas": {
25892624
"SasPortalAssignment": {
@@ -2620,6 +2655,17 @@
26202655
},
26212656
"type": "object"
26222657
},
2658+
"SasPortalCheckHasProvisionedDeploymentResponse": {
2659+
"description": "Response for [CheckHasProvisionedDeployment]. [spectrum.sas.portal.v1alpha1.Provisioning.CheckHasProvisionedDeployment].",
2660+
"id": "SasPortalCheckHasProvisionedDeploymentResponse",
2661+
"properties": {
2662+
"hasProvisionedDeployment": {
2663+
"description": "Whether a SAS deployment for the authentication context exists.",
2664+
"type": "boolean"
2665+
}
2666+
},
2667+
"type": "object"
2668+
},
26232669
"SasPortalCreateSignedDeviceRequest": {
26242670
"description": "Request for CreateSignedDevice.",
26252671
"id": "SasPortalCreateSignedDeviceRequest",
@@ -2689,6 +2735,21 @@
26892735
},
26902736
"type": "object"
26912737
},
2738+
"SasPortalDeploymentAssociation": {
2739+
"description": "Association between a gcp project and a SAS user id.",
2740+
"id": "SasPortalDeploymentAssociation",
2741+
"properties": {
2742+
"gcpProjectId": {
2743+
"description": "GCP project id of the associated project.",
2744+
"type": "string"
2745+
},
2746+
"userId": {
2747+
"description": "User id of the deployment.",
2748+
"type": "string"
2749+
}
2750+
},
2751+
"type": "object"
2752+
},
26922753
"SasPortalDevice": {
26932754
"id": "SasPortalDevice",
26942755
"properties": {
@@ -2697,6 +2758,7 @@
26972758
"description": "Output only. Current configuration of the device as registered to the SAS."
26982759
},
26992760
"currentChannels": {
2761+
"deprecated": true,
27002762
"description": "Output only. Current channels with scores.",
27012763
"items": {
27022764
"$ref": "SasPortalChannelWithScore"
@@ -2974,6 +3036,7 @@
29743036
"type": "string"
29753037
},
29763038
"nrqzValidated": {
3039+
"deprecated": true,
29773040
"description": "Output only. Set to `true` if a CPI has validated that they have coordinated with the National Quiet Zone office.",
29783041
"readOnly": true,
29793042
"type": "boolean"
@@ -3244,6 +3307,58 @@
32443307
},
32453308
"type": "object"
32463309
},
3310+
"SasPortalMigrateOrganizationMetadata": {
3311+
"description": "Long-running operation metadata message returned by the MigrateOrganization.",
3312+
"id": "SasPortalMigrateOrganizationMetadata",
3313+
"properties": {
3314+
"operationState": {
3315+
"description": "Output only. Current operation state",
3316+
"enum": [
3317+
"OPERATION_STATE_UNSPECIFIED",
3318+
"OPERATION_STATE_PENDING",
3319+
"OPERATION_STATE_RUNNING",
3320+
"OPERATION_STATE_SUCCEEDED",
3321+
"OPERATION_STATE_FAILED"
3322+
],
3323+
"enumDescriptions": [
3324+
"Unspecified.",
3325+
"Pending (Not started).",
3326+
"In-progress.",
3327+
"Done successfully.",
3328+
"Done with errors."
3329+
],
3330+
"readOnly": true,
3331+
"type": "string"
3332+
}
3333+
},
3334+
"type": "object"
3335+
},
3336+
"SasPortalMigrateOrganizationRequest": {
3337+
"description": "Request for [MigrateOrganization]. [spectrum.sas.portal.v1alpha1.Provisioning.MigrateOrganization]. GCP Project, Organization Info, and caller's GAIA ID should be retrieved from the RPC handler, and used to check authorization on SAS Portal organization and to create GCP Projects.",
3338+
"id": "SasPortalMigrateOrganizationRequest",
3339+
"properties": {
3340+
"organizationId": {
3341+
"description": "Required. Id of the SAS organization to be migrated.",
3342+
"format": "int64",
3343+
"type": "string"
3344+
}
3345+
},
3346+
"type": "object"
3347+
},
3348+
"SasPortalMigrateOrganizationResponse": {
3349+
"description": "Response for [MigrateOrganization]. [spectrum.sas.portal.v1alpha1.Provisioning.MigrateOrganization].",
3350+
"id": "SasPortalMigrateOrganizationResponse",
3351+
"properties": {
3352+
"deploymentAssociation": {
3353+
"description": "Optional. A list of deployment association that were created for the migration, or current associations if they already exist.",
3354+
"items": {
3355+
"$ref": "SasPortalDeploymentAssociation"
3356+
},
3357+
"type": "array"
3358+
}
3359+
},
3360+
"type": "object"
3361+
},
32473362
"SasPortalMoveDeploymentRequest": {
32483363
"description": "Request for MoveDeployment.",
32493364
"id": "SasPortalMoveDeploymentRequest",

0 commit comments

Comments
 (0)