@azure/arm-chaos 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +3725 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/capabilitiesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/capabilitiesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/capabilitiesCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/capabilitiesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/capabilitiesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/capabilitiesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/capabilitiesDeleteSample.js +35 -0
- package/dist-esm/samples-dev/capabilitiesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/capabilitiesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/capabilitiesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/capabilitiesGetSample.js +35 -0
- package/dist-esm/samples-dev/capabilitiesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/capabilitiesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/capabilitiesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/capabilitiesListSample.js +48 -0
- package/dist-esm/samples-dev/capabilitiesListSample.js.map +1 -0
- package/dist-esm/samples-dev/capabilityTypesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/capabilityTypesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/capabilityTypesGetSample.js +32 -0
- package/dist-esm/samples-dev/capabilityTypesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/capabilityTypesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/capabilityTypesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/capabilityTypesListSample.js +45 -0
- package/dist-esm/samples-dev/capabilityTypesListSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsCancelSample.js +31 -0
- package/dist-esm/samples-dev/experimentsCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.js +66 -0
- package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/experimentsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsGetExecutionDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsGetExecutionDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsGetExecutionDetailsSample.js +32 -0
- package/dist-esm/samples-dev/experimentsGetExecutionDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsGetSample.js +31 -0
- package/dist-esm/samples-dev/experimentsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsGetStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsGetStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsGetStatusSample.js +32 -0
- package/dist-esm/samples-dev/experimentsGetStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsListAllSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsListAllSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsListAllSample.js +45 -0
- package/dist-esm/samples-dev/experimentsListAllSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsListAllStatusesSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsListAllStatusesSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsListAllStatusesSample.js +45 -0
- package/dist-esm/samples-dev/experimentsListAllStatusesSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsListExecutionDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsListExecutionDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsListExecutionDetailsSample.js +45 -0
- package/dist-esm/samples-dev/experimentsListExecutionDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsListSample.js +46 -0
- package/dist-esm/samples-dev/experimentsListSample.js.map +1 -0
- package/dist-esm/samples-dev/experimentsStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/experimentsStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/experimentsStartSample.js +31 -0
- package/dist-esm/samples-dev/experimentsStartSample.js.map +1 -0
- package/dist-esm/samples-dev/targetTypesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/targetTypesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/targetTypesGetSample.js +31 -0
- package/dist-esm/samples-dev/targetTypesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/targetTypesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/targetTypesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/targetTypesListSample.js +46 -0
- package/dist-esm/samples-dev/targetTypesListSample.js.map +1 -0
- package/dist-esm/samples-dev/targetsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/targetsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/targetsCreateOrUpdateSample.js +41 -0
- package/dist-esm/samples-dev/targetsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/targetsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/targetsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/targetsDeleteSample.js +34 -0
- package/dist-esm/samples-dev/targetsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/targetsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/targetsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/targetsGetSample.js +34 -0
- package/dist-esm/samples-dev/targetsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/targetsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/targetsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/targetsListSample.js +49 -0
- package/dist-esm/samples-dev/targetsListSample.js.map +1 -0
- package/dist-esm/src/chaosManagementClient.d.ts +25 -0
- package/dist-esm/src/chaosManagementClient.d.ts.map +1 -0
- package/dist-esm/src/chaosManagementClient.js +108 -0
- package/dist-esm/src/chaosManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +980 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +36 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +50 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1530 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +25 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +264 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/capabilities.d.ts +81 -0
- package/dist-esm/src/operations/capabilities.d.ts.map +1 -0
- package/dist-esm/src/operations/capabilities.js +308 -0
- package/dist-esm/src/operations/capabilities.js.map +1 -0
- package/dist-esm/src/operations/capabilityTypes.d.ts +46 -0
- package/dist-esm/src/operations/capabilityTypes.d.ts.map +1 -0
- package/dist-esm/src/operations/capabilityTypes.js +169 -0
- package/dist-esm/src/operations/capabilityTypes.js.map +1 -0
- package/dist-esm/src/operations/experiments.d.ts +153 -0
- package/dist-esm/src/operations/experiments.d.ts.map +1 -0
- package/dist-esm/src/operations/experiments.js +687 -0
- package/dist-esm/src/operations/experiments.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +7 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +14 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/targetTypes.d.ts +42 -0
- package/dist-esm/src/operations/targetTypes.d.ts.map +1 -0
- package/dist-esm/src/operations/targetTypes.js +162 -0
- package/dist-esm/src/operations/targetTypes.js.map +1 -0
- package/dist-esm/src/operations/targets.d.ts +75 -0
- package/dist-esm/src/operations/targets.d.ts.map +1 -0
- package/dist-esm/src/operations/targets.js +292 -0
- package/dist-esm/src/operations/targets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/capabilities.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/capabilities.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/capabilities.js +9 -0
- package/dist-esm/src/operationsInterfaces/capabilities.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/capabilityTypes.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/capabilityTypes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/capabilityTypes.js +9 -0
- package/dist-esm/src/operationsInterfaces/capabilityTypes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/experiments.d.ts +83 -0
- package/dist-esm/src/operationsInterfaces/experiments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/experiments.js +9 -0
- package/dist-esm/src/operationsInterfaces/experiments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/targetTypes.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/targetTypes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/targetTypes.js +9 -0
- package/dist-esm/src/operationsInterfaces/targetTypes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/targets.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/targets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/targets.js +9 -0
- package/dist-esm/src/operationsInterfaces/targets.js.map +1 -0
- package/dist-esm/test/chaos_examples.spec.d.ts +4 -0
- package/dist-esm/test/chaos_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/chaos_examples.spec.js +261 -0
- package/dist-esm/test/chaos_examples.spec.js.map +1 -0
- package/package.json +120 -0
- package/review/arm-chaos.api.md +682 -0
- package/rollup.config.js +122 -0
- package/src/chaosManagementClient.ts +165 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +1111 -0
- package/src/models/mappers.ts +1640 -0
- package/src/models/parameters.ts +302 -0
- package/src/operations/capabilities.ts +435 -0
- package/src/operations/capabilityTypes.ts +221 -0
- package/src/operations/experiments.ts +892 -0
- package/src/operations/index.ts +14 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/targetTypes.ts +199 -0
- package/src/operations/targets.ts +406 -0
- package/src/operationsInterfaces/capabilities.ts +99 -0
- package/src/operationsInterfaces/capabilityTypes.ts +44 -0
- package/src/operationsInterfaces/experiments.ts +157 -0
- package/src/operationsInterfaces/index.ts +14 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/targetTypes.ts +40 -0
- package/src/operationsInterfaces/targets.ts +91 -0
- package/tsconfig.json +33 -0
- package/types/arm-chaos.d.ts +1337 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,1337 @@
|
|
|
1
|
+
import * as coreAuth from '@azure/core-auth';
|
|
2
|
+
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
+
|
|
5
|
+
/** Model that represents the base action model. */
|
|
6
|
+
export declare interface Action {
|
|
7
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
8
|
+
type: "delay" | "discrete" | "continuous";
|
|
9
|
+
/** String that represents a Capability URN. */
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Model that represents the an action and its status. */
|
|
14
|
+
export declare interface ActionStatus {
|
|
15
|
+
/**
|
|
16
|
+
* The name of the action status.
|
|
17
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
18
|
+
*/
|
|
19
|
+
readonly actionName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The id of the action status.
|
|
22
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
23
|
+
*/
|
|
24
|
+
readonly actionId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The status of the action.
|
|
27
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
28
|
+
*/
|
|
29
|
+
readonly status?: string;
|
|
30
|
+
/**
|
|
31
|
+
* String that represents the start time of the action.
|
|
32
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
33
|
+
*/
|
|
34
|
+
readonly startTime?: Date;
|
|
35
|
+
/**
|
|
36
|
+
* String that represents the end time of the action.
|
|
37
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
38
|
+
*/
|
|
39
|
+
readonly endTime?: Date;
|
|
40
|
+
/**
|
|
41
|
+
* The array of targets.
|
|
42
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
43
|
+
*/
|
|
44
|
+
readonly targets?: ExperimentExecutionActionTargetDetailsProperties[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Defines values for ActionType. \
|
|
49
|
+
* {@link KnownActionType} can be used interchangeably with ActionType,
|
|
50
|
+
* this enum contains the known values that the service supports.
|
|
51
|
+
* ### Known values supported by the service
|
|
52
|
+
* **Internal**
|
|
53
|
+
*/
|
|
54
|
+
export declare type ActionType = string;
|
|
55
|
+
|
|
56
|
+
export declare type ActionUnion = Action | DelayAction | DiscreteAction | ContinuousAction;
|
|
57
|
+
|
|
58
|
+
/** Model that represents a branch in the step. */
|
|
59
|
+
export declare interface Branch {
|
|
60
|
+
/** String of the branch name. */
|
|
61
|
+
name: string;
|
|
62
|
+
/** List of actions. */
|
|
63
|
+
actions: ActionUnion[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** Model that represents the a list of actions and action statuses. */
|
|
67
|
+
export declare interface BranchStatus {
|
|
68
|
+
/**
|
|
69
|
+
* The name of the branch status.
|
|
70
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
71
|
+
*/
|
|
72
|
+
readonly branchName?: string;
|
|
73
|
+
/**
|
|
74
|
+
* The id of the branch status.
|
|
75
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
76
|
+
*/
|
|
77
|
+
readonly branchId?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The status of the branch.
|
|
80
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
81
|
+
*/
|
|
82
|
+
readonly status?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The array of actions.
|
|
85
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
86
|
+
*/
|
|
87
|
+
readonly actions?: ActionStatus[];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** Interface representing a Capabilities. */
|
|
91
|
+
export declare interface Capabilities {
|
|
92
|
+
/**
|
|
93
|
+
* Get a list of Capability resources that extend a Target resource..
|
|
94
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
95
|
+
* @param parentProviderNamespace String that represents a resource provider namespace.
|
|
96
|
+
* @param parentResourceType String that represents a resource type.
|
|
97
|
+
* @param parentResourceName String that represents a resource name.
|
|
98
|
+
* @param targetName String that represents a Target resource name.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
list(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, targetName: string, options?: CapabilitiesListOptionalParams): PagedAsyncIterableIterator<Capability>;
|
|
102
|
+
/**
|
|
103
|
+
* Get a Capability resource that extends a Target resource.
|
|
104
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
105
|
+
* @param parentProviderNamespace String that represents a resource provider namespace.
|
|
106
|
+
* @param parentResourceType String that represents a resource type.
|
|
107
|
+
* @param parentResourceName String that represents a resource name.
|
|
108
|
+
* @param targetName String that represents a Target resource name.
|
|
109
|
+
* @param capabilityName String that represents a Capability resource name.
|
|
110
|
+
* @param options The options parameters.
|
|
111
|
+
*/
|
|
112
|
+
get(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, targetName: string, capabilityName: string, options?: CapabilitiesGetOptionalParams): Promise<CapabilitiesGetResponse>;
|
|
113
|
+
/**
|
|
114
|
+
* Delete a Capability that extends a Target resource.
|
|
115
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
116
|
+
* @param parentProviderNamespace String that represents a resource provider namespace.
|
|
117
|
+
* @param parentResourceType String that represents a resource type.
|
|
118
|
+
* @param parentResourceName String that represents a resource name.
|
|
119
|
+
* @param targetName String that represents a Target resource name.
|
|
120
|
+
* @param capabilityName String that represents a Capability resource name.
|
|
121
|
+
* @param options The options parameters.
|
|
122
|
+
*/
|
|
123
|
+
delete(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, targetName: string, capabilityName: string, options?: CapabilitiesDeleteOptionalParams): Promise<void>;
|
|
124
|
+
/**
|
|
125
|
+
* Create or update a Capability resource that extends a Target resource.
|
|
126
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
127
|
+
* @param parentProviderNamespace String that represents a resource provider namespace.
|
|
128
|
+
* @param parentResourceType String that represents a resource type.
|
|
129
|
+
* @param parentResourceName String that represents a resource name.
|
|
130
|
+
* @param targetName String that represents a Target resource name.
|
|
131
|
+
* @param capabilityName String that represents a Capability resource name.
|
|
132
|
+
* @param capability Capability resource to be created or updated.
|
|
133
|
+
* @param options The options parameters.
|
|
134
|
+
*/
|
|
135
|
+
createOrUpdate(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, targetName: string, capabilityName: string, capability: Capability, options?: CapabilitiesCreateOrUpdateOptionalParams): Promise<CapabilitiesCreateOrUpdateResponse>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** Optional parameters. */
|
|
139
|
+
export declare interface CapabilitiesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** Contains response data for the createOrUpdate operation. */
|
|
143
|
+
export declare type CapabilitiesCreateOrUpdateResponse = Capability;
|
|
144
|
+
|
|
145
|
+
/** Optional parameters. */
|
|
146
|
+
export declare interface CapabilitiesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** Optional parameters. */
|
|
150
|
+
export declare interface CapabilitiesGetOptionalParams extends coreClient.OperationOptions {
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/** Contains response data for the get operation. */
|
|
154
|
+
export declare type CapabilitiesGetResponse = Capability;
|
|
155
|
+
|
|
156
|
+
/** Optional parameters. */
|
|
157
|
+
export declare interface CapabilitiesListNextOptionalParams extends coreClient.OperationOptions {
|
|
158
|
+
/** String that sets the continuation token. */
|
|
159
|
+
continuationToken?: string;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Contains response data for the listNext operation. */
|
|
163
|
+
export declare type CapabilitiesListNextResponse = CapabilityListResult;
|
|
164
|
+
|
|
165
|
+
/** Optional parameters. */
|
|
166
|
+
export declare interface CapabilitiesListOptionalParams extends coreClient.OperationOptions {
|
|
167
|
+
/** String that sets the continuation token. */
|
|
168
|
+
continuationToken?: string;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** Contains response data for the list operation. */
|
|
172
|
+
export declare type CapabilitiesListResponse = CapabilityListResult;
|
|
173
|
+
|
|
174
|
+
/** Model that represents a Capability resource. */
|
|
175
|
+
export declare interface Capability extends Resource {
|
|
176
|
+
/**
|
|
177
|
+
* The standard system metadata of a resource type.
|
|
178
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
179
|
+
*/
|
|
180
|
+
readonly systemData?: SystemData;
|
|
181
|
+
/**
|
|
182
|
+
* String of the Publisher that this Capability extends.
|
|
183
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
184
|
+
*/
|
|
185
|
+
readonly publisher?: string;
|
|
186
|
+
/**
|
|
187
|
+
* String of the Target Type that this Capability extends.
|
|
188
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
189
|
+
*/
|
|
190
|
+
readonly targetType?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Localized string of the description.
|
|
193
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
194
|
+
*/
|
|
195
|
+
readonly description?: string;
|
|
196
|
+
/**
|
|
197
|
+
* URL to retrieve JSON schema of the Capability parameters.
|
|
198
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
199
|
+
*/
|
|
200
|
+
readonly parametersSchema?: string;
|
|
201
|
+
/**
|
|
202
|
+
* String of the URN for this Capability Type.
|
|
203
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
204
|
+
*/
|
|
205
|
+
readonly urn?: string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** Model that represents a list of Capability resources and a link for pagination. */
|
|
209
|
+
export declare interface CapabilityListResult {
|
|
210
|
+
/**
|
|
211
|
+
* List of Capability resources.
|
|
212
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
213
|
+
*/
|
|
214
|
+
readonly value?: Capability[];
|
|
215
|
+
/**
|
|
216
|
+
* URL to retrieve the next page of Capability resources.
|
|
217
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
218
|
+
*/
|
|
219
|
+
readonly nextLink?: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/** Model that represents a Capability Type resource. */
|
|
223
|
+
export declare interface CapabilityType extends Resource {
|
|
224
|
+
/**
|
|
225
|
+
* The system metadata properties of the capability type resource.
|
|
226
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
227
|
+
*/
|
|
228
|
+
readonly systemData?: SystemData;
|
|
229
|
+
/** Location of the Capability Type resource. */
|
|
230
|
+
location?: string;
|
|
231
|
+
/**
|
|
232
|
+
* String of the Publisher that this Capability Type extends.
|
|
233
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
234
|
+
*/
|
|
235
|
+
readonly publisher?: string;
|
|
236
|
+
/**
|
|
237
|
+
* String of the Target Type that this Capability Type extends.
|
|
238
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
239
|
+
*/
|
|
240
|
+
readonly targetType?: string;
|
|
241
|
+
/**
|
|
242
|
+
* Localized string of the display name.
|
|
243
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
244
|
+
*/
|
|
245
|
+
readonly displayName?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Localized string of the description.
|
|
248
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
249
|
+
*/
|
|
250
|
+
readonly description?: string;
|
|
251
|
+
/**
|
|
252
|
+
* URL to retrieve JSON schema of the Capability Type parameters.
|
|
253
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
254
|
+
*/
|
|
255
|
+
readonly parametersSchema?: string;
|
|
256
|
+
/**
|
|
257
|
+
* String of the URN for this Capability Type.
|
|
258
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
259
|
+
*/
|
|
260
|
+
readonly urn?: string;
|
|
261
|
+
/**
|
|
262
|
+
* String of the kind of this Capability Type.
|
|
263
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
264
|
+
*/
|
|
265
|
+
readonly kind?: string;
|
|
266
|
+
/** Runtime properties of this Capability Type. */
|
|
267
|
+
runtimeProperties?: CapabilityTypePropertiesRuntimeProperties;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/** Model that represents a list of Capability Type resources and a link for pagination. */
|
|
271
|
+
export declare interface CapabilityTypeListResult {
|
|
272
|
+
/**
|
|
273
|
+
* List of Capability Type resources.
|
|
274
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
275
|
+
*/
|
|
276
|
+
readonly value?: CapabilityType[];
|
|
277
|
+
/**
|
|
278
|
+
* URL to retrieve the next page of Capability Type resources.
|
|
279
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
280
|
+
*/
|
|
281
|
+
readonly nextLink?: string;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/** Runtime properties of this Capability Type. */
|
|
285
|
+
export declare interface CapabilityTypePropertiesRuntimeProperties {
|
|
286
|
+
/**
|
|
287
|
+
* String of the kind of the resource's action type (continuous or discrete).
|
|
288
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
289
|
+
*/
|
|
290
|
+
readonly kind?: string;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/** Interface representing a CapabilityTypes. */
|
|
294
|
+
export declare interface CapabilityTypes {
|
|
295
|
+
/**
|
|
296
|
+
* Get a list of Capability Type resources for given Target Type and location.
|
|
297
|
+
* @param locationName String that represents a Location resource name.
|
|
298
|
+
* @param targetTypeName String that represents a Target Type resource name.
|
|
299
|
+
* @param options The options parameters.
|
|
300
|
+
*/
|
|
301
|
+
list(locationName: string, targetTypeName: string, options?: CapabilityTypesListOptionalParams): PagedAsyncIterableIterator<CapabilityType>;
|
|
302
|
+
/**
|
|
303
|
+
* Get a Capability Type resource for given Target Type and location.
|
|
304
|
+
* @param locationName String that represents a Location resource name.
|
|
305
|
+
* @param targetTypeName String that represents a Target Type resource name.
|
|
306
|
+
* @param capabilityTypeName String that represents a Capability Type resource name.
|
|
307
|
+
* @param options The options parameters.
|
|
308
|
+
*/
|
|
309
|
+
get(locationName: string, targetTypeName: string, capabilityTypeName: string, options?: CapabilityTypesGetOptionalParams): Promise<CapabilityTypesGetResponse>;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/** Optional parameters. */
|
|
313
|
+
export declare interface CapabilityTypesGetOptionalParams extends coreClient.OperationOptions {
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/** Contains response data for the get operation. */
|
|
317
|
+
export declare type CapabilityTypesGetResponse = CapabilityType;
|
|
318
|
+
|
|
319
|
+
/** Optional parameters. */
|
|
320
|
+
export declare interface CapabilityTypesListNextOptionalParams extends coreClient.OperationOptions {
|
|
321
|
+
/** String that sets the continuation token. */
|
|
322
|
+
continuationToken?: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/** Contains response data for the listNext operation. */
|
|
326
|
+
export declare type CapabilityTypesListNextResponse = CapabilityTypeListResult;
|
|
327
|
+
|
|
328
|
+
/** Optional parameters. */
|
|
329
|
+
export declare interface CapabilityTypesListOptionalParams extends coreClient.OperationOptions {
|
|
330
|
+
/** String that sets the continuation token. */
|
|
331
|
+
continuationToken?: string;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/** Contains response data for the list operation. */
|
|
335
|
+
export declare type CapabilityTypesListResponse = CapabilityTypeListResult;
|
|
336
|
+
|
|
337
|
+
export declare class ChaosManagementClient extends coreClient.ServiceClient {
|
|
338
|
+
$host: string;
|
|
339
|
+
apiVersion: string;
|
|
340
|
+
subscriptionId: string;
|
|
341
|
+
/**
|
|
342
|
+
* Initializes a new instance of the ChaosManagementClient class.
|
|
343
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
344
|
+
* @param subscriptionId GUID that represents an Azure subscription ID.
|
|
345
|
+
* @param options The parameter options
|
|
346
|
+
*/
|
|
347
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ChaosManagementClientOptionalParams);
|
|
348
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
349
|
+
private addCustomApiVersionPolicy;
|
|
350
|
+
capabilities: Capabilities;
|
|
351
|
+
experiments: Experiments;
|
|
352
|
+
operations: Operations;
|
|
353
|
+
targets: Targets;
|
|
354
|
+
targetTypes: TargetTypes;
|
|
355
|
+
capabilityTypes: CapabilityTypes;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/** Optional parameters. */
|
|
359
|
+
export declare interface ChaosManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
360
|
+
/** server parameter */
|
|
361
|
+
$host?: string;
|
|
362
|
+
/** Api Version */
|
|
363
|
+
apiVersion?: string;
|
|
364
|
+
/** Overrides client endpoint. */
|
|
365
|
+
endpoint?: string;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/** Model that represents a continuous action. */
|
|
369
|
+
export declare interface ContinuousAction extends Action {
|
|
370
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
371
|
+
type: "continuous";
|
|
372
|
+
/** ISO8601 formatted string that represents a duration. */
|
|
373
|
+
duration: string;
|
|
374
|
+
/** List of key value pairs. */
|
|
375
|
+
parameters: KeyValuePair[];
|
|
376
|
+
/** String that represents a selector. */
|
|
377
|
+
selectorId: string;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Defines values for CreatedByType. \
|
|
382
|
+
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
|
|
383
|
+
* this enum contains the known values that the service supports.
|
|
384
|
+
* ### Known values supported by the service
|
|
385
|
+
* **User** \
|
|
386
|
+
* **Application** \
|
|
387
|
+
* **ManagedIdentity** \
|
|
388
|
+
* **Key**
|
|
389
|
+
*/
|
|
390
|
+
export declare type CreatedByType = string;
|
|
391
|
+
|
|
392
|
+
/** Model that represents a delay action. */
|
|
393
|
+
export declare interface DelayAction extends Action {
|
|
394
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
395
|
+
type: "delay";
|
|
396
|
+
/** ISO8601 formatted string that represents a duration. */
|
|
397
|
+
duration: string;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/** Model that represents a discrete action. */
|
|
401
|
+
export declare interface DiscreteAction extends Action {
|
|
402
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
403
|
+
type: "discrete";
|
|
404
|
+
/** List of key value pairs. */
|
|
405
|
+
parameters: KeyValuePair[];
|
|
406
|
+
/** String that represents a selector. */
|
|
407
|
+
selectorId: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/** The resource management error additional info. */
|
|
411
|
+
export declare interface ErrorAdditionalInfo {
|
|
412
|
+
/**
|
|
413
|
+
* The additional info type.
|
|
414
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
415
|
+
*/
|
|
416
|
+
readonly type?: string;
|
|
417
|
+
/**
|
|
418
|
+
* The additional info.
|
|
419
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
420
|
+
*/
|
|
421
|
+
readonly info?: Record<string, unknown>;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/** The error detail. */
|
|
425
|
+
export declare interface ErrorDetail {
|
|
426
|
+
/**
|
|
427
|
+
* The error code.
|
|
428
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
429
|
+
*/
|
|
430
|
+
readonly code?: string;
|
|
431
|
+
/**
|
|
432
|
+
* The error message.
|
|
433
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
434
|
+
*/
|
|
435
|
+
readonly message?: string;
|
|
436
|
+
/**
|
|
437
|
+
* The error target.
|
|
438
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
439
|
+
*/
|
|
440
|
+
readonly target?: string;
|
|
441
|
+
/**
|
|
442
|
+
* The error details.
|
|
443
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
444
|
+
*/
|
|
445
|
+
readonly details?: ErrorDetail[];
|
|
446
|
+
/**
|
|
447
|
+
* The error additional info.
|
|
448
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
449
|
+
*/
|
|
450
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
454
|
+
export declare interface ErrorResponse {
|
|
455
|
+
/** The error object. */
|
|
456
|
+
error?: ErrorDetail;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/** Model that represents a Experiment resource. */
|
|
460
|
+
export declare interface Experiment extends TrackedResource {
|
|
461
|
+
/**
|
|
462
|
+
* The system metadata of the experiment resource.
|
|
463
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
464
|
+
*/
|
|
465
|
+
readonly systemData?: SystemData;
|
|
466
|
+
/** The identity of the experiment resource. */
|
|
467
|
+
identity?: ResourceIdentity;
|
|
468
|
+
/** List of steps. */
|
|
469
|
+
steps: Step[];
|
|
470
|
+
/** List of selectors. */
|
|
471
|
+
selectors: Selector[];
|
|
472
|
+
/** A boolean value that indicates if experiment should be started on creation or not. */
|
|
473
|
+
startOnCreation?: boolean;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/** Model that represents the result of a cancel Experiment operation. */
|
|
477
|
+
export declare interface ExperimentCancelOperationResult {
|
|
478
|
+
/**
|
|
479
|
+
* String of the Experiment name.
|
|
480
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
481
|
+
*/
|
|
482
|
+
readonly name?: string;
|
|
483
|
+
/**
|
|
484
|
+
* URL to retrieve the Experiment status.
|
|
485
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
486
|
+
*/
|
|
487
|
+
readonly statusUrl?: string;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/** Model that represents the Experiment action target details error model. */
|
|
491
|
+
export declare interface ExperimentExecutionActionTargetDetailsError {
|
|
492
|
+
/**
|
|
493
|
+
* The error code.
|
|
494
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
495
|
+
*/
|
|
496
|
+
readonly code?: string;
|
|
497
|
+
/**
|
|
498
|
+
* The error message
|
|
499
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
500
|
+
*/
|
|
501
|
+
readonly message?: string;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
/** Model that represents the Experiment action target details properties model. */
|
|
505
|
+
export declare interface ExperimentExecutionActionTargetDetailsProperties {
|
|
506
|
+
/**
|
|
507
|
+
* The status of the execution.
|
|
508
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
509
|
+
*/
|
|
510
|
+
readonly status?: string;
|
|
511
|
+
/**
|
|
512
|
+
* The target for the action.
|
|
513
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
514
|
+
*/
|
|
515
|
+
readonly target?: string;
|
|
516
|
+
/**
|
|
517
|
+
* String that represents the failed date time.
|
|
518
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
519
|
+
*/
|
|
520
|
+
readonly targetFailedTime?: Date;
|
|
521
|
+
/**
|
|
522
|
+
* String that represents the completed date time.
|
|
523
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
524
|
+
*/
|
|
525
|
+
readonly targetCompletedTime?: Date;
|
|
526
|
+
/**
|
|
527
|
+
* The error of the action.
|
|
528
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
529
|
+
*/
|
|
530
|
+
readonly error?: ExperimentExecutionActionTargetDetailsError;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/** Model that represents the execution details of a Experiment. */
|
|
534
|
+
export declare interface ExperimentExecutionDetails {
|
|
535
|
+
/**
|
|
536
|
+
* String of the resource type.
|
|
537
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
538
|
+
*/
|
|
539
|
+
readonly type?: string;
|
|
540
|
+
/**
|
|
541
|
+
* String of the fully qualified resource ID.
|
|
542
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
543
|
+
*/
|
|
544
|
+
readonly id?: string;
|
|
545
|
+
/**
|
|
546
|
+
* String of the resource name.
|
|
547
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
548
|
+
*/
|
|
549
|
+
readonly name?: string;
|
|
550
|
+
/**
|
|
551
|
+
* The id of the experiment.
|
|
552
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
553
|
+
*/
|
|
554
|
+
readonly experimentId?: string;
|
|
555
|
+
/**
|
|
556
|
+
* The value of the status of the experiment execution.
|
|
557
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
558
|
+
*/
|
|
559
|
+
readonly status?: string;
|
|
560
|
+
/**
|
|
561
|
+
* The reason why the execution failed.
|
|
562
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
563
|
+
*/
|
|
564
|
+
readonly failureReason?: string;
|
|
565
|
+
/**
|
|
566
|
+
* String that represents the created date time.
|
|
567
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
568
|
+
*/
|
|
569
|
+
readonly createdDateTime?: Date;
|
|
570
|
+
/**
|
|
571
|
+
* String that represents the last action date time.
|
|
572
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
573
|
+
*/
|
|
574
|
+
readonly lastActionDateTime?: Date;
|
|
575
|
+
/**
|
|
576
|
+
* String that represents the start date time.
|
|
577
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
578
|
+
*/
|
|
579
|
+
readonly startDateTime?: Date;
|
|
580
|
+
/**
|
|
581
|
+
* String that represents the stop date time.
|
|
582
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
583
|
+
*/
|
|
584
|
+
readonly stopDateTime?: Date;
|
|
585
|
+
/**
|
|
586
|
+
* The information of the experiment run.
|
|
587
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
588
|
+
*/
|
|
589
|
+
readonly runInformation?: ExperimentExecutionDetailsPropertiesRunInformation;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/** Model that represents a list of Experiment execution details and a link for pagination. */
|
|
593
|
+
export declare interface ExperimentExecutionDetailsListResult {
|
|
594
|
+
/**
|
|
595
|
+
* List of Experiment execution details.
|
|
596
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
597
|
+
*/
|
|
598
|
+
readonly value?: ExperimentExecutionDetails[];
|
|
599
|
+
/**
|
|
600
|
+
* URL to retrieve the next page of Experiment execution details.
|
|
601
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
602
|
+
*/
|
|
603
|
+
readonly nextLink?: string;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/** The information of the experiment run. */
|
|
607
|
+
export declare interface ExperimentExecutionDetailsPropertiesRunInformation {
|
|
608
|
+
/**
|
|
609
|
+
* The steps of the experiment run.
|
|
610
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
611
|
+
*/
|
|
612
|
+
readonly steps?: StepStatus[];
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/** Model that represents a list of Experiment resources and a link for pagination. */
|
|
616
|
+
export declare interface ExperimentListResult {
|
|
617
|
+
/**
|
|
618
|
+
* List of Experiment resources.
|
|
619
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
620
|
+
*/
|
|
621
|
+
readonly value?: Experiment[];
|
|
622
|
+
/**
|
|
623
|
+
* URL to retrieve the next page of Experiment resources.
|
|
624
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
625
|
+
*/
|
|
626
|
+
readonly nextLink?: string;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
/** Interface representing a Experiments. */
|
|
630
|
+
export declare interface Experiments {
|
|
631
|
+
/**
|
|
632
|
+
* Get a list of Experiment resources in a subscription.
|
|
633
|
+
* @param options The options parameters.
|
|
634
|
+
*/
|
|
635
|
+
listAll(options?: ExperimentsListAllOptionalParams): PagedAsyncIterableIterator<Experiment>;
|
|
636
|
+
/**
|
|
637
|
+
* Get a list of Experiment resources in a resource group.
|
|
638
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
639
|
+
* @param options The options parameters.
|
|
640
|
+
*/
|
|
641
|
+
list(resourceGroupName: string, options?: ExperimentsListOptionalParams): PagedAsyncIterableIterator<Experiment>;
|
|
642
|
+
/**
|
|
643
|
+
* Get a list of statuses of a Experiment resource.
|
|
644
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
645
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
646
|
+
* @param options The options parameters.
|
|
647
|
+
*/
|
|
648
|
+
listAllStatuses(resourceGroupName: string, experimentName: string, options?: ExperimentsListAllStatusesOptionalParams): PagedAsyncIterableIterator<ExperimentStatus>;
|
|
649
|
+
/**
|
|
650
|
+
* Get a list of execution details of a Experiment resource.
|
|
651
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
652
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
653
|
+
* @param options The options parameters.
|
|
654
|
+
*/
|
|
655
|
+
listExecutionDetails(resourceGroupName: string, experimentName: string, options?: ExperimentsListExecutionDetailsOptionalParams): PagedAsyncIterableIterator<ExperimentExecutionDetails>;
|
|
656
|
+
/**
|
|
657
|
+
* Delete a Experiment resource.
|
|
658
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
659
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
660
|
+
* @param options The options parameters.
|
|
661
|
+
*/
|
|
662
|
+
delete(resourceGroupName: string, experimentName: string, options?: ExperimentsDeleteOptionalParams): Promise<void>;
|
|
663
|
+
/**
|
|
664
|
+
* Get a Experiment resource.
|
|
665
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
666
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
667
|
+
* @param options The options parameters.
|
|
668
|
+
*/
|
|
669
|
+
get(resourceGroupName: string, experimentName: string, options?: ExperimentsGetOptionalParams): Promise<ExperimentsGetResponse>;
|
|
670
|
+
/**
|
|
671
|
+
* Create or update a Experiment resource.
|
|
672
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
673
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
674
|
+
* @param experiment Experiment resource to be created or updated.
|
|
675
|
+
* @param options The options parameters.
|
|
676
|
+
*/
|
|
677
|
+
createOrUpdate(resourceGroupName: string, experimentName: string, experiment: Experiment, options?: ExperimentsCreateOrUpdateOptionalParams): Promise<ExperimentsCreateOrUpdateResponse>;
|
|
678
|
+
/**
|
|
679
|
+
* Cancel a running Experiment resource.
|
|
680
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
681
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
682
|
+
* @param options The options parameters.
|
|
683
|
+
*/
|
|
684
|
+
cancel(resourceGroupName: string, experimentName: string, options?: ExperimentsCancelOptionalParams): Promise<ExperimentsCancelResponse>;
|
|
685
|
+
/**
|
|
686
|
+
* Start a Experiment resource.
|
|
687
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
688
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
689
|
+
* @param options The options parameters.
|
|
690
|
+
*/
|
|
691
|
+
start(resourceGroupName: string, experimentName: string, options?: ExperimentsStartOptionalParams): Promise<ExperimentsStartResponse>;
|
|
692
|
+
/**
|
|
693
|
+
* Get a status of a Experiment resource.
|
|
694
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
695
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
696
|
+
* @param statusId GUID that represents a Experiment status.
|
|
697
|
+
* @param options The options parameters.
|
|
698
|
+
*/
|
|
699
|
+
getStatus(resourceGroupName: string, experimentName: string, statusId: string, options?: ExperimentsGetStatusOptionalParams): Promise<ExperimentsGetStatusResponse>;
|
|
700
|
+
/**
|
|
701
|
+
* Get an execution detail of a Experiment resource.
|
|
702
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
703
|
+
* @param experimentName String that represents a Experiment resource name.
|
|
704
|
+
* @param executionDetailsId GUID that represents a Experiment execution detail.
|
|
705
|
+
* @param options The options parameters.
|
|
706
|
+
*/
|
|
707
|
+
getExecutionDetails(resourceGroupName: string, experimentName: string, executionDetailsId: string, options?: ExperimentsGetExecutionDetailsOptionalParams): Promise<ExperimentsGetExecutionDetailsResponse>;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/** Optional parameters. */
|
|
711
|
+
export declare interface ExperimentsCancelOptionalParams extends coreClient.OperationOptions {
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/** Contains response data for the cancel operation. */
|
|
715
|
+
export declare type ExperimentsCancelResponse = ExperimentCancelOperationResult;
|
|
716
|
+
|
|
717
|
+
/** Optional parameters. */
|
|
718
|
+
export declare interface ExperimentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/** Contains response data for the createOrUpdate operation. */
|
|
722
|
+
export declare type ExperimentsCreateOrUpdateResponse = Experiment;
|
|
723
|
+
|
|
724
|
+
/** Optional parameters. */
|
|
725
|
+
export declare interface ExperimentsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/** Optional parameters. */
|
|
729
|
+
export declare interface ExperimentsGetExecutionDetailsOptionalParams extends coreClient.OperationOptions {
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/** Contains response data for the getExecutionDetails operation. */
|
|
733
|
+
export declare type ExperimentsGetExecutionDetailsResponse = ExperimentExecutionDetails;
|
|
734
|
+
|
|
735
|
+
/** Optional parameters. */
|
|
736
|
+
export declare interface ExperimentsGetOptionalParams extends coreClient.OperationOptions {
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/** Contains response data for the get operation. */
|
|
740
|
+
export declare type ExperimentsGetResponse = Experiment;
|
|
741
|
+
|
|
742
|
+
/** Optional parameters. */
|
|
743
|
+
export declare interface ExperimentsGetStatusOptionalParams extends coreClient.OperationOptions {
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/** Contains response data for the getStatus operation. */
|
|
747
|
+
export declare type ExperimentsGetStatusResponse = ExperimentStatus;
|
|
748
|
+
|
|
749
|
+
/** Optional parameters. */
|
|
750
|
+
export declare interface ExperimentsListAllNextOptionalParams extends coreClient.OperationOptions {
|
|
751
|
+
/** String that sets the continuation token. */
|
|
752
|
+
continuationToken?: string;
|
|
753
|
+
/** Optional value that indicates whether to filter results based on if the Experiment is currently running. If null, then the results will not be filtered. */
|
|
754
|
+
running?: boolean;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/** Contains response data for the listAllNext operation. */
|
|
758
|
+
export declare type ExperimentsListAllNextResponse = ExperimentListResult;
|
|
759
|
+
|
|
760
|
+
/** Optional parameters. */
|
|
761
|
+
export declare interface ExperimentsListAllOptionalParams extends coreClient.OperationOptions {
|
|
762
|
+
/** String that sets the continuation token. */
|
|
763
|
+
continuationToken?: string;
|
|
764
|
+
/** Optional value that indicates whether to filter results based on if the Experiment is currently running. If null, then the results will not be filtered. */
|
|
765
|
+
running?: boolean;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
/** Contains response data for the listAll operation. */
|
|
769
|
+
export declare type ExperimentsListAllResponse = ExperimentListResult;
|
|
770
|
+
|
|
771
|
+
/** Optional parameters. */
|
|
772
|
+
export declare interface ExperimentsListAllStatusesNextOptionalParams extends coreClient.OperationOptions {
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/** Contains response data for the listAllStatusesNext operation. */
|
|
776
|
+
export declare type ExperimentsListAllStatusesNextResponse = ExperimentStatusListResult;
|
|
777
|
+
|
|
778
|
+
/** Optional parameters. */
|
|
779
|
+
export declare interface ExperimentsListAllStatusesOptionalParams extends coreClient.OperationOptions {
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
/** Contains response data for the listAllStatuses operation. */
|
|
783
|
+
export declare type ExperimentsListAllStatusesResponse = ExperimentStatusListResult;
|
|
784
|
+
|
|
785
|
+
/** Optional parameters. */
|
|
786
|
+
export declare interface ExperimentsListExecutionDetailsNextOptionalParams extends coreClient.OperationOptions {
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/** Contains response data for the listExecutionDetailsNext operation. */
|
|
790
|
+
export declare type ExperimentsListExecutionDetailsNextResponse = ExperimentExecutionDetailsListResult;
|
|
791
|
+
|
|
792
|
+
/** Optional parameters. */
|
|
793
|
+
export declare interface ExperimentsListExecutionDetailsOptionalParams extends coreClient.OperationOptions {
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/** Contains response data for the listExecutionDetails operation. */
|
|
797
|
+
export declare type ExperimentsListExecutionDetailsResponse = ExperimentExecutionDetailsListResult;
|
|
798
|
+
|
|
799
|
+
/** Optional parameters. */
|
|
800
|
+
export declare interface ExperimentsListNextOptionalParams extends coreClient.OperationOptions {
|
|
801
|
+
/** String that sets the continuation token. */
|
|
802
|
+
continuationToken?: string;
|
|
803
|
+
/** Optional value that indicates whether to filter results based on if the Experiment is currently running. If null, then the results will not be filtered. */
|
|
804
|
+
running?: boolean;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/** Contains response data for the listNext operation. */
|
|
808
|
+
export declare type ExperimentsListNextResponse = ExperimentListResult;
|
|
809
|
+
|
|
810
|
+
/** Optional parameters. */
|
|
811
|
+
export declare interface ExperimentsListOptionalParams extends coreClient.OperationOptions {
|
|
812
|
+
/** String that sets the continuation token. */
|
|
813
|
+
continuationToken?: string;
|
|
814
|
+
/** Optional value that indicates whether to filter results based on if the Experiment is currently running. If null, then the results will not be filtered. */
|
|
815
|
+
running?: boolean;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/** Contains response data for the list operation. */
|
|
819
|
+
export declare type ExperimentsListResponse = ExperimentListResult;
|
|
820
|
+
|
|
821
|
+
/** Optional parameters. */
|
|
822
|
+
export declare interface ExperimentsStartOptionalParams extends coreClient.OperationOptions {
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/** Contains response data for the start operation. */
|
|
826
|
+
export declare type ExperimentsStartResponse = ExperimentStartOperationResult;
|
|
827
|
+
|
|
828
|
+
/** Model that represents the result of a start Experiment operation. */
|
|
829
|
+
export declare interface ExperimentStartOperationResult {
|
|
830
|
+
/**
|
|
831
|
+
* String of the Experiment name.
|
|
832
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
833
|
+
*/
|
|
834
|
+
readonly name?: string;
|
|
835
|
+
/**
|
|
836
|
+
* URL to retrieve the Experiment status.
|
|
837
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
838
|
+
*/
|
|
839
|
+
readonly statusUrl?: string;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/** Model that represents the status of a Experiment. */
|
|
843
|
+
export declare interface ExperimentStatus {
|
|
844
|
+
/**
|
|
845
|
+
* String of the resource type.
|
|
846
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
847
|
+
*/
|
|
848
|
+
readonly type?: string;
|
|
849
|
+
/**
|
|
850
|
+
* String of the fully qualified resource ID.
|
|
851
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
852
|
+
*/
|
|
853
|
+
readonly id?: string;
|
|
854
|
+
/**
|
|
855
|
+
* String of the resource name.
|
|
856
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
857
|
+
*/
|
|
858
|
+
readonly name?: string;
|
|
859
|
+
/**
|
|
860
|
+
* String that represents the status of a Experiment.
|
|
861
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
862
|
+
*/
|
|
863
|
+
readonly status?: string;
|
|
864
|
+
/**
|
|
865
|
+
* String that represents the created date time of a Experiment.
|
|
866
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
867
|
+
*/
|
|
868
|
+
readonly createdDateUtc?: Date;
|
|
869
|
+
/**
|
|
870
|
+
* String that represents the end date time of a Experiment.
|
|
871
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
872
|
+
*/
|
|
873
|
+
readonly endDateUtc?: Date;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/** Model that represents a list of Experiment statuses and a link for pagination. */
|
|
877
|
+
export declare interface ExperimentStatusListResult {
|
|
878
|
+
/**
|
|
879
|
+
* List of Experiment statuses.
|
|
880
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
881
|
+
*/
|
|
882
|
+
readonly value?: ExperimentStatus[];
|
|
883
|
+
/**
|
|
884
|
+
* URL to retrieve the next page of Experiment statuses.
|
|
885
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
886
|
+
*/
|
|
887
|
+
readonly nextLink?: string;
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/** A map to describe the settings of an action. */
|
|
891
|
+
export declare interface KeyValuePair {
|
|
892
|
+
/** The name of the setting for the action. */
|
|
893
|
+
key: string;
|
|
894
|
+
/** The value of the setting for the action. */
|
|
895
|
+
value: string;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
899
|
+
export declare enum KnownActionType {
|
|
900
|
+
/** Internal */
|
|
901
|
+
Internal = "Internal"
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
905
|
+
export declare enum KnownCreatedByType {
|
|
906
|
+
/** User */
|
|
907
|
+
User = "User",
|
|
908
|
+
/** Application */
|
|
909
|
+
Application = "Application",
|
|
910
|
+
/** ManagedIdentity */
|
|
911
|
+
ManagedIdentity = "ManagedIdentity",
|
|
912
|
+
/** Key */
|
|
913
|
+
Key = "Key"
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
917
|
+
export declare enum KnownOrigin {
|
|
918
|
+
/** User */
|
|
919
|
+
User = "user",
|
|
920
|
+
/** System */
|
|
921
|
+
System = "system",
|
|
922
|
+
/** UserSystem */
|
|
923
|
+
UserSystem = "user,system"
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/** Details of a REST API operation, returned from the Resource Provider Operations API */
|
|
927
|
+
export declare interface Operation {
|
|
928
|
+
/**
|
|
929
|
+
* The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
|
|
930
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
931
|
+
*/
|
|
932
|
+
readonly name?: string;
|
|
933
|
+
/**
|
|
934
|
+
* Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
|
|
935
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
936
|
+
*/
|
|
937
|
+
readonly isDataAction?: boolean;
|
|
938
|
+
/** Localized display information for this particular operation. */
|
|
939
|
+
display?: OperationDisplay;
|
|
940
|
+
/**
|
|
941
|
+
* The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
|
|
942
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
943
|
+
*/
|
|
944
|
+
readonly origin?: Origin;
|
|
945
|
+
/**
|
|
946
|
+
* Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
|
|
947
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
948
|
+
*/
|
|
949
|
+
readonly actionType?: ActionType;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/** Localized display information for this particular operation. */
|
|
953
|
+
export declare interface OperationDisplay {
|
|
954
|
+
/**
|
|
955
|
+
* The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
|
|
956
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
957
|
+
*/
|
|
958
|
+
readonly provider?: string;
|
|
959
|
+
/**
|
|
960
|
+
* The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
|
|
961
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
962
|
+
*/
|
|
963
|
+
readonly resource?: string;
|
|
964
|
+
/**
|
|
965
|
+
* The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
|
|
966
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
967
|
+
*/
|
|
968
|
+
readonly operation?: string;
|
|
969
|
+
/**
|
|
970
|
+
* The short, localized friendly description of the operation; suitable for tool tips and detailed views.
|
|
971
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
972
|
+
*/
|
|
973
|
+
readonly description?: string;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
|
|
977
|
+
export declare interface OperationListResult {
|
|
978
|
+
/**
|
|
979
|
+
* List of operations supported by the resource provider
|
|
980
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
981
|
+
*/
|
|
982
|
+
readonly value?: Operation[];
|
|
983
|
+
/**
|
|
984
|
+
* URL to get the next set of operation list results (if there are any).
|
|
985
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
986
|
+
*/
|
|
987
|
+
readonly nextLink?: string;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
/** Interface representing a Operations. */
|
|
991
|
+
export declare interface Operations {
|
|
992
|
+
/**
|
|
993
|
+
* Get a list all available Operations.
|
|
994
|
+
* @param options The options parameters.
|
|
995
|
+
*/
|
|
996
|
+
listAll(options?: OperationsListAllOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
/** Optional parameters. */
|
|
1000
|
+
export declare interface OperationsListAllNextOptionalParams extends coreClient.OperationOptions {
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/** Contains response data for the listAllNext operation. */
|
|
1004
|
+
export declare type OperationsListAllNextResponse = OperationListResult;
|
|
1005
|
+
|
|
1006
|
+
/** Optional parameters. */
|
|
1007
|
+
export declare interface OperationsListAllOptionalParams extends coreClient.OperationOptions {
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
/** Contains response data for the listAll operation. */
|
|
1011
|
+
export declare type OperationsListAllResponse = OperationListResult;
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Defines values for Origin. \
|
|
1015
|
+
* {@link KnownOrigin} can be used interchangeably with Origin,
|
|
1016
|
+
* this enum contains the known values that the service supports.
|
|
1017
|
+
* ### Known values supported by the service
|
|
1018
|
+
* **user** \
|
|
1019
|
+
* **system** \
|
|
1020
|
+
* **user,system**
|
|
1021
|
+
*/
|
|
1022
|
+
export declare type Origin = string;
|
|
1023
|
+
|
|
1024
|
+
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
1025
|
+
export declare interface Resource {
|
|
1026
|
+
/**
|
|
1027
|
+
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
1028
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1029
|
+
*/
|
|
1030
|
+
readonly id?: string;
|
|
1031
|
+
/**
|
|
1032
|
+
* The name of the resource
|
|
1033
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1034
|
+
*/
|
|
1035
|
+
readonly name?: string;
|
|
1036
|
+
/**
|
|
1037
|
+
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
1038
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1039
|
+
*/
|
|
1040
|
+
readonly type?: string;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/** The managed identity of a resource. */
|
|
1044
|
+
export declare interface ResourceIdentity {
|
|
1045
|
+
/** String of the resource identity type. */
|
|
1046
|
+
type: ResourceIdentityType;
|
|
1047
|
+
/**
|
|
1048
|
+
* GUID that represents the principal ID of this resource identity.
|
|
1049
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1050
|
+
*/
|
|
1051
|
+
readonly principalId?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* GUID that represents the tenant ID of this resource identity.
|
|
1054
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1055
|
+
*/
|
|
1056
|
+
readonly tenantId?: string;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
/** Defines values for ResourceIdentityType. */
|
|
1060
|
+
export declare type ResourceIdentityType = "None" | "SystemAssigned";
|
|
1061
|
+
|
|
1062
|
+
/** Model that represents a selector in the Experiment resource. */
|
|
1063
|
+
export declare interface Selector {
|
|
1064
|
+
/** Enum of the selector type. */
|
|
1065
|
+
type: SelectorType;
|
|
1066
|
+
/** String of the selector ID. */
|
|
1067
|
+
id: string;
|
|
1068
|
+
/** List of Target references. */
|
|
1069
|
+
targets: TargetReference[];
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/** Defines values for SelectorType. */
|
|
1073
|
+
export declare type SelectorType = "Percent" | "Random" | "Tag" | "List";
|
|
1074
|
+
|
|
1075
|
+
/** Model that represents a step in the Experiment resource. */
|
|
1076
|
+
export declare interface Step {
|
|
1077
|
+
/** String of the step name. */
|
|
1078
|
+
name: string;
|
|
1079
|
+
/** List of branches. */
|
|
1080
|
+
branches: Branch[];
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/** Model that represents the a list of branches and branch statuses. */
|
|
1084
|
+
export declare interface StepStatus {
|
|
1085
|
+
/**
|
|
1086
|
+
* The name of the step.
|
|
1087
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1088
|
+
*/
|
|
1089
|
+
readonly stepName?: string;
|
|
1090
|
+
/**
|
|
1091
|
+
* The id of the step.
|
|
1092
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1093
|
+
*/
|
|
1094
|
+
readonly stepId?: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* The value of the status of the step.
|
|
1097
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1098
|
+
*/
|
|
1099
|
+
readonly status?: string;
|
|
1100
|
+
/**
|
|
1101
|
+
* The array of branches.
|
|
1102
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1103
|
+
*/
|
|
1104
|
+
readonly branches?: BranchStatus[];
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/** Metadata pertaining to creation and last modification of the resource. */
|
|
1108
|
+
export declare interface SystemData {
|
|
1109
|
+
/** The identity that created the resource. */
|
|
1110
|
+
createdBy?: string;
|
|
1111
|
+
/** The type of identity that created the resource. */
|
|
1112
|
+
createdByType?: CreatedByType;
|
|
1113
|
+
/** The timestamp of resource creation (UTC). */
|
|
1114
|
+
createdAt?: Date;
|
|
1115
|
+
/** The identity that last modified the resource. */
|
|
1116
|
+
lastModifiedBy?: string;
|
|
1117
|
+
/** The type of identity that last modified the resource. */
|
|
1118
|
+
lastModifiedByType?: CreatedByType;
|
|
1119
|
+
/** The timestamp of resource last modification (UTC) */
|
|
1120
|
+
lastModifiedAt?: Date;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
/** Model that represents a Target resource. */
|
|
1124
|
+
export declare interface Target extends Resource {
|
|
1125
|
+
/**
|
|
1126
|
+
* The system metadata of the target resource.
|
|
1127
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1128
|
+
*/
|
|
1129
|
+
readonly systemData?: SystemData;
|
|
1130
|
+
/** Location of the target resource. */
|
|
1131
|
+
location?: string;
|
|
1132
|
+
/** The properties of the target resource. */
|
|
1133
|
+
properties: {
|
|
1134
|
+
[propertyName: string]: any;
|
|
1135
|
+
};
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/** Model that represents a list of Target resources and a link for pagination. */
|
|
1139
|
+
export declare interface TargetListResult {
|
|
1140
|
+
/**
|
|
1141
|
+
* List of Target resources.
|
|
1142
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1143
|
+
*/
|
|
1144
|
+
readonly value?: Target[];
|
|
1145
|
+
/**
|
|
1146
|
+
* URL to retrieve the next page of Target resources.
|
|
1147
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1148
|
+
*/
|
|
1149
|
+
readonly nextLink?: string;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/** Model that represents a reference to a Target in the selector. */
|
|
1153
|
+
export declare interface TargetReference {
|
|
1154
|
+
/** Enum of the Target reference type. */
|
|
1155
|
+
type: "ChaosTarget";
|
|
1156
|
+
/** String of the resource ID of a Target resource. */
|
|
1157
|
+
id: string;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
/** Interface representing a Targets. */
|
|
1161
|
+
export declare interface Targets {
|
|
1162
|
+
/**
|
|
1163
|
+
* Get a list of Target resources that extend a tracked regional resource.
|
|
1164
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
1165
|
+
* @param parentProviderNamespace String that represents a resource provider namespace.
|
|
1166
|
+
* @param parentResourceType String that represents a resource type.
|
|
1167
|
+
* @param parentResourceName String that represents a resource name.
|
|
1168
|
+
* @param options The options parameters.
|
|
1169
|
+
*/
|
|
1170
|
+
list(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, options?: TargetsListOptionalParams): PagedAsyncIterableIterator<Target>;
|
|
1171
|
+
/**
|
|
1172
|
+
* Get a Target resource that extends a tracked regional resource.
|
|
1173
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
1174
|
+
* @param parentProviderNamespace String that represents a resource provider namespace.
|
|
1175
|
+
* @param parentResourceType String that represents a resource type.
|
|
1176
|
+
* @param parentResourceName String that represents a resource name.
|
|
1177
|
+
* @param targetName String that represents a Target resource name.
|
|
1178
|
+
* @param options The options parameters.
|
|
1179
|
+
*/
|
|
1180
|
+
get(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, targetName: string, options?: TargetsGetOptionalParams): Promise<TargetsGetResponse>;
|
|
1181
|
+
/**
|
|
1182
|
+
* Delete a Target resource that extends a tracked regional resource.
|
|
1183
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
1184
|
+
* @param parentProviderNamespace String that represents a resource provider namespace.
|
|
1185
|
+
* @param parentResourceType String that represents a resource type.
|
|
1186
|
+
* @param parentResourceName String that represents a resource name.
|
|
1187
|
+
* @param targetName String that represents a Target resource name.
|
|
1188
|
+
* @param options The options parameters.
|
|
1189
|
+
*/
|
|
1190
|
+
delete(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, targetName: string, options?: TargetsDeleteOptionalParams): Promise<void>;
|
|
1191
|
+
/**
|
|
1192
|
+
* Create or update a Target resource that extends a tracked regional resource.
|
|
1193
|
+
* @param resourceGroupName String that represents an Azure resource group.
|
|
1194
|
+
* @param parentProviderNamespace String that represents a resource provider namespace.
|
|
1195
|
+
* @param parentResourceType String that represents a resource type.
|
|
1196
|
+
* @param parentResourceName String that represents a resource name.
|
|
1197
|
+
* @param targetName String that represents a Target resource name.
|
|
1198
|
+
* @param target Target resource to be created or updated.
|
|
1199
|
+
* @param options The options parameters.
|
|
1200
|
+
*/
|
|
1201
|
+
createOrUpdate(resourceGroupName: string, parentProviderNamespace: string, parentResourceType: string, parentResourceName: string, targetName: string, target: Target, options?: TargetsCreateOrUpdateOptionalParams): Promise<TargetsCreateOrUpdateResponse>;
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/** Optional parameters. */
|
|
1205
|
+
export declare interface TargetsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
/** Contains response data for the createOrUpdate operation. */
|
|
1209
|
+
export declare type TargetsCreateOrUpdateResponse = Target;
|
|
1210
|
+
|
|
1211
|
+
/** Optional parameters. */
|
|
1212
|
+
export declare interface TargetsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
/** Optional parameters. */
|
|
1216
|
+
export declare interface TargetsGetOptionalParams extends coreClient.OperationOptions {
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
/** Contains response data for the get operation. */
|
|
1220
|
+
export declare type TargetsGetResponse = Target;
|
|
1221
|
+
|
|
1222
|
+
/** Optional parameters. */
|
|
1223
|
+
export declare interface TargetsListNextOptionalParams extends coreClient.OperationOptions {
|
|
1224
|
+
/** String that sets the continuation token. */
|
|
1225
|
+
continuationToken?: string;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
/** Contains response data for the listNext operation. */
|
|
1229
|
+
export declare type TargetsListNextResponse = TargetListResult;
|
|
1230
|
+
|
|
1231
|
+
/** Optional parameters. */
|
|
1232
|
+
export declare interface TargetsListOptionalParams extends coreClient.OperationOptions {
|
|
1233
|
+
/** String that sets the continuation token. */
|
|
1234
|
+
continuationToken?: string;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/** Contains response data for the list operation. */
|
|
1238
|
+
export declare type TargetsListResponse = TargetListResult;
|
|
1239
|
+
|
|
1240
|
+
/** Model that represents a Target Type resource. */
|
|
1241
|
+
export declare interface TargetType extends Resource {
|
|
1242
|
+
/**
|
|
1243
|
+
* The system metadata properties of the target type resource.
|
|
1244
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1245
|
+
*/
|
|
1246
|
+
readonly systemData?: SystemData;
|
|
1247
|
+
/** Location of the Target Type resource. */
|
|
1248
|
+
location?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* Localized string of the display name.
|
|
1251
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1252
|
+
*/
|
|
1253
|
+
readonly displayName?: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* Localized string of the description.
|
|
1256
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1257
|
+
*/
|
|
1258
|
+
readonly description?: string;
|
|
1259
|
+
/**
|
|
1260
|
+
* URL to retrieve JSON schema of the Target Type properties.
|
|
1261
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1262
|
+
*/
|
|
1263
|
+
readonly propertiesSchema?: string;
|
|
1264
|
+
/**
|
|
1265
|
+
* List of resource types this Target Type can extend.
|
|
1266
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1267
|
+
*/
|
|
1268
|
+
readonly resourceTypes?: string[];
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
/** Model that represents a list of Target Type resources and a link for pagination. */
|
|
1272
|
+
export declare interface TargetTypeListResult {
|
|
1273
|
+
/**
|
|
1274
|
+
* List of Target Type resources.
|
|
1275
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1276
|
+
*/
|
|
1277
|
+
readonly value?: TargetType[];
|
|
1278
|
+
/**
|
|
1279
|
+
* URL to retrieve the next page of Target Type resources.
|
|
1280
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
1281
|
+
*/
|
|
1282
|
+
readonly nextLink?: string;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/** Interface representing a TargetTypes. */
|
|
1286
|
+
export declare interface TargetTypes {
|
|
1287
|
+
/**
|
|
1288
|
+
* Get a list of Target Type resources for given location.
|
|
1289
|
+
* @param locationName String that represents a Location resource name.
|
|
1290
|
+
* @param options The options parameters.
|
|
1291
|
+
*/
|
|
1292
|
+
list(locationName: string, options?: TargetTypesListOptionalParams): PagedAsyncIterableIterator<TargetType>;
|
|
1293
|
+
/**
|
|
1294
|
+
* Get a Target Type resources for given location.
|
|
1295
|
+
* @param locationName String that represents a Location resource name.
|
|
1296
|
+
* @param targetTypeName String that represents a Target Type resource name.
|
|
1297
|
+
* @param options The options parameters.
|
|
1298
|
+
*/
|
|
1299
|
+
get(locationName: string, targetTypeName: string, options?: TargetTypesGetOptionalParams): Promise<TargetTypesGetResponse>;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
/** Optional parameters. */
|
|
1303
|
+
export declare interface TargetTypesGetOptionalParams extends coreClient.OperationOptions {
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
/** Contains response data for the get operation. */
|
|
1307
|
+
export declare type TargetTypesGetResponse = TargetType;
|
|
1308
|
+
|
|
1309
|
+
/** Optional parameters. */
|
|
1310
|
+
export declare interface TargetTypesListNextOptionalParams extends coreClient.OperationOptions {
|
|
1311
|
+
/** String that sets the continuation token. */
|
|
1312
|
+
continuationToken?: string;
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
/** Contains response data for the listNext operation. */
|
|
1316
|
+
export declare type TargetTypesListNextResponse = TargetTypeListResult;
|
|
1317
|
+
|
|
1318
|
+
/** Optional parameters. */
|
|
1319
|
+
export declare interface TargetTypesListOptionalParams extends coreClient.OperationOptions {
|
|
1320
|
+
/** String that sets the continuation token. */
|
|
1321
|
+
continuationToken?: string;
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
/** Contains response data for the list operation. */
|
|
1325
|
+
export declare type TargetTypesListResponse = TargetTypeListResult;
|
|
1326
|
+
|
|
1327
|
+
/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
|
|
1328
|
+
export declare interface TrackedResource extends Resource {
|
|
1329
|
+
/** Resource tags. */
|
|
1330
|
+
tags?: {
|
|
1331
|
+
[propertyName: string]: string;
|
|
1332
|
+
};
|
|
1333
|
+
/** The geo-location where the resource lives */
|
|
1334
|
+
location: string;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
export { }
|