@azure/arm-changes 1.0.0
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 +747 -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/changesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/changesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/changesGetSample.js +34 -0
- package/dist-esm/samples-dev/changesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/changesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/changesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/changesListSample.js +47 -0
- package/dist-esm/samples-dev/changesListSample.js.map +1 -0
- package/dist-esm/src/changesClient.d.ts +19 -0
- package/dist-esm/src/changesClient.d.ts.map +1 -0
- package/dist-esm/src/changesClient.js +70 -0
- package/dist-esm/src/changesClient.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 +191 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +9 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +11 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +294 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +135 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/changes.d.ts +54 -0
- package/dist-esm/src/operations/changes.d.ts.map +1 -0
- package/dist-esm/src/operations/changes.js +211 -0
- package/dist-esm/src/operations/changes.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +9 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/changes.d.ts +25 -0
- package/dist-esm/src/operationsInterfaces/changes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/changes.js +9 -0
- package/dist-esm/src/operationsInterfaces/changes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +9 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +116 -0
- package/review/arm-changes.api.md +139 -0
- package/rollup.config.js +122 -0
- package/src/changesClient.ts +101 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +213 -0
- package/src/models/mappers.ts +307 -0
- package/src/models/parameters.ts +152 -0
- package/src/operations/changes.ts +297 -0
- package/src/operations/index.ts +9 -0
- package/src/operationsInterfaces/changes.ts +52 -0
- package/src/operationsInterfaces/index.ts +9 -0
- package/tsconfig.json +33 -0
- package/types/arm-changes.d.ts +251 -0
- package/types/tsdoc-metadata.json +11 -0
package/rollup.config.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
+
import cjs from "@rollup/plugin-commonjs";
|
|
11
|
+
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
+
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
+
import json from "@rollup/plugin-json";
|
|
14
|
+
|
|
15
|
+
import nodeBuiltins from "builtin-modules";
|
|
16
|
+
|
|
17
|
+
// #region Warning Handler
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
|
21
|
+
* the function returns `true`, then the warning will not be displayed.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
|
25
|
+
return (
|
|
26
|
+
warning.code === "EVAL" &&
|
|
27
|
+
warning.id &&
|
|
28
|
+
(warning.id.includes("node_modules/nise") ||
|
|
29
|
+
warning.id.includes("node_modules/sinon")) === true
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
|
34
|
+
return (
|
|
35
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
36
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Construct a warning handler for the shared rollup configuration
|
|
44
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
45
|
+
*/
|
|
46
|
+
function makeOnWarnForTesting() {
|
|
47
|
+
return (warning, warn) => {
|
|
48
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
49
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
50
|
+
warn(warning);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// #endregion
|
|
56
|
+
|
|
57
|
+
function makeBrowserTestConfig() {
|
|
58
|
+
const config = {
|
|
59
|
+
input: {
|
|
60
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
|
61
|
+
exclude: ["dist-esm/test/**/node/**"]
|
|
62
|
+
},
|
|
63
|
+
output: {
|
|
64
|
+
file: `dist-test/index.browser.js`,
|
|
65
|
+
format: "umd",
|
|
66
|
+
sourcemap: true
|
|
67
|
+
},
|
|
68
|
+
preserveSymlinks: false,
|
|
69
|
+
plugins: [
|
|
70
|
+
multiEntry({ exports: false }),
|
|
71
|
+
nodeResolve({
|
|
72
|
+
mainFields: ["module", "browser"]
|
|
73
|
+
}),
|
|
74
|
+
cjs(),
|
|
75
|
+
json(),
|
|
76
|
+
sourcemaps()
|
|
77
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
78
|
+
],
|
|
79
|
+
onwarn: makeOnWarnForTesting(),
|
|
80
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
81
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
82
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
|
83
|
+
// code, which causes all tests to be removed by tree-shaking.
|
|
84
|
+
treeshake: false
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return config;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const defaultConfigurationOptions = {
|
|
91
|
+
disableBrowserBundle: false
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export function makeConfig(pkg, options) {
|
|
95
|
+
options = {
|
|
96
|
+
...defaultConfigurationOptions,
|
|
97
|
+
...(options || {})
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const baseConfig = {
|
|
101
|
+
// Use the package's module field if it has one
|
|
102
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
|
103
|
+
external: [
|
|
104
|
+
...nodeBuiltins,
|
|
105
|
+
...Object.keys(pkg.dependencies),
|
|
106
|
+
...Object.keys(pkg.devDependencies)
|
|
107
|
+
],
|
|
108
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
109
|
+
preserveSymlinks: false,
|
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const config = [baseConfig];
|
|
114
|
+
|
|
115
|
+
if (!options.disableBrowserBundle) {
|
|
116
|
+
config.push(makeBrowserTestConfig());
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return config;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export default makeConfig(require("./package.json"));
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
+
import * as coreAuth from "@azure/core-auth";
|
|
12
|
+
import { ChangesImpl } from "./operations";
|
|
13
|
+
import { Changes } from "./operationsInterfaces";
|
|
14
|
+
import { ChangesClientOptionalParams } from "./models";
|
|
15
|
+
|
|
16
|
+
export class ChangesClient extends coreClient.ServiceClient {
|
|
17
|
+
$host: string;
|
|
18
|
+
subscriptionId: string;
|
|
19
|
+
apiVersion: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Initializes a new instance of the ChangesClient class.
|
|
23
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
24
|
+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
25
|
+
* 00000000-0000-0000-0000-000000000000)
|
|
26
|
+
* @param options The parameter options
|
|
27
|
+
*/
|
|
28
|
+
constructor(
|
|
29
|
+
credentials: coreAuth.TokenCredential,
|
|
30
|
+
subscriptionId: string,
|
|
31
|
+
options?: ChangesClientOptionalParams
|
|
32
|
+
) {
|
|
33
|
+
if (credentials === undefined) {
|
|
34
|
+
throw new Error("'credentials' cannot be null");
|
|
35
|
+
}
|
|
36
|
+
if (subscriptionId === undefined) {
|
|
37
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Initializing default values for options
|
|
41
|
+
if (!options) {
|
|
42
|
+
options = {};
|
|
43
|
+
}
|
|
44
|
+
const defaults: ChangesClientOptionalParams = {
|
|
45
|
+
requestContentType: "application/json; charset=utf-8",
|
|
46
|
+
credential: credentials
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const packageDetails = `azsdk-js-arm-changes/1.0.0`;
|
|
50
|
+
const userAgentPrefix =
|
|
51
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
52
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
53
|
+
: `${packageDetails}`;
|
|
54
|
+
|
|
55
|
+
if (!options.credentialScopes) {
|
|
56
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
57
|
+
}
|
|
58
|
+
const optionsWithDefaults = {
|
|
59
|
+
...defaults,
|
|
60
|
+
...options,
|
|
61
|
+
userAgentOptions: {
|
|
62
|
+
userAgentPrefix
|
|
63
|
+
},
|
|
64
|
+
baseUri:
|
|
65
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
66
|
+
};
|
|
67
|
+
super(optionsWithDefaults);
|
|
68
|
+
|
|
69
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
70
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
71
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
72
|
+
(pipelinePolicy) =>
|
|
73
|
+
pipelinePolicy.name ===
|
|
74
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
75
|
+
);
|
|
76
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
77
|
+
this.pipeline.removePolicy({
|
|
78
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
79
|
+
});
|
|
80
|
+
this.pipeline.addPolicy(
|
|
81
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
82
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
83
|
+
challengeCallbacks: {
|
|
84
|
+
authorizeRequestOnChallenge:
|
|
85
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
// Parameter assignments
|
|
92
|
+
this.subscriptionId = subscriptionId;
|
|
93
|
+
|
|
94
|
+
// Assigning values to Constant parameters
|
|
95
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
96
|
+
this.apiVersion = options.apiVersion || "2022-05-01";
|
|
97
|
+
this.changes = new ChangesImpl(this);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
changes: Changes;
|
|
101
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export * from "./models";
|
|
11
|
+
export { ChangesClient } from "./changesClient";
|
|
12
|
+
export * from "./operationsInterfaces";
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
|
|
11
|
+
/** The list of resources */
|
|
12
|
+
export interface ChangeResourceListResult {
|
|
13
|
+
/** The link used to get the next page of Change Resources */
|
|
14
|
+
nextLink?: string;
|
|
15
|
+
/** The list of resources */
|
|
16
|
+
value?: ChangeResourceResult[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** The properties of a change */
|
|
20
|
+
export interface ChangeProperties {
|
|
21
|
+
/**
|
|
22
|
+
* The fully qualified ID of the target resource that was changed
|
|
23
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
24
|
+
*/
|
|
25
|
+
readonly targetResourceId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The namespace and type of the resource
|
|
28
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
29
|
+
*/
|
|
30
|
+
readonly targetResourceType?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The type of change that was captured in the resource
|
|
33
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
34
|
+
*/
|
|
35
|
+
readonly changeType?: ChangeType;
|
|
36
|
+
/** Details about the change resource */
|
|
37
|
+
changeAttributes?: ChangeAttributes;
|
|
38
|
+
/** A dictionary with changed property name as a key and the change details as the value */
|
|
39
|
+
changes?: { [propertyName: string]: ChangeBase };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Details about the change resource */
|
|
43
|
+
export interface ChangeAttributes {
|
|
44
|
+
/**
|
|
45
|
+
* The ARM correlation ID of the change resource
|
|
46
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
47
|
+
*/
|
|
48
|
+
readonly correlationId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The time the change(s) on the target resource ocurred
|
|
51
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
52
|
+
*/
|
|
53
|
+
readonly timestamp?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The number of changes this resource captures
|
|
56
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
57
|
+
*/
|
|
58
|
+
readonly changesCount?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The GUID of the previous snapshot
|
|
61
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
62
|
+
*/
|
|
63
|
+
readonly previousResourceSnapshotId?: string;
|
|
64
|
+
/**
|
|
65
|
+
* The GUID of the new snapshot
|
|
66
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
67
|
+
*/
|
|
68
|
+
readonly newResourceSnapshotId?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** An individual change on the target resource */
|
|
72
|
+
export interface ChangeBase {
|
|
73
|
+
/**
|
|
74
|
+
* The type of change that occurred
|
|
75
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
76
|
+
*/
|
|
77
|
+
readonly propertyChangeType?: PropertyChangeType;
|
|
78
|
+
/**
|
|
79
|
+
* The entity that made the change
|
|
80
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
81
|
+
*/
|
|
82
|
+
readonly changeCategory?: ChangeCategory;
|
|
83
|
+
/**
|
|
84
|
+
* The target resource property value before the change
|
|
85
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
86
|
+
*/
|
|
87
|
+
readonly previousValue?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The target resource property value after the change
|
|
90
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
91
|
+
*/
|
|
92
|
+
readonly newValue?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
96
|
+
export interface Resource {
|
|
97
|
+
/**
|
|
98
|
+
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
99
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
100
|
+
*/
|
|
101
|
+
readonly id?: string;
|
|
102
|
+
/**
|
|
103
|
+
* The name of the resource
|
|
104
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
105
|
+
*/
|
|
106
|
+
readonly name?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
109
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
110
|
+
*/
|
|
111
|
+
readonly type?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
|
|
115
|
+
export interface ErrorResponse {
|
|
116
|
+
/** The error object. */
|
|
117
|
+
error?: ErrorDetail;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** The error detail. */
|
|
121
|
+
export interface ErrorDetail {
|
|
122
|
+
/**
|
|
123
|
+
* The error code.
|
|
124
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
125
|
+
*/
|
|
126
|
+
readonly code?: string;
|
|
127
|
+
/**
|
|
128
|
+
* The error message.
|
|
129
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
130
|
+
*/
|
|
131
|
+
readonly message?: string;
|
|
132
|
+
/**
|
|
133
|
+
* The error target.
|
|
134
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
135
|
+
*/
|
|
136
|
+
readonly target?: string;
|
|
137
|
+
/**
|
|
138
|
+
* The error details.
|
|
139
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
140
|
+
*/
|
|
141
|
+
readonly details?: ErrorDetail[];
|
|
142
|
+
/**
|
|
143
|
+
* The error additional info.
|
|
144
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
145
|
+
*/
|
|
146
|
+
readonly additionalInfo?: ErrorAdditionalInfo[];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** The resource management error additional info. */
|
|
150
|
+
export interface ErrorAdditionalInfo {
|
|
151
|
+
/**
|
|
152
|
+
* The additional info type.
|
|
153
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
154
|
+
*/
|
|
155
|
+
readonly type?: string;
|
|
156
|
+
/**
|
|
157
|
+
* The additional info.
|
|
158
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
159
|
+
*/
|
|
160
|
+
readonly info?: Record<string, unknown>;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** Change Resource */
|
|
164
|
+
export type ChangeResourceResult = Resource & {
|
|
165
|
+
/** The properties of a change */
|
|
166
|
+
properties?: ChangeProperties;
|
|
167
|
+
};
|
|
168
|
+
/** Defines values for ChangeType. */
|
|
169
|
+
export type ChangeType = "Update" | "Delete" | "Create";
|
|
170
|
+
/** Defines values for PropertyChangeType. */
|
|
171
|
+
export type PropertyChangeType = "Update" | "Insert" | "Remove";
|
|
172
|
+
/** Defines values for ChangeCategory. */
|
|
173
|
+
export type ChangeCategory = "User" | "System";
|
|
174
|
+
|
|
175
|
+
/** Optional parameters. */
|
|
176
|
+
export interface ChangesListOptionalParams extends coreClient.OperationOptions {
|
|
177
|
+
/** (Optional) Set the maximum number of results per response. */
|
|
178
|
+
top?: number;
|
|
179
|
+
/** (Optional) The page-continuation token */
|
|
180
|
+
skipToken?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** Contains response data for the list operation. */
|
|
184
|
+
export type ChangesListResponse = ChangeResourceListResult;
|
|
185
|
+
|
|
186
|
+
/** Optional parameters. */
|
|
187
|
+
export interface ChangesGetOptionalParams extends coreClient.OperationOptions {}
|
|
188
|
+
|
|
189
|
+
/** Contains response data for the get operation. */
|
|
190
|
+
export type ChangesGetResponse = ChangeResourceResult;
|
|
191
|
+
|
|
192
|
+
/** Optional parameters. */
|
|
193
|
+
export interface ChangesListNextOptionalParams
|
|
194
|
+
extends coreClient.OperationOptions {
|
|
195
|
+
/** (Optional) Set the maximum number of results per response. */
|
|
196
|
+
top?: number;
|
|
197
|
+
/** (Optional) The page-continuation token */
|
|
198
|
+
skipToken?: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/** Contains response data for the listNext operation. */
|
|
202
|
+
export type ChangesListNextResponse = ChangeResourceListResult;
|
|
203
|
+
|
|
204
|
+
/** Optional parameters. */
|
|
205
|
+
export interface ChangesClientOptionalParams
|
|
206
|
+
extends coreClient.ServiceClientOptions {
|
|
207
|
+
/** server parameter */
|
|
208
|
+
$host?: string;
|
|
209
|
+
/** Api Version */
|
|
210
|
+
apiVersion?: string;
|
|
211
|
+
/** Overrides client endpoint. */
|
|
212
|
+
endpoint?: string;
|
|
213
|
+
}
|