-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #80 from aziontech/generated-sdk
Auto-generated SDK
- Loading branch information
Showing
10 changed files
with
219 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# ObjectStorage.BucketUpdate | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**edgeAccess** | [**EdgeAccessEnum**](EdgeAccessEnum.md) | | | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/** | ||
* Object Storage | ||
* REST API OpenAPI documentation for the Object Storage | ||
* | ||
* The version of the OpenAPI document: 1.0.0 (v1) | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
* | ||
*/ | ||
|
||
import ApiClient from '../ApiClient'; | ||
import EdgeAccessEnum from './EdgeAccessEnum'; | ||
|
||
/** | ||
* The BucketUpdate model module. | ||
* @module model/BucketUpdate | ||
* @version 1.0.0 (v1) | ||
*/ | ||
class BucketUpdate { | ||
/** | ||
* Constructs a new <code>BucketUpdate</code>. | ||
* @alias module:model/BucketUpdate | ||
* @param edgeAccess {module:model/EdgeAccessEnum} | ||
*/ | ||
constructor(edgeAccess) { | ||
|
||
BucketUpdate.initialize(this, edgeAccess); | ||
} | ||
|
||
/** | ||
* Initializes the fields of this object. | ||
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). | ||
* Only for internal use. | ||
*/ | ||
static initialize(obj, edgeAccess) { | ||
obj['edge_access'] = edgeAccess; | ||
} | ||
|
||
/** | ||
* Constructs a <code>BucketUpdate</code> from a plain JavaScript object, optionally creating a new instance. | ||
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. | ||
* @param {Object} data The plain JavaScript object bearing properties of interest. | ||
* @param {module:model/BucketUpdate} obj Optional instance to populate. | ||
* @return {module:model/BucketUpdate} The populated <code>BucketUpdate</code> instance. | ||
*/ | ||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new BucketUpdate(); | ||
|
||
if (data.hasOwnProperty('edge_access')) { | ||
obj['edge_access'] = EdgeAccessEnum.constructFromObject(data['edge_access']); | ||
} | ||
} | ||
return obj; | ||
} | ||
|
||
/** | ||
* Validates the JSON data with respect to <code>BucketUpdate</code>. | ||
* @param {Object} data The plain JavaScript object bearing properties of interest. | ||
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>BucketUpdate</code>. | ||
*/ | ||
static validateJSON(data) { | ||
// check to make sure all required properties are present in the JSON string | ||
for (const property of BucketUpdate.RequiredProperties) { | ||
if (!data.hasOwnProperty(property)) { | ||
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); | ||
} | ||
} | ||
|
||
return true; | ||
} | ||
|
||
|
||
} | ||
|
||
BucketUpdate.RequiredProperties = ["edge_access"]; | ||
|
||
/** | ||
* @member {module:model/EdgeAccessEnum} edge_access | ||
*/ | ||
BucketUpdate.prototype['edge_access'] = undefined; | ||
|
||
|
||
|
||
|
||
|
||
|
||
export default BucketUpdate; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.