93 lines
3.2 KiB
JavaScript
93 lines
3.2 KiB
JavaScript
/**
|
|
* Garage Administration API v0+garage-v0.9.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!*
|
|
*
|
|
* The version of the OpenAPI document: v0.9.0
|
|
*
|
|
*
|
|
* 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';
|
|
|
|
/**
|
|
* The AllowBucketKeyRequestPermissions model module.
|
|
* @module model/AllowBucketKeyRequestPermissions
|
|
* @version v0.9.0
|
|
*/
|
|
class AllowBucketKeyRequestPermissions {
|
|
/**
|
|
* Constructs a new <code>AllowBucketKeyRequestPermissions</code>.
|
|
* @alias module:model/AllowBucketKeyRequestPermissions
|
|
* @param read {Boolean}
|
|
* @param write {Boolean}
|
|
* @param owner {Boolean}
|
|
*/
|
|
constructor(read, write, owner) {
|
|
|
|
AllowBucketKeyRequestPermissions.initialize(this, read, write, owner);
|
|
}
|
|
|
|
/**
|
|
* 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, read, write, owner) {
|
|
obj['read'] = read;
|
|
obj['write'] = write;
|
|
obj['owner'] = owner;
|
|
}
|
|
|
|
/**
|
|
* Constructs a <code>AllowBucketKeyRequestPermissions</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/AllowBucketKeyRequestPermissions} obj Optional instance to populate.
|
|
* @return {module:model/AllowBucketKeyRequestPermissions} The populated <code>AllowBucketKeyRequestPermissions</code> instance.
|
|
*/
|
|
static constructFromObject(data, obj) {
|
|
if (data) {
|
|
obj = obj || new AllowBucketKeyRequestPermissions();
|
|
|
|
if (data.hasOwnProperty('read')) {
|
|
obj['read'] = ApiClient.convertToType(data['read'], 'Boolean');
|
|
}
|
|
if (data.hasOwnProperty('write')) {
|
|
obj['write'] = ApiClient.convertToType(data['write'], 'Boolean');
|
|
}
|
|
if (data.hasOwnProperty('owner')) {
|
|
obj['owner'] = ApiClient.convertToType(data['owner'], 'Boolean');
|
|
}
|
|
}
|
|
return obj;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* @member {Boolean} read
|
|
*/
|
|
AllowBucketKeyRequestPermissions.prototype['read'] = undefined;
|
|
|
|
/**
|
|
* @member {Boolean} write
|
|
*/
|
|
AllowBucketKeyRequestPermissions.prototype['write'] = undefined;
|
|
|
|
/**
|
|
* @member {Boolean} owner
|
|
*/
|
|
AllowBucketKeyRequestPermissions.prototype['owner'] = undefined;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default AllowBucketKeyRequestPermissions;
|
|
|