change module name
This commit is contained in:
parent
2b7c845342
commit
8fff4c6068
38 changed files with 185 additions and 219 deletions
|
@ -34,6 +34,7 @@ task buildJavascriptClient(type: org.openapitools.generator.gradle.plugin.tasks.
|
|||
outputDir = "$rootDir/javascript"
|
||||
configOptions = [
|
||||
packageName: "garage",
|
||||
moduleName: "garage",
|
||||
packageVersion: "0.8.0",
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
.babelrc
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
.travis.yml
|
||||
README.md
|
||||
docs/AddKeyRequest.md
|
||||
|
@ -76,37 +75,3 @@ src/model/UpdateBucketRequestWebsiteAccess.js
|
|||
src/model/UpdateKeyRequest.js
|
||||
src/model/UpdateKeyRequestAllow.js
|
||||
src/model/UpdateKeyRequestDeny.js
|
||||
test/api/BucketApi.spec.js
|
||||
test/api/KeyApi.spec.js
|
||||
test/api/LayoutApi.spec.js
|
||||
test/api/NodesApi.spec.js
|
||||
test/model/AddKeyRequest.spec.js
|
||||
test/model/AddNode200ResponseInner.spec.js
|
||||
test/model/AllowBucketKeyRequest.spec.js
|
||||
test/model/AllowBucketKeyRequestPermissions.spec.js
|
||||
test/model/BucketInfo.spec.js
|
||||
test/model/BucketInfoQuotas.spec.js
|
||||
test/model/BucketInfoWebsiteConfig.spec.js
|
||||
test/model/BucketKeyInfo.spec.js
|
||||
test/model/ClusterLayout.spec.js
|
||||
test/model/CreateBucketRequest.spec.js
|
||||
test/model/CreateBucketRequestLocalAlias.spec.js
|
||||
test/model/CreateBucketRequestLocalAliasAllow.spec.js
|
||||
test/model/GetNodes200Response.spec.js
|
||||
test/model/ImportKeyRequest.spec.js
|
||||
test/model/KeyInfo.spec.js
|
||||
test/model/KeyInfoBucketsInner.spec.js
|
||||
test/model/KeyInfoBucketsInnerPermissions.spec.js
|
||||
test/model/KeyInfoPermissions.spec.js
|
||||
test/model/LayoutVersion.spec.js
|
||||
test/model/ListBuckets200ResponseInner.spec.js
|
||||
test/model/ListBuckets200ResponseInnerLocalAliasesInner.spec.js
|
||||
test/model/ListKeys200ResponseInner.spec.js
|
||||
test/model/NodeClusterInfo.spec.js
|
||||
test/model/NodeNetworkInfo.spec.js
|
||||
test/model/UpdateBucketRequest.spec.js
|
||||
test/model/UpdateBucketRequestQuotas.spec.js
|
||||
test/model/UpdateBucketRequestWebsiteAccess.spec.js
|
||||
test/model/UpdateKeyRequest.spec.js
|
||||
test/model/UpdateKeyRequestAllow.spec.js
|
||||
test/model/UpdateKeyRequestDeny.spec.js
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# garage_administration_api_v0garage_v0_8_0
|
||||
|
||||
GarageAdministrationApiV0garageV080 - JavaScript client for garage_administration_api_v0garage_v0_8_0
|
||||
garage - JavaScript client for garage_administration_api_v0garage_v0_8_0
|
||||
Administrate your Garage cluster programatically, including status, layout, keys, buckets, and maintainance tasks.
|
||||
|
||||
*Disclaimer: The API is not stable yet, hence its v0 tag. The API can change at any time, and changes can include breaking backward compatibility. Read the changelog and upgrade your scripts before upgrading. Additionnaly, this specification is very early stage and can contain bugs, especially on error return codes/types that are not tested yet. Do not expect a well finished and polished product!*
|
||||
|
@ -101,15 +101,15 @@ module: {
|
|||
Please follow the [installation](#installation) instruction and execute the following JS code:
|
||||
|
||||
```javascript
|
||||
var GarageAdministrationApiV0garageV080 = require('garage_administration_api_v0garage_v0_8_0');
|
||||
var garage = require('garage_administration_api_v0garage_v0_8_0');
|
||||
|
||||
var defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
var defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
var bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
var api = new GarageAdministrationApiV0garageV080.BucketApi()
|
||||
var allowBucketKeyRequest = new GarageAdministrationApiV0garageV080.AllowBucketKeyRequest(); // {AllowBucketKeyRequest} Aliases to put on the new bucket
|
||||
var api = new garage.BucketApi()
|
||||
var allowBucketKeyRequest = new garage.AllowBucketKeyRequest(); // {AllowBucketKeyRequest} Aliases to put on the new bucket
|
||||
var callback = function(error, data, response) {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -127,65 +127,65 @@ All URIs are relative to *http://localhost:3903/v0*
|
|||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**allowBucketKey**](docs/BucketApi.md#allowBucketKey) | **POST** /bucket/allow | Allow key
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**createBucket**](docs/BucketApi.md#createBucket) | **POST** /bucket | Create a bucket
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**deleteBucket**](docs/BucketApi.md#deleteBucket) | **DELETE** /bucket?id={bucket_id} | Delete a bucket
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**deleteBucketGlobalAlias**](docs/BucketApi.md#deleteBucketGlobalAlias) | **DELETE** /bucket/alias/global | Delete a global alias
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**deleteBucketLocalAlias**](docs/BucketApi.md#deleteBucketLocalAlias) | **DELETE** /bucket/alias/local | Delete a local alias
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**denyBucketKey**](docs/BucketApi.md#denyBucketKey) | **POST** /bucket/deny | Deny key
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**findBucketInfo**](docs/BucketApi.md#findBucketInfo) | **GET** /bucket?globalAlias={alias} | Find a bucket
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**getBucketInfo**](docs/BucketApi.md#getBucketInfo) | **GET** /bucket?id={bucket_id} | Get a bucket
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**listBuckets**](docs/BucketApi.md#listBuckets) | **GET** /bucket | List all buckets
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**putBucketGlobalAlias**](docs/BucketApi.md#putBucketGlobalAlias) | **PUT** /bucket/alias/global | Add a global alias
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**putBucketLocalAlias**](docs/BucketApi.md#putBucketLocalAlias) | **PUT** /bucket/alias/local | Add a local alias
|
||||
*GarageAdministrationApiV0garageV080.BucketApi* | [**updateBucket**](docs/BucketApi.md#updateBucket) | **PUT** /bucket?id={bucket_id} | Update a bucket
|
||||
*GarageAdministrationApiV0garageV080.KeyApi* | [**addKey**](docs/KeyApi.md#addKey) | **POST** /key | Create a new API key
|
||||
*GarageAdministrationApiV0garageV080.KeyApi* | [**deleteKey**](docs/KeyApi.md#deleteKey) | **DELETE** /key?id={access_key} | Delete a key
|
||||
*GarageAdministrationApiV0garageV080.KeyApi* | [**getKey**](docs/KeyApi.md#getKey) | **GET** /key?id={access_key} | Get key information
|
||||
*GarageAdministrationApiV0garageV080.KeyApi* | [**importKey**](docs/KeyApi.md#importKey) | **POST** /key/import | Import an existing key
|
||||
*GarageAdministrationApiV0garageV080.KeyApi* | [**listKeys**](docs/KeyApi.md#listKeys) | **GET** /key | List all keys
|
||||
*GarageAdministrationApiV0garageV080.KeyApi* | [**searchKey**](docs/KeyApi.md#searchKey) | **GET** /key?search={pattern} | Select key by pattern
|
||||
*GarageAdministrationApiV0garageV080.KeyApi* | [**updateKey**](docs/KeyApi.md#updateKey) | **POST** /key?id={access_key} | Update a key
|
||||
*GarageAdministrationApiV0garageV080.LayoutApi* | [**addLayout**](docs/LayoutApi.md#addLayout) | **POST** /layout | Send modifications to the cluster layout
|
||||
*GarageAdministrationApiV0garageV080.LayoutApi* | [**applyLayout**](docs/LayoutApi.md#applyLayout) | **POST** /layout/apply | Apply staged layout
|
||||
*GarageAdministrationApiV0garageV080.LayoutApi* | [**getLayout**](docs/LayoutApi.md#getLayout) | **GET** /layout | Details on the current and staged layout
|
||||
*GarageAdministrationApiV0garageV080.LayoutApi* | [**revertLayout**](docs/LayoutApi.md#revertLayout) | **POST** /layout/revert | Clear staged layout
|
||||
*GarageAdministrationApiV0garageV080.NodesApi* | [**addNode**](docs/NodesApi.md#addNode) | **POST** /connect | Connect target node to other Garage nodes
|
||||
*GarageAdministrationApiV0garageV080.NodesApi* | [**getNodes**](docs/NodesApi.md#getNodes) | **GET** /status | Status of this node and other nodes in the cluster
|
||||
*garage.BucketApi* | [**allowBucketKey**](docs/BucketApi.md#allowBucketKey) | **POST** /bucket/allow | Allow key
|
||||
*garage.BucketApi* | [**createBucket**](docs/BucketApi.md#createBucket) | **POST** /bucket | Create a bucket
|
||||
*garage.BucketApi* | [**deleteBucket**](docs/BucketApi.md#deleteBucket) | **DELETE** /bucket?id={bucket_id} | Delete a bucket
|
||||
*garage.BucketApi* | [**deleteBucketGlobalAlias**](docs/BucketApi.md#deleteBucketGlobalAlias) | **DELETE** /bucket/alias/global | Delete a global alias
|
||||
*garage.BucketApi* | [**deleteBucketLocalAlias**](docs/BucketApi.md#deleteBucketLocalAlias) | **DELETE** /bucket/alias/local | Delete a local alias
|
||||
*garage.BucketApi* | [**denyBucketKey**](docs/BucketApi.md#denyBucketKey) | **POST** /bucket/deny | Deny key
|
||||
*garage.BucketApi* | [**findBucketInfo**](docs/BucketApi.md#findBucketInfo) | **GET** /bucket?globalAlias={alias} | Find a bucket
|
||||
*garage.BucketApi* | [**getBucketInfo**](docs/BucketApi.md#getBucketInfo) | **GET** /bucket?id={bucket_id} | Get a bucket
|
||||
*garage.BucketApi* | [**listBuckets**](docs/BucketApi.md#listBuckets) | **GET** /bucket | List all buckets
|
||||
*garage.BucketApi* | [**putBucketGlobalAlias**](docs/BucketApi.md#putBucketGlobalAlias) | **PUT** /bucket/alias/global | Add a global alias
|
||||
*garage.BucketApi* | [**putBucketLocalAlias**](docs/BucketApi.md#putBucketLocalAlias) | **PUT** /bucket/alias/local | Add a local alias
|
||||
*garage.BucketApi* | [**updateBucket**](docs/BucketApi.md#updateBucket) | **PUT** /bucket?id={bucket_id} | Update a bucket
|
||||
*garage.KeyApi* | [**addKey**](docs/KeyApi.md#addKey) | **POST** /key | Create a new API key
|
||||
*garage.KeyApi* | [**deleteKey**](docs/KeyApi.md#deleteKey) | **DELETE** /key?id={access_key} | Delete a key
|
||||
*garage.KeyApi* | [**getKey**](docs/KeyApi.md#getKey) | **GET** /key?id={access_key} | Get key information
|
||||
*garage.KeyApi* | [**importKey**](docs/KeyApi.md#importKey) | **POST** /key/import | Import an existing key
|
||||
*garage.KeyApi* | [**listKeys**](docs/KeyApi.md#listKeys) | **GET** /key | List all keys
|
||||
*garage.KeyApi* | [**searchKey**](docs/KeyApi.md#searchKey) | **GET** /key?search={pattern} | Select key by pattern
|
||||
*garage.KeyApi* | [**updateKey**](docs/KeyApi.md#updateKey) | **POST** /key?id={access_key} | Update a key
|
||||
*garage.LayoutApi* | [**addLayout**](docs/LayoutApi.md#addLayout) | **POST** /layout | Send modifications to the cluster layout
|
||||
*garage.LayoutApi* | [**applyLayout**](docs/LayoutApi.md#applyLayout) | **POST** /layout/apply | Apply staged layout
|
||||
*garage.LayoutApi* | [**getLayout**](docs/LayoutApi.md#getLayout) | **GET** /layout | Details on the current and staged layout
|
||||
*garage.LayoutApi* | [**revertLayout**](docs/LayoutApi.md#revertLayout) | **POST** /layout/revert | Clear staged layout
|
||||
*garage.NodesApi* | [**addNode**](docs/NodesApi.md#addNode) | **POST** /connect | Connect target node to other Garage nodes
|
||||
*garage.NodesApi* | [**getNodes**](docs/NodesApi.md#getNodes) | **GET** /status | Status of this node and other nodes in the cluster
|
||||
|
||||
|
||||
## Documentation for Models
|
||||
|
||||
- [GarageAdministrationApiV0garageV080.AddKeyRequest](docs/AddKeyRequest.md)
|
||||
- [GarageAdministrationApiV0garageV080.AddNode200ResponseInner](docs/AddNode200ResponseInner.md)
|
||||
- [GarageAdministrationApiV0garageV080.AllowBucketKeyRequest](docs/AllowBucketKeyRequest.md)
|
||||
- [GarageAdministrationApiV0garageV080.AllowBucketKeyRequestPermissions](docs/AllowBucketKeyRequestPermissions.md)
|
||||
- [GarageAdministrationApiV0garageV080.BucketInfo](docs/BucketInfo.md)
|
||||
- [GarageAdministrationApiV0garageV080.BucketInfoQuotas](docs/BucketInfoQuotas.md)
|
||||
- [GarageAdministrationApiV0garageV080.BucketInfoWebsiteConfig](docs/BucketInfoWebsiteConfig.md)
|
||||
- [GarageAdministrationApiV0garageV080.BucketKeyInfo](docs/BucketKeyInfo.md)
|
||||
- [GarageAdministrationApiV0garageV080.ClusterLayout](docs/ClusterLayout.md)
|
||||
- [GarageAdministrationApiV0garageV080.CreateBucketRequest](docs/CreateBucketRequest.md)
|
||||
- [GarageAdministrationApiV0garageV080.CreateBucketRequestLocalAlias](docs/CreateBucketRequestLocalAlias.md)
|
||||
- [GarageAdministrationApiV0garageV080.CreateBucketRequestLocalAliasAllow](docs/CreateBucketRequestLocalAliasAllow.md)
|
||||
- [GarageAdministrationApiV0garageV080.GetNodes200Response](docs/GetNodes200Response.md)
|
||||
- [GarageAdministrationApiV0garageV080.ImportKeyRequest](docs/ImportKeyRequest.md)
|
||||
- [GarageAdministrationApiV0garageV080.KeyInfo](docs/KeyInfo.md)
|
||||
- [GarageAdministrationApiV0garageV080.KeyInfoBucketsInner](docs/KeyInfoBucketsInner.md)
|
||||
- [GarageAdministrationApiV0garageV080.KeyInfoBucketsInnerPermissions](docs/KeyInfoBucketsInnerPermissions.md)
|
||||
- [GarageAdministrationApiV0garageV080.KeyInfoPermissions](docs/KeyInfoPermissions.md)
|
||||
- [GarageAdministrationApiV0garageV080.LayoutVersion](docs/LayoutVersion.md)
|
||||
- [GarageAdministrationApiV0garageV080.ListBuckets200ResponseInner](docs/ListBuckets200ResponseInner.md)
|
||||
- [GarageAdministrationApiV0garageV080.ListBuckets200ResponseInnerLocalAliasesInner](docs/ListBuckets200ResponseInnerLocalAliasesInner.md)
|
||||
- [GarageAdministrationApiV0garageV080.ListKeys200ResponseInner](docs/ListKeys200ResponseInner.md)
|
||||
- [GarageAdministrationApiV0garageV080.NodeClusterInfo](docs/NodeClusterInfo.md)
|
||||
- [GarageAdministrationApiV0garageV080.NodeNetworkInfo](docs/NodeNetworkInfo.md)
|
||||
- [GarageAdministrationApiV0garageV080.UpdateBucketRequest](docs/UpdateBucketRequest.md)
|
||||
- [GarageAdministrationApiV0garageV080.UpdateBucketRequestQuotas](docs/UpdateBucketRequestQuotas.md)
|
||||
- [GarageAdministrationApiV0garageV080.UpdateBucketRequestWebsiteAccess](docs/UpdateBucketRequestWebsiteAccess.md)
|
||||
- [GarageAdministrationApiV0garageV080.UpdateKeyRequest](docs/UpdateKeyRequest.md)
|
||||
- [GarageAdministrationApiV0garageV080.UpdateKeyRequestAllow](docs/UpdateKeyRequestAllow.md)
|
||||
- [GarageAdministrationApiV0garageV080.UpdateKeyRequestDeny](docs/UpdateKeyRequestDeny.md)
|
||||
- [garage.AddKeyRequest](docs/AddKeyRequest.md)
|
||||
- [garage.AddNode200ResponseInner](docs/AddNode200ResponseInner.md)
|
||||
- [garage.AllowBucketKeyRequest](docs/AllowBucketKeyRequest.md)
|
||||
- [garage.AllowBucketKeyRequestPermissions](docs/AllowBucketKeyRequestPermissions.md)
|
||||
- [garage.BucketInfo](docs/BucketInfo.md)
|
||||
- [garage.BucketInfoQuotas](docs/BucketInfoQuotas.md)
|
||||
- [garage.BucketInfoWebsiteConfig](docs/BucketInfoWebsiteConfig.md)
|
||||
- [garage.BucketKeyInfo](docs/BucketKeyInfo.md)
|
||||
- [garage.ClusterLayout](docs/ClusterLayout.md)
|
||||
- [garage.CreateBucketRequest](docs/CreateBucketRequest.md)
|
||||
- [garage.CreateBucketRequestLocalAlias](docs/CreateBucketRequestLocalAlias.md)
|
||||
- [garage.CreateBucketRequestLocalAliasAllow](docs/CreateBucketRequestLocalAliasAllow.md)
|
||||
- [garage.GetNodes200Response](docs/GetNodes200Response.md)
|
||||
- [garage.ImportKeyRequest](docs/ImportKeyRequest.md)
|
||||
- [garage.KeyInfo](docs/KeyInfo.md)
|
||||
- [garage.KeyInfoBucketsInner](docs/KeyInfoBucketsInner.md)
|
||||
- [garage.KeyInfoBucketsInnerPermissions](docs/KeyInfoBucketsInnerPermissions.md)
|
||||
- [garage.KeyInfoPermissions](docs/KeyInfoPermissions.md)
|
||||
- [garage.LayoutVersion](docs/LayoutVersion.md)
|
||||
- [garage.ListBuckets200ResponseInner](docs/ListBuckets200ResponseInner.md)
|
||||
- [garage.ListBuckets200ResponseInnerLocalAliasesInner](docs/ListBuckets200ResponseInnerLocalAliasesInner.md)
|
||||
- [garage.ListKeys200ResponseInner](docs/ListKeys200ResponseInner.md)
|
||||
- [garage.NodeClusterInfo](docs/NodeClusterInfo.md)
|
||||
- [garage.NodeNetworkInfo](docs/NodeNetworkInfo.md)
|
||||
- [garage.UpdateBucketRequest](docs/UpdateBucketRequest.md)
|
||||
- [garage.UpdateBucketRequestQuotas](docs/UpdateBucketRequestQuotas.md)
|
||||
- [garage.UpdateBucketRequestWebsiteAccess](docs/UpdateBucketRequestWebsiteAccess.md)
|
||||
- [garage.UpdateKeyRequest](docs/UpdateKeyRequest.md)
|
||||
- [garage.UpdateKeyRequestAllow](docs/UpdateKeyRequestAllow.md)
|
||||
- [garage.UpdateKeyRequestDeny](docs/UpdateKeyRequestDeny.md)
|
||||
|
||||
|
||||
## Documentation for Authorization
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.AddKeyRequest
|
||||
# garage.AddKeyRequest
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.AddNode200ResponseInner
|
||||
# garage.AddNode200ResponseInner
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.AllowBucketKeyRequest
|
||||
# garage.AllowBucketKeyRequest
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.AllowBucketKeyRequestPermissions
|
||||
# garage.AllowBucketKeyRequestPermissions
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.BucketApi
|
||||
# garage.BucketApi
|
||||
|
||||
All URIs are relative to *http://localhost:3903/v0*
|
||||
|
||||
|
@ -30,14 +30,14 @@ Allow key
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let allowBucketKeyRequest = new GarageAdministrationApiV0garageV080.AllowBucketKeyRequest(); // AllowBucketKeyRequest | Aliases to put on the new bucket
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let allowBucketKeyRequest = new garage.AllowBucketKeyRequest(); // AllowBucketKeyRequest | Aliases to put on the new bucket
|
||||
apiInstance.allowBucketKey(allowBucketKeyRequest, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -79,14 +79,14 @@ Creates a new bucket, either with a global alias, a local one, or no alias at al
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let createBucketRequest = new GarageAdministrationApiV0garageV080.CreateBucketRequest(); // CreateBucketRequest | Aliases to put on the new bucket
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let createBucketRequest = new garage.CreateBucketRequest(); // CreateBucketRequest | Aliases to put on the new bucket
|
||||
apiInstance.createBucket(createBucketRequest, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -128,13 +128,13 @@ Delete a bucket.Deletes a storage bucket. A bucket cannot be deleted if it is no
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let bucketId = b4018dc61b27ccb5c64ec1b24f53454bbbd180697c758c4d47a22a8921864a87; // String | The exact bucket identifier, a 32 bytes hexadecimal string
|
||||
apiInstance.deleteBucket(bucketId, (error, data, response) => {
|
||||
if (error) {
|
||||
|
@ -177,13 +177,13 @@ Delete a global alias from the target bucket
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let id = e6a14cd6a27f48684579ec6b381c078ab11697e6bc8513b72b2f5307e25fff9b; // String |
|
||||
let alias = my_documents; // String |
|
||||
apiInstance.deleteBucketGlobalAlias(id, alias, (error, data, response) => {
|
||||
|
@ -228,13 +228,13 @@ Delete a local alias, bound to specified account, from the target bucket
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let id = e6a14cd6a27f48684579ec6b381c078ab11697e6bc8513b72b2f5307e25fff9b; // String |
|
||||
let accessKeyId = GK31c2f218a2e44f485b94239e; // String |
|
||||
let alias = my_documents; // String |
|
||||
|
@ -281,14 +281,14 @@ Deny key
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let allowBucketKeyRequest = new GarageAdministrationApiV0garageV080.AllowBucketKeyRequest(); // AllowBucketKeyRequest | Aliases to put on the new bucket
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let allowBucketKeyRequest = new garage.AllowBucketKeyRequest(); // AllowBucketKeyRequest | Aliases to put on the new bucket
|
||||
apiInstance.denyBucketKey(allowBucketKeyRequest, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -330,13 +330,13 @@ Find a bucket by its global alias
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let alias = my_documents; // String | The exact global alias of one of the existing buckets
|
||||
apiInstance.findBucketInfo(alias, (error, data, response) => {
|
||||
if (error) {
|
||||
|
@ -379,13 +379,13 @@ Given a bucket identifier, get its information. It includes its aliases, its web
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let bucketId = b4018dc61b27ccb5c64ec1b24f53454bbbd180697c758c4d47a22a8921864a87; // String | The exact bucket identifier, a 32 bytes hexadecimal string
|
||||
apiInstance.getBucketInfo(bucketId, (error, data, response) => {
|
||||
if (error) {
|
||||
|
@ -428,13 +428,13 @@ List all the buckets on the cluster with their UUID and their global and local a
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
apiInstance.listBuckets((error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -473,13 +473,13 @@ Add a global alias to the target bucket
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let id = e6a14cd6a27f48684579ec6b381c078ab11697e6bc8513b72b2f5307e25fff9b; // String |
|
||||
let alias = my_documents; // String |
|
||||
apiInstance.putBucketGlobalAlias(id, alias, (error, data, response) => {
|
||||
|
@ -524,13 +524,13 @@ Add a local alias, bound to specified account, to the target bucket
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let id = e6a14cd6a27f48684579ec6b381c078ab11697e6bc8513b72b2f5307e25fff9b; // String |
|
||||
let accessKeyId = GK31c2f218a2e44f485b94239e; // String |
|
||||
let alias = my_documents; // String |
|
||||
|
@ -577,15 +577,15 @@ All fields (`websiteAccess` and `quotas`) are optionnal. If
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.BucketApi();
|
||||
let apiInstance = new garage.BucketApi();
|
||||
let bucketId = b4018dc61b27ccb5c64ec1b24f53454bbbd180697c758c4d47a22a8921864a87; // String | The exact bucket identifier, a 32 bytes hexadecimal string
|
||||
let updateBucketRequest = new GarageAdministrationApiV0garageV080.UpdateBucketRequest(); // UpdateBucketRequest | Requested changes on the bucket. Both root fields are optionals.
|
||||
let updateBucketRequest = new garage.UpdateBucketRequest(); // UpdateBucketRequest | Requested changes on the bucket. Both root fields are optionals.
|
||||
apiInstance.updateBucket(bucketId, updateBucketRequest, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.BucketInfo
|
||||
# garage.BucketInfo
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.BucketInfoQuotas
|
||||
# garage.BucketInfoQuotas
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.BucketInfoWebsiteConfig
|
||||
# garage.BucketInfoWebsiteConfig
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.BucketKeyInfo
|
||||
# garage.BucketKeyInfo
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.ClusterLayout
|
||||
# garage.ClusterLayout
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.CreateBucketRequest
|
||||
# garage.CreateBucketRequest
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.CreateBucketRequestLocalAlias
|
||||
# garage.CreateBucketRequestLocalAlias
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.CreateBucketRequestLocalAliasAllow
|
||||
# garage.CreateBucketRequestLocalAliasAllow
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.GetNodes200Response
|
||||
# garage.GetNodes200Response
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.ImportKeyRequest
|
||||
# garage.ImportKeyRequest
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.KeyApi
|
||||
# garage.KeyApi
|
||||
|
||||
All URIs are relative to *http://localhost:3903/v0*
|
||||
|
||||
|
@ -25,14 +25,14 @@ Creates a new API access key.
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.KeyApi();
|
||||
let addKeyRequest = new GarageAdministrationApiV0garageV080.AddKeyRequest(); // AddKeyRequest | \"You can set a friendly name for this key, send an empty string instead\"
|
||||
let apiInstance = new garage.KeyApi();
|
||||
let addKeyRequest = new garage.AddKeyRequest(); // AddKeyRequest | \"You can set a friendly name for this key, send an empty string instead\"
|
||||
apiInstance.addKey(addKeyRequest, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -74,13 +74,13 @@ Delete a key from the cluster. Its access will be removed from all the buckets.
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.KeyApi();
|
||||
let apiInstance = new garage.KeyApi();
|
||||
let accessKey = GK31c2f218a2e44f485b94239e; // String | The exact API access key generated by Garage
|
||||
apiInstance.deleteKey(accessKey, (error, data, response) => {
|
||||
if (error) {
|
||||
|
@ -123,13 +123,13 @@ Return information about a specific key and return its information
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.KeyApi();
|
||||
let apiInstance = new garage.KeyApi();
|
||||
let accessKey = GK31c2f218a2e44f485b94239e; // String | The exact API access key generated by Garage
|
||||
apiInstance.getKey(accessKey, (error, data, response) => {
|
||||
if (error) {
|
||||
|
@ -172,14 +172,14 @@ Imports an existing API key. This feature must only be used for migrations and b
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.KeyApi();
|
||||
let importKeyRequest = new GarageAdministrationApiV0garageV080.ImportKeyRequest(); // ImportKeyRequest | Information on the key to import
|
||||
let apiInstance = new garage.KeyApi();
|
||||
let importKeyRequest = new garage.ImportKeyRequest(); // ImportKeyRequest | Information on the key to import
|
||||
apiInstance.importKey(importKeyRequest, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -221,13 +221,13 @@ Returns all API access keys in the cluster.
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.KeyApi();
|
||||
let apiInstance = new garage.KeyApi();
|
||||
apiInstance.listKeys((error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -266,13 +266,13 @@ Find the first key matching the given pattern based on its identifier aor friend
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.KeyApi();
|
||||
let apiInstance = new garage.KeyApi();
|
||||
let pattern = test-k; // String | A pattern (beginning or full string) corresponding to a key identifier or friendly name
|
||||
apiInstance.searchKey(pattern, (error, data, response) => {
|
||||
if (error) {
|
||||
|
@ -315,15 +315,15 @@ Updates information about the specified API access key.
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.KeyApi();
|
||||
let apiInstance = new garage.KeyApi();
|
||||
let accessKey = GK31c2f218a2e44f485b94239e; // String | The exact API access key generated by Garage
|
||||
let updateKeyRequest = new GarageAdministrationApiV0garageV080.UpdateKeyRequest(); // UpdateKeyRequest | For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove
|
||||
let updateKeyRequest = new garage.UpdateKeyRequest(); // UpdateKeyRequest | For a given key, provide a first set with the permissions to grant, and a second set with the permissions to remove
|
||||
apiInstance.updateKey(accessKey, updateKeyRequest, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.KeyInfo
|
||||
# garage.KeyInfo
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.KeyInfoBucketsInner
|
||||
# garage.KeyInfoBucketsInner
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.KeyInfoBucketsInnerPermissions
|
||||
# garage.KeyInfoBucketsInnerPermissions
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.KeyInfoPermissions
|
||||
# garage.KeyInfoPermissions
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.LayoutApi
|
||||
# garage.LayoutApi
|
||||
|
||||
All URIs are relative to *http://localhost:3903/v0*
|
||||
|
||||
|
@ -22,14 +22,14 @@ Send modifications to the cluster layout. These modifications will be included i
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.LayoutApi();
|
||||
let requestBody = {key: new GarageAdministrationApiV0garageV080.NodeClusterInfo()}; // {String: NodeClusterInfo} | To add a new node to the layout or to change the configuration of an existing node, simply set the values you want. To remove a node, set it to `null` instead of passing a configuration object. Contrary to the CLI that may update only a subset of the fields capacity, zone and tags, when calling this API all of these values must be specified.
|
||||
let apiInstance = new garage.LayoutApi();
|
||||
let requestBody = {key: new garage.NodeClusterInfo()}; // {String: NodeClusterInfo} | To add a new node to the layout or to change the configuration of an existing node, simply set the values you want. To remove a node, set it to `null` instead of passing a configuration object. Contrary to the CLI that may update only a subset of the fields capacity, zone and tags, when calling this API all of these values must be specified.
|
||||
apiInstance.addLayout(requestBody, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -71,14 +71,14 @@ Applies to the cluster the layout changes currently registered as staged layout
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.LayoutApi();
|
||||
let layoutVersion = new GarageAdministrationApiV0garageV080.LayoutVersion(); // LayoutVersion | Similarly to the CLI, the body must include the version of the new layout that will be created, which MUST be 1 + the value of the currently existing layout in the cluster.
|
||||
let apiInstance = new garage.LayoutApi();
|
||||
let layoutVersion = new garage.LayoutVersion(); // LayoutVersion | Similarly to the CLI, the body must include the version of the new layout that will be created, which MUST be 1 + the value of the currently existing layout in the cluster.
|
||||
apiInstance.applyLayout(layoutVersion, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -120,13 +120,13 @@ Returns the cluster's current layout, including: - Currently configured cl
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.LayoutApi();
|
||||
let apiInstance = new garage.LayoutApi();
|
||||
apiInstance.getLayout((error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
@ -165,14 +165,14 @@ Clears all of the staged layout changes.
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.LayoutApi();
|
||||
let layoutVersion = new GarageAdministrationApiV0garageV080.LayoutVersion(); // LayoutVersion | Reverting the staged changes is done by incrementing the version number and clearing the contents of the staged change list. Similarly to the CLI, the body must include the incremented version number, which MUST be 1 + the value of the currently existing layout in the cluster.
|
||||
let apiInstance = new garage.LayoutApi();
|
||||
let layoutVersion = new garage.LayoutVersion(); // LayoutVersion | Reverting the staged changes is done by incrementing the version number and clearing the contents of the staged change list. Similarly to the CLI, the body must include the incremented version number, which MUST be 1 + the value of the currently existing layout in the cluster.
|
||||
apiInstance.revertLayout(layoutVersion, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.LayoutVersion
|
||||
# garage.LayoutVersion
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.ListBuckets200ResponseInner
|
||||
# garage.ListBuckets200ResponseInner
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.ListBuckets200ResponseInnerLocalAliasesInner
|
||||
# garage.ListBuckets200ResponseInnerLocalAliasesInner
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.ListKeys200ResponseInner
|
||||
# garage.ListKeys200ResponseInner
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.NodeClusterInfo
|
||||
# garage.NodeClusterInfo
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.NodeNetworkInfo
|
||||
# garage.NodeNetworkInfo
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.NodesApi
|
||||
# garage.NodesApi
|
||||
|
||||
All URIs are relative to *http://localhost:3903/v0*
|
||||
|
||||
|
@ -20,13 +20,13 @@ Instructs this Garage node to connect to other Garage nodes at specified `&
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.NodesApi();
|
||||
let apiInstance = new garage.NodesApi();
|
||||
let requestBody = ["null"]; // [String] |
|
||||
apiInstance.addNode(requestBody, (error, data, response) => {
|
||||
if (error) {
|
||||
|
@ -69,13 +69,13 @@ Returns the cluster's current status, including: - ID of the node being que
|
|||
### Example
|
||||
|
||||
```javascript
|
||||
import GarageAdministrationApiV0garageV080 from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = GarageAdministrationApiV0garageV080.ApiClient.instance;
|
||||
import garage from 'garage_administration_api_v0garage_v0_8_0';
|
||||
let defaultClient = garage.ApiClient.instance;
|
||||
// Configure Bearer access token for authorization: bearerAuth
|
||||
let bearerAuth = defaultClient.authentications['bearerAuth'];
|
||||
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
|
||||
|
||||
let apiInstance = new GarageAdministrationApiV0garageV080.NodesApi();
|
||||
let apiInstance = new garage.NodesApi();
|
||||
apiInstance.getNodes((error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.UpdateBucketRequest
|
||||
# garage.UpdateBucketRequest
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.UpdateBucketRequestQuotas
|
||||
# garage.UpdateBucketRequestQuotas
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.UpdateBucketRequestWebsiteAccess
|
||||
# garage.UpdateBucketRequestWebsiteAccess
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.UpdateKeyRequest
|
||||
# garage.UpdateKeyRequest
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.UpdateKeyRequestAllow
|
||||
# garage.UpdateKeyRequestAllow
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# GarageAdministrationApiV0garageV080.UpdateKeyRequestDeny
|
||||
# garage.UpdateKeyRequestDeny
|
||||
|
||||
## Properties
|
||||
|
||||
|
|
|
@ -55,9 +55,9 @@ import NodesApi from './api/NodesApi';
|
|||
* <p>
|
||||
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
|
||||
* <pre>
|
||||
* var GarageAdministrationApiV0garageV080 = require('index'); // See note below*.
|
||||
* var xxxSvc = new GarageAdministrationApiV0garageV080.XxxApi(); // Allocate the API class we're going to use.
|
||||
* var yyyModel = new GarageAdministrationApiV0garageV080.Yyy(); // Construct a model instance.
|
||||
* var garage = require('index'); // See note below*.
|
||||
* var xxxSvc = new garage.XxxApi(); // Allocate the API class we're going to use.
|
||||
* var yyyModel = new garage.Yyy(); // Construct a model instance.
|
||||
* yyyModel.someProperty = 'someValue';
|
||||
* ...
|
||||
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
|
||||
|
@ -69,8 +69,8 @@ import NodesApi from './api/NodesApi';
|
|||
* <p>
|
||||
* A non-AMD browser application (discouraged) might do something like this:
|
||||
* <pre>
|
||||
* var xxxSvc = new GarageAdministrationApiV0garageV080.XxxApi(); // Allocate the API class we're going to use.
|
||||
* var yyy = new GarageAdministrationApiV0garageV080.Yyy(); // Construct a model instance.
|
||||
* var xxxSvc = new garage.XxxApi(); // Allocate the API class we're going to use.
|
||||
* var yyy = new garage.Yyy(); // Construct a model instance.
|
||||
* yyyModel.someProperty = 'someValue';
|
||||
* ...
|
||||
* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
|
||||
|
|
Loading…
Reference in a new issue