@azure/arm-locks 1.2.0 → 2.0.0-alpha.20211015.3
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 +26 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +63 -80
- package/dist/index.js +1796 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/esm/index.d.ts +534 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +13 -0
- package/esm/index.js.map +1 -0
- package/esm/managementLockClient.d.ts +9 -18
- package/esm/managementLockClient.d.ts.map +1 -1
- package/esm/managementLockClient.js +12 -28
- package/esm/managementLockClient.js.map +1 -1
- package/esm/managementLockClientContext.d.ts +10 -16
- package/esm/managementLockClientContext.d.ts.map +1 -1
- package/esm/managementLockClientContext.js +34 -46
- package/esm/managementLockClientContext.js.map +1 -1
- package/esm/models/index.d.ts +208 -445
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +9 -2
- package/esm/models/index.js.map +1 -1
- package/esm/models/mappers.d.ts +7 -9
- package/esm/models/mappers.d.ts.map +1 -1
- package/esm/models/mappers.js +69 -78
- package/esm/models/mappers.js.map +1 -1
- package/esm/models/parameters.d.ts +16 -13
- package/esm/models/parameters.d.ts.map +1 -1
- package/esm/models/parameters.js +78 -54
- package/esm/models/parameters.js.map +1 -1
- package/esm/operations/authorizationOperations.d.ts +27 -26
- package/esm/operations/authorizationOperations.d.ts.map +1 -1
- package/esm/operations/authorizationOperations.js +158 -50
- package/esm/operations/authorizationOperations.js.map +1 -1
- package/esm/operations/index.d.ts.map +1 -1
- package/esm/operations/index.js +3 -5
- package/esm/operations/index.js.map +1 -1
- package/esm/operations/managementLocks.d.ts +203 -393
- package/esm/operations/managementLocks.d.ts.map +1 -1
- package/esm/operations/managementLocks.js +993 -485
- package/esm/operations/managementLocks.js.map +1 -1
- package/esm/operationsInterfaces/authorizationOperations.d.ts +18 -0
- package/esm/operationsInterfaces/authorizationOperations.d.ts.map +1 -0
- package/esm/operationsInterfaces/authorizationOperations.js +9 -0
- package/esm/operationsInterfaces/authorizationOperations.js.map +1 -0
- package/esm/operationsInterfaces/index.d.ts +3 -0
- package/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/esm/operationsInterfaces/index.js +10 -0
- package/esm/operationsInterfaces/index.js.map +1 -0
- package/esm/operationsInterfaces/managementLocks.d.ts +198 -0
- package/esm/operationsInterfaces/managementLocks.d.ts.map +1 -0
- package/esm/operationsInterfaces/managementLocks.js +9 -0
- package/esm/operationsInterfaces/managementLocks.js.map +1 -0
- package/package.json +53 -16
- package/review/arm-locks.api.md +313 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +13 -0
- package/src/managementLockClient.ts +23 -36
- package/src/managementLockClientContext.ts +47 -45
- package/src/models/index.ts +256 -470
- package/src/models/mappers.ts +72 -82
- package/src/models/parameters.ts +97 -55
- package/src/operations/authorizationOperations.ts +155 -70
- package/src/operations/index.ts +3 -5
- package/src/operations/managementLocks.ts +1165 -869
- package/src/operationsInterfaces/authorizationOperations.ts +36 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/managementLocks.ts +332 -0
- package/tsconfig.json +3 -2
- package/dist/arm-locks.js +0 -1280
- package/dist/arm-locks.js.map +0 -1
- package/dist/arm-locks.min.js +0 -1
- package/dist/arm-locks.min.js.map +0 -1
- package/esm/models/authorizationOperationsMappers.d.ts +0 -2
- package/esm/models/authorizationOperationsMappers.d.ts.map +0 -1
- package/esm/models/authorizationOperationsMappers.js +0 -9
- package/esm/models/authorizationOperationsMappers.js.map +0 -1
- package/esm/models/managementLocksMappers.d.ts +0 -2
- package/esm/models/managementLocksMappers.d.ts.map +0 -1
- package/esm/models/managementLocksMappers.js +0 -9
- package/esm/models/managementLocksMappers.js.map +0 -1
- package/src/models/authorizationOperationsMappers.ts +0 -14
- package/src/models/managementLocksMappers.ts +0 -15
@@ -1,22 +1,16 @@
|
|
1
|
-
import * as
|
2
|
-
import * as
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import * as coreClient from "@azure/core-client";
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
3
|
+
import { ManagementLockClientOptionalParams } from "./models";
|
4
|
+
export declare class ManagementLockClientContext extends coreClient.ServiceClient {
|
5
|
+
$host: string;
|
6
|
+
apiVersion: string;
|
7
7
|
subscriptionId: string;
|
8
|
-
apiVersion?: string;
|
9
8
|
/**
|
10
|
-
* Initializes a new instance of the
|
11
|
-
* @param credentials
|
12
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
13
|
-
* more information about these credentials, see
|
14
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
15
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
16
|
-
* @azure/ms-rest-browserauth are also supported.
|
9
|
+
* Initializes a new instance of the ManagementLockClientContext class.
|
10
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
17
11
|
* @param subscriptionId The ID of the target subscription.
|
18
|
-
* @param
|
12
|
+
* @param options The parameter options
|
19
13
|
*/
|
20
|
-
constructor(credentials:
|
14
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagementLockClientOptionalParams);
|
21
15
|
}
|
22
16
|
//# sourceMappingURL=managementLockClientContext.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"managementLockClientContext.d.ts","sourceRoot":"","sources":["../src/managementLockClientContext.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"managementLockClientContext.d.ts","sourceRoot":"","sources":["../src/managementLockClientContext.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,UAAU,CAAC;AAE9D,qBAAa,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,kCAAkC;CA2C/C"}
|
@@ -1,61 +1,49 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
3
|
-
* Licensed under the MIT License.
|
4
|
-
* license information.
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
5
4
|
*
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
8
|
-
* regenerated.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9
7
|
*/
|
10
|
-
import
|
11
|
-
|
12
|
-
var packageName = "@azure/arm-locks";
|
13
|
-
var packageVersion = "1.2.0";
|
14
|
-
var ManagementLockClientContext = /** @class */ (function (_super) {
|
15
|
-
__extends(ManagementLockClientContext, _super);
|
8
|
+
import * as coreClient from "@azure/core-client";
|
9
|
+
export class ManagementLockClientContext extends coreClient.ServiceClient {
|
16
10
|
/**
|
17
|
-
* Initializes a new instance of the
|
18
|
-
* @param credentials
|
19
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
20
|
-
* more information about these credentials, see
|
21
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
22
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
23
|
-
* @azure/ms-rest-browserauth are also supported.
|
11
|
+
* Initializes a new instance of the ManagementLockClientContext class.
|
12
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
24
13
|
* @param subscriptionId The ID of the target subscription.
|
25
|
-
* @param
|
14
|
+
* @param options The parameter options
|
26
15
|
*/
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
throw new Error('\'credentials\' cannot be null.');
|
16
|
+
constructor(credentials, subscriptionId, options) {
|
17
|
+
if (credentials === undefined) {
|
18
|
+
throw new Error("'credentials' cannot be null");
|
31
19
|
}
|
32
|
-
if (subscriptionId
|
33
|
-
throw new Error('
|
20
|
+
if (subscriptionId === undefined) {
|
21
|
+
throw new Error("'subscriptionId' cannot be null");
|
34
22
|
}
|
23
|
+
// Initializing default values for options
|
35
24
|
if (!options) {
|
36
25
|
options = {};
|
37
26
|
}
|
38
|
-
|
39
|
-
|
40
|
-
|
27
|
+
const defaults = {
|
28
|
+
requestContentType: "application/json; charset=utf-8",
|
29
|
+
credential: credentials
|
30
|
+
};
|
31
|
+
const packageDetails = `azsdk-js-arm-locks/2.0.0-beta.1`;
|
32
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
33
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
34
|
+
: `${packageDetails}`;
|
35
|
+
if (!options.credentialScopes) {
|
36
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
41
37
|
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
_this.acceptLanguage = options.acceptLanguage;
|
52
|
-
}
|
53
|
-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
54
|
-
_this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
55
|
-
}
|
56
|
-
return _this;
|
38
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
39
|
+
userAgentPrefix
|
40
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
41
|
+
super(optionsWithDefaults);
|
42
|
+
// Parameter assignments
|
43
|
+
this.subscriptionId = subscriptionId;
|
44
|
+
// Assigning values to Constant parameters
|
45
|
+
this.$host = options.$host || "https://management.azure.com";
|
46
|
+
this.apiVersion = options.apiVersion || "2016-09-01";
|
57
47
|
}
|
58
|
-
|
59
|
-
}(msRestAzure.AzureServiceClient));
|
60
|
-
export { ManagementLockClientContext };
|
48
|
+
}
|
61
49
|
//# sourceMappingURL=managementLockClientContext.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"managementLockClientContext.js","sourceRoot":"","sources":["../src/managementLockClientContext.ts"],"names":[],"mappings":"AAAA
|
1
|
+
{"version":3,"file":"managementLockClientContext.js","sourceRoot":"","sources":["../src/managementLockClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAIjD,MAAM,OAAO,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IAKvE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA4C;QAE5C,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAuC;YACnD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,iCAAiC,CAAC;QACzD,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,8BAA8B,GAC5D,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,0CAA0C;QAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,8BAA8B,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACvD,CAAC;CACF"}
|