1.0.20220727 • Published 2 years ago

@maxim_mazurok/gapi.client.sasportal v1.0.20220727

Weekly downloads
76
License
MIT
Repository
github
Last release
2 years ago

TypeScript typings for SAS Portal API v1alpha1

For detailed description please check documentation.

Installing

Install typings for SAS Portal API:

npm install @types/gapi.client.sasportal@v1alpha1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load('sasportal', 'v1alpha1', () => {
  // now we can use gapi.client.sasportal
  // ...
});

Don't forget to authenticate your client before sending any request to resources:

// declare client_id registered in Google Developers Console
var client_id = '',
  scope = [ 
      // Read, create, update, and delete your SAS Portal data.
      'https://www.googleapis.com/auth/sasportal',

      // See your primary Google Account email address
      'https://www.googleapis.com/auth/userinfo.email',
    ],
    immediate = true;
// ...

gapi.auth.authorize(
  { client_id: client_id, scope: scope, immediate: immediate },
  authResult => {
    if (authResult && !authResult.error) {
        /* handle successful authorization */
    } else {
        /* handle authorization error */
    }
});

After that you can use SAS Portal API resources:

/*
Returns a requested customer.
*/
await gapi.client.sasportal.customers.get({ name: "name",  });

/*
Returns a list of requested customers.
*/
await gapi.client.sasportal.customers.list({  });

/*
Updates an existing customer.
*/
await gapi.client.sasportal.customers.patch({ name: "name",  });

/*
Returns a requested deployment.
*/
await gapi.client.sasportal.deployments.get({ name: "name",  });

/*
Generates a secret to be used with the ValidateInstaller.
*/
await gapi.client.sasportal.installer.generateSecret({  });

/*
Validates the identity of a Certified Professional Installer (CPI).
*/
await gapi.client.sasportal.installer.validate({  });

/*
Returns a requested node.
*/
await gapi.client.sasportal.nodes.get({ name: "name",  });

/*
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
*/
await gapi.client.sasportal.policies.get({  });

/*
Sets the access control policy on the specified resource. Replaces any existing policy.
*/
await gapi.client.sasportal.policies.set({  });

/*
Returns permissions that a caller has on the specified resource.
*/
await gapi.client.sasportal.policies.test({  });
1.0.20220621

2 years ago

1.0.20220622

2 years ago

1.0.20220706

2 years ago

1.0.20220703

2 years ago

1.0.20220624

2 years ago

1.0.20220708

2 years ago

1.0.20220718

2 years ago

1.0.20220715

2 years ago

1.0.20220713

2 years ago

1.0.20220714

2 years ago

1.0.20220711

2 years ago

1.0.20220712

2 years ago

1.0.20220719

2 years ago

1.0.20220720

2 years ago

1.0.20220726

2 years ago

1.0.20220727

2 years ago

1.0.20220725

2 years ago

1.0.20220722

2 years ago

1.0.20220428

2 years ago

1.0.20220519

2 years ago

1.0.20220517

2 years ago

1.0.20220419

2 years ago

1.0.20220425

2 years ago

1.0.20220319

2 years ago

1.0.20220401

2 years ago

1.0.20220324

2 years ago

1.0.20220322

2 years ago

1.0.20220405

2 years ago

1.0.20220328

2 years ago

1.0.20220404

2 years ago

1.0.20220225

2 years ago

1.0.20220301

2 years ago

1.0.20220308

2 years ago

1.0.20220316

2 years ago

1.0.20220219

2 years ago

1.0.20220224

2 years ago

1.0.20220110

2 years ago

1.0.20220125

2 years ago

1.0.20220208

2 years ago

1.0.20220214

2 years ago

1.0.20211105

2 years ago

1.0.20211014

3 years ago

1.0.20210930

3 years ago

1.0.20210928

3 years ago

1.0.20210924

3 years ago

1.0.20210921

3 years ago

1.0.20210910

3 years ago

1.0.20210830

3 years ago

1.0.20210827

3 years ago

1.0.20210826

3 years ago

1.0.20210819

3 years ago

1.0.20210823

3 years ago

1.0.20210809

3 years ago

1.0.20210802

3 years ago

1.0.20210723

3 years ago

1.0.20210715

3 years ago

1.0.20210709

3 years ago

1.0.20210625

3 years ago

1.0.20210618

3 years ago

1.0.20210613

3 years ago

1.0.20210607

3 years ago

1.0.20210527

3 years ago

1.0.20210520

3 years ago

1.0.20210514

3 years ago

1.0.20210508

3 years ago

1.0.20210504

3 years ago

1.0.20210428

3 years ago

1.0.20210419

3 years ago

1.0.20210417

3 years ago

1.0.20210413

3 years ago

1.0.20210414

3 years ago

1.0.20210410

3 years ago

1.0.20210403

3 years ago

1.0.20210330

3 years ago

1.0.20210319

3 years ago

1.0.20210318

3 years ago

1.0.20210315

3 years ago

1.0.20210308

3 years ago

1.0.20210225

3 years ago

1.0.20210223

3 years ago

1.0.20210218

3 years ago

1.0.20210206

3 years ago

1.0.20210202

3 years ago

1.0.20210118

3 years ago

1.0.20210105

3 years ago

1.0.20201208

3 years ago

1.0.20201127

3 years ago

1.0.20201118

3 years ago

1.0.20201113

3 years ago

1.0.20201112

3 years ago