@azure/arm-notificationhubs 2.1.1-alpha.20240312.1 → 3.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 +170 -9
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +3826 -1755
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js +14 -6
- package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js +15 -7
- package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js +25 -10
- package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js +13 -5
- package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesDeleteSample.js +14 -6
- package/dist-esm/samples-dev/namespacesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js +13 -5
- package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts +2 -0
- package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js +39 -0
- package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js.map +1 -0
- package/dist-esm/samples-dev/namespacesGetSample.js +15 -7
- package/dist-esm/samples-dev/namespacesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesListAllSample.js +14 -6
- package/dist-esm/samples-dev/namespacesListAllSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js +13 -5
- package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesListKeysSample.js +15 -7
- package/dist-esm/samples-dev/namespacesListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesListSample.js +15 -7
- package/dist-esm/samples-dev/namespacesListSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js +14 -6
- package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/namespacesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/namespacesUpdateSample.js +51 -0
- package/dist-esm/samples-dev/namespacesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js +15 -7
- package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +16 -8
- package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js +15 -9
- package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsDebugSendSample.js +16 -10
- package/dist-esm/samples-dev/notificationHubsDebugSendSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsDeleteSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js +15 -7
- package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsGetSample.js +15 -7
- package/dist-esm/samples-dev/notificationHubsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsListKeysSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsListSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsListSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js +14 -6
- package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/notificationHubsUpdateSample.js +47 -0
- package/dist-esm/samples-dev/notificationHubsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +13 -5
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +42 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js +42 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +42 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js +57 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +57 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +48 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +1377 -455
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +136 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +44 -17
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1972 -738
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +10 -6
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +140 -80
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/notificationHubsManagementClient.d.ts +6 -6
- package/dist-esm/src/notificationHubsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/notificationHubsManagementClient.js +13 -13
- package/dist-esm/src/notificationHubsManagementClient.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +3 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +3 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/namespaces.d.ts +82 -81
- package/dist-esm/src/operations/namespaces.d.ts.map +1 -1
- package/dist-esm/src/operations/namespaces.js +323 -224
- package/dist-esm/src/operations/namespaces.js.map +1 -1
- package/dist-esm/src/operations/notificationHubs.d.ts +73 -74
- package/dist-esm/src/operations/notificationHubs.d.ts.map +1 -1
- package/dist-esm/src/operations/notificationHubs.js +249 -185
- package/dist-esm/src/operations/notificationHubs.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.js +11 -12
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +114 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +466 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +3 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/namespaces.d.ts +61 -58
- package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts +62 -63
- package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +84 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/notificationhubs_examples.js +16 -4
- package/dist-esm/test/notificationhubs_examples.js.map +1 -1
- package/package.json +14 -13
- package/review/arm-notificationhubs.api.md +548 -121
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +1458 -467
- package/src/models/mappers.ts +2054 -789
- package/src/models/parameters.ts +152 -87
- package/src/notificationHubsManagementClient.ts +30 -26
- package/src/operations/index.ts +3 -2
- package/src/operations/namespaces.ts +444 -341
- package/src/operations/notificationHubs.ts +326 -275
- package/src/operations/operations.ts +18 -19
- package/src/operations/privateEndpointConnections.ts +629 -0
- package/src/operationsInterfaces/index.ts +3 -2
- package/src/operationsInterfaces/namespaces.ts +101 -88
- package/src/operationsInterfaces/notificationHubs.ts +88 -89
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/operationsInterfaces/privateEndpointConnections.ts +156 -0
- package/src/pagingHelper.ts +5 -5
- package/types/arm-notificationhubs.d.ts +1615 -549
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/namespacesPatchSample.d.ts +0 -2
- package/dist-esm/samples-dev/namespacesPatchSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/namespacesPatchSample.js +0 -35
- package/dist-esm/samples-dev/namespacesPatchSample.js.map +0 -1
- package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts +0 -2
- package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/notificationHubsPatchSample.js +0 -34
- package/dist-esm/samples-dev/notificationHubsPatchSample.js.map +0 -1
package/src/models/parameters.ts
CHANGED
|
@@ -9,18 +9,36 @@
|
|
|
9
9
|
import {
|
|
10
10
|
OperationParameter,
|
|
11
11
|
OperationURLParameter,
|
|
12
|
-
OperationQueryParameter
|
|
12
|
+
OperationQueryParameter,
|
|
13
13
|
} from "@azure/core-client";
|
|
14
14
|
import {
|
|
15
15
|
CheckAvailabilityParameters as CheckAvailabilityParametersMapper,
|
|
16
|
-
|
|
16
|
+
NotificationHubResource as NotificationHubResourceMapper,
|
|
17
|
+
NotificationHubPatchParameters as NotificationHubPatchParametersMapper,
|
|
18
|
+
SharedAccessAuthorizationRuleResource as SharedAccessAuthorizationRuleResourceMapper,
|
|
19
|
+
PolicyKeyResource as PolicyKeyResourceMapper,
|
|
20
|
+
NamespaceResource as NamespaceResourceMapper,
|
|
17
21
|
NamespacePatchParameters as NamespacePatchParametersMapper,
|
|
18
|
-
|
|
19
|
-
PolicykeyResource as PolicykeyResourceMapper,
|
|
20
|
-
NotificationHubCreateOrUpdateParameters as NotificationHubCreateOrUpdateParametersMapper,
|
|
21
|
-
NotificationHubPatchParameters as NotificationHubPatchParametersMapper
|
|
22
|
+
PrivateEndpointConnectionResource as PrivateEndpointConnectionResourceMapper,
|
|
22
23
|
} from "../models/mappers";
|
|
23
24
|
|
|
25
|
+
export const contentType: OperationParameter = {
|
|
26
|
+
parameterPath: ["options", "contentType"],
|
|
27
|
+
mapper: {
|
|
28
|
+
defaultValue: "application/json",
|
|
29
|
+
isConstant: true,
|
|
30
|
+
serializedName: "Content-Type",
|
|
31
|
+
type: {
|
|
32
|
+
name: "String",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const parameters: OperationParameter = {
|
|
38
|
+
parameterPath: "parameters",
|
|
39
|
+
mapper: CheckAvailabilityParametersMapper,
|
|
40
|
+
};
|
|
41
|
+
|
|
24
42
|
export const accept: OperationParameter = {
|
|
25
43
|
parameterPath: "accept",
|
|
26
44
|
mapper: {
|
|
@@ -28,9 +46,9 @@ export const accept: OperationParameter = {
|
|
|
28
46
|
isConstant: true,
|
|
29
47
|
serializedName: "Accept",
|
|
30
48
|
type: {
|
|
31
|
-
name: "String"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
49
|
+
name: "String",
|
|
50
|
+
},
|
|
51
|
+
},
|
|
34
52
|
};
|
|
35
53
|
|
|
36
54
|
export const $host: OperationURLParameter = {
|
|
@@ -39,145 +57,192 @@ export const $host: OperationURLParameter = {
|
|
|
39
57
|
serializedName: "$host",
|
|
40
58
|
required: true,
|
|
41
59
|
type: {
|
|
42
|
-
name: "String"
|
|
43
|
-
}
|
|
60
|
+
name: "String",
|
|
61
|
+
},
|
|
44
62
|
},
|
|
45
|
-
skipEncoding: true
|
|
63
|
+
skipEncoding: true,
|
|
46
64
|
};
|
|
47
65
|
|
|
48
|
-
export const
|
|
49
|
-
parameterPath: "
|
|
66
|
+
export const subscriptionId: OperationURLParameter = {
|
|
67
|
+
parameterPath: "subscriptionId",
|
|
50
68
|
mapper: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
serializedName: "api-version",
|
|
69
|
+
serializedName: "subscriptionId",
|
|
70
|
+
required: true,
|
|
54
71
|
type: {
|
|
55
|
-
name: "
|
|
56
|
-
}
|
|
57
|
-
}
|
|
72
|
+
name: "Uuid",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
58
75
|
};
|
|
59
76
|
|
|
60
|
-
export const
|
|
61
|
-
parameterPath: "
|
|
77
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
78
|
+
parameterPath: "resourceGroupName",
|
|
62
79
|
mapper: {
|
|
63
|
-
|
|
80
|
+
constraints: {
|
|
81
|
+
MaxLength: 90,
|
|
82
|
+
MinLength: 1,
|
|
83
|
+
},
|
|
84
|
+
serializedName: "resourceGroupName",
|
|
64
85
|
required: true,
|
|
65
86
|
type: {
|
|
66
|
-
name: "String"
|
|
67
|
-
}
|
|
87
|
+
name: "String",
|
|
88
|
+
},
|
|
68
89
|
},
|
|
69
|
-
skipEncoding: true
|
|
70
90
|
};
|
|
71
91
|
|
|
72
|
-
export const
|
|
73
|
-
parameterPath:
|
|
92
|
+
export const namespaceName: OperationURLParameter = {
|
|
93
|
+
parameterPath: "namespaceName",
|
|
74
94
|
mapper: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
95
|
+
constraints: {
|
|
96
|
+
Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]*$"),
|
|
97
|
+
MaxLength: 50,
|
|
98
|
+
MinLength: 1,
|
|
99
|
+
},
|
|
100
|
+
serializedName: "namespaceName",
|
|
101
|
+
required: true,
|
|
78
102
|
type: {
|
|
79
|
-
name: "String"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
103
|
+
name: "String",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
82
106
|
};
|
|
83
107
|
|
|
84
|
-
export const
|
|
85
|
-
parameterPath: "
|
|
86
|
-
mapper:
|
|
108
|
+
export const apiVersion: OperationQueryParameter = {
|
|
109
|
+
parameterPath: "apiVersion",
|
|
110
|
+
mapper: {
|
|
111
|
+
defaultValue: "2023-10-01-preview",
|
|
112
|
+
isConstant: true,
|
|
113
|
+
serializedName: "api-version",
|
|
114
|
+
type: {
|
|
115
|
+
name: "String",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
87
118
|
};
|
|
88
119
|
|
|
89
|
-
export const
|
|
90
|
-
parameterPath: "
|
|
120
|
+
export const notificationHubName: OperationURLParameter = {
|
|
121
|
+
parameterPath: "notificationHubName",
|
|
91
122
|
mapper: {
|
|
92
|
-
|
|
123
|
+
constraints: {
|
|
124
|
+
Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-./_]*$"),
|
|
125
|
+
MaxLength: 265,
|
|
126
|
+
MinLength: 1,
|
|
127
|
+
},
|
|
128
|
+
serializedName: "notificationHubName",
|
|
93
129
|
required: true,
|
|
94
130
|
type: {
|
|
95
|
-
name: "String"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
131
|
+
name: "String",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
98
134
|
};
|
|
99
135
|
|
|
100
136
|
export const parameters1: OperationParameter = {
|
|
101
137
|
parameterPath: "parameters",
|
|
102
|
-
mapper:
|
|
138
|
+
mapper: NotificationHubResourceMapper,
|
|
103
139
|
};
|
|
104
140
|
|
|
105
|
-
export const
|
|
106
|
-
parameterPath: "
|
|
107
|
-
mapper:
|
|
108
|
-
serializedName: "resourceGroupName",
|
|
109
|
-
required: true,
|
|
110
|
-
type: {
|
|
111
|
-
name: "String"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
141
|
+
export const parameters2: OperationParameter = {
|
|
142
|
+
parameterPath: "parameters",
|
|
143
|
+
mapper: NotificationHubPatchParametersMapper,
|
|
114
144
|
};
|
|
115
145
|
|
|
116
|
-
export const
|
|
117
|
-
parameterPath: "
|
|
146
|
+
export const skipToken: OperationQueryParameter = {
|
|
147
|
+
parameterPath: ["options", "skipToken"],
|
|
118
148
|
mapper: {
|
|
119
|
-
serializedName: "
|
|
120
|
-
required: true,
|
|
149
|
+
serializedName: "$skipToken",
|
|
121
150
|
type: {
|
|
122
|
-
name: "String"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
151
|
+
name: "String",
|
|
152
|
+
},
|
|
153
|
+
},
|
|
125
154
|
};
|
|
126
155
|
|
|
127
|
-
export const
|
|
128
|
-
parameterPath: "
|
|
129
|
-
mapper:
|
|
156
|
+
export const top: OperationQueryParameter = {
|
|
157
|
+
parameterPath: ["options", "top"],
|
|
158
|
+
mapper: {
|
|
159
|
+
defaultValue: 100,
|
|
160
|
+
serializedName: "$top",
|
|
161
|
+
type: {
|
|
162
|
+
name: "Number",
|
|
163
|
+
},
|
|
164
|
+
},
|
|
130
165
|
};
|
|
131
166
|
|
|
132
167
|
export const parameters3: OperationParameter = {
|
|
133
168
|
parameterPath: "parameters",
|
|
134
|
-
mapper:
|
|
169
|
+
mapper: SharedAccessAuthorizationRuleResourceMapper,
|
|
135
170
|
};
|
|
136
171
|
|
|
137
172
|
export const authorizationRuleName: OperationURLParameter = {
|
|
138
173
|
parameterPath: "authorizationRuleName",
|
|
139
174
|
mapper: {
|
|
175
|
+
constraints: {
|
|
176
|
+
Pattern: new RegExp("^[a-zA-Z0-9!()*-._]+$"),
|
|
177
|
+
MaxLength: 256,
|
|
178
|
+
MinLength: 1,
|
|
179
|
+
},
|
|
140
180
|
serializedName: "authorizationRuleName",
|
|
141
181
|
required: true,
|
|
142
182
|
type: {
|
|
143
|
-
name: "String"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
183
|
+
name: "String",
|
|
184
|
+
},
|
|
185
|
+
},
|
|
146
186
|
};
|
|
147
187
|
|
|
148
188
|
export const parameters4: OperationParameter = {
|
|
149
189
|
parameterPath: "parameters",
|
|
150
|
-
mapper:
|
|
190
|
+
mapper: PolicyKeyResourceMapper,
|
|
151
191
|
};
|
|
152
192
|
|
|
153
|
-
export const
|
|
154
|
-
parameterPath: "
|
|
155
|
-
mapper: NotificationHubCreateOrUpdateParametersMapper
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export const notificationHubName: OperationURLParameter = {
|
|
159
|
-
parameterPath: "notificationHubName",
|
|
193
|
+
export const nextLink: OperationURLParameter = {
|
|
194
|
+
parameterPath: "nextLink",
|
|
160
195
|
mapper: {
|
|
161
|
-
serializedName: "
|
|
196
|
+
serializedName: "nextLink",
|
|
162
197
|
required: true,
|
|
163
198
|
type: {
|
|
164
|
-
name: "String"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
199
|
+
name: "String",
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
skipEncoding: true,
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export const parameters5: OperationParameter = {
|
|
206
|
+
parameterPath: "parameters",
|
|
207
|
+
mapper: NamespaceResourceMapper,
|
|
167
208
|
};
|
|
168
209
|
|
|
169
210
|
export const parameters6: OperationParameter = {
|
|
170
|
-
parameterPath:
|
|
171
|
-
mapper:
|
|
211
|
+
parameterPath: "parameters",
|
|
212
|
+
mapper: NamespacePatchParametersMapper,
|
|
172
213
|
};
|
|
173
214
|
|
|
174
215
|
export const parameters7: OperationParameter = {
|
|
175
|
-
parameterPath:
|
|
216
|
+
parameterPath: "parameters",
|
|
217
|
+
mapper: PrivateEndpointConnectionResourceMapper,
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
|
221
|
+
parameterPath: "privateEndpointConnectionName",
|
|
222
|
+
mapper: {
|
|
223
|
+
constraints: {
|
|
224
|
+
Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]*\\.[a-fA-F0-9\\-]+$"),
|
|
225
|
+
MaxLength: 87,
|
|
226
|
+
MinLength: 1,
|
|
227
|
+
},
|
|
228
|
+
serializedName: "privateEndpointConnectionName",
|
|
229
|
+
required: true,
|
|
230
|
+
type: {
|
|
231
|
+
name: "String",
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
export const subResourceName: OperationURLParameter = {
|
|
237
|
+
parameterPath: "subResourceName",
|
|
176
238
|
mapper: {
|
|
177
|
-
|
|
239
|
+
constraints: {
|
|
240
|
+
Pattern: new RegExp("^namespace$"),
|
|
241
|
+
},
|
|
242
|
+
serializedName: "subResourceName",
|
|
243
|
+
required: true,
|
|
178
244
|
type: {
|
|
179
|
-
name: "
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
245
|
+
name: "String",
|
|
246
|
+
},
|
|
247
|
+
},
|
|
183
248
|
};
|
|
@@ -11,37 +11,38 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
|
11
11
|
import {
|
|
12
12
|
PipelineRequest,
|
|
13
13
|
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
14
|
+
SendRequest,
|
|
15
15
|
} from "@azure/core-rest-pipeline";
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
NotificationHubsImpl,
|
|
19
19
|
NamespacesImpl,
|
|
20
|
-
|
|
20
|
+
OperationsImpl,
|
|
21
|
+
PrivateEndpointConnectionsImpl,
|
|
21
22
|
} from "./operations";
|
|
22
23
|
import {
|
|
23
|
-
|
|
24
|
+
NotificationHubs,
|
|
24
25
|
Namespaces,
|
|
25
|
-
|
|
26
|
+
Operations,
|
|
27
|
+
PrivateEndpointConnections,
|
|
26
28
|
} from "./operationsInterfaces";
|
|
27
29
|
import { NotificationHubsManagementClientOptionalParams } from "./models";
|
|
28
30
|
|
|
29
31
|
export class NotificationHubsManagementClient extends coreClient.ServiceClient {
|
|
30
32
|
$host: string;
|
|
31
|
-
apiVersion: string;
|
|
32
33
|
subscriptionId: string;
|
|
34
|
+
apiVersion: string;
|
|
33
35
|
|
|
34
36
|
/**
|
|
35
37
|
* Initializes a new instance of the NotificationHubsManagementClient class.
|
|
36
38
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
37
|
-
* @param subscriptionId
|
|
38
|
-
* subscription. The subscription ID forms part of the URI for every service call.
|
|
39
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
39
40
|
* @param options The parameter options
|
|
40
41
|
*/
|
|
41
42
|
constructor(
|
|
42
43
|
credentials: coreAuth.TokenCredential,
|
|
43
44
|
subscriptionId: string,
|
|
44
|
-
options?: NotificationHubsManagementClientOptionalParams
|
|
45
|
+
options?: NotificationHubsManagementClientOptionalParams,
|
|
45
46
|
) {
|
|
46
47
|
if (credentials === undefined) {
|
|
47
48
|
throw new Error("'credentials' cannot be null");
|
|
@@ -56,10 +57,10 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient {
|
|
|
56
57
|
}
|
|
57
58
|
const defaults: NotificationHubsManagementClientOptionalParams = {
|
|
58
59
|
requestContentType: "application/json; charset=utf-8",
|
|
59
|
-
credential: credentials
|
|
60
|
+
credential: credentials,
|
|
60
61
|
};
|
|
61
62
|
|
|
62
|
-
const packageDetails = `azsdk-js-arm-notificationhubs/
|
|
63
|
+
const packageDetails = `azsdk-js-arm-notificationhubs/3.0.0-beta.1`;
|
|
63
64
|
const userAgentPrefix =
|
|
64
65
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
65
66
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -69,20 +70,21 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient {
|
|
|
69
70
|
...defaults,
|
|
70
71
|
...options,
|
|
71
72
|
userAgentOptions: {
|
|
72
|
-
userAgentPrefix
|
|
73
|
+
userAgentPrefix,
|
|
73
74
|
},
|
|
74
75
|
endpoint:
|
|
75
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
76
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
76
77
|
};
|
|
77
78
|
super(optionsWithDefaults);
|
|
78
79
|
|
|
79
80
|
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
80
81
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
81
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
82
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
83
|
+
options.pipeline.getOrderedPolicies();
|
|
82
84
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
83
85
|
(pipelinePolicy) =>
|
|
84
86
|
pipelinePolicy.name ===
|
|
85
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
87
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
86
88
|
);
|
|
87
89
|
}
|
|
88
90
|
if (
|
|
@@ -92,7 +94,7 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient {
|
|
|
92
94
|
!bearerTokenAuthenticationPolicyFound
|
|
93
95
|
) {
|
|
94
96
|
this.pipeline.removePolicy({
|
|
95
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
97
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
96
98
|
});
|
|
97
99
|
this.pipeline.addPolicy(
|
|
98
100
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
@@ -102,9 +104,9 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient {
|
|
|
102
104
|
`${optionsWithDefaults.endpoint}/.default`,
|
|
103
105
|
challengeCallbacks: {
|
|
104
106
|
authorizeRequestOnChallenge:
|
|
105
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
106
|
-
}
|
|
107
|
-
})
|
|
107
|
+
coreClient.authorizeRequestOnClaimChallenge,
|
|
108
|
+
},
|
|
109
|
+
}),
|
|
108
110
|
);
|
|
109
111
|
}
|
|
110
112
|
// Parameter assignments
|
|
@@ -112,10 +114,11 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient {
|
|
|
112
114
|
|
|
113
115
|
// Assigning values to Constant parameters
|
|
114
116
|
this.$host = options.$host || "https://management.azure.com";
|
|
115
|
-
this.apiVersion = options.apiVersion || "
|
|
116
|
-
this.operations = new OperationsImpl(this);
|
|
117
|
-
this.namespaces = new NamespacesImpl(this);
|
|
117
|
+
this.apiVersion = options.apiVersion || "2023-10-01-preview";
|
|
118
118
|
this.notificationHubs = new NotificationHubsImpl(this);
|
|
119
|
+
this.namespaces = new NamespacesImpl(this);
|
|
120
|
+
this.operations = new OperationsImpl(this);
|
|
121
|
+
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
119
122
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
120
123
|
}
|
|
121
124
|
|
|
@@ -128,7 +131,7 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient {
|
|
|
128
131
|
name: "CustomApiVersionPolicy",
|
|
129
132
|
async sendRequest(
|
|
130
133
|
request: PipelineRequest,
|
|
131
|
-
next: SendRequest
|
|
134
|
+
next: SendRequest,
|
|
132
135
|
): Promise<PipelineResponse> {
|
|
133
136
|
const param = request.url.split("?");
|
|
134
137
|
if (param.length > 1) {
|
|
@@ -142,12 +145,13 @@ export class NotificationHubsManagementClient extends coreClient.ServiceClient {
|
|
|
142
145
|
request.url = param[0] + "?" + newParams.join("&");
|
|
143
146
|
}
|
|
144
147
|
return next(request);
|
|
145
|
-
}
|
|
148
|
+
},
|
|
146
149
|
};
|
|
147
150
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
148
151
|
}
|
|
149
152
|
|
|
150
|
-
operations: Operations;
|
|
151
|
-
namespaces: Namespaces;
|
|
152
153
|
notificationHubs: NotificationHubs;
|
|
154
|
+
namespaces: Namespaces;
|
|
155
|
+
operations: Operations;
|
|
156
|
+
privateEndpointConnections: PrivateEndpointConnections;
|
|
153
157
|
}
|
package/src/operations/index.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export * from "./operations";
|
|
10
|
-
export * from "./namespaces";
|
|
11
9
|
export * from "./notificationHubs";
|
|
10
|
+
export * from "./namespaces";
|
|
11
|
+
export * from "./operations";
|
|
12
|
+
export * from "./privateEndpointConnections";
|