@pulumi/azure 5.19.0-alpha.1663282974 → 5.19.0-alpha.1663347214
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/apimanagement/api.d.ts +22 -4
- package/apimanagement/api.js +2 -0
- package/apimanagement/api.js.map +1 -1
- package/apimanagement/apiTagDescription.d.ts +95 -0
- package/apimanagement/apiTagDescription.js +69 -0
- package/apimanagement/apiTagDescription.js.map +1 -0
- package/apimanagement/globalSchema.d.ts +149 -0
- package/apimanagement/globalSchema.js +109 -0
- package/apimanagement/globalSchema.js.map +1 -0
- package/apimanagement/index.d.ts +2 -0
- package/apimanagement/index.js +10 -0
- package/apimanagement/index.js.map +1 -1
- package/appservice/linuxWebApp.d.ts +5 -5
- package/appservice/linuxWebAppSlot.d.ts +13 -13
- package/automation/index.d.ts +2 -0
- package/automation/index.js +10 -0
- package/automation/index.js.map +1 -1
- package/automation/sourceControl.d.ts +168 -0
- package/automation/sourceControl.js +93 -0
- package/automation/sourceControl.js.map +1 -0
- package/automation/watcher.d.ts +209 -0
- package/automation/watcher.js +114 -0
- package/automation/watcher.js.map +1 -0
- package/backup/policyVMWorkload.d.ts +45 -0
- package/backup/policyVMWorkload.js +45 -0
- package/backup/policyVMWorkload.js.map +1 -1
- package/containerservice/index.d.ts +1 -0
- package/containerservice/index.js +5 -0
- package/containerservice/index.js.map +1 -1
- package/containerservice/kubernetesCluster.d.ts +12 -0
- package/containerservice/kubernetesCluster.js +2 -0
- package/containerservice/kubernetesCluster.js.map +1 -1
- package/containerservice/tokenPassword.d.ts +84 -0
- package/containerservice/tokenPassword.js +70 -0
- package/containerservice/tokenPassword.js.map +1 -0
- package/cosmosdb/cassandraTable.d.ts +3 -3
- package/desktopvirtualization/hostPool.d.ts +20 -0
- package/desktopvirtualization/hostPool.js +9 -0
- package/desktopvirtualization/hostPool.js.map +1 -1
- package/eventhub/namespaceAuthorizationRule.d.ts +1 -1
- package/eventhub/namespaceAuthorizationRule.js +1 -1
- package/hdinsight/hadoopCluster.d.ts +12 -0
- package/hdinsight/hadoopCluster.js +2 -0
- package/hdinsight/hadoopCluster.js.map +1 -1
- package/hdinsight/hbaseCluster.d.ts +12 -0
- package/hdinsight/hbaseCluster.js +2 -0
- package/hdinsight/hbaseCluster.js.map +1 -1
- package/hdinsight/interactiveQueryCluster.d.ts +12 -0
- package/hdinsight/interactiveQueryCluster.js +2 -0
- package/hdinsight/interactiveQueryCluster.js.map +1 -1
- package/hdinsight/kafkaCluster.d.ts +12 -0
- package/hdinsight/kafkaCluster.js +2 -0
- package/hdinsight/kafkaCluster.js.map +1 -1
- package/hdinsight/sparkCluster.d.ts +12 -0
- package/hdinsight/sparkCluster.js +2 -0
- package/hdinsight/sparkCluster.js.map +1 -1
- package/index.d.ts +2 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/monitoring/actionGroup.d.ts +4 -2
- package/monitoring/actionGroup.js +4 -2
- package/monitoring/actionGroup.js.map +1 -1
- package/monitoring/autoscaleSetting.d.ts +42 -30
- package/monitoring/autoscaleSetting.js +42 -30
- package/monitoring/autoscaleSetting.js.map +1 -1
- package/monitoring/dataCollectionRuleAssociation.d.ts +107 -0
- package/monitoring/dataCollectionRuleAssociation.js +71 -0
- package/monitoring/dataCollectionRuleAssociation.js.map +1 -0
- package/monitoring/getActionGroup.d.ts +2 -10
- package/monitoring/getActionGroup.js +0 -1
- package/monitoring/getActionGroup.js.map +1 -1
- package/monitoring/index.d.ts +1 -0
- package/monitoring/index.js +5 -0
- package/monitoring/index.js.map +1 -1
- package/mssql/database.d.ts +13 -1
- package/mssql/database.js +2 -0
- package/mssql/database.js.map +1 -1
- package/orbital/index.d.ts +1 -0
- package/orbital/index.js +37 -0
- package/orbital/index.js.map +1 -0
- package/orbital/spacecraft.d.ts +170 -0
- package/orbital/spacecraft.js +118 -0
- package/orbital/spacecraft.js.map +1 -0
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/sentinel/alertRuleScheduled.d.ts +3 -3
- package/servicebus/namespaceAuthorizationRule.d.ts +1 -1
- package/servicebus/namespaceAuthorizationRule.js +1 -1
- package/types/input.d.ts +203 -69
- package/types/output.d.ts +216 -32
package/apimanagement/api.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export declare class Api extends pulumi.CustomResource {
|
|
|
59
59
|
* The Name of the API Management Service where this API should be created. Changing this forces a new resource to be created.
|
|
60
60
|
*/
|
|
61
61
|
readonly apiManagementName: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Type of API. Possible values are `graphql`, `http`, `soap`, and `websocket`. Defaults to `http`.
|
|
64
|
+
*/
|
|
65
|
+
readonly apiType: pulumi.Output<string>;
|
|
62
66
|
/**
|
|
63
67
|
* A description of the API Management API, which may include HTML formatting tags.
|
|
64
68
|
*/
|
|
@@ -96,7 +100,7 @@ export declare class Api extends pulumi.CustomResource {
|
|
|
96
100
|
*/
|
|
97
101
|
readonly path: pulumi.Output<string>;
|
|
98
102
|
/**
|
|
99
|
-
* A list of protocols the operations in this API can be invoked. Possible values are `http` and `
|
|
103
|
+
* A list of protocols the operations in this API can be invoked. Possible values are `http`, `https`, `ws`, and `wss`.
|
|
100
104
|
*/
|
|
101
105
|
readonly protocols: pulumi.Output<string[]>;
|
|
102
106
|
/**
|
|
@@ -117,8 +121,10 @@ export declare class Api extends pulumi.CustomResource {
|
|
|
117
121
|
readonly serviceUrl: pulumi.Output<string>;
|
|
118
122
|
/**
|
|
119
123
|
* Should this API expose a SOAP frontend, rather than a HTTP frontend? Defaults to `false`.
|
|
124
|
+
*
|
|
125
|
+
* @deprecated `soap_pass_through` will be removed in favour of the property `api_type` in version 4.0 of the AzureRM Provider
|
|
120
126
|
*/
|
|
121
|
-
readonly soapPassThrough: pulumi.Output<boolean
|
|
127
|
+
readonly soapPassThrough: pulumi.Output<boolean>;
|
|
122
128
|
/**
|
|
123
129
|
* The API id of the source API, which could be in format `azurerm_api_management_api.example.id` or in format `azurerm_api_management_api.example.id;rev=1`
|
|
124
130
|
*/
|
|
@@ -160,6 +166,10 @@ export interface ApiState {
|
|
|
160
166
|
* The Name of the API Management Service where this API should be created. Changing this forces a new resource to be created.
|
|
161
167
|
*/
|
|
162
168
|
apiManagementName?: pulumi.Input<string>;
|
|
169
|
+
/**
|
|
170
|
+
* Type of API. Possible values are `graphql`, `http`, `soap`, and `websocket`. Defaults to `http`.
|
|
171
|
+
*/
|
|
172
|
+
apiType?: pulumi.Input<string>;
|
|
163
173
|
/**
|
|
164
174
|
* A description of the API Management API, which may include HTML formatting tags.
|
|
165
175
|
*/
|
|
@@ -197,7 +207,7 @@ export interface ApiState {
|
|
|
197
207
|
*/
|
|
198
208
|
path?: pulumi.Input<string>;
|
|
199
209
|
/**
|
|
200
|
-
* A list of protocols the operations in this API can be invoked. Possible values are `http` and `
|
|
210
|
+
* A list of protocols the operations in this API can be invoked. Possible values are `http`, `https`, `ws`, and `wss`.
|
|
201
211
|
*/
|
|
202
212
|
protocols?: pulumi.Input<pulumi.Input<string>[]>;
|
|
203
213
|
/**
|
|
@@ -218,6 +228,8 @@ export interface ApiState {
|
|
|
218
228
|
serviceUrl?: pulumi.Input<string>;
|
|
219
229
|
/**
|
|
220
230
|
* Should this API expose a SOAP frontend, rather than a HTTP frontend? Defaults to `false`.
|
|
231
|
+
*
|
|
232
|
+
* @deprecated `soap_pass_through` will be removed in favour of the property `api_type` in version 4.0 of the AzureRM Provider
|
|
221
233
|
*/
|
|
222
234
|
soapPassThrough?: pulumi.Input<boolean>;
|
|
223
235
|
/**
|
|
@@ -253,6 +265,10 @@ export interface ApiArgs {
|
|
|
253
265
|
* The Name of the API Management Service where this API should be created. Changing this forces a new resource to be created.
|
|
254
266
|
*/
|
|
255
267
|
apiManagementName: pulumi.Input<string>;
|
|
268
|
+
/**
|
|
269
|
+
* Type of API. Possible values are `graphql`, `http`, `soap`, and `websocket`. Defaults to `http`.
|
|
270
|
+
*/
|
|
271
|
+
apiType?: pulumi.Input<string>;
|
|
256
272
|
/**
|
|
257
273
|
* A description of the API Management API, which may include HTML formatting tags.
|
|
258
274
|
*/
|
|
@@ -282,7 +298,7 @@ export interface ApiArgs {
|
|
|
282
298
|
*/
|
|
283
299
|
path?: pulumi.Input<string>;
|
|
284
300
|
/**
|
|
285
|
-
* A list of protocols the operations in this API can be invoked. Possible values are `http` and `
|
|
301
|
+
* A list of protocols the operations in this API can be invoked. Possible values are `http`, `https`, `ws`, and `wss`.
|
|
286
302
|
*/
|
|
287
303
|
protocols?: pulumi.Input<pulumi.Input<string>[]>;
|
|
288
304
|
/**
|
|
@@ -303,6 +319,8 @@ export interface ApiArgs {
|
|
|
303
319
|
serviceUrl?: pulumi.Input<string>;
|
|
304
320
|
/**
|
|
305
321
|
* Should this API expose a SOAP frontend, rather than a HTTP frontend? Defaults to `false`.
|
|
322
|
+
*
|
|
323
|
+
* @deprecated `soap_pass_through` will be removed in favour of the property `api_type` in version 4.0 of the AzureRM Provider
|
|
306
324
|
*/
|
|
307
325
|
soapPassThrough?: pulumi.Input<boolean>;
|
|
308
326
|
/**
|
package/apimanagement/api.js
CHANGED
|
@@ -51,6 +51,7 @@ class Api extends pulumi.CustomResource {
|
|
|
51
51
|
if (opts.id) {
|
|
52
52
|
const state = argsOrState;
|
|
53
53
|
resourceInputs["apiManagementName"] = state ? state.apiManagementName : undefined;
|
|
54
|
+
resourceInputs["apiType"] = state ? state.apiType : undefined;
|
|
54
55
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
55
56
|
resourceInputs["displayName"] = state ? state.displayName : undefined;
|
|
56
57
|
resourceInputs["import"] = state ? state.import : undefined;
|
|
@@ -85,6 +86,7 @@ class Api extends pulumi.CustomResource {
|
|
|
85
86
|
throw new Error("Missing required property 'revision'");
|
|
86
87
|
}
|
|
87
88
|
resourceInputs["apiManagementName"] = args ? args.apiManagementName : undefined;
|
|
89
|
+
resourceInputs["apiType"] = args ? args.apiType : undefined;
|
|
88
90
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
89
91
|
resourceInputs["displayName"] = args ? args.displayName : undefined;
|
|
90
92
|
resourceInputs["import"] = args ? args.import : undefined;
|
package/apimanagement/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../apimanagement/api.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../apimanagement/api.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAmI1C,YAAY,IAAY,EAAE,WAAgC,EAAE,IAAmC;QAC3F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmC,CAAC;YAClD,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CA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CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAnMD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;;AA1BL,kBAqMC;AAvLG,gBAAgB;AACO,gBAAY,GAAG,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages an API Tag Description within an API Management Service.
|
|
4
|
+
*
|
|
5
|
+
* ## Import
|
|
6
|
+
*
|
|
7
|
+
* API Management API Schema's can be imported using the `resource id`, e.g.
|
|
8
|
+
*
|
|
9
|
+
* ```sh
|
|
10
|
+
* $ pulumi import azure:apimanagement/apiTagDescription:ApiTagDescription example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/tagDescriptions/tagDescriptionId1
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class ApiTagDescription extends pulumi.CustomResource {
|
|
14
|
+
/**
|
|
15
|
+
* Get an existing ApiTagDescription resource's state with the given name, ID, and optional extra
|
|
16
|
+
* properties used to qualify the lookup.
|
|
17
|
+
*
|
|
18
|
+
* @param name The _unique_ name of the resulting resource.
|
|
19
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
20
|
+
* @param state Any extra arguments used during the lookup.
|
|
21
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
22
|
+
*/
|
|
23
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ApiTagDescriptionState, opts?: pulumi.CustomResourceOptions): ApiTagDescription;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of ApiTagDescription. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj: any): obj is ApiTagDescription;
|
|
29
|
+
/**
|
|
30
|
+
* The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
|
|
31
|
+
*/
|
|
32
|
+
readonly apiTagId: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* The description of the Tag.
|
|
35
|
+
*/
|
|
36
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* The description of the external documentation resources describing the tag.
|
|
39
|
+
*/
|
|
40
|
+
readonly externalDocumentationDescription: pulumi.Output<string | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* The URL of external documentation resources describing the tag.
|
|
43
|
+
*/
|
|
44
|
+
readonly externalDocumentationUrl: pulumi.Output<string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Create a ApiTagDescription resource with the given unique name, arguments, and options.
|
|
47
|
+
*
|
|
48
|
+
* @param name The _unique_ name of the resource.
|
|
49
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
50
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
51
|
+
*/
|
|
52
|
+
constructor(name: string, args: ApiTagDescriptionArgs, opts?: pulumi.CustomResourceOptions);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Input properties used for looking up and filtering ApiTagDescription resources.
|
|
56
|
+
*/
|
|
57
|
+
export interface ApiTagDescriptionState {
|
|
58
|
+
/**
|
|
59
|
+
* The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
|
|
60
|
+
*/
|
|
61
|
+
apiTagId?: pulumi.Input<string>;
|
|
62
|
+
/**
|
|
63
|
+
* The description of the Tag.
|
|
64
|
+
*/
|
|
65
|
+
description?: pulumi.Input<string>;
|
|
66
|
+
/**
|
|
67
|
+
* The description of the external documentation resources describing the tag.
|
|
68
|
+
*/
|
|
69
|
+
externalDocumentationDescription?: pulumi.Input<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The URL of external documentation resources describing the tag.
|
|
72
|
+
*/
|
|
73
|
+
externalDocumentationUrl?: pulumi.Input<string>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The set of arguments for constructing a ApiTagDescription resource.
|
|
77
|
+
*/
|
|
78
|
+
export interface ApiTagDescriptionArgs {
|
|
79
|
+
/**
|
|
80
|
+
* The The ID of the API Management API Tag. Changing this forces a new API Management API Tag Description to be created.
|
|
81
|
+
*/
|
|
82
|
+
apiTagId: pulumi.Input<string>;
|
|
83
|
+
/**
|
|
84
|
+
* The description of the Tag.
|
|
85
|
+
*/
|
|
86
|
+
description?: pulumi.Input<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The description of the external documentation resources describing the tag.
|
|
89
|
+
*/
|
|
90
|
+
externalDocumentationDescription?: pulumi.Input<string>;
|
|
91
|
+
/**
|
|
92
|
+
* The URL of external documentation resources describing the tag.
|
|
93
|
+
*/
|
|
94
|
+
externalDocumentationUrl?: pulumi.Input<string>;
|
|
95
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.ApiTagDescription = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages an API Tag Description within an API Management Service.
|
|
10
|
+
*
|
|
11
|
+
* ## Import
|
|
12
|
+
*
|
|
13
|
+
* API Management API Schema's can be imported using the `resource id`, e.g.
|
|
14
|
+
*
|
|
15
|
+
* ```sh
|
|
16
|
+
* $ pulumi import azure:apimanagement/apiTagDescription:ApiTagDescription example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/apis/api1/tagDescriptions/tagDescriptionId1
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
class ApiTagDescription extends pulumi.CustomResource {
|
|
20
|
+
constructor(name, argsOrState, opts) {
|
|
21
|
+
let resourceInputs = {};
|
|
22
|
+
opts = opts || {};
|
|
23
|
+
if (opts.id) {
|
|
24
|
+
const state = argsOrState;
|
|
25
|
+
resourceInputs["apiTagId"] = state ? state.apiTagId : undefined;
|
|
26
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
27
|
+
resourceInputs["externalDocumentationDescription"] = state ? state.externalDocumentationDescription : undefined;
|
|
28
|
+
resourceInputs["externalDocumentationUrl"] = state ? state.externalDocumentationUrl : undefined;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
const args = argsOrState;
|
|
32
|
+
if ((!args || args.apiTagId === undefined) && !opts.urn) {
|
|
33
|
+
throw new Error("Missing required property 'apiTagId'");
|
|
34
|
+
}
|
|
35
|
+
resourceInputs["apiTagId"] = args ? args.apiTagId : undefined;
|
|
36
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
37
|
+
resourceInputs["externalDocumentationDescription"] = args ? args.externalDocumentationDescription : undefined;
|
|
38
|
+
resourceInputs["externalDocumentationUrl"] = args ? args.externalDocumentationUrl : undefined;
|
|
39
|
+
}
|
|
40
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
41
|
+
super(ApiTagDescription.__pulumiType, name, resourceInputs, opts);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Get an existing ApiTagDescription resource's state with the given name, ID, and optional extra
|
|
45
|
+
* properties used to qualify the lookup.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resulting resource.
|
|
48
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
49
|
+
* @param state Any extra arguments used during the lookup.
|
|
50
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
51
|
+
*/
|
|
52
|
+
static get(name, id, state, opts) {
|
|
53
|
+
return new ApiTagDescription(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if the given object is an instance of ApiTagDescription. This is designed to work even
|
|
57
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
58
|
+
*/
|
|
59
|
+
static isInstance(obj) {
|
|
60
|
+
if (obj === undefined || obj === null) {
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
return obj['__pulumiType'] === ApiTagDescription.__pulumiType;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.ApiTagDescription = ApiTagDescription;
|
|
67
|
+
/** @internal */
|
|
68
|
+
ApiTagDescription.__pulumiType = 'azure:apimanagement/apiTagDescription:ApiTagDescription';
|
|
69
|
+
//# sourceMappingURL=apiTagDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiTagDescription.js","sourceRoot":"","sources":["../../apimanagement/apiTagDescription.ts"],"names":[],"mappings":";AAA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AAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9G,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,SAAS,CAAC;SACjG;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IAzED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CA2EC;AA7DG,gBAAgB;AACO,8BAAY,GAAG,yDAAyD,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a Global Schema within an API Management Service.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as azure from "@pulumi/azure";
|
|
10
|
+
* import * as fs from "fs";
|
|
11
|
+
*
|
|
12
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
13
|
+
* const exampleService = new azure.apimanagement.Service("exampleService", {
|
|
14
|
+
* location: exampleResourceGroup.location,
|
|
15
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
16
|
+
* publisherName: "pub1",
|
|
17
|
+
* publisherEmail: "pub1@email.com",
|
|
18
|
+
* skuName: "Consumption_0",
|
|
19
|
+
* });
|
|
20
|
+
* const exampleGlobalSchema = new azure.apimanagement.GlobalSchema("exampleGlobalSchema", {
|
|
21
|
+
* schemaId: "example-schema1",
|
|
22
|
+
* apiManagementName: exampleService.name,
|
|
23
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
24
|
+
* type: "xml",
|
|
25
|
+
* value: fs.readFileSync("api_management_api_schema.xml"),
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Import
|
|
30
|
+
*
|
|
31
|
+
* API Management API Schema's can be imported using the `resource id`, e.g.
|
|
32
|
+
*
|
|
33
|
+
* ```sh
|
|
34
|
+
* $ pulumi import azure:apimanagement/globalSchema:GlobalSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/schemas/schema1
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class GlobalSchema extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing GlobalSchema resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GlobalSchemaState, opts?: pulumi.CustomResourceOptions): GlobalSchema;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of GlobalSchema. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is GlobalSchema;
|
|
53
|
+
/**
|
|
54
|
+
* The Name of the API Management Service where the API exists. Changing this forces a
|
|
55
|
+
* new resource to be created.
|
|
56
|
+
*/
|
|
57
|
+
readonly apiManagementName: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The description of the schema.
|
|
60
|
+
*/
|
|
61
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
62
|
+
/**
|
|
63
|
+
* The Name of the Resource Group in which the API Management Service exists. Changing
|
|
64
|
+
* this forces a new resource to be created.
|
|
65
|
+
*/
|
|
66
|
+
readonly resourceGroupName: pulumi.Output<string>;
|
|
67
|
+
/**
|
|
68
|
+
* A unique identifier for this Schema. Changing this forces a new resource to be created.
|
|
69
|
+
*/
|
|
70
|
+
readonly schemaId: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The content type of the Schema. Possible values are `xml` and `json`.
|
|
73
|
+
*/
|
|
74
|
+
readonly type: pulumi.Output<string>;
|
|
75
|
+
/**
|
|
76
|
+
* The string defining the document representing the Schema.
|
|
77
|
+
*/
|
|
78
|
+
readonly value: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Create a GlobalSchema resource with the given unique name, arguments, and options.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resource.
|
|
83
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
84
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
85
|
+
*/
|
|
86
|
+
constructor(name: string, args: GlobalSchemaArgs, opts?: pulumi.CustomResourceOptions);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Input properties used for looking up and filtering GlobalSchema resources.
|
|
90
|
+
*/
|
|
91
|
+
export interface GlobalSchemaState {
|
|
92
|
+
/**
|
|
93
|
+
* The Name of the API Management Service where the API exists. Changing this forces a
|
|
94
|
+
* new resource to be created.
|
|
95
|
+
*/
|
|
96
|
+
apiManagementName?: pulumi.Input<string>;
|
|
97
|
+
/**
|
|
98
|
+
* The description of the schema.
|
|
99
|
+
*/
|
|
100
|
+
description?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The Name of the Resource Group in which the API Management Service exists. Changing
|
|
103
|
+
* this forces a new resource to be created.
|
|
104
|
+
*/
|
|
105
|
+
resourceGroupName?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* A unique identifier for this Schema. Changing this forces a new resource to be created.
|
|
108
|
+
*/
|
|
109
|
+
schemaId?: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The content type of the Schema. Possible values are `xml` and `json`.
|
|
112
|
+
*/
|
|
113
|
+
type?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The string defining the document representing the Schema.
|
|
116
|
+
*/
|
|
117
|
+
value?: pulumi.Input<string>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The set of arguments for constructing a GlobalSchema resource.
|
|
121
|
+
*/
|
|
122
|
+
export interface GlobalSchemaArgs {
|
|
123
|
+
/**
|
|
124
|
+
* The Name of the API Management Service where the API exists. Changing this forces a
|
|
125
|
+
* new resource to be created.
|
|
126
|
+
*/
|
|
127
|
+
apiManagementName: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The description of the schema.
|
|
130
|
+
*/
|
|
131
|
+
description?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The Name of the Resource Group in which the API Management Service exists. Changing
|
|
134
|
+
* this forces a new resource to be created.
|
|
135
|
+
*/
|
|
136
|
+
resourceGroupName: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* A unique identifier for this Schema. Changing this forces a new resource to be created.
|
|
139
|
+
*/
|
|
140
|
+
schemaId: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The content type of the Schema. Possible values are `xml` and `json`.
|
|
143
|
+
*/
|
|
144
|
+
type: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The string defining the document representing the Schema.
|
|
147
|
+
*/
|
|
148
|
+
value: pulumi.Input<string>;
|
|
149
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.GlobalSchema = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Global Schema within an API Management Service.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as azure from "@pulumi/azure";
|
|
16
|
+
* import * as fs from "fs";
|
|
17
|
+
*
|
|
18
|
+
* const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
|
|
19
|
+
* const exampleService = new azure.apimanagement.Service("exampleService", {
|
|
20
|
+
* location: exampleResourceGroup.location,
|
|
21
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
22
|
+
* publisherName: "pub1",
|
|
23
|
+
* publisherEmail: "pub1@email.com",
|
|
24
|
+
* skuName: "Consumption_0",
|
|
25
|
+
* });
|
|
26
|
+
* const exampleGlobalSchema = new azure.apimanagement.GlobalSchema("exampleGlobalSchema", {
|
|
27
|
+
* schemaId: "example-schema1",
|
|
28
|
+
* apiManagementName: exampleService.name,
|
|
29
|
+
* resourceGroupName: exampleResourceGroup.name,
|
|
30
|
+
* type: "xml",
|
|
31
|
+
* value: fs.readFileSync("api_management_api_schema.xml"),
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## Import
|
|
36
|
+
*
|
|
37
|
+
* API Management API Schema's can be imported using the `resource id`, e.g.
|
|
38
|
+
*
|
|
39
|
+
* ```sh
|
|
40
|
+
* $ pulumi import azure:apimanagement/globalSchema:GlobalSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/schemas/schema1
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
class GlobalSchema extends pulumi.CustomResource {
|
|
44
|
+
constructor(name, argsOrState, opts) {
|
|
45
|
+
let resourceInputs = {};
|
|
46
|
+
opts = opts || {};
|
|
47
|
+
if (opts.id) {
|
|
48
|
+
const state = argsOrState;
|
|
49
|
+
resourceInputs["apiManagementName"] = state ? state.apiManagementName : undefined;
|
|
50
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
51
|
+
resourceInputs["resourceGroupName"] = state ? state.resourceGroupName : undefined;
|
|
52
|
+
resourceInputs["schemaId"] = state ? state.schemaId : undefined;
|
|
53
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
54
|
+
resourceInputs["value"] = state ? state.value : undefined;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
const args = argsOrState;
|
|
58
|
+
if ((!args || args.apiManagementName === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'apiManagementName'");
|
|
60
|
+
}
|
|
61
|
+
if ((!args || args.resourceGroupName === undefined) && !opts.urn) {
|
|
62
|
+
throw new Error("Missing required property 'resourceGroupName'");
|
|
63
|
+
}
|
|
64
|
+
if ((!args || args.schemaId === undefined) && !opts.urn) {
|
|
65
|
+
throw new Error("Missing required property 'schemaId'");
|
|
66
|
+
}
|
|
67
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
68
|
+
throw new Error("Missing required property 'type'");
|
|
69
|
+
}
|
|
70
|
+
if ((!args || args.value === undefined) && !opts.urn) {
|
|
71
|
+
throw new Error("Missing required property 'value'");
|
|
72
|
+
}
|
|
73
|
+
resourceInputs["apiManagementName"] = args ? args.apiManagementName : undefined;
|
|
74
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
75
|
+
resourceInputs["resourceGroupName"] = args ? args.resourceGroupName : undefined;
|
|
76
|
+
resourceInputs["schemaId"] = args ? args.schemaId : undefined;
|
|
77
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
78
|
+
resourceInputs["value"] = args ? args.value : undefined;
|
|
79
|
+
}
|
|
80
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
81
|
+
super(GlobalSchema.__pulumiType, name, resourceInputs, opts);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Get an existing GlobalSchema resource's state with the given name, ID, and optional extra
|
|
85
|
+
* properties used to qualify the lookup.
|
|
86
|
+
*
|
|
87
|
+
* @param name The _unique_ name of the resulting resource.
|
|
88
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
89
|
+
* @param state Any extra arguments used during the lookup.
|
|
90
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
91
|
+
*/
|
|
92
|
+
static get(name, id, state, opts) {
|
|
93
|
+
return new GlobalSchema(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Returns true if the given object is an instance of GlobalSchema. This is designed to work even
|
|
97
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
98
|
+
*/
|
|
99
|
+
static isInstance(obj) {
|
|
100
|
+
if (obj === undefined || obj === null) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
return obj['__pulumiType'] === GlobalSchema.__pulumiType;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.GlobalSchema = GlobalSchema;
|
|
107
|
+
/** @internal */
|
|
108
|
+
GlobalSchema.__pulumiType = 'azure:apimanagement/globalSchema:GlobalSchema';
|
|
109
|
+
//# sourceMappingURL=globalSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalSchema.js","sourceRoot":"","sources":["../../apimanagement/globalSchema.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IA+DnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;aAAM;YACH,MAAM,IAAI,GAAG,WAA2C,CAAC;YACzD,IAAI,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Q,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;IAnGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;;AA1BL,oCAqGC;AAvFG,gBAAgB;AACO,yBAAY,GAAG,+CAA+C,CAAC"}
|
package/apimanagement/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./apiPolicy";
|
|
|
7
7
|
export * from "./apiRelease";
|
|
8
8
|
export * from "./apiSchema";
|
|
9
9
|
export * from "./apiTag";
|
|
10
|
+
export * from "./apiTagDescription";
|
|
10
11
|
export * from "./apiVersionSet";
|
|
11
12
|
export * from "./authorizationServer";
|
|
12
13
|
export * from "./backend";
|
|
@@ -25,6 +26,7 @@ export * from "./getGroup";
|
|
|
25
26
|
export * from "./getProduct";
|
|
26
27
|
export * from "./getService";
|
|
27
28
|
export * from "./getUser";
|
|
29
|
+
export * from "./globalSchema";
|
|
28
30
|
export * from "./group";
|
|
29
31
|
export * from "./groupUser";
|
|
30
32
|
export * from "./identityProviderAad";
|
package/apimanagement/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./apiPolicy"), exports);
|
|
|
28
28
|
__exportStar(require("./apiRelease"), exports);
|
|
29
29
|
__exportStar(require("./apiSchema"), exports);
|
|
30
30
|
__exportStar(require("./apiTag"), exports);
|
|
31
|
+
__exportStar(require("./apiTagDescription"), exports);
|
|
31
32
|
__exportStar(require("./apiVersionSet"), exports);
|
|
32
33
|
__exportStar(require("./authorizationServer"), exports);
|
|
33
34
|
__exportStar(require("./backend"), exports);
|
|
@@ -46,6 +47,7 @@ __exportStar(require("./getGroup"), exports);
|
|
|
46
47
|
__exportStar(require("./getProduct"), exports);
|
|
47
48
|
__exportStar(require("./getService"), exports);
|
|
48
49
|
__exportStar(require("./getUser"), exports);
|
|
50
|
+
__exportStar(require("./globalSchema"), exports);
|
|
49
51
|
__exportStar(require("./group"), exports);
|
|
50
52
|
__exportStar(require("./groupUser"), exports);
|
|
51
53
|
__exportStar(require("./identityProviderAad"), exports);
|
|
@@ -80,6 +82,7 @@ const apiPolicy_1 = require("./apiPolicy");
|
|
|
80
82
|
const apiRelease_1 = require("./apiRelease");
|
|
81
83
|
const apiSchema_1 = require("./apiSchema");
|
|
82
84
|
const apiTag_1 = require("./apiTag");
|
|
85
|
+
const apiTagDescription_1 = require("./apiTagDescription");
|
|
83
86
|
const apiVersionSet_1 = require("./apiVersionSet");
|
|
84
87
|
const authorizationServer_1 = require("./authorizationServer");
|
|
85
88
|
const backend_1 = require("./backend");
|
|
@@ -91,6 +94,7 @@ const gateway_1 = require("./gateway");
|
|
|
91
94
|
const gatewayApi_1 = require("./gatewayApi");
|
|
92
95
|
const gatewayCertificateAuthority_1 = require("./gatewayCertificateAuthority");
|
|
93
96
|
const gatewayHostNameConfiguration_1 = require("./gatewayHostNameConfiguration");
|
|
97
|
+
const globalSchema_1 = require("./globalSchema");
|
|
94
98
|
const group_1 = require("./group");
|
|
95
99
|
const groupUser_1 = require("./groupUser");
|
|
96
100
|
const identityProviderAad_1 = require("./identityProviderAad");
|
|
@@ -137,6 +141,8 @@ const _module = {
|
|
|
137
141
|
return new apiSchema_1.ApiSchema(name, undefined, { urn });
|
|
138
142
|
case "azure:apimanagement/apiTag:ApiTag":
|
|
139
143
|
return new apiTag_1.ApiTag(name, undefined, { urn });
|
|
144
|
+
case "azure:apimanagement/apiTagDescription:ApiTagDescription":
|
|
145
|
+
return new apiTagDescription_1.ApiTagDescription(name, undefined, { urn });
|
|
140
146
|
case "azure:apimanagement/apiVersionSet:ApiVersionSet":
|
|
141
147
|
return new apiVersionSet_1.ApiVersionSet(name, undefined, { urn });
|
|
142
148
|
case "azure:apimanagement/authorizationServer:AuthorizationServer":
|
|
@@ -159,6 +165,8 @@ const _module = {
|
|
|
159
165
|
return new gatewayCertificateAuthority_1.GatewayCertificateAuthority(name, undefined, { urn });
|
|
160
166
|
case "azure:apimanagement/gatewayHostNameConfiguration:GatewayHostNameConfiguration":
|
|
161
167
|
return new gatewayHostNameConfiguration_1.GatewayHostNameConfiguration(name, undefined, { urn });
|
|
168
|
+
case "azure:apimanagement/globalSchema:GlobalSchema":
|
|
169
|
+
return new globalSchema_1.GlobalSchema(name, undefined, { urn });
|
|
162
170
|
case "azure:apimanagement/group:Group":
|
|
163
171
|
return new group_1.Group(name, undefined, { urn });
|
|
164
172
|
case "azure:apimanagement/groupUser:GroupUser":
|
|
@@ -221,6 +229,7 @@ pulumi.runtime.registerResourceModule("azure", "apimanagement/apiPolicy", _modul
|
|
|
221
229
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/apiRelease", _module);
|
|
222
230
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/apiSchema", _module);
|
|
223
231
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/apiTag", _module);
|
|
232
|
+
pulumi.runtime.registerResourceModule("azure", "apimanagement/apiTagDescription", _module);
|
|
224
233
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/apiVersionSet", _module);
|
|
225
234
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/authorizationServer", _module);
|
|
226
235
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/backend", _module);
|
|
@@ -232,6 +241,7 @@ pulumi.runtime.registerResourceModule("azure", "apimanagement/gateway", _module)
|
|
|
232
241
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/gatewayApi", _module);
|
|
233
242
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/gatewayCertificateAuthority", _module);
|
|
234
243
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/gatewayHostNameConfiguration", _module);
|
|
244
|
+
pulumi.runtime.registerResourceModule("azure", "apimanagement/globalSchema", _module);
|
|
235
245
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/group", _module);
|
|
236
246
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/groupUser", _module);
|
|
237
247
|
pulumi.runtime.registerResourceModule("azure", "apimanagement/identityProviderAad", _module);
|