@azure/arm-batch 7.0.0-beta.1 → 7.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 +7 -10
- package/README.md +1 -1
- package/dist/index.js +4 -25
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/batchManagementClient.d.ts +5 -2
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
- package/dist-esm/src/batchManagementClient.js +32 -3
- package/dist-esm/src/batchManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/operations/applicationOperations.d.ts +2 -2
- package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationOperations.js.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.d.ts +2 -2
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
- package/dist-esm/src/operations/certificateOperations.d.ts +2 -2
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/certificateOperations.js.map +1 -1
- package/dist-esm/src/operations/location.d.ts +2 -2
- package/dist-esm/src/operations/location.d.ts.map +1 -1
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/poolOperations.d.ts +2 -2
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/poolOperations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +2 -2
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
- package/package.json +4 -4
- package/review/arm-batch.api.md +5 -10
- package/src/batchManagementClient.ts +46 -3
- package/src/index.ts +0 -1
- package/src/operations/applicationOperations.ts +3 -3
- package/src/operations/applicationPackageOperations.ts +3 -3
- package/src/operations/batchAccountOperations.ts +3 -3
- package/src/operations/certificateOperations.ts +3 -3
- package/src/operations/location.ts +3 -3
- package/src/operations/operations.ts +3 -3
- package/src/operations/poolOperations.ts +3 -3
- package/src/operations/privateEndpointConnectionOperations.ts +3 -3
- package/src/operations/privateLinkResourceOperations.ts +3 -3
- package/types/arm-batch.d.ts +4 -15
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/batchManagementClientContext.d.ts +0 -17
- package/dist-esm/src/batchManagementClientContext.d.ts.map +0 -1
- package/dist-esm/src/batchManagementClientContext.js +0 -50
- package/dist-esm/src/batchManagementClientContext.js.map +0 -1
- package/src/batchManagementClientContext.ts +0 -71
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
9
10
|
import * as coreAuth from "@azure/core-auth";
|
|
10
11
|
import {
|
|
11
12
|
BatchAccountOperationsImpl,
|
|
@@ -29,10 +30,13 @@ import {
|
|
|
29
30
|
PrivateEndpointConnectionOperations,
|
|
30
31
|
PoolOperations
|
|
31
32
|
} from "./operationsInterfaces";
|
|
32
|
-
import { BatchManagementClientContext } from "./batchManagementClientContext";
|
|
33
33
|
import { BatchManagementClientOptionalParams } from "./models";
|
|
34
34
|
|
|
35
|
-
export class BatchManagementClient extends
|
|
35
|
+
export class BatchManagementClient extends coreClient.ServiceClient {
|
|
36
|
+
$host: string;
|
|
37
|
+
apiVersion: string;
|
|
38
|
+
subscriptionId: string;
|
|
39
|
+
|
|
36
40
|
/**
|
|
37
41
|
* Initializes a new instance of the BatchManagementClient class.
|
|
38
42
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -45,7 +49,46 @@ export class BatchManagementClient extends BatchManagementClientContext {
|
|
|
45
49
|
subscriptionId: string,
|
|
46
50
|
options?: BatchManagementClientOptionalParams
|
|
47
51
|
) {
|
|
48
|
-
|
|
52
|
+
if (credentials === undefined) {
|
|
53
|
+
throw new Error("'credentials' cannot be null");
|
|
54
|
+
}
|
|
55
|
+
if (subscriptionId === undefined) {
|
|
56
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Initializing default values for options
|
|
60
|
+
if (!options) {
|
|
61
|
+
options = {};
|
|
62
|
+
}
|
|
63
|
+
const defaults: BatchManagementClientOptionalParams = {
|
|
64
|
+
requestContentType: "application/json; charset=utf-8",
|
|
65
|
+
credential: credentials
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const packageDetails = `azsdk-js-arm-batch/7.0.0`;
|
|
69
|
+
const userAgentPrefix =
|
|
70
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
71
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
72
|
+
: `${packageDetails}`;
|
|
73
|
+
|
|
74
|
+
if (!options.credentialScopes) {
|
|
75
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
76
|
+
}
|
|
77
|
+
const optionsWithDefaults = {
|
|
78
|
+
...defaults,
|
|
79
|
+
...options,
|
|
80
|
+
userAgentOptions: {
|
|
81
|
+
userAgentPrefix
|
|
82
|
+
},
|
|
83
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
84
|
+
};
|
|
85
|
+
super(optionsWithDefaults);
|
|
86
|
+
// Parameter assignments
|
|
87
|
+
this.subscriptionId = subscriptionId;
|
|
88
|
+
|
|
89
|
+
// Assigning values to Constant parameters
|
|
90
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
91
|
+
this.apiVersion = options.apiVersion || "2021-06-01";
|
|
49
92
|
this.batchAccountOperations = new BatchAccountOperationsImpl(this);
|
|
50
93
|
this.applicationPackageOperations = new ApplicationPackageOperationsImpl(
|
|
51
94
|
this
|
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { ApplicationOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
Application,
|
|
17
17
|
ApplicationListNextOptionalParams,
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
/// <reference lib="esnext.asynciterable" />
|
|
31
31
|
/** Class containing ApplicationOperations operations. */
|
|
32
32
|
export class ApplicationOperationsImpl implements ApplicationOperations {
|
|
33
|
-
private readonly client:
|
|
33
|
+
private readonly client: BatchManagementClient;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Initialize a new instance of the class ApplicationOperations class.
|
|
37
37
|
* @param client Reference to the service client
|
|
38
38
|
*/
|
|
39
|
-
constructor(client:
|
|
39
|
+
constructor(client: BatchManagementClient) {
|
|
40
40
|
this.client = client;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -11,7 +11,7 @@ import { ApplicationPackageOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
ApplicationPackage,
|
|
17
17
|
ApplicationPackageListNextOptionalParams,
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
/** Class containing ApplicationPackageOperations operations. */
|
|
33
33
|
export class ApplicationPackageOperationsImpl
|
|
34
34
|
implements ApplicationPackageOperations {
|
|
35
|
-
private readonly client:
|
|
35
|
+
private readonly client: BatchManagementClient;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Initialize a new instance of the class ApplicationPackageOperations class.
|
|
39
39
|
* @param client Reference to the service client
|
|
40
40
|
*/
|
|
41
|
-
constructor(client:
|
|
41
|
+
constructor(client: BatchManagementClient) {
|
|
42
42
|
this.client = client;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -11,7 +11,7 @@ import { BatchAccountOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -49,13 +49,13 @@ import {
|
|
|
49
49
|
/// <reference lib="esnext.asynciterable" />
|
|
50
50
|
/** Class containing BatchAccountOperations operations. */
|
|
51
51
|
export class BatchAccountOperationsImpl implements BatchAccountOperations {
|
|
52
|
-
private readonly client:
|
|
52
|
+
private readonly client: BatchManagementClient;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Initialize a new instance of the class BatchAccountOperations class.
|
|
56
56
|
* @param client Reference to the service client
|
|
57
57
|
*/
|
|
58
|
-
constructor(client:
|
|
58
|
+
constructor(client: BatchManagementClient) {
|
|
59
59
|
this.client = client;
|
|
60
60
|
}
|
|
61
61
|
|
|
@@ -11,7 +11,7 @@ import { CertificateOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
/// <reference lib="esnext.asynciterable" />
|
|
36
36
|
/** Class containing CertificateOperations operations. */
|
|
37
37
|
export class CertificateOperationsImpl implements CertificateOperations {
|
|
38
|
-
private readonly client:
|
|
38
|
+
private readonly client: BatchManagementClient;
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Initialize a new instance of the class CertificateOperations class.
|
|
42
42
|
* @param client Reference to the service client
|
|
43
43
|
*/
|
|
44
|
-
constructor(client:
|
|
44
|
+
constructor(client: BatchManagementClient) {
|
|
45
45
|
this.client = client;
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -11,7 +11,7 @@ import { Location } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
SupportedSku,
|
|
17
17
|
LocationListSupportedVirtualMachineSkusNextOptionalParams,
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
/// <reference lib="esnext.asynciterable" />
|
|
33
33
|
/** Class containing Location operations. */
|
|
34
34
|
export class LocationImpl implements Location {
|
|
35
|
-
private readonly client:
|
|
35
|
+
private readonly client: BatchManagementClient;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Initialize a new instance of the class Location class.
|
|
39
39
|
* @param client Reference to the service client
|
|
40
40
|
*/
|
|
41
|
-
constructor(client:
|
|
41
|
+
constructor(client: BatchManagementClient) {
|
|
42
42
|
this.client = client;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -11,7 +11,7 @@ import { Operations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
Operation,
|
|
17
17
|
OperationsListNextOptionalParams,
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
/// <reference lib="esnext.asynciterable" />
|
|
24
24
|
/** Class containing Operations operations. */
|
|
25
25
|
export class OperationsImpl implements Operations {
|
|
26
|
-
private readonly client:
|
|
26
|
+
private readonly client: BatchManagementClient;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Initialize a new instance of the class Operations class.
|
|
30
30
|
* @param client Reference to the service client
|
|
31
31
|
*/
|
|
32
|
-
constructor(client:
|
|
32
|
+
constructor(client: BatchManagementClient) {
|
|
33
33
|
this.client = client;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -11,7 +11,7 @@ import { PoolOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
/// <reference lib="esnext.asynciterable" />
|
|
37
37
|
/** Class containing PoolOperations operations. */
|
|
38
38
|
export class PoolOperationsImpl implements PoolOperations {
|
|
39
|
-
private readonly client:
|
|
39
|
+
private readonly client: BatchManagementClient;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Initialize a new instance of the class PoolOperations class.
|
|
43
43
|
* @param client Reference to the service client
|
|
44
44
|
*/
|
|
45
|
-
constructor(client:
|
|
45
|
+
constructor(client: BatchManagementClient) {
|
|
46
46
|
this.client = client;
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -11,7 +11,7 @@ import { PrivateEndpointConnectionOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
16
|
import { LroImpl } from "../lroImpl";
|
|
17
17
|
import {
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
/** Class containing PrivateEndpointConnectionOperations operations. */
|
|
31
31
|
export class PrivateEndpointConnectionOperationsImpl
|
|
32
32
|
implements PrivateEndpointConnectionOperations {
|
|
33
|
-
private readonly client:
|
|
33
|
+
private readonly client: BatchManagementClient;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Initialize a new instance of the class PrivateEndpointConnectionOperations class.
|
|
37
37
|
* @param client Reference to the service client
|
|
38
38
|
*/
|
|
39
|
-
constructor(client:
|
|
39
|
+
constructor(client: BatchManagementClient) {
|
|
40
40
|
this.client = client;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -11,7 +11,7 @@ import { PrivateLinkResourceOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { BatchManagementClient } from "../batchManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
PrivateLinkResource,
|
|
17
17
|
PrivateLinkResourceListByBatchAccountNextOptionalParams,
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
/** Class containing PrivateLinkResourceOperations operations. */
|
|
27
27
|
export class PrivateLinkResourceOperationsImpl
|
|
28
28
|
implements PrivateLinkResourceOperations {
|
|
29
|
-
private readonly client:
|
|
29
|
+
private readonly client: BatchManagementClient;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Initialize a new instance of the class PrivateLinkResourceOperations class.
|
|
33
33
|
* @param client Reference to the service client
|
|
34
34
|
*/
|
|
35
|
-
constructor(client:
|
|
35
|
+
constructor(client: BatchManagementClient) {
|
|
36
36
|
this.client = client;
|
|
37
37
|
}
|
|
38
38
|
|
package/types/arm-batch.d.ts
CHANGED
|
@@ -745,7 +745,10 @@ export declare interface BatchLocationQuota {
|
|
|
745
745
|
readonly accountQuota?: number;
|
|
746
746
|
}
|
|
747
747
|
|
|
748
|
-
export declare class BatchManagementClient extends
|
|
748
|
+
export declare class BatchManagementClient extends coreClient.ServiceClient {
|
|
749
|
+
$host: string;
|
|
750
|
+
apiVersion: string;
|
|
751
|
+
subscriptionId: string;
|
|
749
752
|
/**
|
|
750
753
|
* Initializes a new instance of the BatchManagementClient class.
|
|
751
754
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -765,20 +768,6 @@ export declare class BatchManagementClient extends BatchManagementClientContext
|
|
|
765
768
|
poolOperations: PoolOperations;
|
|
766
769
|
}
|
|
767
770
|
|
|
768
|
-
export declare class BatchManagementClientContext extends coreClient.ServiceClient {
|
|
769
|
-
$host: string;
|
|
770
|
-
apiVersion: string;
|
|
771
|
-
subscriptionId: string;
|
|
772
|
-
/**
|
|
773
|
-
* Initializes a new instance of the BatchManagementClientContext class.
|
|
774
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
775
|
-
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
776
|
-
* 00000000-0000-0000-0000-000000000000)
|
|
777
|
-
* @param options The parameter options
|
|
778
|
-
*/
|
|
779
|
-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: BatchManagementClientOptionalParams);
|
|
780
|
-
}
|
|
781
|
-
|
|
782
771
|
/** Optional parameters. */
|
|
783
772
|
export declare interface BatchManagementClientOptionalParams extends coreClient.ServiceClientOptions {
|
|
784
773
|
/** server parameter */
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as coreClient from "@azure/core-client";
|
|
2
|
-
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { BatchManagementClientOptionalParams } from "./models";
|
|
4
|
-
export declare class BatchManagementClientContext extends coreClient.ServiceClient {
|
|
5
|
-
$host: string;
|
|
6
|
-
apiVersion: string;
|
|
7
|
-
subscriptionId: string;
|
|
8
|
-
/**
|
|
9
|
-
* Initializes a new instance of the BatchManagementClientContext class.
|
|
10
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
11
|
-
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
12
|
-
* 00000000-0000-0000-0000-000000000000)
|
|
13
|
-
* @param options The parameter options
|
|
14
|
-
*/
|
|
15
|
-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: BatchManagementClientOptionalParams);
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=batchManagementClientContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"batchManagementClientContext.d.ts","sourceRoot":"","sources":["../../src/batchManagementClientContext.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAC;AAE/D,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,mCAAmC;CA2ChD"}
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
import * as coreClient from "@azure/core-client";
|
|
9
|
-
export class BatchManagementClientContext extends coreClient.ServiceClient {
|
|
10
|
-
/**
|
|
11
|
-
* Initializes a new instance of the BatchManagementClientContext class.
|
|
12
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
13
|
-
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
14
|
-
* 00000000-0000-0000-0000-000000000000)
|
|
15
|
-
* @param options The parameter options
|
|
16
|
-
*/
|
|
17
|
-
constructor(credentials, subscriptionId, options) {
|
|
18
|
-
if (credentials === undefined) {
|
|
19
|
-
throw new Error("'credentials' cannot be null");
|
|
20
|
-
}
|
|
21
|
-
if (subscriptionId === undefined) {
|
|
22
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
23
|
-
}
|
|
24
|
-
// Initializing default values for options
|
|
25
|
-
if (!options) {
|
|
26
|
-
options = {};
|
|
27
|
-
}
|
|
28
|
-
const defaults = {
|
|
29
|
-
requestContentType: "application/json; charset=utf-8",
|
|
30
|
-
credential: credentials
|
|
31
|
-
};
|
|
32
|
-
const packageDetails = `azsdk-js-arm-batch/7.0.0-beta.1`;
|
|
33
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
34
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
35
|
-
: `${packageDetails}`;
|
|
36
|
-
if (!options.credentialScopes) {
|
|
37
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
38
|
-
}
|
|
39
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
40
|
-
userAgentPrefix
|
|
41
|
-
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
42
|
-
super(optionsWithDefaults);
|
|
43
|
-
// Parameter assignments
|
|
44
|
-
this.subscriptionId = subscriptionId;
|
|
45
|
-
// Assigning values to Constant parameters
|
|
46
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
47
|
-
this.apiVersion = options.apiVersion || "2021-06-01";
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=batchManagementClientContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"batchManagementClientContext.js","sourceRoot":"","sources":["../../src/batchManagementClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAIjD,MAAM,OAAO,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IAKxE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAA6C;QAE7C,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,GAAwC;YACpD,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"}
|
|
@@ -1,71 +0,0 @@
|
|
|
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 coreAuth from "@azure/core-auth";
|
|
11
|
-
import { BatchManagementClientOptionalParams } from "./models";
|
|
12
|
-
|
|
13
|
-
export class BatchManagementClientContext extends coreClient.ServiceClient {
|
|
14
|
-
$host: string;
|
|
15
|
-
apiVersion: string;
|
|
16
|
-
subscriptionId: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Initializes a new instance of the BatchManagementClientContext class.
|
|
20
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
21
|
-
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
22
|
-
* 00000000-0000-0000-0000-000000000000)
|
|
23
|
-
* @param options The parameter options
|
|
24
|
-
*/
|
|
25
|
-
constructor(
|
|
26
|
-
credentials: coreAuth.TokenCredential,
|
|
27
|
-
subscriptionId: string,
|
|
28
|
-
options?: BatchManagementClientOptionalParams
|
|
29
|
-
) {
|
|
30
|
-
if (credentials === undefined) {
|
|
31
|
-
throw new Error("'credentials' cannot be null");
|
|
32
|
-
}
|
|
33
|
-
if (subscriptionId === undefined) {
|
|
34
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Initializing default values for options
|
|
38
|
-
if (!options) {
|
|
39
|
-
options = {};
|
|
40
|
-
}
|
|
41
|
-
const defaults: BatchManagementClientOptionalParams = {
|
|
42
|
-
requestContentType: "application/json; charset=utf-8",
|
|
43
|
-
credential: credentials
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const packageDetails = `azsdk-js-arm-batch/7.0.0-beta.1`;
|
|
47
|
-
const userAgentPrefix =
|
|
48
|
-
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
49
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
50
|
-
: `${packageDetails}`;
|
|
51
|
-
|
|
52
|
-
if (!options.credentialScopes) {
|
|
53
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
54
|
-
}
|
|
55
|
-
const optionsWithDefaults = {
|
|
56
|
-
...defaults,
|
|
57
|
-
...options,
|
|
58
|
-
userAgentOptions: {
|
|
59
|
-
userAgentPrefix
|
|
60
|
-
},
|
|
61
|
-
baseUri: options.endpoint || "https://management.azure.com"
|
|
62
|
-
};
|
|
63
|
-
super(optionsWithDefaults);
|
|
64
|
-
// Parameter assignments
|
|
65
|
-
this.subscriptionId = subscriptionId;
|
|
66
|
-
|
|
67
|
-
// Assigning values to Constant parameters
|
|
68
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
69
|
-
this.apiVersion = options.apiVersion || "2021-06-01";
|
|
70
|
-
}
|
|
71
|
-
}
|