@acceleratxr/core_sdk / ScalingPolicyService
Class: ScalingPolicyService#
Hierarchy#
-
↳ ScalingPolicyService
Index#
Constructors#
Properties#
Methods#
Constructors#
constructor#
+ new ScalingPolicyService(apiClient: ApiClient, config: Configuration): ScalingPolicyService
Overrides ServiceBase.constructor
Defined in src/services/ScalingPolicyService.ts:10
Parameters:#
Name |
Type |
|---|---|
|
|
|
Returns: ScalingPolicyService
Properties#
apiClient#
• Protected apiClient: ApiClient
Inherited from ServiceBase.apiClient
Defined in src/ServiceBase.ts:14
The API Client used when making requests to the API backend server.
config#
• Protected config: Configuration
Inherited from ServiceBase.config
Defined in src/ServiceBase.ts:19
The SDK configuration to use.
uuid#
▪ Static uuid: string = “e39e67bc-04fa-486c-bd72-6c5a77307474”
Defined in src/services/ScalingPolicyService.ts:16
Methods#
count#
▸ count(query?: any): Promise<number>
Defined in src/services/ScalingPolicyService.ts:57
Returns the count of groups
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<number>
create#
▸ create(obj: ScalingPolicy): Promise<ScalingPolicy | undefined>
Defined in src/services/ScalingPolicyService.ts:33
Create a new group
Parameters:#
Name |
Type |
|---|---|
|
Returns: Promise<ScalingPolicy | undefined>
delete#
▸ delete(id: string): Promise<void>
Defined in src/services/ScalingPolicyService.ts:102
Deletes the group
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<void>
findAll#
▸ findAll(query?: any): Promise<ScalingPolicy[] | undefined>
Defined in src/services/ScalingPolicyService.ts:21
Returns all groups from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<ScalingPolicy[] | undefined>
findById#
▸ findById(id: string): Promise<ScalingPolicy | undefined>
Defined in src/services/ScalingPolicyService.ts:76
Returns a single group from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<ScalingPolicy | undefined>
truncate#
▸ truncate(query?: any): Promise<void>
Defined in src/services/ScalingPolicyService.ts:45
Deletes all roles from the service.
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<void>
update#
▸ update(id: string, obj: ScalingPolicy): Promise<ScalingPolicy | undefined>
Defined in src/services/ScalingPolicyService.ts:89
Updates a single group
Parameters:#
Name |
Type |
|---|---|
|
string |
|
Returns: Promise<ScalingPolicy | undefined>