garage-admin-sdk-js/src/model/CreateBucketRequestLocalAlias.js

89 lines
3.1 KiB
JavaScript
Raw Normal View History

2022-11-13 11:28:54 +00:00
/**
2023-11-22 17:30:42 +00:00
* Garage Administration API v0+garage-v0.9.0
2022-11-13 11:28:54 +00:00
* 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!*
*
2023-11-22 17:30:42 +00:00
* The version of the OpenAPI document: v0.9.0
2022-11-13 11:28:54 +00:00
*
*
* 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 CreateBucketRequestLocalAliasAllow from './CreateBucketRequestLocalAliasAllow';
/**
* The CreateBucketRequestLocalAlias model module.
* @module model/CreateBucketRequestLocalAlias
2023-11-22 17:30:42 +00:00
* @version v0.9.0
2022-11-13 11:28:54 +00:00
*/
class CreateBucketRequestLocalAlias {
/**
* Constructs a new <code>CreateBucketRequestLocalAlias</code>.
* @alias module:model/CreateBucketRequestLocalAlias
*/
constructor() {
CreateBucketRequestLocalAlias.initialize(this);
}
/**
* 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) {
}
/**
* Constructs a <code>CreateBucketRequestLocalAlias</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/CreateBucketRequestLocalAlias} obj Optional instance to populate.
* @return {module:model/CreateBucketRequestLocalAlias} The populated <code>CreateBucketRequestLocalAlias</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new CreateBucketRequestLocalAlias();
if (data.hasOwnProperty('accessKeyId')) {
obj['accessKeyId'] = ApiClient.convertToType(data['accessKeyId'], 'String');
}
if (data.hasOwnProperty('alias')) {
obj['alias'] = ApiClient.convertToType(data['alias'], 'String');
}
if (data.hasOwnProperty('allow')) {
obj['allow'] = CreateBucketRequestLocalAliasAllow.constructFromObject(data['allow']);
}
}
return obj;
}
}
/**
* @member {String} accessKeyId
*/
CreateBucketRequestLocalAlias.prototype['accessKeyId'] = undefined;
/**
* @member {String} alias
*/
CreateBucketRequestLocalAlias.prototype['alias'] = undefined;
/**
* @member {module:model/CreateBucketRequestLocalAliasAllow} allow
*/
CreateBucketRequestLocalAlias.prototype['allow'] = undefined;
export default CreateBucketRequestLocalAlias;