@azure/arm-eventhub-profile-2020-09-01-hybrid 2.1.1-alpha.20250619.1 → 2.1.1-alpha.20250718.2
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/dist/browser/eventHubManagementClient.js +21 -5
- package/dist/browser/eventHubManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +96 -44
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/clusters.js +56 -58
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/consumerGroups.js +23 -40
- package/dist/browser/operations/consumerGroups.js.map +1 -1
- package/dist/browser/operations/disasterRecoveryConfigs.js +23 -40
- package/dist/browser/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/browser/operations/eventHubs.js +45 -79
- package/dist/browser/operations/eventHubs.js.map +1 -1
- package/dist/browser/operations/namespaces.js +89 -130
- package/dist/browser/operations/namespaces.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +34 -46
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/regions.js +23 -40
- package/dist/browser/operations/regions.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/eventHubManagementClient.js +21 -5
- package/dist/commonjs/eventHubManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +96 -44
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +56 -57
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/consumerGroups.js +23 -39
- package/dist/commonjs/operations/consumerGroups.js.map +1 -1
- package/dist/commonjs/operations/disasterRecoveryConfigs.js +23 -39
- package/dist/commonjs/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/commonjs/operations/eventHubs.js +45 -78
- package/dist/commonjs/operations/eventHubs.js.map +1 -1
- package/dist/commonjs/operations/namespaces.js +89 -129
- package/dist/commonjs/operations/namespaces.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +34 -45
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/regions.js +23 -39
- package/dist/commonjs/operations/regions.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/eventHubManagementClient.js +21 -5
- package/dist/esm/eventHubManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +96 -44
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/clusters.js +56 -58
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/consumerGroups.js +23 -40
- package/dist/esm/operations/consumerGroups.js.map +1 -1
- package/dist/esm/operations/disasterRecoveryConfigs.js +23 -40
- package/dist/esm/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/esm/operations/eventHubs.js +45 -79
- package/dist/esm/operations/eventHubs.js.map +1 -1
- package/dist/esm/operations/namespaces.js +89 -130
- package/dist/esm/operations/namespaces.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +34 -46
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/regions.js +23 -40
- package/dist/esm/operations/regions.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/eventHubManagementClient.js +21 -5
- package/dist/react-native/eventHubManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +96 -44
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/clusters.js +56 -58
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/consumerGroups.js +23 -40
- package/dist/react-native/operations/consumerGroups.js.map +1 -1
- package/dist/react-native/operations/disasterRecoveryConfigs.js +23 -40
- package/dist/react-native/operations/disasterRecoveryConfigs.js.map +1 -1
- package/dist/react-native/operations/eventHubs.js +45 -79
- package/dist/react-native/operations/eventHubs.js.map +1 -1
- package/dist/react-native/operations/namespaces.js +89 -130
- package/dist/react-native/operations/namespaces.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +34 -46
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/regions.js +23 -40
- package/dist/react-native/operations/regions.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-eventhub-profile-2020-09-01-hybrid.api.md → arm-eventhub-profile-2020-09-01-hybrid-node.api.md} +0 -0
|
@@ -9,6 +9,8 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { ClustersImpl, NamespacesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, DisasterRecoveryConfigsImpl, EventHubsImpl, ConsumerGroupsImpl, OperationsImpl, RegionsImpl } from "./operations/index.js";
|
|
11
11
|
export class EventHubManagementClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
subscriptionId;
|
|
12
14
|
/**
|
|
13
15
|
* Initializes a new instance of the EventHubManagementClient class.
|
|
14
16
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -17,7 +19,6 @@ export class EventHubManagementClient extends coreClient.ServiceClient {
|
|
|
17
19
|
* @param options The parameter options
|
|
18
20
|
*/
|
|
19
21
|
constructor(credentials, subscriptionId, options) {
|
|
20
|
-
var _a, _b, _c;
|
|
21
22
|
if (credentials === undefined) {
|
|
22
23
|
throw new Error("'credentials' cannot be null");
|
|
23
24
|
}
|
|
@@ -36,12 +37,17 @@ export class EventHubManagementClient extends coreClient.ServiceClient {
|
|
|
36
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
39
|
: `${packageDetails}`;
|
|
39
|
-
const optionsWithDefaults =
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
40
44
|
userAgentPrefix
|
|
41
|
-
},
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
42
48
|
super(optionsWithDefaults);
|
|
43
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
-
if (
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -55,7 +61,8 @@ export class EventHubManagementClient extends coreClient.ServiceClient {
|
|
|
55
61
|
});
|
|
56
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
63
|
credential: credentials,
|
|
58
|
-
scopes:
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
59
66
|
challengeCallbacks: {
|
|
60
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
61
68
|
}
|
|
@@ -75,5 +82,14 @@ export class EventHubManagementClient extends coreClient.ServiceClient {
|
|
|
75
82
|
this.operations = new OperationsImpl(this);
|
|
76
83
|
this.regions = new RegionsImpl(this);
|
|
77
84
|
}
|
|
85
|
+
clusters;
|
|
86
|
+
namespaces;
|
|
87
|
+
privateEndpointConnections;
|
|
88
|
+
privateLinkResources;
|
|
89
|
+
disasterRecoveryConfigs;
|
|
90
|
+
eventHubs;
|
|
91
|
+
consumerGroups;
|
|
92
|
+
operations;
|
|
93
|
+
regions;
|
|
78
94
|
}
|
|
79
95
|
//# sourceMappingURL=eventHubManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventHubManagementClient.js","sourceRoot":"","sources":["../../src/eventHubManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,YAAY,EACZ,cAAc,EACd,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,aAAa,EACb,kBAAkB,EAClB,cAAc,EACd,WAAW,EACZ,MAAM,uBAAuB,CAAC;AAc/B,MAAM,OAAO,wBAAyB,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"eventHubManagementClient.js","sourceRoot":"","sources":["../../src/eventHubManagementClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n ClustersImpl,\n NamespacesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n DisasterRecoveryConfigsImpl,\n EventHubsImpl,\n ConsumerGroupsImpl,\n OperationsImpl,\n RegionsImpl\n} from \"./operations/index.js\";\nimport {\n Clusters,\n Namespaces,\n PrivateEndpointConnections,\n PrivateLinkResources,\n DisasterRecoveryConfigs,\n EventHubs,\n ConsumerGroups,\n Operations,\n Regions\n} from \"./operationsInterfaces/index.js\";\nimport { EventHubManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class EventHubManagementClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the EventHubManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: EventHubManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: EventHubManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-eventhub-profile-2020-09-01-hybrid/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.clusters = new ClustersImpl(this);\n this.namespaces = new NamespacesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.disasterRecoveryConfigs = new DisasterRecoveryConfigsImpl(this);\n this.eventHubs = new EventHubsImpl(this);\n this.consumerGroups = new ConsumerGroupsImpl(this);\n this.operations = new OperationsImpl(this);\n this.regions = new RegionsImpl(this);\n }\n\n clusters: Clusters;\n namespaces: Namespaces;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n disasterRecoveryConfigs: DisasterRecoveryConfigs;\n eventHubs: EventHubs;\n consumerGroups: ConsumerGroups;\n operations: Operations;\n regions: Regions;\n}\n"]}
|
package/dist/browser/lroImpl.js
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __rest } from "tslib";
|
|
9
8
|
export class LroImpl {
|
|
9
|
+
sendOperationFn;
|
|
10
|
+
args;
|
|
11
|
+
spec;
|
|
12
|
+
requestPath;
|
|
13
|
+
requestMethod;
|
|
10
14
|
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
11
15
|
this.sendOperationFn = sendOperationFn;
|
|
12
16
|
this.args = args;
|
|
@@ -18,8 +22,12 @@ export class LroImpl {
|
|
|
18
22
|
return this.sendOperationFn(this.args, this.spec);
|
|
19
23
|
}
|
|
20
24
|
async sendPollRequest(path) {
|
|
21
|
-
const
|
|
22
|
-
return this.sendOperationFn(this.args,
|
|
25
|
+
const { requestBody, ...restSpec } = this.spec;
|
|
26
|
+
return this.sendOperationFn(this.args, {
|
|
27
|
+
...restSpec,
|
|
28
|
+
path,
|
|
29
|
+
httpMethod: "GET"
|
|
30
|
+
});
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
33
|
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,OAAO,OAAO;IAER;IACA;IACA;IAKD;IACA;IATT,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,GAAG,QAAQ;YACX,IAAI;YACJ,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
|
|
@@ -875,49 +875,60 @@ export const TrackedResource = {
|
|
|
875
875
|
type: {
|
|
876
876
|
name: "Composite",
|
|
877
877
|
className: "TrackedResource",
|
|
878
|
-
modelProperties:
|
|
878
|
+
modelProperties: {
|
|
879
|
+
...Resource.type.modelProperties,
|
|
880
|
+
location: {
|
|
879
881
|
serializedName: "location",
|
|
880
882
|
type: {
|
|
881
883
|
name: "String"
|
|
882
884
|
}
|
|
883
|
-
},
|
|
885
|
+
},
|
|
886
|
+
tags: {
|
|
884
887
|
serializedName: "tags",
|
|
885
888
|
type: {
|
|
886
889
|
name: "Dictionary",
|
|
887
890
|
value: { type: { name: "String" } }
|
|
888
891
|
}
|
|
889
|
-
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
890
894
|
}
|
|
891
895
|
};
|
|
892
896
|
export const PrivateEndpointConnection = {
|
|
893
897
|
type: {
|
|
894
898
|
name: "Composite",
|
|
895
899
|
className: "PrivateEndpointConnection",
|
|
896
|
-
modelProperties:
|
|
900
|
+
modelProperties: {
|
|
901
|
+
...Resource.type.modelProperties,
|
|
902
|
+
privateEndpoint: {
|
|
897
903
|
serializedName: "properties.privateEndpoint",
|
|
898
904
|
type: {
|
|
899
905
|
name: "Composite",
|
|
900
906
|
className: "PrivateEndpoint"
|
|
901
907
|
}
|
|
902
|
-
},
|
|
908
|
+
},
|
|
909
|
+
privateLinkServiceConnectionState: {
|
|
903
910
|
serializedName: "properties.privateLinkServiceConnectionState",
|
|
904
911
|
type: {
|
|
905
912
|
name: "Composite",
|
|
906
913
|
className: "ConnectionState"
|
|
907
914
|
}
|
|
908
|
-
},
|
|
915
|
+
},
|
|
916
|
+
provisioningState: {
|
|
909
917
|
serializedName: "properties.provisioningState",
|
|
910
918
|
type: {
|
|
911
919
|
name: "String"
|
|
912
920
|
}
|
|
913
|
-
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
914
923
|
}
|
|
915
924
|
};
|
|
916
925
|
export const AuthorizationRule = {
|
|
917
926
|
type: {
|
|
918
927
|
name: "Composite",
|
|
919
928
|
className: "AuthorizationRule",
|
|
920
|
-
modelProperties:
|
|
929
|
+
modelProperties: {
|
|
930
|
+
...Resource.type.modelProperties,
|
|
931
|
+
rights: {
|
|
921
932
|
serializedName: "properties.rights",
|
|
922
933
|
type: {
|
|
923
934
|
name: "Sequence",
|
|
@@ -927,38 +938,46 @@ export const AuthorizationRule = {
|
|
|
927
938
|
}
|
|
928
939
|
}
|
|
929
940
|
}
|
|
930
|
-
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
931
943
|
}
|
|
932
944
|
};
|
|
933
945
|
export const ConsumerGroup = {
|
|
934
946
|
type: {
|
|
935
947
|
name: "Composite",
|
|
936
948
|
className: "ConsumerGroup",
|
|
937
|
-
modelProperties:
|
|
949
|
+
modelProperties: {
|
|
950
|
+
...Resource.type.modelProperties,
|
|
951
|
+
createdAt: {
|
|
938
952
|
serializedName: "properties.createdAt",
|
|
939
953
|
readOnly: true,
|
|
940
954
|
type: {
|
|
941
955
|
name: "DateTime"
|
|
942
956
|
}
|
|
943
|
-
},
|
|
957
|
+
},
|
|
958
|
+
updatedAt: {
|
|
944
959
|
serializedName: "properties.updatedAt",
|
|
945
960
|
readOnly: true,
|
|
946
961
|
type: {
|
|
947
962
|
name: "DateTime"
|
|
948
963
|
}
|
|
949
|
-
},
|
|
964
|
+
},
|
|
965
|
+
userMetadata: {
|
|
950
966
|
serializedName: "properties.userMetadata",
|
|
951
967
|
type: {
|
|
952
968
|
name: "String"
|
|
953
969
|
}
|
|
954
|
-
}
|
|
970
|
+
}
|
|
971
|
+
}
|
|
955
972
|
}
|
|
956
973
|
};
|
|
957
974
|
export const Eventhub = {
|
|
958
975
|
type: {
|
|
959
976
|
name: "Composite",
|
|
960
977
|
className: "Eventhub",
|
|
961
|
-
modelProperties:
|
|
978
|
+
modelProperties: {
|
|
979
|
+
...Resource.type.modelProperties,
|
|
980
|
+
partitionIds: {
|
|
962
981
|
serializedName: "properties.partitionIds",
|
|
963
982
|
readOnly: true,
|
|
964
983
|
type: {
|
|
@@ -969,19 +988,22 @@ export const Eventhub = {
|
|
|
969
988
|
}
|
|
970
989
|
}
|
|
971
990
|
}
|
|
972
|
-
},
|
|
991
|
+
},
|
|
992
|
+
createdAt: {
|
|
973
993
|
serializedName: "properties.createdAt",
|
|
974
994
|
readOnly: true,
|
|
975
995
|
type: {
|
|
976
996
|
name: "DateTime"
|
|
977
997
|
}
|
|
978
|
-
},
|
|
998
|
+
},
|
|
999
|
+
updatedAt: {
|
|
979
1000
|
serializedName: "properties.updatedAt",
|
|
980
1001
|
readOnly: true,
|
|
981
1002
|
type: {
|
|
982
1003
|
name: "DateTime"
|
|
983
1004
|
}
|
|
984
|
-
},
|
|
1005
|
+
},
|
|
1006
|
+
messageRetentionInDays: {
|
|
985
1007
|
constraints: {
|
|
986
1008
|
InclusiveMinimum: 1
|
|
987
1009
|
},
|
|
@@ -989,7 +1011,8 @@ export const Eventhub = {
|
|
|
989
1011
|
type: {
|
|
990
1012
|
name: "Number"
|
|
991
1013
|
}
|
|
992
|
-
},
|
|
1014
|
+
},
|
|
1015
|
+
partitionCount: {
|
|
993
1016
|
constraints: {
|
|
994
1017
|
InclusiveMinimum: 1
|
|
995
1018
|
},
|
|
@@ -997,7 +1020,8 @@ export const Eventhub = {
|
|
|
997
1020
|
type: {
|
|
998
1021
|
name: "Number"
|
|
999
1022
|
}
|
|
1000
|
-
},
|
|
1023
|
+
},
|
|
1024
|
+
status: {
|
|
1001
1025
|
serializedName: "properties.status",
|
|
1002
1026
|
type: {
|
|
1003
1027
|
name: "Enum",
|
|
@@ -1013,115 +1037,136 @@ export const Eventhub = {
|
|
|
1013
1037
|
"Unknown"
|
|
1014
1038
|
]
|
|
1015
1039
|
}
|
|
1016
|
-
},
|
|
1040
|
+
},
|
|
1041
|
+
captureDescription: {
|
|
1017
1042
|
serializedName: "properties.captureDescription",
|
|
1018
1043
|
type: {
|
|
1019
1044
|
name: "Composite",
|
|
1020
1045
|
className: "CaptureDescription"
|
|
1021
1046
|
}
|
|
1022
|
-
}
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1023
1049
|
}
|
|
1024
1050
|
};
|
|
1025
1051
|
export const Cluster = {
|
|
1026
1052
|
type: {
|
|
1027
1053
|
name: "Composite",
|
|
1028
1054
|
className: "Cluster",
|
|
1029
|
-
modelProperties:
|
|
1055
|
+
modelProperties: {
|
|
1056
|
+
...TrackedResource.type.modelProperties,
|
|
1057
|
+
sku: {
|
|
1030
1058
|
serializedName: "sku",
|
|
1031
1059
|
type: {
|
|
1032
1060
|
name: "Composite",
|
|
1033
1061
|
className: "ClusterSku"
|
|
1034
1062
|
}
|
|
1035
|
-
},
|
|
1063
|
+
},
|
|
1064
|
+
createdAt: {
|
|
1036
1065
|
serializedName: "properties.createdAt",
|
|
1037
1066
|
readOnly: true,
|
|
1038
1067
|
type: {
|
|
1039
1068
|
name: "String"
|
|
1040
1069
|
}
|
|
1041
|
-
},
|
|
1070
|
+
},
|
|
1071
|
+
updatedAt: {
|
|
1042
1072
|
serializedName: "properties.updatedAt",
|
|
1043
1073
|
readOnly: true,
|
|
1044
1074
|
type: {
|
|
1045
1075
|
name: "String"
|
|
1046
1076
|
}
|
|
1047
|
-
},
|
|
1077
|
+
},
|
|
1078
|
+
metricId: {
|
|
1048
1079
|
serializedName: "properties.metricId",
|
|
1049
1080
|
readOnly: true,
|
|
1050
1081
|
type: {
|
|
1051
1082
|
name: "String"
|
|
1052
1083
|
}
|
|
1053
|
-
},
|
|
1084
|
+
},
|
|
1085
|
+
status: {
|
|
1054
1086
|
serializedName: "properties.status",
|
|
1055
1087
|
readOnly: true,
|
|
1056
1088
|
type: {
|
|
1057
1089
|
name: "String"
|
|
1058
1090
|
}
|
|
1059
|
-
}
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1060
1093
|
}
|
|
1061
1094
|
};
|
|
1062
1095
|
export const EHNamespace = {
|
|
1063
1096
|
type: {
|
|
1064
1097
|
name: "Composite",
|
|
1065
1098
|
className: "EHNamespace",
|
|
1066
|
-
modelProperties:
|
|
1099
|
+
modelProperties: {
|
|
1100
|
+
...TrackedResource.type.modelProperties,
|
|
1101
|
+
sku: {
|
|
1067
1102
|
serializedName: "sku",
|
|
1068
1103
|
type: {
|
|
1069
1104
|
name: "Composite",
|
|
1070
1105
|
className: "Sku"
|
|
1071
1106
|
}
|
|
1072
|
-
},
|
|
1107
|
+
},
|
|
1108
|
+
identity: {
|
|
1073
1109
|
serializedName: "identity",
|
|
1074
1110
|
type: {
|
|
1075
1111
|
name: "Composite",
|
|
1076
1112
|
className: "Identity"
|
|
1077
1113
|
}
|
|
1078
|
-
},
|
|
1114
|
+
},
|
|
1115
|
+
provisioningState: {
|
|
1079
1116
|
serializedName: "properties.provisioningState",
|
|
1080
1117
|
readOnly: true,
|
|
1081
1118
|
type: {
|
|
1082
1119
|
name: "String"
|
|
1083
1120
|
}
|
|
1084
|
-
},
|
|
1121
|
+
},
|
|
1122
|
+
status: {
|
|
1085
1123
|
serializedName: "properties.status",
|
|
1086
1124
|
readOnly: true,
|
|
1087
1125
|
type: {
|
|
1088
1126
|
name: "String"
|
|
1089
1127
|
}
|
|
1090
|
-
},
|
|
1128
|
+
},
|
|
1129
|
+
createdAt: {
|
|
1091
1130
|
serializedName: "properties.createdAt",
|
|
1092
1131
|
readOnly: true,
|
|
1093
1132
|
type: {
|
|
1094
1133
|
name: "DateTime"
|
|
1095
1134
|
}
|
|
1096
|
-
},
|
|
1135
|
+
},
|
|
1136
|
+
updatedAt: {
|
|
1097
1137
|
serializedName: "properties.updatedAt",
|
|
1098
1138
|
readOnly: true,
|
|
1099
1139
|
type: {
|
|
1100
1140
|
name: "DateTime"
|
|
1101
1141
|
}
|
|
1102
|
-
},
|
|
1142
|
+
},
|
|
1143
|
+
serviceBusEndpoint: {
|
|
1103
1144
|
serializedName: "properties.serviceBusEndpoint",
|
|
1104
1145
|
readOnly: true,
|
|
1105
1146
|
type: {
|
|
1106
1147
|
name: "String"
|
|
1107
1148
|
}
|
|
1108
|
-
},
|
|
1149
|
+
},
|
|
1150
|
+
clusterArmId: {
|
|
1109
1151
|
serializedName: "properties.clusterArmId",
|
|
1110
1152
|
type: {
|
|
1111
1153
|
name: "String"
|
|
1112
1154
|
}
|
|
1113
|
-
},
|
|
1155
|
+
},
|
|
1156
|
+
metricId: {
|
|
1114
1157
|
serializedName: "properties.metricId",
|
|
1115
1158
|
readOnly: true,
|
|
1116
1159
|
type: {
|
|
1117
1160
|
name: "String"
|
|
1118
1161
|
}
|
|
1119
|
-
},
|
|
1162
|
+
},
|
|
1163
|
+
isAutoInflateEnabled: {
|
|
1120
1164
|
serializedName: "properties.isAutoInflateEnabled",
|
|
1121
1165
|
type: {
|
|
1122
1166
|
name: "Boolean"
|
|
1123
1167
|
}
|
|
1124
|
-
},
|
|
1168
|
+
},
|
|
1169
|
+
maximumThroughputUnits: {
|
|
1125
1170
|
constraints: {
|
|
1126
1171
|
InclusiveMaximum: 20,
|
|
1127
1172
|
InclusiveMinimum: 0
|
|
@@ -1130,36 +1175,43 @@ export const EHNamespace = {
|
|
|
1130
1175
|
type: {
|
|
1131
1176
|
name: "Number"
|
|
1132
1177
|
}
|
|
1133
|
-
},
|
|
1178
|
+
},
|
|
1179
|
+
kafkaEnabled: {
|
|
1134
1180
|
serializedName: "properties.kafkaEnabled",
|
|
1135
1181
|
type: {
|
|
1136
1182
|
name: "Boolean"
|
|
1137
1183
|
}
|
|
1138
|
-
},
|
|
1184
|
+
},
|
|
1185
|
+
zoneRedundant: {
|
|
1139
1186
|
serializedName: "properties.zoneRedundant",
|
|
1140
1187
|
type: {
|
|
1141
1188
|
name: "Boolean"
|
|
1142
1189
|
}
|
|
1143
|
-
},
|
|
1190
|
+
},
|
|
1191
|
+
encryption: {
|
|
1144
1192
|
serializedName: "properties.encryption",
|
|
1145
1193
|
type: {
|
|
1146
1194
|
name: "Composite",
|
|
1147
1195
|
className: "Encryption"
|
|
1148
1196
|
}
|
|
1149
|
-
}
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1150
1199
|
}
|
|
1151
1200
|
};
|
|
1152
1201
|
export const MessagingRegions = {
|
|
1153
1202
|
type: {
|
|
1154
1203
|
name: "Composite",
|
|
1155
1204
|
className: "MessagingRegions",
|
|
1156
|
-
modelProperties:
|
|
1205
|
+
modelProperties: {
|
|
1206
|
+
...TrackedResource.type.modelProperties,
|
|
1207
|
+
properties: {
|
|
1157
1208
|
serializedName: "properties",
|
|
1158
1209
|
type: {
|
|
1159
1210
|
name: "Composite",
|
|
1160
1211
|
className: "MessagingRegionsProperties"
|
|
1161
1212
|
}
|
|
1162
|
-
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1163
1215
|
}
|
|
1164
1216
|
};
|
|
1165
1217
|
//# sourceMappingURL=mappers.js.map
|