@maxim_mazurok/gapi.client.prod_tt_sasportal-v1alpha1 0.0.20230612 → 0.0.20230625
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +143 -1
- package/package.json +1 -1
- package/readme.md +10 -0
- package/tests.ts +12 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://prod-tt-sasportal.googleapis.com/$discovery/rest?version=v1alpha1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230625
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -41,6 +41,11 @@ declare namespace gapi.client {
|
|
|
41
41
|
score?:
|
|
42
42
|
number;
|
|
43
43
|
}
|
|
44
|
+
interface SasPortalCheckHasProvisionedDeploymentResponse {
|
|
45
|
+
/** Whether a SAS deployment for the authentication context exists. */
|
|
46
|
+
hasProvisionedDeployment?:
|
|
47
|
+
boolean;
|
|
48
|
+
}
|
|
44
49
|
interface SasPortalCreateSignedDeviceRequest {
|
|
45
50
|
/** Required. JSON Web Token signed using a CPI private key. Payload must be the JSON encoding of the device. The user_id field must be set. */
|
|
46
51
|
encodedDevice?:
|
|
@@ -74,6 +79,14 @@ declare namespace gapi.client {
|
|
|
74
79
|
sasUserIds?:
|
|
75
80
|
string[];
|
|
76
81
|
}
|
|
82
|
+
interface SasPortalDeploymentAssociation {
|
|
83
|
+
/** GCP project id of the associated project. */
|
|
84
|
+
gcpProjectId?:
|
|
85
|
+
string;
|
|
86
|
+
/** User id of the deployment. */
|
|
87
|
+
userId?:
|
|
88
|
+
string;
|
|
89
|
+
}
|
|
77
90
|
interface SasPortalDevice {
|
|
78
91
|
/** Output only. Current configuration of the device as registered to the SAS. */
|
|
79
92
|
activeConfig?:
|
|
@@ -371,6 +384,21 @@ declare namespace gapi.client {
|
|
|
371
384
|
nodes?:
|
|
372
385
|
SasPortalNode[];
|
|
373
386
|
}
|
|
387
|
+
interface SasPortalMigrateOrganizationMetadata {
|
|
388
|
+
/** Output only. Current operation state */
|
|
389
|
+
operationState?:
|
|
390
|
+
string;
|
|
391
|
+
}
|
|
392
|
+
interface SasPortalMigrateOrganizationRequest {
|
|
393
|
+
/** Required. Id of the SAS organization to be migrated. */
|
|
394
|
+
organizationId?:
|
|
395
|
+
string;
|
|
396
|
+
}
|
|
397
|
+
interface SasPortalMigrateOrganizationResponse {
|
|
398
|
+
/** Optional. A list of deployment association that were created for the migration, or current associations if they already exist. */
|
|
399
|
+
deploymentAssociation?:
|
|
400
|
+
SasPortalDeploymentAssociation[];
|
|
401
|
+
}
|
|
374
402
|
interface SasPortalMoveDeploymentRequest {
|
|
375
403
|
/** Required. The name of the new parent resource node or customer to reparent the deployment under. */
|
|
376
404
|
destination?:
|
|
@@ -2625,6 +2653,42 @@ declare namespace gapi.client {
|
|
|
2625
2653
|
NodesResource;
|
|
2626
2654
|
}
|
|
2627
2655
|
interface CustomersResource {
|
|
2656
|
+
/** Checks whether a SAS deployment for the authentication context exists. */
|
|
2657
|
+
checkHasProvisionedDeployment(request?: {
|
|
2658
|
+
/** V1 error format. */
|
|
2659
|
+
"$.xgafv"?:
|
|
2660
|
+
string;
|
|
2661
|
+
/** OAuth access token. */
|
|
2662
|
+
access_token?:
|
|
2663
|
+
string;
|
|
2664
|
+
/** Data format for response. */
|
|
2665
|
+
alt?:
|
|
2666
|
+
string;
|
|
2667
|
+
/** JSONP */
|
|
2668
|
+
callback?:
|
|
2669
|
+
string;
|
|
2670
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2671
|
+
fields?:
|
|
2672
|
+
string;
|
|
2673
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2674
|
+
key?:
|
|
2675
|
+
string;
|
|
2676
|
+
/** OAuth 2.0 token for the current user. */
|
|
2677
|
+
oauth_token?:
|
|
2678
|
+
string;
|
|
2679
|
+
/** Returns response with indentations and line breaks. */
|
|
2680
|
+
prettyPrint?:
|
|
2681
|
+
boolean;
|
|
2682
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2683
|
+
quotaUser?:
|
|
2684
|
+
string;
|
|
2685
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2686
|
+
upload_protocol?:
|
|
2687
|
+
string;
|
|
2688
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2689
|
+
uploadType?:
|
|
2690
|
+
string;
|
|
2691
|
+
}): Request<SasPortalCheckHasProvisionedDeploymentResponse>;
|
|
2628
2692
|
/** Returns a requested customer. */
|
|
2629
2693
|
get(request?: {
|
|
2630
2694
|
/** V1 error format. */
|
|
@@ -2706,6 +2770,84 @@ declare namespace gapi.client {
|
|
|
2706
2770
|
uploadType?:
|
|
2707
2771
|
string;
|
|
2708
2772
|
}): Request<SasPortalListCustomersResponse>;
|
|
2773
|
+
/**
|
|
2774
|
+
* 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
|
|
2775
|
+
* command. go/sas-legacy-customer-migration
|
|
2776
|
+
*/
|
|
2777
|
+
migrateOrganization(request: {
|
|
2778
|
+
/** V1 error format. */
|
|
2779
|
+
"$.xgafv"?:
|
|
2780
|
+
string;
|
|
2781
|
+
/** OAuth access token. */
|
|
2782
|
+
access_token?:
|
|
2783
|
+
string;
|
|
2784
|
+
/** Data format for response. */
|
|
2785
|
+
alt?:
|
|
2786
|
+
string;
|
|
2787
|
+
/** JSONP */
|
|
2788
|
+
callback?:
|
|
2789
|
+
string;
|
|
2790
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2791
|
+
fields?:
|
|
2792
|
+
string;
|
|
2793
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2794
|
+
key?:
|
|
2795
|
+
string;
|
|
2796
|
+
/** OAuth 2.0 token for the current user. */
|
|
2797
|
+
oauth_token?:
|
|
2798
|
+
string;
|
|
2799
|
+
/** Returns response with indentations and line breaks. */
|
|
2800
|
+
prettyPrint?:
|
|
2801
|
+
boolean;
|
|
2802
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2803
|
+
quotaUser?:
|
|
2804
|
+
string;
|
|
2805
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2806
|
+
upload_protocol?:
|
|
2807
|
+
string;
|
|
2808
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2809
|
+
uploadType?:
|
|
2810
|
+
string;
|
|
2811
|
+
/** Request body */
|
|
2812
|
+
resource:
|
|
2813
|
+
SasPortalMigrateOrganizationRequest;
|
|
2814
|
+
}): Request<SasPortalOperation>;
|
|
2815
|
+
migrateOrganization(request: {
|
|
2816
|
+
/** V1 error format. */
|
|
2817
|
+
"$.xgafv"?:
|
|
2818
|
+
string;
|
|
2819
|
+
/** OAuth access token. */
|
|
2820
|
+
access_token?:
|
|
2821
|
+
string;
|
|
2822
|
+
/** Data format for response. */
|
|
2823
|
+
alt?:
|
|
2824
|
+
string;
|
|
2825
|
+
/** JSONP */
|
|
2826
|
+
callback?:
|
|
2827
|
+
string;
|
|
2828
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2829
|
+
fields?:
|
|
2830
|
+
string;
|
|
2831
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2832
|
+
key?:
|
|
2833
|
+
string;
|
|
2834
|
+
/** OAuth 2.0 token for the current user. */
|
|
2835
|
+
oauth_token?:
|
|
2836
|
+
string;
|
|
2837
|
+
/** Returns response with indentations and line breaks. */
|
|
2838
|
+
prettyPrint?:
|
|
2839
|
+
boolean;
|
|
2840
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2841
|
+
quotaUser?:
|
|
2842
|
+
string;
|
|
2843
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2844
|
+
upload_protocol?:
|
|
2845
|
+
string;
|
|
2846
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2847
|
+
uploadType?:
|
|
2848
|
+
string;
|
|
2849
|
+
},
|
|
2850
|
+
body: SasPortalMigrateOrganizationRequest): Request<SasPortalOperation>;
|
|
2709
2851
|
/** Updates an existing customer. */
|
|
2710
2852
|
patch(request: {
|
|
2711
2853
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -69,6 +69,11 @@ After that you can use SAS Portal API (Testing) resources: <!-- TODO: make this
|
|
|
69
69
|
|
|
70
70
|
```typescript
|
|
71
71
|
|
|
72
|
+
/*
|
|
73
|
+
Checks whether a SAS deployment for the authentication context exists.
|
|
74
|
+
*/
|
|
75
|
+
await gapi.client.prod_tt_sasportal.customers.checkHasProvisionedDeployment({ });
|
|
76
|
+
|
|
72
77
|
/*
|
|
73
78
|
Returns a requested customer.
|
|
74
79
|
*/
|
|
@@ -79,6 +84,11 @@ Returns a list of requested customers.
|
|
|
79
84
|
*/
|
|
80
85
|
await gapi.client.prod_tt_sasportal.customers.list({ });
|
|
81
86
|
|
|
87
|
+
/*
|
|
88
|
+
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
|
|
89
|
+
*/
|
|
90
|
+
await gapi.client.prod_tt_sasportal.customers.migrateOrganization({ });
|
|
91
|
+
|
|
82
92
|
/*
|
|
83
93
|
Updates an existing customer.
|
|
84
94
|
*/
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230625
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -31,6 +31,9 @@ gapi.load('client', async () => {
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
async function run() {
|
|
34
|
+
/** Checks whether a SAS deployment for the authentication context exists. */
|
|
35
|
+
await gapi.client.prod_tt_sasportal.customers.checkHasProvisionedDeployment({
|
|
36
|
+
});
|
|
34
37
|
/** Returns a requested customer. */
|
|
35
38
|
await gapi.client.prod_tt_sasportal.customers.get({
|
|
36
39
|
name: "Test string",
|
|
@@ -40,6 +43,14 @@ gapi.load('client', async () => {
|
|
|
40
43
|
pageSize: 42,
|
|
41
44
|
pageToken: "Test string",
|
|
42
45
|
});
|
|
46
|
+
/**
|
|
47
|
+
* 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
|
|
48
|
+
* command. go/sas-legacy-customer-migration
|
|
49
|
+
*/
|
|
50
|
+
await gapi.client.prod_tt_sasportal.customers.migrateOrganization({
|
|
51
|
+
}, {
|
|
52
|
+
organizationId: "Test string",
|
|
53
|
+
});
|
|
43
54
|
/** Updates an existing customer. */
|
|
44
55
|
await gapi.client.prod_tt_sasportal.customers.patch({
|
|
45
56
|
name: "Test string",
|