@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,61 @@
|
|
|
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
|
+
Configuration,
|
|
12
|
+
TenantConfigurationsListOptionalParams,
|
|
13
|
+
ConfigurationName,
|
|
14
|
+
TenantConfigurationsGetOptionalParams,
|
|
15
|
+
TenantConfigurationsGetResponse,
|
|
16
|
+
TenantConfigurationsCreateOptionalParams,
|
|
17
|
+
TenantConfigurationsCreateResponse,
|
|
18
|
+
TenantConfigurationsDeleteOptionalParams
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Interface representing a TenantConfigurations. */
|
|
23
|
+
export interface TenantConfigurations {
|
|
24
|
+
/**
|
|
25
|
+
* Gets list of the tenant configurations.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(
|
|
29
|
+
options?: TenantConfigurationsListOptionalParams
|
|
30
|
+
): PagedAsyncIterableIterator<Configuration>;
|
|
31
|
+
/**
|
|
32
|
+
* Gets the tenant configuration.
|
|
33
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
get(
|
|
37
|
+
configurationName: ConfigurationName,
|
|
38
|
+
options?: TenantConfigurationsGetOptionalParams
|
|
39
|
+
): Promise<TenantConfigurationsGetResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Create the tenant configuration. If configuration already exists - update it. User has to be a
|
|
42
|
+
* Tenant Admin for this operation.
|
|
43
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
44
|
+
* @param tenantConfiguration The parameters required to create or update tenant configuration.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
create(
|
|
48
|
+
configurationName: ConfigurationName,
|
|
49
|
+
tenantConfiguration: Configuration,
|
|
50
|
+
options?: TenantConfigurationsCreateOptionalParams
|
|
51
|
+
): Promise<TenantConfigurationsCreateResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Delete the tenant configuration. User has to be a Tenant Admin for this operation.
|
|
54
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
delete(
|
|
58
|
+
configurationName: ConfigurationName,
|
|
59
|
+
options?: TenantConfigurationsDeleteOptionalParams
|
|
60
|
+
): Promise<void>;
|
|
61
|
+
}
|
package/src/portal.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
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 {
|
|
12
|
+
OperationsImpl,
|
|
13
|
+
DashboardsImpl,
|
|
14
|
+
TenantConfigurationsImpl,
|
|
15
|
+
ListTenantConfigurationViolationsImpl
|
|
16
|
+
} from "./operations";
|
|
17
|
+
import {
|
|
18
|
+
Operations,
|
|
19
|
+
Dashboards,
|
|
20
|
+
TenantConfigurations,
|
|
21
|
+
ListTenantConfigurationViolations
|
|
22
|
+
} from "./operationsInterfaces";
|
|
23
|
+
import { PortalOptionalParams } from "./models";
|
|
24
|
+
|
|
25
|
+
export class Portal extends coreClient.ServiceClient {
|
|
26
|
+
$host: string;
|
|
27
|
+
apiVersion: string;
|
|
28
|
+
subscriptionId: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initializes a new instance of the Portal class.
|
|
32
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
33
|
+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
34
|
+
* 00000000-0000-0000-0000-000000000000)
|
|
35
|
+
* @param options The parameter options
|
|
36
|
+
*/
|
|
37
|
+
constructor(
|
|
38
|
+
credentials: coreAuth.TokenCredential,
|
|
39
|
+
subscriptionId: string,
|
|
40
|
+
options?: PortalOptionalParams
|
|
41
|
+
) {
|
|
42
|
+
if (credentials === undefined) {
|
|
43
|
+
throw new Error("'credentials' cannot be null");
|
|
44
|
+
}
|
|
45
|
+
if (subscriptionId === undefined) {
|
|
46
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Initializing default values for options
|
|
50
|
+
if (!options) {
|
|
51
|
+
options = {};
|
|
52
|
+
}
|
|
53
|
+
const defaults: PortalOptionalParams = {
|
|
54
|
+
requestContentType: "application/json; charset=utf-8",
|
|
55
|
+
credential: credentials
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const packageDetails = `azsdk-js-arm-portal/1.0.0-beta.1`;
|
|
59
|
+
const userAgentPrefix =
|
|
60
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
61
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
62
|
+
: `${packageDetails}`;
|
|
63
|
+
|
|
64
|
+
if (!options.credentialScopes) {
|
|
65
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
66
|
+
}
|
|
67
|
+
const optionsWithDefaults = {
|
|
68
|
+
...defaults,
|
|
69
|
+
...options,
|
|
70
|
+
userAgentOptions: {
|
|
71
|
+
userAgentPrefix
|
|
72
|
+
},
|
|
73
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
74
|
+
};
|
|
75
|
+
super(optionsWithDefaults);
|
|
76
|
+
// Parameter assignments
|
|
77
|
+
this.subscriptionId = subscriptionId;
|
|
78
|
+
|
|
79
|
+
// Assigning values to Constant parameters
|
|
80
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
81
|
+
this.apiVersion = options.apiVersion || "2020-09-01-preview";
|
|
82
|
+
this.operations = new OperationsImpl(this);
|
|
83
|
+
this.dashboards = new DashboardsImpl(this);
|
|
84
|
+
this.tenantConfigurations = new TenantConfigurationsImpl(this);
|
|
85
|
+
this.listTenantConfigurationViolations = new ListTenantConfigurationViolationsImpl(
|
|
86
|
+
this
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
operations: Operations;
|
|
91
|
+
dashboards: Dashboards;
|
|
92
|
+
tenantConfigurations: TenantConfigurations;
|
|
93
|
+
listTenantConfigurationViolations: ListTenantConfigurationViolations;
|
|
94
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "es6",
|
|
4
|
+
"moduleResolution": "node",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"target": "es6",
|
|
7
|
+
"sourceMap": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"lib": ["es6", "dom"],
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"outDir": "./dist-esm",
|
|
15
|
+
"importHelpers": true
|
|
16
|
+
},
|
|
17
|
+
"include": ["./src/**/*.ts", "./test/**/*.ts"],
|
|
18
|
+
"exclude": ["node_modules"]
|
|
19
|
+
}
|
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
import * as coreAuth from '@azure/core-auth';
|
|
2
|
+
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
+
|
|
5
|
+
/** Tenant configuration. */
|
|
6
|
+
export declare type Configuration = ProxyResource & {
|
|
7
|
+
/** When flag is set to true Markdown tile will require external storage configuration (URI). The inline content configuration will be prohibited. */
|
|
8
|
+
enforcePrivateMarkdownStorage?: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** List of tenant configurations. */
|
|
12
|
+
export declare interface ConfigurationList {
|
|
13
|
+
/** The array of tenant configurations. */
|
|
14
|
+
value?: Configuration[];
|
|
15
|
+
/** The URL to use for getting the next set of results. */
|
|
16
|
+
nextLink?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Defines values for ConfigurationName. \
|
|
21
|
+
* {@link KnownConfigurationName} can be used interchangeably with ConfigurationName,
|
|
22
|
+
* this enum contains the known values that the service supports.
|
|
23
|
+
* ### Known values supported by the service
|
|
24
|
+
* **default**
|
|
25
|
+
*/
|
|
26
|
+
export declare type ConfigurationName = string;
|
|
27
|
+
|
|
28
|
+
/** The shared dashboard resource definition. */
|
|
29
|
+
export declare interface Dashboard {
|
|
30
|
+
/**
|
|
31
|
+
* Resource Id
|
|
32
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
33
|
+
*/
|
|
34
|
+
readonly id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Resource name
|
|
37
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
38
|
+
*/
|
|
39
|
+
readonly name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Resource type
|
|
42
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
43
|
+
*/
|
|
44
|
+
readonly type?: string;
|
|
45
|
+
/** Resource location */
|
|
46
|
+
location: string;
|
|
47
|
+
/** Resource tags */
|
|
48
|
+
tags?: {
|
|
49
|
+
[propertyName: string]: string;
|
|
50
|
+
};
|
|
51
|
+
/** The dashboard lenses. */
|
|
52
|
+
lenses?: DashboardLens[];
|
|
53
|
+
/** The dashboard metadata. */
|
|
54
|
+
metadata?: {
|
|
55
|
+
[propertyName: string]: Record<string, unknown>;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** A dashboard lens. */
|
|
60
|
+
export declare interface DashboardLens {
|
|
61
|
+
/** The lens order. */
|
|
62
|
+
order: number;
|
|
63
|
+
/** The dashboard parts. */
|
|
64
|
+
parts: DashboardParts[];
|
|
65
|
+
/** The dashboard len's metadata. */
|
|
66
|
+
metadata?: {
|
|
67
|
+
[propertyName: string]: Record<string, unknown>;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** List of dashboards. */
|
|
72
|
+
export declare interface DashboardListResult {
|
|
73
|
+
/** The array of custom resource provider manifests. */
|
|
74
|
+
value?: Dashboard[];
|
|
75
|
+
/** The URL to use for getting the next set of results. */
|
|
76
|
+
nextLink?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** A dashboard part metadata. */
|
|
80
|
+
export declare interface DashboardPartMetadata {
|
|
81
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
82
|
+
type: "Extension/HubsExtension/PartType/MarkdownPart";
|
|
83
|
+
/** Describes unknown properties. The value of an unknown property can be of "any" type. */
|
|
84
|
+
[property: string]: any;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare type DashboardPartMetadataUnion = DashboardPartMetadata | MarkdownPartMetadata;
|
|
88
|
+
|
|
89
|
+
/** A dashboard part. */
|
|
90
|
+
export declare interface DashboardParts {
|
|
91
|
+
/** The dashboard's part position. */
|
|
92
|
+
position: DashboardPartsPosition;
|
|
93
|
+
/** The dashboard part's metadata. */
|
|
94
|
+
metadata?: DashboardPartMetadataUnion;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** The dashboard's part position. */
|
|
98
|
+
export declare interface DashboardPartsPosition {
|
|
99
|
+
/** The dashboard's part x coordinate. */
|
|
100
|
+
x: number;
|
|
101
|
+
/** The dashboard's part y coordinate. */
|
|
102
|
+
y: number;
|
|
103
|
+
/** The dashboard's part row span. */
|
|
104
|
+
rowSpan: number;
|
|
105
|
+
/** The dashboard's part column span. */
|
|
106
|
+
colSpan: number;
|
|
107
|
+
/** The dashboard part's metadata. */
|
|
108
|
+
metadata?: {
|
|
109
|
+
[propertyName: string]: Record<string, unknown>;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** Interface representing a Dashboards. */
|
|
114
|
+
export declare interface Dashboards {
|
|
115
|
+
/**
|
|
116
|
+
* Gets all the Dashboards within a resource group.
|
|
117
|
+
* @param resourceGroupName The name of the resource group.
|
|
118
|
+
* @param options The options parameters.
|
|
119
|
+
*/
|
|
120
|
+
listByResourceGroup(resourceGroupName: string, options?: DashboardsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Dashboard>;
|
|
121
|
+
/**
|
|
122
|
+
* Gets all the dashboards within a subscription.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
listBySubscription(options?: DashboardsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Dashboard>;
|
|
126
|
+
/**
|
|
127
|
+
* Creates or updates a Dashboard.
|
|
128
|
+
* @param resourceGroupName The name of the resource group.
|
|
129
|
+
* @param dashboardName The name of the dashboard.
|
|
130
|
+
* @param dashboard The parameters required to create or update a dashboard.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
createOrUpdate(resourceGroupName: string, dashboardName: string, dashboard: Dashboard, options?: DashboardsCreateOrUpdateOptionalParams): Promise<DashboardsCreateOrUpdateResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* Deletes the Dashboard.
|
|
136
|
+
* @param resourceGroupName The name of the resource group.
|
|
137
|
+
* @param dashboardName The name of the dashboard.
|
|
138
|
+
* @param options The options parameters.
|
|
139
|
+
*/
|
|
140
|
+
delete(resourceGroupName: string, dashboardName: string, options?: DashboardsDeleteOptionalParams): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Gets the Dashboard.
|
|
143
|
+
* @param resourceGroupName The name of the resource group.
|
|
144
|
+
* @param dashboardName The name of the dashboard.
|
|
145
|
+
* @param options The options parameters.
|
|
146
|
+
*/
|
|
147
|
+
get(resourceGroupName: string, dashboardName: string, options?: DashboardsGetOptionalParams): Promise<DashboardsGetResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Updates an existing Dashboard.
|
|
150
|
+
* @param resourceGroupName The name of the resource group.
|
|
151
|
+
* @param dashboardName The name of the dashboard.
|
|
152
|
+
* @param dashboard The updatable fields of a Dashboard.
|
|
153
|
+
* @param options The options parameters.
|
|
154
|
+
*/
|
|
155
|
+
update(resourceGroupName: string, dashboardName: string, dashboard: PatchableDashboard, options?: DashboardsUpdateOptionalParams): Promise<DashboardsUpdateResponse>;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** Optional parameters. */
|
|
159
|
+
export declare interface DashboardsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Contains response data for the createOrUpdate operation. */
|
|
163
|
+
export declare type DashboardsCreateOrUpdateResponse = Dashboard;
|
|
164
|
+
|
|
165
|
+
/** Optional parameters. */
|
|
166
|
+
export declare interface DashboardsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** Optional parameters. */
|
|
170
|
+
export declare interface DashboardsGetOptionalParams extends coreClient.OperationOptions {
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** Contains response data for the get operation. */
|
|
174
|
+
export declare type DashboardsGetResponse = Dashboard;
|
|
175
|
+
|
|
176
|
+
/** Optional parameters. */
|
|
177
|
+
export declare interface DashboardsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/** Contains response data for the listByResourceGroupNext operation. */
|
|
181
|
+
export declare type DashboardsListByResourceGroupNextResponse = DashboardListResult;
|
|
182
|
+
|
|
183
|
+
/** Optional parameters. */
|
|
184
|
+
export declare interface DashboardsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/** Contains response data for the listByResourceGroup operation. */
|
|
188
|
+
export declare type DashboardsListByResourceGroupResponse = DashboardListResult;
|
|
189
|
+
|
|
190
|
+
/** Optional parameters. */
|
|
191
|
+
export declare interface DashboardsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** Contains response data for the listBySubscriptionNext operation. */
|
|
195
|
+
export declare type DashboardsListBySubscriptionNextResponse = DashboardListResult;
|
|
196
|
+
|
|
197
|
+
/** Optional parameters. */
|
|
198
|
+
export declare interface DashboardsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/** Contains response data for the listBySubscription operation. */
|
|
202
|
+
export declare type DashboardsListBySubscriptionResponse = DashboardListResult;
|
|
203
|
+
|
|
204
|
+
/** Optional parameters. */
|
|
205
|
+
export declare interface DashboardsUpdateOptionalParams extends coreClient.OperationOptions {
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** Contains response data for the update operation. */
|
|
209
|
+
export declare type DashboardsUpdateResponse = Dashboard;
|
|
210
|
+
|
|
211
|
+
/** Error definition. */
|
|
212
|
+
export declare interface ErrorDefinition {
|
|
213
|
+
/**
|
|
214
|
+
* Service specific error code which serves as the substatus for the HTTP error code.
|
|
215
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
216
|
+
*/
|
|
217
|
+
readonly code?: number;
|
|
218
|
+
/**
|
|
219
|
+
* Description of the error.
|
|
220
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
221
|
+
*/
|
|
222
|
+
readonly message?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Internal error details.
|
|
225
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
226
|
+
*/
|
|
227
|
+
readonly details?: ErrorDefinition[];
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/** Error response. */
|
|
231
|
+
export declare interface ErrorResponse {
|
|
232
|
+
/** The error details. */
|
|
233
|
+
error?: ErrorDefinition;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/** Known values of {@link ConfigurationName} that the service accepts. */
|
|
237
|
+
export declare enum KnownConfigurationName {
|
|
238
|
+
Default = "default"
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/** Interface representing a ListTenantConfigurationViolations. */
|
|
242
|
+
export declare interface ListTenantConfigurationViolations {
|
|
243
|
+
/**
|
|
244
|
+
* Gets list of items that violate tenant's configuration.
|
|
245
|
+
* @param options The options parameters.
|
|
246
|
+
*/
|
|
247
|
+
list(options?: ListTenantConfigurationViolationsListOptionalParams): PagedAsyncIterableIterator<Violation>;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** Optional parameters. */
|
|
251
|
+
export declare interface ListTenantConfigurationViolationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** Contains response data for the listNext operation. */
|
|
255
|
+
export declare type ListTenantConfigurationViolationsListNextResponse = ViolationsList;
|
|
256
|
+
|
|
257
|
+
/** Optional parameters. */
|
|
258
|
+
export declare interface ListTenantConfigurationViolationsListOptionalParams extends coreClient.OperationOptions {
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** Contains response data for the list operation. */
|
|
262
|
+
export declare type ListTenantConfigurationViolationsListResponse = ViolationsList;
|
|
263
|
+
|
|
264
|
+
/** Markdown part metadata. */
|
|
265
|
+
export declare type MarkdownPartMetadata = DashboardPartMetadata & {
|
|
266
|
+
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
267
|
+
type: "Extension/HubsExtension/PartType/MarkdownPart";
|
|
268
|
+
/** Input to dashboard part. */
|
|
269
|
+
inputs?: Record<string, unknown>[];
|
|
270
|
+
/** Markdown part settings. */
|
|
271
|
+
settings?: MarkdownPartMetadataSettings;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/** Markdown part settings. */
|
|
275
|
+
export declare interface MarkdownPartMetadataSettings {
|
|
276
|
+
/** The content of markdown part. */
|
|
277
|
+
content?: MarkdownPartMetadataSettingsContent;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/** The content of markdown part. */
|
|
281
|
+
export declare interface MarkdownPartMetadataSettingsContent {
|
|
282
|
+
/** The setting of the content of markdown part. */
|
|
283
|
+
settings?: MarkdownPartMetadataSettingsContentSettings;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** The setting of the content of markdown part. */
|
|
287
|
+
export declare interface MarkdownPartMetadataSettingsContentSettings {
|
|
288
|
+
/** The content of the markdown part. */
|
|
289
|
+
content?: string;
|
|
290
|
+
/** The title of the markdown part. */
|
|
291
|
+
title?: string;
|
|
292
|
+
/** The subtitle of the markdown part. */
|
|
293
|
+
subtitle?: string;
|
|
294
|
+
/** The source of the content of the markdown part. */
|
|
295
|
+
markdownSource?: number;
|
|
296
|
+
/** The uri of markdown content. */
|
|
297
|
+
markdownUri?: string;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/** Interface representing a Operations. */
|
|
301
|
+
export declare interface Operations {
|
|
302
|
+
/**
|
|
303
|
+
* The Microsoft Portal operations API.
|
|
304
|
+
* @param options The options parameters.
|
|
305
|
+
*/
|
|
306
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<ResourceProviderOperation>;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/** Optional parameters. */
|
|
310
|
+
export declare interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/** Contains response data for the listNext operation. */
|
|
314
|
+
export declare type OperationsListNextResponse = ResourceProviderOperationList;
|
|
315
|
+
|
|
316
|
+
/** Optional parameters. */
|
|
317
|
+
export declare interface OperationsListOptionalParams extends coreClient.OperationOptions {
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/** Contains response data for the list operation. */
|
|
321
|
+
export declare type OperationsListResponse = ResourceProviderOperationList;
|
|
322
|
+
|
|
323
|
+
/** The shared dashboard resource definition. */
|
|
324
|
+
export declare interface PatchableDashboard {
|
|
325
|
+
/** Resource tags */
|
|
326
|
+
tags?: {
|
|
327
|
+
[propertyName: string]: string;
|
|
328
|
+
};
|
|
329
|
+
/** The dashboard lenses. */
|
|
330
|
+
lenses?: DashboardLens[];
|
|
331
|
+
/** The dashboard metadata. */
|
|
332
|
+
metadata?: {
|
|
333
|
+
[propertyName: string]: Record<string, unknown>;
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export declare class Portal extends coreClient.ServiceClient {
|
|
338
|
+
$host: string;
|
|
339
|
+
apiVersion: string;
|
|
340
|
+
subscriptionId: string;
|
|
341
|
+
/**
|
|
342
|
+
* Initializes a new instance of the Portal class.
|
|
343
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
344
|
+
* @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
|
|
345
|
+
* 00000000-0000-0000-0000-000000000000)
|
|
346
|
+
* @param options The parameter options
|
|
347
|
+
*/
|
|
348
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: PortalOptionalParams);
|
|
349
|
+
operations: Operations;
|
|
350
|
+
dashboards: Dashboards;
|
|
351
|
+
tenantConfigurations: TenantConfigurations;
|
|
352
|
+
listTenantConfigurationViolations: ListTenantConfigurationViolations;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/** Optional parameters. */
|
|
356
|
+
export declare interface PortalOptionalParams extends coreClient.ServiceClientOptions {
|
|
357
|
+
/** server parameter */
|
|
358
|
+
$host?: string;
|
|
359
|
+
/** Api Version */
|
|
360
|
+
apiVersion?: string;
|
|
361
|
+
/** Overrides client endpoint. */
|
|
362
|
+
endpoint?: string;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
|
|
366
|
+
export declare type ProxyResource = Resource & {};
|
|
367
|
+
|
|
368
|
+
/** Common fields that are returned in the response for all Azure Resource Manager resources */
|
|
369
|
+
export declare interface Resource {
|
|
370
|
+
/**
|
|
371
|
+
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
|
372
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
373
|
+
*/
|
|
374
|
+
readonly id?: string;
|
|
375
|
+
/**
|
|
376
|
+
* The name of the resource
|
|
377
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
378
|
+
*/
|
|
379
|
+
readonly name?: string;
|
|
380
|
+
/**
|
|
381
|
+
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
|
|
382
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
383
|
+
*/
|
|
384
|
+
readonly type?: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/** Supported operations of this resource provider. */
|
|
388
|
+
export declare interface ResourceProviderOperation {
|
|
389
|
+
/** Operation name, in format of {provider}/{resource}/{operation} */
|
|
390
|
+
name?: string;
|
|
391
|
+
/** Indicates whether the operation applies to data-plane. */
|
|
392
|
+
isDataAction?: string;
|
|
393
|
+
/** Display metadata associated with the operation. */
|
|
394
|
+
display?: ResourceProviderOperationDisplay;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/** Display metadata associated with the operation. */
|
|
398
|
+
export declare interface ResourceProviderOperationDisplay {
|
|
399
|
+
/** Resource provider: Microsoft Custom Providers. */
|
|
400
|
+
provider?: string;
|
|
401
|
+
/** Resource on which the operation is performed. */
|
|
402
|
+
resource?: string;
|
|
403
|
+
/** Type of operation: get, read, delete, etc. */
|
|
404
|
+
operation?: string;
|
|
405
|
+
/** Description of this operation. */
|
|
406
|
+
description?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/** Results of the request to list operations. */
|
|
410
|
+
export declare interface ResourceProviderOperationList {
|
|
411
|
+
/** List of operations supported by this resource provider. */
|
|
412
|
+
value?: ResourceProviderOperation[];
|
|
413
|
+
/** The URL to use for getting the next set of results. */
|
|
414
|
+
nextLink?: string;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/** Interface representing a TenantConfigurations. */
|
|
418
|
+
export declare interface TenantConfigurations {
|
|
419
|
+
/**
|
|
420
|
+
* Gets list of the tenant configurations.
|
|
421
|
+
* @param options The options parameters.
|
|
422
|
+
*/
|
|
423
|
+
list(options?: TenantConfigurationsListOptionalParams): PagedAsyncIterableIterator<Configuration>;
|
|
424
|
+
/**
|
|
425
|
+
* Gets the tenant configuration.
|
|
426
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
427
|
+
* @param options The options parameters.
|
|
428
|
+
*/
|
|
429
|
+
get(configurationName: ConfigurationName, options?: TenantConfigurationsGetOptionalParams): Promise<TenantConfigurationsGetResponse>;
|
|
430
|
+
/**
|
|
431
|
+
* Create the tenant configuration. If configuration already exists - update it. User has to be a
|
|
432
|
+
* Tenant Admin for this operation.
|
|
433
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
434
|
+
* @param tenantConfiguration The parameters required to create or update tenant configuration.
|
|
435
|
+
* @param options The options parameters.
|
|
436
|
+
*/
|
|
437
|
+
create(configurationName: ConfigurationName, tenantConfiguration: Configuration, options?: TenantConfigurationsCreateOptionalParams): Promise<TenantConfigurationsCreateResponse>;
|
|
438
|
+
/**
|
|
439
|
+
* Delete the tenant configuration. User has to be a Tenant Admin for this operation.
|
|
440
|
+
* @param configurationName The configuration name. Value must be 'default'
|
|
441
|
+
* @param options The options parameters.
|
|
442
|
+
*/
|
|
443
|
+
delete(configurationName: ConfigurationName, options?: TenantConfigurationsDeleteOptionalParams): Promise<void>;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/** Optional parameters. */
|
|
447
|
+
export declare interface TenantConfigurationsCreateOptionalParams extends coreClient.OperationOptions {
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** Contains response data for the create operation. */
|
|
451
|
+
export declare type TenantConfigurationsCreateResponse = Configuration;
|
|
452
|
+
|
|
453
|
+
/** Optional parameters. */
|
|
454
|
+
export declare interface TenantConfigurationsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/** Optional parameters. */
|
|
458
|
+
export declare interface TenantConfigurationsGetOptionalParams extends coreClient.OperationOptions {
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/** Contains response data for the get operation. */
|
|
462
|
+
export declare type TenantConfigurationsGetResponse = Configuration;
|
|
463
|
+
|
|
464
|
+
/** Optional parameters. */
|
|
465
|
+
export declare interface TenantConfigurationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/** Contains response data for the listNext operation. */
|
|
469
|
+
export declare type TenantConfigurationsListNextResponse = ConfigurationList;
|
|
470
|
+
|
|
471
|
+
/** Optional parameters. */
|
|
472
|
+
export declare interface TenantConfigurationsListOptionalParams extends coreClient.OperationOptions {
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/** Contains response data for the list operation. */
|
|
476
|
+
export declare type TenantConfigurationsListResponse = ConfigurationList;
|
|
477
|
+
|
|
478
|
+
/** Violation information. */
|
|
479
|
+
export declare interface Violation {
|
|
480
|
+
/**
|
|
481
|
+
* Id of the item that violates tenant configuration.
|
|
482
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
483
|
+
*/
|
|
484
|
+
readonly id?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Id of the user who owns violated item.
|
|
487
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
488
|
+
*/
|
|
489
|
+
readonly userId?: string;
|
|
490
|
+
/**
|
|
491
|
+
* Error message.
|
|
492
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
493
|
+
*/
|
|
494
|
+
readonly errorMessage?: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/** List of list of items that violate tenant's configuration. */
|
|
498
|
+
export declare interface ViolationsList {
|
|
499
|
+
/** The array of violations. */
|
|
500
|
+
value?: Violation[];
|
|
501
|
+
/** The URL to use for getting the next set of results. */
|
|
502
|
+
nextLink?: string;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.18.19"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|