Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8d834f6

Browse files
committedJun 27, 2023
feat(prod_tt_sasportal): update the api
#### prod_tt_sasportal:v1alpha1 The following keys were added: - resources.customers.methods.checkHasProvisionedDeployment (Total Keys: 7) - resources.customers.methods.migrateOrganization (Total Keys: 8) - schemas.SasPortalCheckHasProvisionedDeploymentResponse (Total Keys: 3) - schemas.SasPortalDeploymentAssociation (Total Keys: 4) - schemas.SasPortalMigrateOrganizationMetadata (Total Keys: 4) - schemas.SasPortalMigrateOrganizationRequest (Total Keys: 4) - schemas.SasPortalMigrateOrganizationResponse (Total Keys: 4)
1 parent 3f51f92 commit 8d834f6

File tree

2 files changed

+179
-1
lines changed

2 files changed

+179
-1
lines changed
 

‎docs/dyn/prod_tt_sasportal_v1alpha1.customers.html

+65
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ <h2>Instance Methods</h2>
8989
</p>
9090
<p class="firstline">Returns the nodes Resource.</p>
9191

92+
<p class="toc_element">
93+
<code><a href="#checkHasProvisionedDeployment">checkHasProvisionedDeployment(x__xgafv=None)</a></code></p>
94+
<p class="firstline">Checks whether a SAS deployment for the authentication context exists.</p>
9295
<p class="toc_element">
9396
<code><a href="#close">close()</a></code></p>
9497
<p class="firstline">Close httplib2 connections.</p>
@@ -101,13 +104,34 @@ <h2>Instance Methods</h2>
101104
<p class="toc_element">
102105
<code><a href="#list_next">list_next()</a></code></p>
103106
<p class="firstline">Retrieves the next page of results.</p>
107+
<p class="toc_element">
108+
<code><a href="#migrateOrganization">migrateOrganization(body=None, x__xgafv=None)</a></code></p>
109+
<p class="firstline">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</p>
104110
<p class="toc_element">
105111
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
106112
<p class="firstline">Updates an existing customer.</p>
107113
<p class="toc_element">
108114
<code><a href="#provisionDeployment">provisionDeployment(body=None, x__xgafv=None)</a></code></p>
109115
<p class="firstline">Creates a new SAS deployment through the GCP workflow. Creates a SAS organization if an organization match is not found.</p>
110116
<h3>Method Details</h3>
117+
<div class="method">
118+
<code class="details" id="checkHasProvisionedDeployment">checkHasProvisionedDeployment(x__xgafv=None)</code>
119+
<pre>Checks whether a SAS deployment for the authentication context exists.
120+
121+
Args:
122+
x__xgafv: string, V1 error format.
123+
Allowed values
124+
1 - v1 error format
125+
2 - v2 error format
126+
127+
Returns:
128+
An object of the form:
129+
130+
{ # Response for [CheckHasProvisionedDeployment]. [spectrum.sas.portal.v1alpha1.Provisioning.CheckHasProvisionedDeployment].
131+
&quot;hasProvisionedDeployment&quot;: True or False, # Whether a SAS deployment for the authentication context exists.
132+
}</pre>
133+
</div>
134+
111135
<div class="method">
112136
<code class="details" id="close">close()</code>
113137
<pre>Close httplib2 connections.</pre>
@@ -179,6 +203,47 @@ <h3>Method Details</h3>
179203
</pre>
180204
</div>
181205

206+
<div class="method">
207+
<code class="details" id="migrateOrganization">migrateOrganization(body=None, x__xgafv=None)</code>
208+
<pre>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
209+
210+
Args:
211+
body: object, The request body.
212+
The object takes the form of:
213+
214+
{ # Request for [MigrateOrganization]. [spectrum.sas.portal.v1alpha1.Provisioning.MigrateOrganization]. GCP Project, Organization Info, and caller&#x27;s GAIA ID should be retrieved from the RPC handler, and used to check authorization on SAS Portal organization and to create GCP Projects.
215+
&quot;organizationId&quot;: &quot;A String&quot;, # Required. Id of the SAS organization to be migrated.
216+
}
217+
218+
x__xgafv: string, V1 error format.
219+
Allowed values
220+
1 - v1 error format
221+
2 - v2 error format
222+
223+
Returns:
224+
An object of the form:
225+
226+
{ # This resource represents a long-running operation that is the result of a network API call.
227+
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
228+
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
229+
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
230+
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
231+
{
232+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
233+
},
234+
],
235+
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
236+
},
237+
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
238+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
239+
},
240+
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
241+
&quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
242+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
243+
},
244+
}</pre>
245+
</div>
246+
182247
<div class="method">
183248
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
184249
<pre>Updates an existing customer.

‎googleapiclient/discovery_cache/documents/prod_tt_sasportal.v1alpha1.json

+114-1
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": "20230625",
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": {
@@ -3244,6 +3305,58 @@
32443305
},
32453306
"type": "object"
32463307
},
3308+
"SasPortalMigrateOrganizationMetadata": {
3309+
"description": "Long-running operation metadata message returned by the MigrateOrganization.",
3310+
"id": "SasPortalMigrateOrganizationMetadata",
3311+
"properties": {
3312+
"operationState": {
3313+
"description": "Output only. Current operation state",
3314+
"enum": [
3315+
"OPERATION_STATE_UNSPECIFIED",
3316+
"OPERATION_STATE_PENDING",
3317+
"OPERATION_STATE_RUNNING",
3318+
"OPERATION_STATE_SUCCEEDED",
3319+
"OPERATION_STATE_FAILED"
3320+
],
3321+
"enumDescriptions": [
3322+
"Unspecified.",
3323+
"Pending (Not started).",
3324+
"In-progress.",
3325+
"Done successfully.",
3326+
"Done with errors."
3327+
],
3328+
"readOnly": true,
3329+
"type": "string"
3330+
}
3331+
},
3332+
"type": "object"
3333+
},
3334+
"SasPortalMigrateOrganizationRequest": {
3335+
"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.",
3336+
"id": "SasPortalMigrateOrganizationRequest",
3337+
"properties": {
3338+
"organizationId": {
3339+
"description": "Required. Id of the SAS organization to be migrated.",
3340+
"format": "int64",
3341+
"type": "string"
3342+
}
3343+
},
3344+
"type": "object"
3345+
},
3346+
"SasPortalMigrateOrganizationResponse": {
3347+
"description": "Response for [MigrateOrganization]. [spectrum.sas.portal.v1alpha1.Provisioning.MigrateOrganization].",
3348+
"id": "SasPortalMigrateOrganizationResponse",
3349+
"properties": {
3350+
"deploymentAssociation": {
3351+
"description": "Optional. A list of deployment association that were created for the migration, or current associations if they already exist.",
3352+
"items": {
3353+
"$ref": "SasPortalDeploymentAssociation"
3354+
},
3355+
"type": "array"
3356+
}
3357+
},
3358+
"type": "object"
3359+
},
32473360
"SasPortalMoveDeploymentRequest": {
32483361
"description": "Request for MoveDeployment.",
32493362
"id": "SasPortalMoveDeploymentRequest",

0 commit comments

Comments
 (0)
Please sign in to comment.