@maxim_mazurok/gapi.client.prod_tt_sasportal-v1alpha1 0.0.20231127 → 0.0.20231130

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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.prod_tt_sasportal-v1alpha1",
3
- "version": "0.0.20231127",
3
+ "version": "0.0.20231130",
4
4
  "description": "TypeScript typings for SAS Portal API (Testing) v1alpha1",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
8
+ },
5
9
  "license": "MIT",
6
10
  "author": {
7
- "email": "maxim@mazurok.com",
8
11
  "name": "Maxim Mazurok",
12
+ "email": "maxim@mazurok.com",
9
13
  "url": "https://maxim.mazurok.com"
10
14
  },
11
- "repository": {
12
- "type": "git",
13
- "url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
14
- },
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
package/readme.md CHANGED
@@ -1,6 +1,5 @@
1
1
  # TypeScript typings for SAS Portal API (Testing) v1alpha1
2
2
 
3
-
4
3
  For detailed description please check [documentation](https://developers.google.com/spectrum-access-system/).
5
4
 
6
5
  ## Installing
@@ -25,10 +24,13 @@ gapi.load('client', () => {
25
24
  Then load api client wrapper:
26
25
 
27
26
  ```typescript
28
- gapi.client.load('https://prod-tt-sasportal.googleapis.com/$discovery/rest?version=v1alpha1', () => {
29
- // now we can use:
30
- // gapi.client.prod_tt_sasportal
31
- });
27
+ gapi.client.load(
28
+ 'https://prod-tt-sasportal.googleapis.com/$discovery/rest?version=v1alpha1',
29
+ () => {
30
+ // now we can use:
31
+ // gapi.client.prod_tt_sasportal
32
+ }
33
+ );
32
34
  ```
33
35
 
34
36
  ```typescript
@@ -45,97 +47,97 @@ Don't forget to authenticate your client before sending any request to resources
45
47
  // declare client_id registered in Google Developers Console
46
48
  var client_id = '',
47
49
  scope = [
48
- // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
49
- 'https://www.googleapis.com/auth/cloud-platform',
50
+ // See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
51
+ 'https://www.googleapis.com/auth/cloud-platform',
50
52
 
51
- // Read, create, update, and delete your SAS Portal data.
52
- 'https://www.googleapis.com/auth/sasportal',
53
- ],
54
- immediate = true;
53
+ // Read, create, update, and delete your SAS Portal data.
54
+ 'https://www.googleapis.com/auth/sasportal',
55
+ ],
56
+ immediate = true;
55
57
  // ...
56
58
 
57
59
  gapi.auth.authorize(
58
- { client_id: client_id, scope: scope, immediate: immediate },
60
+ {client_id: client_id, scope: scope, immediate: immediate},
59
61
  authResult => {
60
62
  if (authResult && !authResult.error) {
61
- /* handle successful authorization */
63
+ /* handle successful authorization */
62
64
  } else {
63
- /* handle authorization error */
65
+ /* handle authorization error */
64
66
  }
65
- });
67
+ }
68
+ );
66
69
  ```
67
70
 
68
71
  After that you can use SAS Portal API (Testing) resources: <!-- TODO: make this work for multiple namespaces -->
69
72
 
70
73
  ```typescript
71
-
72
74
  /*
73
75
  Checks whether a SAS deployment for the authentication context exists.
74
76
  */
75
- await gapi.client.prod_tt_sasportal.customers.checkHasProvisionedDeployment({ });
77
+ await gapi.client.prod_tt_sasportal.customers.checkHasProvisionedDeployment({});
76
78
 
77
79
  /*
78
80
  Returns a requested customer.
79
81
  */
80
- await gapi.client.prod_tt_sasportal.customers.get({ name: "name", });
82
+ await gapi.client.prod_tt_sasportal.customers.get({name: 'name'});
81
83
 
82
84
  /*
83
85
  Returns a list of requested customers.
84
86
  */
85
- await gapi.client.prod_tt_sasportal.customers.list({ });
87
+ await gapi.client.prod_tt_sasportal.customers.list({});
86
88
 
87
89
  /*
88
90
  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
91
  */
90
- await gapi.client.prod_tt_sasportal.customers.migrateOrganization({ });
92
+ await gapi.client.prod_tt_sasportal.customers.migrateOrganization({});
91
93
 
92
94
  /*
93
95
  Updates an existing customer.
94
96
  */
95
- await gapi.client.prod_tt_sasportal.customers.patch({ name: "name", });
97
+ await gapi.client.prod_tt_sasportal.customers.patch({name: 'name'});
96
98
 
97
99
  /*
98
100
  Creates a new SAS deployment through the GCP workflow. Creates a SAS organization if an organization match is not found.
99
101
  */
100
- await gapi.client.prod_tt_sasportal.customers.provisionDeployment({ });
102
+ await gapi.client.prod_tt_sasportal.customers.provisionDeployment({});
101
103
 
102
104
  /*
103
105
  Setups the a GCP Project to receive SAS Analytics messages via GCP Pub/Sub with a subscription to BigQuery. All the Pub/Sub topics and BigQuery tables are created automatically as part of this service.
104
106
  */
105
- await gapi.client.prod_tt_sasportal.customers.setupSasAnalytics({ });
107
+ await gapi.client.prod_tt_sasportal.customers.setupSasAnalytics({});
106
108
 
107
109
  /*
108
110
  Returns a requested deployment.
109
111
  */
110
- await gapi.client.prod_tt_sasportal.deployments.get({ name: "name", });
112
+ await gapi.client.prod_tt_sasportal.deployments.get({name: 'name'});
111
113
 
112
114
  /*
113
115
  Generates a secret to be used with the ValidateInstaller.
114
116
  */
115
- await gapi.client.prod_tt_sasportal.installer.generateSecret({ });
117
+ await gapi.client.prod_tt_sasportal.installer.generateSecret({});
116
118
 
117
119
  /*
118
120
  Validates the identity of a Certified Professional Installer (CPI).
119
121
  */
120
- await gapi.client.prod_tt_sasportal.installer.validate({ });
122
+ await gapi.client.prod_tt_sasportal.installer.validate({});
121
123
 
122
124
  /*
123
125
  Returns a requested node.
124
126
  */
125
- await gapi.client.prod_tt_sasportal.nodes.get({ name: "name", });
127
+ await gapi.client.prod_tt_sasportal.nodes.get({name: 'name'});
126
128
 
127
129
  /*
128
130
  Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
129
131
  */
130
- await gapi.client.prod_tt_sasportal.policies.get({ });
132
+ await gapi.client.prod_tt_sasportal.policies.get({});
131
133
 
132
134
  /*
133
135
  Sets the access control policy on the specified resource. Replaces any existing policy.
134
136
  */
135
- await gapi.client.prod_tt_sasportal.policies.set({ });
137
+ await gapi.client.prod_tt_sasportal.policies.set({});
136
138
 
137
139
  /*
138
140
  Returns permissions that a caller has on the specified resource.
139
141
  */
140
- await gapi.client.prod_tt_sasportal.policies.test({ });
142
+ await gapi.client.prod_tt_sasportal.policies.test({});
141
143
  ```