style: format addons/api

This commit is contained in:
Susmitha Girumala committed 2020-09-16 14:29:02 -04:00
1 parent e2610d6a90
commit ec870acba8
62 files changed
+590 -521

No files matched your search

+6 -6
View File
@@ -2,19 +2,20 @@ import BaseModel from '../../models/base';
import { attr } from '@ember-data/model';
/**
* Account contains all fields related to an account resource
* Account contains all fields related to an account resource
*/
export default class GeneratedAccountModel extends BaseModel {
// =attributes
@attr('string', {
description: 'The type of the resource, to help differentiate schemas'
}) type;
description: 'The type of the resource, to help differentiate schemas',
})
type;
@attr('string', {
description: 'The owning auth method ID.',
}) auth_method_id;
})
auth_method_id;
@attr('string', {
description: 'Optional name for identification purposes',
@@ -42,5 +43,4 @@ export default class GeneratedAccountModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
}
@@ -5,12 +5,12 @@ import { attr } from '@ember-data/model';
*
*/
export default class GeneratedAuthMethodModel extends BaseModel {
// =attributes
@attr('string', {
description: 'The type of the resource, to help differentiate schemas'
}) type;
description: 'The type of the resource, to help differentiate schemas',
})
type;
@attr('string', {
description: 'Optional name for identification purposes',
@@ -43,5 +43,4 @@ export default class GeneratedAuthMethodModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
}
+1 -2
View File
@@ -3,7 +3,7 @@ import { attr } from '@ember-data/model';
/**
* Group contains all fields related to a Group resource
*/
*/
export default class GeneratedGroupModel extends BaseModel {
// = attributes
@@ -38,5 +38,4 @@ export default class GeneratedGroupModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
}
@@ -5,42 +5,47 @@ import { attr } from '@ember-data/model';
* HostCatalog manages Hosts and HostSets
*/
export default class GeneratedHostCatalogModel extends BaseModel {
// =attributes
@attr('string', {
description: 'The type of the resource, to help differentiate schemas'
}) type;
description: 'The type of the resource, to help differentiate schemas',
})
type;
@attr('string', {
description: 'Optional name for identification purposes'
}) name;
description: 'Optional name for identification purposes',
})
name;
@attr('string', {
description: 'Optional user-set description for identification purposes'
}) description;
description: 'Optional user-set description for identification purposes',
})
description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
readOnly: true
}) created_time;
readOnly: true,
})
created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
readOnly: true
}) updated_time;
readOnly: true,
})
updated_time;
@attr('boolean', {
description: 'Whether the catalog is disabled'
}) disabled;
description: 'Whether the catalog is disabled',
})
disabled;
@attr({
description: 'Attributes specific to the catalog type'
}) attributes;
description: 'Attributes specific to the catalog type',
})
attributes;
@attr('number', {
description: 'Current version number of this resource.',
})
version;
}
+20 -15
View File
@@ -5,35 +5,40 @@ import { attr } from '@ember-data/model';
* HostSet is a collection of Hosts created and managed by a HostCatalog
*/
export default class GeneratedHostSetModel extends BaseModel {
// =attributes
@attr('string', {
description: 'The type of the resource, to help differentiate schemas',
readOnly: true
}) type;
readOnly: true,
})
type;
@attr('string', {
description: 'The owning host catalog ID.',
}) host_catalog_id;
})
host_catalog_id;
@attr('string', {
description: 'Optional name for identification purposes'
}) name;
description: 'Optional name for identification purposes',
})
name;
@attr('string', {
description: 'Optional user-set description for identification purposes'
}) description;
description: 'Optional user-set description for identification purposes',
})
description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
readOnly: true
}) created_time;
readOnly: true,
})
created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
readOnly: true
}) updated_time;
readOnly: true,
})
updated_time;
@attr('number', {
description: 'Current version number of this resource.',
@@ -42,7 +47,7 @@ export default class GeneratedHostSetModel extends BaseModel {
@attr('number', {
description: 'The total count of hosts in this host set\nOutput only.',
readOnly: true
}) size;
readOnly: true,
})
size;
}
+17 -13
View File
@@ -5,38 +5,42 @@ import { attr } from '@ember-data/model';
* Host contains all fields related to a Host resource
*/
export default class GeneratedHostModel extends BaseModel {
// =attributes
@attr('string', {
description: 'The type of the resource, to help differentiate schemas'
}) type;
description: 'The type of the resource, to help differentiate schemas',
})
type;
@attr('string', {
description: 'The owning host catalog ID.',
}) host_catalog_id;
})
host_catalog_id;
@attr('string', {
description: 'Optional name for identification purposes'
}) name;
description: 'Optional name for identification purposes',
})
name;
@attr('string', {
description: 'Optional user-set description for identification purposes'
}) description;
description: 'Optional user-set description for identification purposes',
})
description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
readOnly: true
}) created_time;
readOnly: true,
})
created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
readOnly: true
}) updated_time;
readOnly: true,
})
updated_time;
@attr('number', {
description: 'Current version number of this resource.',
})
version;
}
@@ -38,5 +38,4 @@ export default class GeneratedRoleModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
}
+3 -4
View File
@@ -5,12 +5,12 @@ import { attr } from '@ember-data/model';
*
*/
export default class GeneratedScopeModel extends BaseModel {
// =attributes
@attr('string', {
description: 'The type of the resource'
}) type;
description: 'The type of the resource',
})
type;
@attr('string', {
description: 'Optional name for identification purposes',
@@ -38,5 +38,4 @@ export default class GeneratedScopeModel extends BaseModel {
description: 'Current version number of this resource.',
})
version;
}
+18 -13
View File
@@ -5,34 +5,39 @@ import { attr } from '@ember-data/model';
* Target
*/
export default class GeneratedTargetModel extends BaseModel {
// =attributes
@attr('string', {
description: 'The type of the resource, to help differentiate schemas'
}) type;
description: 'The type of the resource, to help differentiate schemas',
})
type;
@attr('string', {
description: 'Optional name for identification purposes'
}) name;
description: 'Optional name for identification purposes',
})
name;
@attr('string', {
description: 'Optional user-set description for identification purposes'
}) description;
description: 'Optional user-set description for identification purposes',
})
description;
@attr('date', {
description: 'The time this resource was created\nOutput only.',
readOnly: true
}) created_time;
readOnly: true,
})
created_time;
@attr('date', {
description: 'The time this resource was last updated\nOutput only.',
readOnly: true
}) updated_time;
readOnly: true,
})
updated_time;
@attr('boolean', {
description: 'Whether the catalog is disabled'
}) disabled;
description: 'Whether the catalog is disabled',
})
disabled;
@attr('number', {
description: 'Current version number of this resource.',
+1 -1
View File
@@ -3,7 +3,7 @@ import { attr } from '@ember-data/model';
/**
* User contains all fields related to a user resource
*/
*/
export default class GeneratedUserModel extends BaseModel {
// =attributes