@acceleratxr/core_sdk / BackupStorageLocationService
Class: BackupStorageLocationService#
Hierarchy#
-
↳ BackupStorageLocationService
Index#
Constructors#
Properties#
Methods#
Constructors#
constructor#
+ new BackupStorageLocationService(apiClient: ApiClient, config: Configuration): BackupStorageLocationService
Overrides ServiceBase.constructor
Defined in src/services/BackupStorageLocationService.ts:10
Parameters:#
Name |
Type |
|---|---|
|
|
|
Returns: BackupStorageLocationService
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 = “76f33aac-5604-4027-8a4d-9bb335ed9d64”
Defined in src/services/BackupStorageLocationService.ts:16
Methods#
count#
▸ count(query?: any): Promise<number>
Defined in src/services/BackupStorageLocationService.ts:57
Returns the count of storage locations
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<number>
create#
▸ create(obj: BackupStorageLocation): Promise<BackupStorageLocation | undefined>
Defined in src/services/BackupStorageLocationService.ts:33
Create a new storage location
Parameters:#
Name |
Type |
|---|---|
|
Returns: Promise<BackupStorageLocation | undefined>
delete#
▸ delete(id: string): Promise<void>
Defined in src/services/BackupStorageLocationService.ts:102
Deletes the storage location
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<void>
findAll#
▸ findAll(query?: any): Promise<BackupStorageLocation[] | undefined>
Defined in src/services/BackupStorageLocationService.ts:21
Returns all storage locations from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<BackupStorageLocation[] | undefined>
findById#
▸ findById(id: string): Promise<BackupStorageLocation | undefined>
Defined in src/services/BackupStorageLocationService.ts:76
Returns a single storage location from the system that the user has access to
Parameters:#
Name |
Type |
|---|---|
|
string |
Returns: Promise<BackupStorageLocation | undefined>
truncate#
▸ truncate(query?: any): Promise<void>
Defined in src/services/BackupStorageLocationService.ts:45
Deletes all storage locations from the service.
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Promise<void>
update#
▸ update(id: string, obj: BackupStorageLocation): Promise<BackupStorageLocation | undefined>
Defined in src/services/BackupStorageLocationService.ts:89
Updates a single storage location
Parameters:#
Name |
Type |
|---|---|
|
string |
|
Returns: Promise<BackupStorageLocation | undefined>