@azure/arm-portal 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 +3 -0
- package/LICENSE +21 -0
- package/README.md +98 -0
- package/dist/index.js +1627 -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/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 +334 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +13 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +28 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +624 -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 +120 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/dashboards.d.ts +83 -0
- package/dist-esm/src/operations/dashboards.d.ts.map +1 -0
- package/dist-esm/src/operations/dashboards.js +361 -0
- package/dist-esm/src/operations/dashboards.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts +32 -0
- package/dist-esm/src/operations/listTenantConfigurationViolations.d.ts.map +1 -0
- package/dist-esm/src/operations/listTenantConfigurationViolations.js +120 -0
- package/dist-esm/src/operations/listTenantConfigurationViolations.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/tenantConfigurations.d.ts +52 -0
- package/dist-esm/src/operations/tenantConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operations/tenantConfigurations.js +199 -0
- package/dist-esm/src/operations/tenantConfigurations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dashboards.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/dashboards.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dashboards.js +9 -0
- package/dist-esm/src/operationsInterfaces/dashboards.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.js +9 -0
- package/dist-esm/src/operationsInterfaces/listTenantConfigurationViolations.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/tenantConfigurations.d.ts +31 -0
- package/dist-esm/src/operationsInterfaces/tenantConfigurations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/tenantConfigurations.js +9 -0
- package/dist-esm/src/operationsInterfaces/tenantConfigurations.js.map +1 -0
- package/dist-esm/src/portal.d.ts +22 -0
- package/dist-esm/src/portal.d.ts.map +1 -0
- package/dist-esm/src/portal.js +55 -0
- package/dist-esm/src/portal.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 +90 -0
- package/review/arm-portal.api.md +349 -0
- package/rollup.config.js +188 -0
- package/src/index.ts +12 -0
- package/src/models/index.ts +389 -0
- package/src/models/mappers.ts +658 -0
- package/src/models/parameters.ts +141 -0
- package/src/operations/dashboards.ts +451 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/listTenantConfigurationViolations.ts +138 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/tenantConfigurations.ts +244 -0
- package/src/operationsInterfaces/dashboards.ts +91 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/listTenantConfigurationViolations.ts +25 -0
- package/src/operationsInterfaces/operations.ts +25 -0
- package/src/operationsInterfaces/tenantConfigurations.ts +61 -0
- package/src/portal.ts +94 -0
- package/tsconfig.json +19 -0
- package/types/arm-portal.d.ts +505 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,138 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { ListTenantConfigurationViolations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { Portal } from "../portal";
|
|
15
|
+
import {
|
|
16
|
+
Violation,
|
|
17
|
+
ListTenantConfigurationViolationsListNextOptionalParams,
|
|
18
|
+
ListTenantConfigurationViolationsListOptionalParams,
|
|
19
|
+
ListTenantConfigurationViolationsListResponse,
|
|
20
|
+
ListTenantConfigurationViolationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing ListTenantConfigurationViolations operations. */
|
|
25
|
+
export class ListTenantConfigurationViolationsImpl
|
|
26
|
+
implements ListTenantConfigurationViolations {
|
|
27
|
+
private readonly client: Portal;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Initialize a new instance of the class ListTenantConfigurationViolations class.
|
|
31
|
+
* @param client Reference to the service client
|
|
32
|
+
*/
|
|
33
|
+
constructor(client: Portal) {
|
|
34
|
+
this.client = client;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Gets list of items that violate tenant's configuration.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
public list(
|
|
42
|
+
options?: ListTenantConfigurationViolationsListOptionalParams
|
|
43
|
+
): PagedAsyncIterableIterator<Violation> {
|
|
44
|
+
const iter = this.listPagingAll(options);
|
|
45
|
+
return {
|
|
46
|
+
next() {
|
|
47
|
+
return iter.next();
|
|
48
|
+
},
|
|
49
|
+
[Symbol.asyncIterator]() {
|
|
50
|
+
return this;
|
|
51
|
+
},
|
|
52
|
+
byPage: () => {
|
|
53
|
+
return this.listPagingPage(options);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
private async *listPagingPage(
|
|
59
|
+
options?: ListTenantConfigurationViolationsListOptionalParams
|
|
60
|
+
): AsyncIterableIterator<Violation[]> {
|
|
61
|
+
let result = await this._list(options);
|
|
62
|
+
yield result.value || [];
|
|
63
|
+
let continuationToken = result.nextLink;
|
|
64
|
+
while (continuationToken) {
|
|
65
|
+
result = await this._listNext(continuationToken, options);
|
|
66
|
+
continuationToken = result.nextLink;
|
|
67
|
+
yield result.value || [];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private async *listPagingAll(
|
|
72
|
+
options?: ListTenantConfigurationViolationsListOptionalParams
|
|
73
|
+
): AsyncIterableIterator<Violation> {
|
|
74
|
+
for await (const page of this.listPagingPage(options)) {
|
|
75
|
+
yield* page;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Gets list of items that violate tenant's configuration.
|
|
81
|
+
* @param options The options parameters.
|
|
82
|
+
*/
|
|
83
|
+
private _list(
|
|
84
|
+
options?: ListTenantConfigurationViolationsListOptionalParams
|
|
85
|
+
): Promise<ListTenantConfigurationViolationsListResponse> {
|
|
86
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* ListNext
|
|
91
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
92
|
+
* @param options The options parameters.
|
|
93
|
+
*/
|
|
94
|
+
private _listNext(
|
|
95
|
+
nextLink: string,
|
|
96
|
+
options?: ListTenantConfigurationViolationsListNextOptionalParams
|
|
97
|
+
): Promise<ListTenantConfigurationViolationsListNextResponse> {
|
|
98
|
+
return this.client.sendOperationRequest(
|
|
99
|
+
{ nextLink, options },
|
|
100
|
+
listNextOperationSpec
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
// Operation Specifications
|
|
105
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
106
|
+
|
|
107
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
108
|
+
path: "/providers/Microsoft.Portal/listTenantConfigurationViolations",
|
|
109
|
+
httpMethod: "POST",
|
|
110
|
+
responses: {
|
|
111
|
+
200: {
|
|
112
|
+
bodyMapper: Mappers.ViolationsList
|
|
113
|
+
},
|
|
114
|
+
default: {
|
|
115
|
+
bodyMapper: Mappers.ErrorResponse
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
queryParameters: [Parameters.apiVersion],
|
|
119
|
+
urlParameters: [Parameters.$host],
|
|
120
|
+
headerParameters: [Parameters.accept],
|
|
121
|
+
serializer
|
|
122
|
+
};
|
|
123
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
124
|
+
path: "{nextLink}",
|
|
125
|
+
httpMethod: "GET",
|
|
126
|
+
responses: {
|
|
127
|
+
200: {
|
|
128
|
+
bodyMapper: Mappers.ViolationsList
|
|
129
|
+
},
|
|
130
|
+
default: {
|
|
131
|
+
bodyMapper: Mappers.ErrorResponse
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
queryParameters: [Parameters.apiVersion],
|
|
135
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
136
|
+
headerParameters: [Parameters.accept],
|
|
137
|
+
serializer
|
|
138
|
+
};
|
|
@@ -0,0 +1,137 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { Portal } from "../portal";
|
|
15
|
+
import {
|
|
16
|
+
ResourceProviderOperation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
22
|
+
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: Portal;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
31
|
+
*/
|
|
32
|
+
constructor(client: Portal) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Microsoft Portal operations API.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationsListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<ResourceProviderOperation> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
50
|
+
},
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationsListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<ResourceProviderOperation[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
let continuationToken = result.nextLink;
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
options?: OperationsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<ResourceProviderOperation> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The Microsoft Portal operations API.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
92
|
+
*/
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
97
|
+
return this.client.sendOperationRequest(
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Operation Specifications
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.Portal/operations",
|
|
108
|
+
httpMethod: "GET",
|
|
109
|
+
responses: {
|
|
110
|
+
200: {
|
|
111
|
+
bodyMapper: Mappers.ResourceProviderOperationList
|
|
112
|
+
},
|
|
113
|
+
default: {
|
|
114
|
+
bodyMapper: Mappers.ErrorResponse
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
120
|
+
serializer
|
|
121
|
+
};
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
123
|
+
path: "{nextLink}",
|
|
124
|
+
httpMethod: "GET",
|
|
125
|
+
responses: {
|
|
126
|
+
200: {
|
|
127
|
+
bodyMapper: Mappers.ResourceProviderOperationList
|
|
128
|
+
},
|
|
129
|
+
default: {
|
|
130
|
+
bodyMapper: Mappers.ErrorResponse
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
136
|
+
serializer
|
|
137
|
+
};
|
|
@@ -0,0 +1,244 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { TenantConfigurations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { Portal } from "../portal";
|
|
15
|
+
import {
|
|
16
|
+
Configuration,
|
|
17
|
+
TenantConfigurationsListNextOptionalParams,
|
|
18
|
+
TenantConfigurationsListOptionalParams,
|
|
19
|
+
TenantConfigurationsListResponse,
|
|
20
|
+
ConfigurationName,
|
|
21
|
+
TenantConfigurationsGetOptionalParams,
|
|
22
|
+
TenantConfigurationsGetResponse,
|
|
23
|
+
TenantConfigurationsCreateOptionalParams,
|
|
24
|
+
TenantConfigurationsCreateResponse,
|
|
25
|
+
TenantConfigurationsDeleteOptionalParams,
|
|
26
|
+
TenantConfigurationsListNextResponse
|
|
27
|
+
} from "../models";
|
|
28
|
+
|
|
29
|
+
/// <reference lib="esnext.asynciterable" />
|
|
30
|
+
/** Class containing TenantConfigurations operations. */
|
|
31
|
+
export class TenantConfigurationsImpl implements TenantConfigurations {
|
|
32
|
+
private readonly client: Portal;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initialize a new instance of the class TenantConfigurations class.
|
|
36
|
+
* @param client Reference to the service client
|
|
37
|
+
*/
|
|
38
|
+
constructor(client: Portal) {
|
|
39
|
+
this.client = client;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Gets list of the tenant configurations.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
public list(
|
|
47
|
+
options?: TenantConfigurationsListOptionalParams
|
|
48
|
+
): PagedAsyncIterableIterator<Configuration> {
|
|
49
|
+
const iter = this.listPagingAll(options);
|
|
50
|
+
return {
|
|
51
|
+
next() {
|
|
52
|
+
return iter.next();
|
|
53
|
+
},
|
|
54
|
+
[Symbol.asyncIterator]() {
|
|
55
|
+
return this;
|
|
56
|
+
},
|
|
57
|
+
byPage: () => {
|
|
58
|
+
return this.listPagingPage(options);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
private async *listPagingPage(
|
|
64
|
+
options?: TenantConfigurationsListOptionalParams
|
|
65
|
+
): AsyncIterableIterator<Configuration[]> {
|
|
66
|
+
let result = await this._list(options);
|
|
67
|
+
yield result.value || [];
|
|
68
|
+
let continuationToken = result.nextLink;
|
|
69
|
+
while (continuationToken) {
|
|
70
|
+
result = await this._listNext(continuationToken, options);
|
|
71
|
+
continuationToken = result.nextLink;
|
|
72
|
+
yield result.value || [];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
private async *listPagingAll(
|
|
77
|
+
options?: TenantConfigurationsListOptionalParams
|
|
78
|
+
): AsyncIterableIterator<Configuration> {
|
|
79
|
+
for await (const page of this.listPagingPage(options)) {
|
|
80
|
+
yield* page;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Gets list of the tenant configurations.
|
|
86
|
+
* @param options The options parameters.
|
|
87
|
+
*/
|
|
88
|
+
private _list(
|
|
89
|
+
options?: TenantConfigurationsListOptionalParams
|
|
90
|
+
): Promise<TenantConfigurationsListResponse> {
|
|
91
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Gets the tenant configuration.
|
|
96
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
97
|
+
* @param options The options parameters.
|
|
98
|
+
*/
|
|
99
|
+
get(
|
|
100
|
+
configurationName: ConfigurationName,
|
|
101
|
+
options?: TenantConfigurationsGetOptionalParams
|
|
102
|
+
): Promise<TenantConfigurationsGetResponse> {
|
|
103
|
+
return this.client.sendOperationRequest(
|
|
104
|
+
{ configurationName, options },
|
|
105
|
+
getOperationSpec
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Create the tenant configuration. If configuration already exists - update it. User has to be a
|
|
111
|
+
* Tenant Admin for this operation.
|
|
112
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
113
|
+
* @param tenantConfiguration The parameters required to create or update tenant configuration.
|
|
114
|
+
* @param options The options parameters.
|
|
115
|
+
*/
|
|
116
|
+
create(
|
|
117
|
+
configurationName: ConfigurationName,
|
|
118
|
+
tenantConfiguration: Configuration,
|
|
119
|
+
options?: TenantConfigurationsCreateOptionalParams
|
|
120
|
+
): Promise<TenantConfigurationsCreateResponse> {
|
|
121
|
+
return this.client.sendOperationRequest(
|
|
122
|
+
{ configurationName, tenantConfiguration, options },
|
|
123
|
+
createOperationSpec
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Delete the tenant configuration. User has to be a Tenant Admin for this operation.
|
|
129
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
130
|
+
* @param options The options parameters.
|
|
131
|
+
*/
|
|
132
|
+
delete(
|
|
133
|
+
configurationName: ConfigurationName,
|
|
134
|
+
options?: TenantConfigurationsDeleteOptionalParams
|
|
135
|
+
): Promise<void> {
|
|
136
|
+
return this.client.sendOperationRequest(
|
|
137
|
+
{ configurationName, options },
|
|
138
|
+
deleteOperationSpec
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* ListNext
|
|
144
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
145
|
+
* @param options The options parameters.
|
|
146
|
+
*/
|
|
147
|
+
private _listNext(
|
|
148
|
+
nextLink: string,
|
|
149
|
+
options?: TenantConfigurationsListNextOptionalParams
|
|
150
|
+
): Promise<TenantConfigurationsListNextResponse> {
|
|
151
|
+
return this.client.sendOperationRequest(
|
|
152
|
+
{ nextLink, options },
|
|
153
|
+
listNextOperationSpec
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
// Operation Specifications
|
|
158
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
159
|
+
|
|
160
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
161
|
+
path: "/providers/Microsoft.Portal/tenantConfigurations",
|
|
162
|
+
httpMethod: "GET",
|
|
163
|
+
responses: {
|
|
164
|
+
200: {
|
|
165
|
+
bodyMapper: Mappers.ConfigurationList
|
|
166
|
+
},
|
|
167
|
+
default: {
|
|
168
|
+
bodyMapper: Mappers.ErrorResponse
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
queryParameters: [Parameters.apiVersion],
|
|
172
|
+
urlParameters: [Parameters.$host],
|
|
173
|
+
headerParameters: [Parameters.accept],
|
|
174
|
+
serializer
|
|
175
|
+
};
|
|
176
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
177
|
+
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
178
|
+
httpMethod: "GET",
|
|
179
|
+
responses: {
|
|
180
|
+
200: {
|
|
181
|
+
bodyMapper: Mappers.Configuration
|
|
182
|
+
},
|
|
183
|
+
404: {},
|
|
184
|
+
default: {
|
|
185
|
+
bodyMapper: Mappers.ErrorResponse
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
queryParameters: [Parameters.apiVersion],
|
|
189
|
+
urlParameters: [Parameters.$host, Parameters.configurationName],
|
|
190
|
+
headerParameters: [Parameters.accept],
|
|
191
|
+
serializer
|
|
192
|
+
};
|
|
193
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
194
|
+
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
195
|
+
httpMethod: "PUT",
|
|
196
|
+
responses: {
|
|
197
|
+
200: {
|
|
198
|
+
bodyMapper: Mappers.Configuration
|
|
199
|
+
},
|
|
200
|
+
201: {
|
|
201
|
+
bodyMapper: Mappers.Configuration
|
|
202
|
+
},
|
|
203
|
+
default: {
|
|
204
|
+
bodyMapper: Mappers.ErrorResponse
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
requestBody: Parameters.tenantConfiguration,
|
|
208
|
+
queryParameters: [Parameters.apiVersion],
|
|
209
|
+
urlParameters: [Parameters.$host, Parameters.configurationName],
|
|
210
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
211
|
+
mediaType: "json",
|
|
212
|
+
serializer
|
|
213
|
+
};
|
|
214
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
215
|
+
path: "/providers/Microsoft.Portal/tenantConfigurations/{configurationName}",
|
|
216
|
+
httpMethod: "DELETE",
|
|
217
|
+
responses: {
|
|
218
|
+
200: {},
|
|
219
|
+
204: {},
|
|
220
|
+
default: {
|
|
221
|
+
bodyMapper: Mappers.ErrorResponse
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
queryParameters: [Parameters.apiVersion],
|
|
225
|
+
urlParameters: [Parameters.$host, Parameters.configurationName],
|
|
226
|
+
headerParameters: [Parameters.accept],
|
|
227
|
+
serializer
|
|
228
|
+
};
|
|
229
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
230
|
+
path: "{nextLink}",
|
|
231
|
+
httpMethod: "GET",
|
|
232
|
+
responses: {
|
|
233
|
+
200: {
|
|
234
|
+
bodyMapper: Mappers.ConfigurationList
|
|
235
|
+
},
|
|
236
|
+
default: {
|
|
237
|
+
bodyMapper: Mappers.ErrorResponse
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
queryParameters: [Parameters.apiVersion],
|
|
241
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
242
|
+
headerParameters: [Parameters.accept],
|
|
243
|
+
serializer
|
|
244
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
Dashboard,
|
|
12
|
+
DashboardsListByResourceGroupOptionalParams,
|
|
13
|
+
DashboardsListBySubscriptionOptionalParams,
|
|
14
|
+
DashboardsCreateOrUpdateOptionalParams,
|
|
15
|
+
DashboardsCreateOrUpdateResponse,
|
|
16
|
+
DashboardsDeleteOptionalParams,
|
|
17
|
+
DashboardsGetOptionalParams,
|
|
18
|
+
DashboardsGetResponse,
|
|
19
|
+
PatchableDashboard,
|
|
20
|
+
DashboardsUpdateOptionalParams,
|
|
21
|
+
DashboardsUpdateResponse
|
|
22
|
+
} from "../models";
|
|
23
|
+
|
|
24
|
+
/// <reference lib="esnext.asynciterable" />
|
|
25
|
+
/** Interface representing a Dashboards. */
|
|
26
|
+
export interface Dashboards {
|
|
27
|
+
/**
|
|
28
|
+
* Gets all the Dashboards within a resource group.
|
|
29
|
+
* @param resourceGroupName The name of the resource group.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
listByResourceGroup(
|
|
33
|
+
resourceGroupName: string,
|
|
34
|
+
options?: DashboardsListByResourceGroupOptionalParams
|
|
35
|
+
): PagedAsyncIterableIterator<Dashboard>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets all the dashboards within a subscription.
|
|
38
|
+
* @param options The options parameters.
|
|
39
|
+
*/
|
|
40
|
+
listBySubscription(
|
|
41
|
+
options?: DashboardsListBySubscriptionOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Dashboard>;
|
|
43
|
+
/**
|
|
44
|
+
* Creates or updates a Dashboard.
|
|
45
|
+
* @param resourceGroupName The name of the resource group.
|
|
46
|
+
* @param dashboardName The name of the dashboard.
|
|
47
|
+
* @param dashboard The parameters required to create or update a dashboard.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
createOrUpdate(
|
|
51
|
+
resourceGroupName: string,
|
|
52
|
+
dashboardName: string,
|
|
53
|
+
dashboard: Dashboard,
|
|
54
|
+
options?: DashboardsCreateOrUpdateOptionalParams
|
|
55
|
+
): Promise<DashboardsCreateOrUpdateResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Deletes the Dashboard.
|
|
58
|
+
* @param resourceGroupName The name of the resource group.
|
|
59
|
+
* @param dashboardName The name of the dashboard.
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
delete(
|
|
63
|
+
resourceGroupName: string,
|
|
64
|
+
dashboardName: string,
|
|
65
|
+
options?: DashboardsDeleteOptionalParams
|
|
66
|
+
): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Gets the Dashboard.
|
|
69
|
+
* @param resourceGroupName The name of the resource group.
|
|
70
|
+
* @param dashboardName The name of the dashboard.
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
get(
|
|
74
|
+
resourceGroupName: string,
|
|
75
|
+
dashboardName: string,
|
|
76
|
+
options?: DashboardsGetOptionalParams
|
|
77
|
+
): Promise<DashboardsGetResponse>;
|
|
78
|
+
/**
|
|
79
|
+
* Updates an existing Dashboard.
|
|
80
|
+
* @param resourceGroupName The name of the resource group.
|
|
81
|
+
* @param dashboardName The name of the dashboard.
|
|
82
|
+
* @param dashboard The updatable fields of a Dashboard.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
update(
|
|
86
|
+
resourceGroupName: string,
|
|
87
|
+
dashboardName: string,
|
|
88
|
+
dashboard: PatchableDashboard,
|
|
89
|
+
options?: DashboardsUpdateOptionalParams
|
|
90
|
+
): Promise<DashboardsUpdateResponse>;
|
|
91
|
+
}
|
|
@@ -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
|
+
export * from "./operations";
|
|
10
|
+
export * from "./dashboards";
|
|
11
|
+
export * from "./tenantConfigurations";
|
|
12
|
+
export * from "./listTenantConfigurationViolations";
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
Violation,
|
|
12
|
+
ListTenantConfigurationViolationsListOptionalParams
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Interface representing a ListTenantConfigurationViolations. */
|
|
17
|
+
export interface ListTenantConfigurationViolations {
|
|
18
|
+
/**
|
|
19
|
+
* Gets list of items that violate tenant's configuration.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
options?: ListTenantConfigurationViolationsListOptionalParams
|
|
24
|
+
): PagedAsyncIterableIterator<Violation>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
ResourceProviderOperation,
|
|
12
|
+
OperationsListOptionalParams
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Interface representing a Operations. */
|
|
17
|
+
export interface Operations {
|
|
18
|
+
/**
|
|
19
|
+
* The Microsoft Portal operations API.
|
|
20
|
+
* @param options The options parameters.
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
options?: OperationsListOptionalParams
|
|
24
|
+
): PagedAsyncIterableIterator<ResourceProviderOperation>;
|
|
25
|
+
}
|