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

80 lines
2.7 KiB
JavaScript

/**
* Garage Administration API v0+garage-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!*
*
* The version of the OpenAPI document: v0.8.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 BucketInfoWebsiteConfig model module.
* @module model/BucketInfoWebsiteConfig
* @version v0.8.0
*/
class BucketInfoWebsiteConfig {
/**
* Constructs a new <code>BucketInfoWebsiteConfig</code>.
* @alias module:model/BucketInfoWebsiteConfig
*/
constructor() {
BucketInfoWebsiteConfig.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>BucketInfoWebsiteConfig</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/BucketInfoWebsiteConfig} obj Optional instance to populate.
* @return {module:model/BucketInfoWebsiteConfig} The populated <code>BucketInfoWebsiteConfig</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new BucketInfoWebsiteConfig();
if (data.hasOwnProperty('indexDocument')) {
obj['indexDocument'] = ApiClient.convertToType(data['indexDocument'], 'String');
}
if (data.hasOwnProperty('errorDocument')) {
obj['errorDocument'] = ApiClient.convertToType(data['errorDocument'], 'String');
}
}
return obj;
}
}
/**
* @member {String} indexDocument
*/
BucketInfoWebsiteConfig.prototype['indexDocument'] = undefined;
/**
* @member {String} errorDocument
*/
BucketInfoWebsiteConfig.prototype['errorDocument'] = undefined;
export default BucketInfoWebsiteConfig;