@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.
Files changed (179) hide show
  1. package/CHANGELOG.md +170 -9
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/index.js +3826 -1755
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js +14 -6
  9. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js.map +1 -1
  10. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js +15 -7
  11. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
  12. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js +25 -10
  13. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js +13 -5
  15. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js.map +1 -1
  16. package/dist-esm/samples-dev/namespacesDeleteSample.js +14 -6
  17. package/dist-esm/samples-dev/namespacesDeleteSample.js.map +1 -1
  18. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js +13 -5
  19. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js.map +1 -1
  20. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js +39 -0
  23. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js.map +1 -0
  24. package/dist-esm/samples-dev/namespacesGetSample.js +15 -7
  25. package/dist-esm/samples-dev/namespacesGetSample.js.map +1 -1
  26. package/dist-esm/samples-dev/namespacesListAllSample.js +14 -6
  27. package/dist-esm/samples-dev/namespacesListAllSample.js.map +1 -1
  28. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js +13 -5
  29. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js.map +1 -1
  30. package/dist-esm/samples-dev/namespacesListKeysSample.js +15 -7
  31. package/dist-esm/samples-dev/namespacesListKeysSample.js.map +1 -1
  32. package/dist-esm/samples-dev/namespacesListSample.js +15 -7
  33. package/dist-esm/samples-dev/namespacesListSample.js.map +1 -1
  34. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js +14 -6
  35. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js.map +1 -1
  36. package/dist-esm/samples-dev/namespacesUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/namespacesUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/namespacesUpdateSample.js +51 -0
  39. package/dist-esm/samples-dev/namespacesUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js +15 -7
  41. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js.map +1 -1
  42. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +16 -8
  43. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
  44. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js +15 -9
  45. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/notificationHubsDebugSendSample.js +16 -10
  47. package/dist-esm/samples-dev/notificationHubsDebugSendSample.js.map +1 -1
  48. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js +13 -5
  49. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js.map +1 -1
  50. package/dist-esm/samples-dev/notificationHubsDeleteSample.js +13 -5
  51. package/dist-esm/samples-dev/notificationHubsDeleteSample.js.map +1 -1
  52. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js +13 -5
  53. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js.map +1 -1
  54. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js +15 -7
  55. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js.map +1 -1
  56. package/dist-esm/samples-dev/notificationHubsGetSample.js +15 -7
  57. package/dist-esm/samples-dev/notificationHubsGetSample.js.map +1 -1
  58. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js +13 -5
  59. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js.map +1 -1
  60. package/dist-esm/samples-dev/notificationHubsListKeysSample.js +13 -5
  61. package/dist-esm/samples-dev/notificationHubsListKeysSample.js.map +1 -1
  62. package/dist-esm/samples-dev/notificationHubsListSample.js +13 -5
  63. package/dist-esm/samples-dev/notificationHubsListSample.js.map +1 -1
  64. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js +14 -6
  65. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js.map +1 -1
  66. package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/notificationHubsUpdateSample.js +47 -0
  69. package/dist-esm/samples-dev/notificationHubsUpdateSample.js.map +1 -0
  70. package/dist-esm/samples-dev/operationsListSample.js +13 -5
  71. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  72. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +42 -0
  75. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  76. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js +42 -0
  79. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js.map +1 -0
  80. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +42 -0
  83. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  84. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js +57 -0
  87. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js.map +1 -0
  88. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +57 -0
  91. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  92. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +48 -0
  95. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +1 -0
  96. package/dist-esm/src/lroImpl.d.ts +6 -11
  97. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  98. package/dist-esm/src/lroImpl.js +12 -20
  99. package/dist-esm/src/lroImpl.js.map +1 -1
  100. package/dist-esm/src/models/index.d.ts +1377 -455
  101. package/dist-esm/src/models/index.d.ts.map +1 -1
  102. package/dist-esm/src/models/index.js +136 -0
  103. package/dist-esm/src/models/index.js.map +1 -1
  104. package/dist-esm/src/models/mappers.d.ts +44 -17
  105. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  106. package/dist-esm/src/models/mappers.js +1972 -738
  107. package/dist-esm/src/models/mappers.js.map +1 -1
  108. package/dist-esm/src/models/parameters.d.ts +10 -6
  109. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  110. package/dist-esm/src/models/parameters.js +140 -80
  111. package/dist-esm/src/models/parameters.js.map +1 -1
  112. package/dist-esm/src/notificationHubsManagementClient.d.ts +6 -6
  113. package/dist-esm/src/notificationHubsManagementClient.d.ts.map +1 -1
  114. package/dist-esm/src/notificationHubsManagementClient.js +13 -13
  115. package/dist-esm/src/notificationHubsManagementClient.js.map +1 -1
  116. package/dist-esm/src/operations/index.d.ts +3 -2
  117. package/dist-esm/src/operations/index.d.ts.map +1 -1
  118. package/dist-esm/src/operations/index.js +3 -2
  119. package/dist-esm/src/operations/index.js.map +1 -1
  120. package/dist-esm/src/operations/namespaces.d.ts +82 -81
  121. package/dist-esm/src/operations/namespaces.d.ts.map +1 -1
  122. package/dist-esm/src/operations/namespaces.js +323 -224
  123. package/dist-esm/src/operations/namespaces.js.map +1 -1
  124. package/dist-esm/src/operations/notificationHubs.d.ts +73 -74
  125. package/dist-esm/src/operations/notificationHubs.d.ts.map +1 -1
  126. package/dist-esm/src/operations/notificationHubs.js +249 -185
  127. package/dist-esm/src/operations/notificationHubs.js.map +1 -1
  128. package/dist-esm/src/operations/operations.d.ts +2 -2
  129. package/dist-esm/src/operations/operations.js +11 -12
  130. package/dist-esm/src/operations/operations.js.map +1 -1
  131. package/dist-esm/src/operations/privateEndpointConnections.d.ts +114 -0
  132. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  133. package/dist-esm/src/operations/privateEndpointConnections.js +466 -0
  134. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  135. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -2
  136. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/index.js +3 -2
  138. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/namespaces.d.ts +61 -58
  140. package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -1
  141. package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts +62 -63
  142. package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts.map +1 -1
  143. package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
  144. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +84 -0
  145. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  148. package/dist-esm/src/pagingHelper.d.ts +4 -4
  149. package/dist-esm/src/pagingHelper.js +4 -4
  150. package/dist-esm/test/notificationhubs_examples.js +16 -4
  151. package/dist-esm/test/notificationhubs_examples.js.map +1 -1
  152. package/package.json +14 -13
  153. package/review/arm-notificationhubs.api.md +548 -121
  154. package/src/lroImpl.ts +31 -23
  155. package/src/models/index.ts +1458 -467
  156. package/src/models/mappers.ts +2054 -789
  157. package/src/models/parameters.ts +152 -87
  158. package/src/notificationHubsManagementClient.ts +30 -26
  159. package/src/operations/index.ts +3 -2
  160. package/src/operations/namespaces.ts +444 -341
  161. package/src/operations/notificationHubs.ts +326 -275
  162. package/src/operations/operations.ts +18 -19
  163. package/src/operations/privateEndpointConnections.ts +629 -0
  164. package/src/operationsInterfaces/index.ts +3 -2
  165. package/src/operationsInterfaces/namespaces.ts +101 -88
  166. package/src/operationsInterfaces/notificationHubs.ts +88 -89
  167. package/src/operationsInterfaces/operations.ts +2 -2
  168. package/src/operationsInterfaces/privateEndpointConnections.ts +156 -0
  169. package/src/pagingHelper.ts +5 -5
  170. package/types/arm-notificationhubs.d.ts +1615 -549
  171. package/types/tsdoc-metadata.json +1 -1
  172. package/dist-esm/samples-dev/namespacesPatchSample.d.ts +0 -2
  173. package/dist-esm/samples-dev/namespacesPatchSample.d.ts.map +0 -1
  174. package/dist-esm/samples-dev/namespacesPatchSample.js +0 -35
  175. package/dist-esm/samples-dev/namespacesPatchSample.js.map +0 -1
  176. package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts +0 -2
  177. package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts.map +0 -1
  178. package/dist-esm/samples-dev/notificationHubsPatchSample.js +0 -34
  179. package/dist-esm/samples-dev/notificationHubsPatchSample.js.map +0 -1
@@ -8,772 +8,1763 @@
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
10
 
11
- /** Result of the request to list NotificationHubs operations. It contains a list of operations and a URL link to get the next set of results. */
12
- export interface OperationListResult {
11
+ /**
12
+ * Parameters supplied to the Check Name Availability for Namespace and
13
+ * NotificationHubs.
14
+ */
15
+ export interface CheckAvailabilityParameters {
13
16
  /**
14
- * List of NotificationHubs operations supported by the Microsoft.NotificationHubs resource provider.
17
+ * Gets resource Id
15
18
  * NOTE: This property will not be serialized. It can only be populated by the server.
16
19
  */
17
- readonly value?: Operation[];
20
+ readonly id?: string;
21
+ /** Gets or sets resource name */
22
+ name: string;
18
23
  /**
19
- * URL to get the next set of operation list results if there are any.
24
+ * Gets resource type
20
25
  * NOTE: This property will not be serialized. It can only be populated by the server.
21
26
  */
22
- readonly nextLink?: string;
27
+ readonly type?: string;
28
+ /** Gets or sets resource location */
29
+ location?: string;
30
+ /** Gets or sets resource tags */
31
+ tags?: { [propertyName: string]: string };
32
+ /** Not used and deprecated since API version 2023-01-01-preview */
33
+ isAvailiable?: boolean;
34
+ /** The Sku description for a namespace */
35
+ sku?: Sku;
23
36
  }
24
37
 
25
- /** A NotificationHubs REST API operation */
26
- export interface Operation {
38
+ /** The Sku description for a namespace */
39
+ export interface Sku {
40
+ /** Namespace SKU name. */
41
+ name: SkuName;
42
+ /** Gets or sets the tier of particular sku */
43
+ tier?: string;
44
+ /** Gets or sets the Sku size */
45
+ size?: string;
46
+ /** Gets or sets the Sku Family */
47
+ family?: string;
48
+ /** Gets or sets the capacity of the resource */
49
+ capacity?: number;
50
+ }
51
+
52
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
53
+ export interface Resource {
27
54
  /**
28
- * Operation name: {provider}/{resource}/{operation}
55
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
29
56
  * NOTE: This property will not be serialized. It can only be populated by the server.
30
57
  */
31
- readonly name?: string;
32
- /** The object that represents the operation. */
33
- display?: OperationDisplay;
34
- }
35
-
36
- /** The object that represents the operation. */
37
- export interface OperationDisplay {
58
+ readonly id?: string;
38
59
  /**
39
- * Service provider: Microsoft.NotificationHubs
60
+ * The name of the resource
40
61
  * NOTE: This property will not be serialized. It can only be populated by the server.
41
62
  */
42
- readonly provider?: string;
63
+ readonly name?: string;
43
64
  /**
44
- * Resource on which the operation is performed: Invoice, etc.
65
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
45
66
  * NOTE: This property will not be serialized. It can only be populated by the server.
46
67
  */
47
- readonly resource?: string;
68
+ readonly type?: string;
48
69
  /**
49
- * Operation type: Read, write, delete, etc.
70
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
50
71
  * NOTE: This property will not be serialized. It can only be populated by the server.
51
72
  */
52
- readonly operation?: string;
73
+ readonly systemData?: SystemData;
74
+ }
75
+
76
+ /** Metadata pertaining to creation and last modification of the resource. */
77
+ export interface SystemData {
78
+ /** The identity that created the resource. */
79
+ createdBy?: string;
80
+ /** The type of identity that created the resource. */
81
+ createdByType?: CreatedByType;
82
+ /** The timestamp of resource creation (UTC). */
83
+ createdAt?: Date;
84
+ /** The identity that last modified the resource. */
85
+ lastModifiedBy?: string;
86
+ /** The type of identity that last modified the resource. */
87
+ lastModifiedByType?: CreatedByType;
88
+ /** The timestamp of resource last modification (UTC) */
89
+ lastModifiedAt?: Date;
53
90
  }
54
91
 
55
- /** Error response indicates NotificationHubs service is not able to process the incoming request. The reason is provided in the error message. */
92
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
56
93
  export interface ErrorResponse {
57
- /** Error code. */
58
- code?: string;
59
- /** Error message indicating why the operation failed. */
60
- message?: string;
94
+ /** The error object. */
95
+ error?: ErrorDetail;
61
96
  }
62
97
 
63
- /** Parameters supplied to the Check Name Availability for Namespace and NotificationHubs. */
64
- export interface CheckAvailabilityParameters {
98
+ /** The error detail. */
99
+ export interface ErrorDetail {
65
100
  /**
66
- * Resource Id
101
+ * The error code.
67
102
  * NOTE: This property will not be serialized. It can only be populated by the server.
68
103
  */
69
- readonly id?: string;
70
- /** Resource name */
71
- name: string;
104
+ readonly code?: string;
72
105
  /**
73
- * Resource type
106
+ * The error message.
74
107
  * NOTE: This property will not be serialized. It can only be populated by the server.
75
108
  */
76
- readonly type?: string;
77
- /** Resource location */
78
- location?: string;
79
- /** Resource tags */
80
- tags?: { [propertyName: string]: string };
81
- /** The sku of the created namespace */
82
- sku?: Sku;
83
- /** True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. */
84
- isAvailiable?: boolean;
85
- }
86
-
87
- /** The Sku description for a namespace */
88
- export interface Sku {
89
- /** Name of the notification hub sku */
90
- name: SkuName;
91
- /** The tier of particular sku */
92
- tier?: string;
93
- /** The Sku size */
94
- size?: string;
95
- /** The Sku Family */
96
- family?: string;
97
- /** The capacity of the resource */
98
- capacity?: number;
99
- }
100
-
101
- export interface Resource {
109
+ readonly message?: string;
102
110
  /**
103
- * Resource Id
111
+ * The error target.
104
112
  * NOTE: This property will not be serialized. It can only be populated by the server.
105
113
  */
106
- readonly id?: string;
114
+ readonly target?: string;
107
115
  /**
108
- * Resource name
116
+ * The error details.
109
117
  * NOTE: This property will not be serialized. It can only be populated by the server.
110
118
  */
111
- readonly name?: string;
119
+ readonly details?: ErrorDetail[];
112
120
  /**
113
- * Resource type
121
+ * The error additional info.
114
122
  * NOTE: This property will not be serialized. It can only be populated by the server.
115
123
  */
116
- readonly type?: string;
117
- /** Resource location */
118
- location?: string;
119
- /** Resource tags */
120
- tags?: { [propertyName: string]: string };
121
- /** The sku of the created namespace */
122
- sku?: Sku;
123
- }
124
-
125
- /** Parameters supplied to the Patch Namespace operation. */
126
- export interface NamespacePatchParameters {
127
- /** Resource tags */
128
- tags?: { [propertyName: string]: string };
129
- /** The sku of the created namespace */
130
- sku?: Sku;
124
+ readonly additionalInfo?: ErrorAdditionalInfo[];
131
125
  }
132
126
 
133
- /** Parameters supplied to the CreateOrUpdate Namespace AuthorizationRules. */
134
- export interface SharedAccessAuthorizationRuleCreateOrUpdateParameters {
135
- /** Properties of the Namespace AuthorizationRules. */
136
- properties: SharedAccessAuthorizationRuleProperties;
127
+ /** The resource management error additional info. */
128
+ export interface ErrorAdditionalInfo {
129
+ /**
130
+ * The additional info type.
131
+ * NOTE: This property will not be serialized. It can only be populated by the server.
132
+ */
133
+ readonly type?: string;
134
+ /**
135
+ * The additional info.
136
+ * NOTE: This property will not be serialized. It can only be populated by the server.
137
+ */
138
+ readonly info?: Record<string, unknown>;
137
139
  }
138
140
 
139
141
  /** SharedAccessAuthorizationRule properties. */
140
142
  export interface SharedAccessAuthorizationRuleProperties {
141
- /** The rights associated with the rule. */
142
- rights?: AccessRights[];
143
+ /** Gets or sets the rights associated with the rule. */
144
+ rights: AccessRights[];
143
145
  /**
144
- * A base64-encoded 256-bit primary key for signing and validating the SAS token.
145
- * NOTE: This property will not be serialized. It can only be populated by the server.
146
+ * Gets a base64-encoded 256-bit primary key for signing and
147
+ * validating the SAS token.
146
148
  */
147
- readonly primaryKey?: string;
149
+ primaryKey?: string;
148
150
  /**
149
- * A base64-encoded 256-bit primary key for signing and validating the SAS token.
150
- * NOTE: This property will not be serialized. It can only be populated by the server.
151
+ * Gets a base64-encoded 256-bit primary key for signing and
152
+ * validating the SAS token.
151
153
  */
152
- readonly secondaryKey?: string;
154
+ secondaryKey?: string;
153
155
  /**
154
- * A string that describes the authorization rule.
156
+ * Gets a string that describes the authorization rule.
155
157
  * NOTE: This property will not be serialized. It can only be populated by the server.
156
158
  */
157
159
  readonly keyName?: string;
158
160
  /**
159
- * A string that describes the claim type
161
+ * Gets the last modified time for this rule
160
162
  * NOTE: This property will not be serialized. It can only be populated by the server.
161
163
  */
162
- readonly claimType?: string;
164
+ readonly modifiedTime?: Date;
163
165
  /**
164
- * A string that describes the claim value
166
+ * Gets the created time for this rule
165
167
  * NOTE: This property will not be serialized. It can only be populated by the server.
166
168
  */
167
- readonly claimValue?: string;
169
+ readonly createdTime?: Date;
168
170
  /**
169
- * The last modified time for this rule
171
+ * Gets a string that describes the claim type
170
172
  * NOTE: This property will not be serialized. It can only be populated by the server.
171
173
  */
172
- readonly modifiedTime?: string;
174
+ readonly claimType?: string;
173
175
  /**
174
- * The created time for this rule
176
+ * Gets a string that describes the claim value
175
177
  * NOTE: This property will not be serialized. It can only be populated by the server.
176
178
  */
177
- readonly createdTime?: string;
179
+ readonly claimValue?: string;
178
180
  /**
179
- * The revision number for the rule
181
+ * Gets the revision number for the rule
180
182
  * NOTE: This property will not be serialized. It can only be populated by the server.
181
183
  */
182
184
  readonly revision?: number;
183
185
  }
184
186
 
185
- /** The response of the List Namespace operation. */
186
- export interface NamespaceListResult {
187
- /** Result of the List Namespace operation. */
188
- value?: NamespaceResource[];
189
- /** Link to the next set of results. Not empty if Value contains incomplete list of Namespaces */
190
- nextLink?: string;
191
- }
192
-
193
- /** The response of the List Namespace operation. */
194
- export interface SharedAccessAuthorizationRuleListResult {
195
- /** Result of the List AuthorizationRules operation. */
196
- value?: SharedAccessAuthorizationRuleResource[];
197
- /** Link to the next set of results. Not empty if Value contains incomplete list of AuthorizationRules */
198
- nextLink?: string;
199
- }
200
-
201
- /** Namespace/NotificationHub Connection String */
202
- export interface ResourceListKeys {
203
- /** PrimaryConnectionString of the AuthorizationRule. */
204
- primaryConnectionString?: string;
205
- /** SecondaryConnectionString of the created AuthorizationRule */
206
- secondaryConnectionString?: string;
207
- /** PrimaryKey of the created AuthorizationRule. */
208
- primaryKey?: string;
209
- /** SecondaryKey of the created AuthorizationRule */
210
- secondaryKey?: string;
211
- /** KeyName of the created AuthorizationRule */
212
- keyName?: string;
213
- }
214
-
215
- /** Namespace/NotificationHub Regenerate Keys */
216
- export interface PolicykeyResource {
217
- /** Name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. */
218
- policyKey?: string;
219
- }
220
-
221
187
  /** Description of a NotificationHub ApnsCredential. */
222
188
  export interface ApnsCredential {
223
- /** The APNS certificate. Specify if using Certificate Authentication Mode. */
189
+ /** Gets or sets the APNS certificate. */
224
190
  apnsCertificate?: string;
225
- /** The APNS certificate password if it exists. */
191
+ /** Gets or sets the certificate key. */
226
192
  certificateKey?: string;
227
- /** The APNS endpoint of this credential. If using Certificate Authentication Mode and Sandbox specify 'gateway.sandbox.push.apple.com'. If using Certificate Authentication Mode and Production specify 'gateway.push.apple.com'. If using Token Authentication Mode and Sandbox specify 'https://api.development.push.apple.com:443/3/device'. If using Token Authentication Mode and Production specify 'https://api.push.apple.com:443/3/device'. */
228
- endpoint?: string;
229
- /** The APNS certificate thumbprint. Specify if using Certificate Authentication Mode. */
193
+ /** Gets or sets the endpoint of this credential. */
194
+ endpoint: string;
195
+ /** Gets or sets the APNS certificate Thumbprint */
230
196
  thumbprint?: string;
231
- /** A 10-character key identifier (kid) key, obtained from your developer account. Specify if using Token Authentication Mode. */
197
+ /**
198
+ * Gets or sets a 10-character key identifier (kid) key, obtained from
199
+ * your developer account
200
+ */
232
201
  keyId?: string;
233
- /** The name of the application or BundleId. Specify if using Token Authentication Mode. */
202
+ /** Gets or sets the name of the application */
234
203
  appName?: string;
235
- /** The issuer (iss) registered claim key. The value is a 10-character TeamId, obtained from your developer account. Specify if using Token Authentication Mode. */
204
+ /**
205
+ * Gets or sets the issuer (iss) registered claim key, whose value is
206
+ * your 10-character Team ID, obtained from your developer account
207
+ */
236
208
  appId?: string;
237
- /** Provider Authentication Token, obtained through your developer account. Specify if using Token Authentication Mode. */
209
+ /**
210
+ * Gets or sets provider Authentication Token, obtained through your
211
+ * developer account
212
+ */
238
213
  token?: string;
239
214
  }
240
215
 
241
216
  /** Description of a NotificationHub WnsCredential. */
242
217
  export interface WnsCredential {
243
- /** The package ID for this credential. */
218
+ /** Gets or sets the package ID for this credential. */
244
219
  packageSid?: string;
245
- /** The secret key. */
220
+ /** Gets or sets the secret key. */
246
221
  secretKey?: string;
247
- /** The Windows Live endpoint. */
222
+ /** Gets or sets the Windows Live endpoint. */
248
223
  windowsLiveEndpoint?: string;
224
+ /** Ges or sets the WNS Certificate Key. */
225
+ certificateKey?: string;
226
+ /** Gets or sets the WNS Certificate. */
227
+ wnsCertificate?: string;
249
228
  }
250
229
 
251
230
  /** Description of a NotificationHub GcmCredential. */
252
231
  export interface GcmCredential {
253
- /** The FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send' */
232
+ /** Gets or sets the GCM endpoint. */
254
233
  gcmEndpoint?: string;
255
- /** The Google API key. */
256
- googleApiKey?: string;
234
+ /** Gets or sets the Google API key. */
235
+ googleApiKey: string;
257
236
  }
258
237
 
259
238
  /** Description of a NotificationHub MpnsCredential. */
260
239
  export interface MpnsCredential {
261
- /** The MPNS certificate. */
262
- mpnsCertificate?: string;
263
- /** The certificate key for this credential. */
264
- certificateKey?: string;
265
- /** The MPNS certificate Thumbprint */
266
- thumbprint?: string;
240
+ /** Gets or sets the MPNS certificate. */
241
+ mpnsCertificate: string;
242
+ /** Gets or sets the certificate key for this credential. */
243
+ certificateKey: string;
244
+ /** Gets or sets the MPNS certificate Thumbprint */
245
+ thumbprint: string;
267
246
  }
268
247
 
269
248
  /** Description of a NotificationHub AdmCredential. */
270
249
  export interface AdmCredential {
271
- /** The client identifier. */
272
- clientId?: string;
273
- /** The credential secret access key. */
274
- clientSecret?: string;
275
- /** The URL of the authorization token. */
276
- authTokenUrl?: string;
250
+ /** Gets or sets the client identifier. */
251
+ clientId: string;
252
+ /** Gets or sets the credential secret access key. */
253
+ clientSecret: string;
254
+ /** Gets or sets the URL of the authorization token. */
255
+ authTokenUrl: string;
277
256
  }
278
257
 
279
258
  /** Description of a NotificationHub BaiduCredential. */
280
259
  export interface BaiduCredential {
281
- /** Baidu Api Key. */
282
- baiduApiKey?: string;
283
- /** Baidu Endpoint. */
284
- baiduEndPoint?: string;
285
- /** Baidu Secret Key */
286
- baiduSecretKey?: string;
260
+ /** Gets or sets baidu Api Key. */
261
+ baiduApiKey: string;
262
+ /** Gets or sets baidu Endpoint. */
263
+ baiduEndPoint: string;
264
+ /** Gets or sets baidu Secret Key */
265
+ baiduSecretKey: string;
287
266
  }
288
267
 
289
- /** The response of the List NotificationHub operation. */
290
- export interface NotificationHubListResult {
291
- /** Result of the List NotificationHub operation. */
292
- value?: NotificationHubResource[];
293
- /** Link to the next set of results. Not empty if Value contains incomplete list of NotificationHub */
294
- nextLink?: string;
268
+ /** Description of a NotificationHub BrowserCredential. */
269
+ export interface BrowserCredential {
270
+ /** Gets or sets web push subject. */
271
+ subject: string;
272
+ /** Gets or sets VAPID private key. */
273
+ vapidPrivateKey: string;
274
+ /** Gets or sets VAPID public key. */
275
+ vapidPublicKey: string;
295
276
  }
296
277
 
297
- export interface SubResource {
298
- /** Resource Id */
299
- id?: string;
278
+ /** Description of a NotificationHub XiaomiCredential. */
279
+ export interface XiaomiCredential {
280
+ /** Gets or sets app secret. */
281
+ appSecret?: string;
282
+ /** Gets or sets xiaomi service endpoint. */
283
+ endpoint?: string;
300
284
  }
301
285
 
302
- /** Description of a CheckAvailability resource. */
303
- export interface CheckAvailabilityResult extends Resource {
304
- /** True if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. */
305
- isAvailiable?: boolean;
286
+ /** Description of a NotificationHub FcmV1Credential. */
287
+ export interface FcmV1Credential {
288
+ /** Gets or sets client email. */
289
+ clientEmail: string;
290
+ /** Gets or sets private key. */
291
+ privateKey: string;
292
+ /** Gets or sets project id. */
293
+ projectId: string;
306
294
  }
307
295
 
308
- /** Parameters supplied to the CreateOrUpdate Namespace operation. */
309
- export interface NamespaceCreateOrUpdateParameters extends Resource {
310
- /** The name of the namespace. */
311
- namePropertiesName?: string;
312
- /** Provisioning state of the Namespace. */
313
- provisioningState?: string;
314
- /** Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe */
315
- region?: string;
296
+ /** Patch parameter for NamespaceResource. */
297
+ export interface NotificationHubPatchParameters {
298
+ /** The Sku description for a namespace */
299
+ sku?: Sku;
300
+ /** Dictionary of <string> */
301
+ tags?: { [propertyName: string]: string };
302
+ /** Gets or sets the NotificationHub name. */
303
+ name?: string;
304
+ /** Gets or sets the RegistrationTtl of the created NotificationHub */
305
+ registrationTtl?: string;
316
306
  /**
317
- * Identifier for Azure Insights metrics
307
+ * Gets or sets the AuthorizationRules of the created NotificationHub
318
308
  * NOTE: This property will not be serialized. It can only be populated by the server.
319
309
  */
320
- readonly metricId?: string;
321
- /** Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting */
322
- status?: string;
323
- /** The time the namespace was created. */
324
- createdAt?: Date;
325
- /** The time the namespace was updated. */
326
- updatedAt?: Date;
327
- /** Endpoint you can use to perform NotificationHub operations. */
328
- serviceBusEndpoint?: string;
329
- /** The Id of the Azure subscription associated with the namespace. */
330
- subscriptionId?: string;
331
- /** ScaleUnit where the namespace gets created */
332
- scaleUnit?: string;
333
- /** Whether or not the namespace is currently enabled. */
334
- enabled?: boolean;
335
- /** Whether or not the namespace is set as Critical. */
336
- critical?: boolean;
337
- /** Data center for the namespace */
338
- dataCenter?: string;
339
- /** The namespace type. */
340
- namespaceType?: NamespaceType;
310
+ readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[];
311
+ /** Description of a NotificationHub ApnsCredential. */
312
+ apnsCredential?: ApnsCredential;
313
+ /** Description of a NotificationHub WnsCredential. */
314
+ wnsCredential?: WnsCredential;
315
+ /** Description of a NotificationHub GcmCredential. */
316
+ gcmCredential?: GcmCredential;
317
+ /** Description of a NotificationHub MpnsCredential. */
318
+ mpnsCredential?: MpnsCredential;
319
+ /** Description of a NotificationHub AdmCredential. */
320
+ admCredential?: AdmCredential;
321
+ /** Description of a NotificationHub BaiduCredential. */
322
+ baiduCredential?: BaiduCredential;
323
+ /** Description of a NotificationHub BrowserCredential. */
324
+ browserCredential?: BrowserCredential;
325
+ /** Description of a NotificationHub XiaomiCredential. */
326
+ xiaomiCredential?: XiaomiCredential;
327
+ /** Description of a NotificationHub FcmV1Credential. */
328
+ fcmV1Credential?: FcmV1Credential;
329
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
330
+ readonly dailyMaxActiveDevices?: number;
341
331
  }
342
332
 
343
- /** Description of a Namespace resource. */
344
- export interface NamespaceResource extends Resource {
345
- /** The name of the namespace. */
346
- namePropertiesName?: string;
347
- /** Provisioning state of the Namespace. */
348
- provisioningState?: string;
349
- /** Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe */
350
- region?: string;
333
+ /** The response of the List NotificationHub operation. */
334
+ export interface NotificationHubListResult {
351
335
  /**
352
- * Identifier for Azure Insights metrics
336
+ * Gets or sets result of the List AuthorizationRules operation.
353
337
  * NOTE: This property will not be serialized. It can only be populated by the server.
354
338
  */
355
- readonly metricId?: string;
356
- /** Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting */
357
- status?: string;
358
- /** The time the namespace was created. */
359
- createdAt?: Date;
360
- /** The time the namespace was updated. */
361
- updatedAt?: Date;
362
- /** Endpoint you can use to perform NotificationHub operations. */
363
- serviceBusEndpoint?: string;
364
- /** The Id of the Azure subscription associated with the namespace. */
365
- subscriptionId?: string;
366
- /** ScaleUnit where the namespace gets created */
367
- scaleUnit?: string;
368
- /** Whether or not the namespace is currently enabled. */
369
- enabled?: boolean;
370
- /** Whether or not the namespace is set as Critical. */
371
- critical?: boolean;
372
- /** Data center for the namespace */
373
- dataCenter?: string;
374
- /** The namespace type. */
375
- namespaceType?: NamespaceType;
339
+ readonly value?: NotificationHubResource[];
340
+ /**
341
+ * Gets or sets link to the next set of results.
342
+ * NOTE: This property will not be serialized. It can only be populated by the server.
343
+ */
344
+ readonly nextLink?: string;
376
345
  }
377
346
 
378
- /** Description of a Namespace AuthorizationRules. */
379
- export interface SharedAccessAuthorizationRuleResource extends Resource {
380
- /** The rights associated with the rule. */
381
- rights?: AccessRights[];
347
+ /** Notification result for a single registration. */
348
+ export interface RegistrationResult {
382
349
  /**
383
- * A base64-encoded 256-bit primary key for signing and validating the SAS token.
350
+ * PNS type.
384
351
  * NOTE: This property will not be serialized. It can only be populated by the server.
385
352
  */
386
- readonly primaryKey?: string;
353
+ readonly applicationPlatform?: string;
387
354
  /**
388
- * A base64-encoded 256-bit primary key for signing and validating the SAS token.
355
+ * PNS handle.
389
356
  * NOTE: This property will not be serialized. It can only be populated by the server.
390
357
  */
391
- readonly secondaryKey?: string;
358
+ readonly pnsHandle?: string;
392
359
  /**
393
- * A string that describes the authorization rule.
360
+ * Registration id.
394
361
  * NOTE: This property will not be serialized. It can only be populated by the server.
395
362
  */
396
- readonly keyName?: string;
363
+ readonly registrationId?: string;
397
364
  /**
398
- * A string that describes the claim type
365
+ * Notification outcome.
399
366
  * NOTE: This property will not be serialized. It can only be populated by the server.
400
367
  */
401
- readonly claimType?: string;
368
+ readonly outcome?: string;
369
+ }
370
+
371
+ /** The response of the List Namespace operation. */
372
+ export interface SharedAccessAuthorizationRuleListResult {
402
373
  /**
403
- * A string that describes the claim value
374
+ * Gets or sets result of the List AuthorizationRules operation.
404
375
  * NOTE: This property will not be serialized. It can only be populated by the server.
405
376
  */
406
- readonly claimValue?: string;
377
+ readonly value?: SharedAccessAuthorizationRuleResource[];
378
+ /**
379
+ * Gets or sets link to the next set of results.
380
+ * NOTE: This property will not be serialized. It can only be populated by the server.
381
+ */
382
+ readonly nextLink?: string;
383
+ }
384
+
385
+ /** Response for the POST request that returns Namespace or NotificationHub access keys (connection strings). */
386
+ export interface ResourceListKeys {
407
387
  /**
408
- * The last modified time for this rule
388
+ * Gets or sets primaryConnectionString of the AuthorizationRule.
409
389
  * NOTE: This property will not be serialized. It can only be populated by the server.
410
390
  */
411
- readonly modifiedTime?: string;
391
+ readonly primaryConnectionString?: string;
412
392
  /**
413
- * The created time for this rule
393
+ * Gets or sets secondaryConnectionString of the created
394
+ * AuthorizationRule
414
395
  * NOTE: This property will not be serialized. It can only be populated by the server.
415
396
  */
416
- readonly createdTime?: string;
397
+ readonly secondaryConnectionString?: string;
417
398
  /**
418
- * The revision number for the rule
399
+ * Gets or sets primaryKey of the created AuthorizationRule.
419
400
  * NOTE: This property will not be serialized. It can only be populated by the server.
420
401
  */
421
- readonly revision?: number;
402
+ readonly primaryKey?: string;
403
+ /**
404
+ * Gets or sets secondaryKey of the created AuthorizationRule
405
+ * NOTE: This property will not be serialized. It can only be populated by the server.
406
+ */
407
+ readonly secondaryKey?: string;
408
+ /**
409
+ * Gets or sets keyName of the created AuthorizationRule
410
+ * NOTE: This property will not be serialized. It can only be populated by the server.
411
+ */
412
+ readonly keyName?: string;
422
413
  }
423
414
 
424
- /** Parameters supplied to the CreateOrUpdate NotificationHub operation. */
425
- export interface NotificationHubCreateOrUpdateParameters extends Resource {
426
- /** The NotificationHub name. */
427
- namePropertiesName?: string;
428
- /** The RegistrationTtl of the created NotificationHub */
429
- registrationTtl?: string;
430
- /** The AuthorizationRules of the created NotificationHub */
431
- authorizationRules?: SharedAccessAuthorizationRuleProperties[];
432
- /** The ApnsCredential of the created NotificationHub */
433
- apnsCredential?: ApnsCredential;
434
- /** The WnsCredential of the created NotificationHub */
435
- wnsCredential?: WnsCredential;
436
- /** The GcmCredential of the created NotificationHub */
437
- gcmCredential?: GcmCredential;
438
- /** The MpnsCredential of the created NotificationHub */
439
- mpnsCredential?: MpnsCredential;
440
- /** The AdmCredential of the created NotificationHub */
441
- admCredential?: AdmCredential;
442
- /** The BaiduCredential of the created NotificationHub */
443
- baiduCredential?: BaiduCredential;
415
+ /** Namespace / NotificationHub Regenerate Keys request. */
416
+ export interface PolicyKeyResource {
417
+ /** Type of Shared Access Policy Key (primary or secondary). */
418
+ policyKey: PolicyKeyType;
444
419
  }
445
420
 
446
- /** Description of a NotificationHub Resource. */
447
- export interface NotificationHubResource extends Resource {
448
- /** The NotificationHub name. */
449
- namePropertiesName?: string;
450
- /** The RegistrationTtl of the created NotificationHub */
451
- registrationTtl?: string;
452
- /** The AuthorizationRules of the created NotificationHub */
453
- authorizationRules?: SharedAccessAuthorizationRuleProperties[];
454
- /** The ApnsCredential of the created NotificationHub */
421
+ /** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */
422
+ export interface PnsCredentials {
423
+ /** Description of a NotificationHub AdmCredential. */
424
+ admCredential?: AdmCredential;
425
+ /** Description of a NotificationHub ApnsCredential. */
455
426
  apnsCredential?: ApnsCredential;
456
- /** The WnsCredential of the created NotificationHub */
457
- wnsCredential?: WnsCredential;
458
- /** The GcmCredential of the created NotificationHub */
427
+ /** Description of a NotificationHub BaiduCredential. */
428
+ baiduCredential?: BaiduCredential;
429
+ /** Description of a NotificationHub BrowserCredential. */
430
+ browserCredential?: BrowserCredential;
431
+ /** Description of a NotificationHub GcmCredential. */
459
432
  gcmCredential?: GcmCredential;
460
- /** The MpnsCredential of the created NotificationHub */
433
+ /** Description of a NotificationHub MpnsCredential. */
461
434
  mpnsCredential?: MpnsCredential;
462
- /** The AdmCredential of the created NotificationHub */
463
- admCredential?: AdmCredential;
464
- /** The BaiduCredential of the created NotificationHub */
465
- baiduCredential?: BaiduCredential;
435
+ /** Description of a NotificationHub WnsCredential. */
436
+ wnsCredential?: WnsCredential;
437
+ /** Description of a NotificationHub XiaomiCredential. */
438
+ xiaomiCredential?: XiaomiCredential;
439
+ /** Description of a NotificationHub FcmV1Credential. */
440
+ fcmV1Credential?: FcmV1Credential;
466
441
  }
467
442
 
468
- /** Parameters supplied to the patch NotificationHub operation. */
469
- export interface NotificationHubPatchParameters extends Resource {
470
- /** The NotificationHub name. */
471
- namePropertiesName?: string;
472
- /** The RegistrationTtl of the created NotificationHub */
473
- registrationTtl?: string;
474
- /** The AuthorizationRules of the created NotificationHub */
475
- authorizationRules?: SharedAccessAuthorizationRuleProperties[];
476
- /** The ApnsCredential of the created NotificationHub */
477
- apnsCredential?: ApnsCredential;
478
- /** The WnsCredential of the created NotificationHub */
479
- wnsCredential?: WnsCredential;
480
- /** The GcmCredential of the created NotificationHub */
481
- gcmCredential?: GcmCredential;
482
- /** The MpnsCredential of the created NotificationHub */
483
- mpnsCredential?: MpnsCredential;
484
- /** The AdmCredential of the created NotificationHub */
485
- admCredential?: AdmCredential;
486
- /** The BaiduCredential of the created NotificationHub */
487
- baiduCredential?: BaiduCredential;
443
+ /** Represents namespace properties. */
444
+ export interface NamespaceProperties {
445
+ /**
446
+ * Name of the Notification Hubs namespace. This is immutable property, set automatically
447
+ * by the service when the namespace is created.
448
+ * NOTE: This property will not be serialized. It can only be populated by the server.
449
+ */
450
+ readonly name?: string;
451
+ /** Defines values for OperationProvisioningState. */
452
+ provisioningState?: OperationProvisioningState;
453
+ /** Namespace status. */
454
+ status?: NamespaceStatus;
455
+ /**
456
+ * Gets or sets whether or not the namespace is currently enabled.
457
+ * NOTE: This property will not be serialized. It can only be populated by the server.
458
+ */
459
+ readonly enabled?: boolean;
460
+ /**
461
+ * Gets or sets whether or not the namespace is set as Critical.
462
+ * NOTE: This property will not be serialized. It can only be populated by the server.
463
+ */
464
+ readonly critical?: boolean;
465
+ /**
466
+ * Namespace subscription id.
467
+ * NOTE: This property will not be serialized. It can only be populated by the server.
468
+ */
469
+ readonly subscriptionId?: string;
470
+ /**
471
+ * Region. The value is always set to the same value as Namespace.Location, so we are deprecating
472
+ * this property.
473
+ * NOTE: This property will not be serialized. It can only be populated by the server.
474
+ */
475
+ readonly region?: string;
476
+ /**
477
+ * Azure Insights Metrics id.
478
+ * NOTE: This property will not be serialized. It can only be populated by the server.
479
+ */
480
+ readonly metricId?: string;
481
+ /**
482
+ * Time when the namespace was created.
483
+ * NOTE: This property will not be serialized. It can only be populated by the server.
484
+ */
485
+ readonly createdAt?: Date;
486
+ /**
487
+ * Time when the namespace was updated.
488
+ * NOTE: This property will not be serialized. It can only be populated by the server.
489
+ */
490
+ readonly updatedAt?: Date;
491
+ /** Defines values for NamespaceType. */
492
+ namespaceType?: NamespaceType;
493
+ /** Allowed replication region */
494
+ replicationRegion?: ReplicationRegion;
495
+ /** Namespace SKU name. */
496
+ zoneRedundancy?: ZoneRedundancyPreference;
497
+ /** A collection of network authorization rules. */
498
+ networkAcls?: NetworkAcls;
499
+ /** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */
500
+ pnsCredentials?: PnsCredentials;
501
+ /**
502
+ * Gets or sets endpoint you can use to perform NotificationHub
503
+ * operations.
504
+ * NOTE: This property will not be serialized. It can only be populated by the server.
505
+ */
506
+ readonly serviceBusEndpoint?: string;
507
+ /**
508
+ * Private Endpoint Connections for namespace
509
+ * NOTE: This property will not be serialized. It can only be populated by the server.
510
+ */
511
+ readonly privateEndpointConnections?: PrivateEndpointConnectionResource[];
512
+ /** Gets or sets scaleUnit where the namespace gets created */
513
+ scaleUnit?: string;
514
+ /** Deprecated. */
515
+ dataCenter?: string;
516
+ /** Type of public network access. */
517
+ publicNetworkAccess?: PublicNetworkAccess;
488
518
  }
489
519
 
490
- /** Description of a NotificationHub Resource. */
491
- export interface DebugSendResponse extends Resource {
492
- /** successful send */
493
- success?: number;
494
- /** send failure */
495
- failure?: number;
496
- /** actual failure description */
497
- results?: Record<string, unknown>;
498
- }
499
-
500
- /** Description of a NotificationHub PNS Credentials. */
501
- export interface PnsCredentialsResource extends Resource {
502
- /** The ApnsCredential of the created NotificationHub */
503
- apnsCredential?: ApnsCredential;
504
- /** The WnsCredential of the created NotificationHub */
505
- wnsCredential?: WnsCredential;
506
- /** The GcmCredential of the created NotificationHub */
507
- gcmCredential?: GcmCredential;
508
- /** The MpnsCredential of the created NotificationHub */
509
- mpnsCredential?: MpnsCredential;
510
- /** The AdmCredential of the created NotificationHub */
511
- admCredential?: AdmCredential;
512
- /** The BaiduCredential of the created NotificationHub */
513
- baiduCredential?: BaiduCredential;
520
+ /** A collection of network authorization rules. */
521
+ export interface NetworkAcls {
522
+ /** List of IP rules. */
523
+ ipRules?: IpRule[];
524
+ /** A default (public Internet) network authorization rule, which contains rights if no other network rule matches. */
525
+ publicNetworkRule?: PublicInternetAuthorizationRule;
514
526
  }
515
527
 
516
- /** Known values of {@link SkuName} that the service accepts. */
517
- export enum KnownSkuName {
518
- /** Free */
519
- Free = "Free",
520
- /** Basic */
521
- Basic = "Basic",
522
- /** Standard */
523
- Standard = "Standard"
528
+ /** A network authorization rule that filters traffic based on IP address. */
529
+ export interface IpRule {
530
+ /** IP mask. */
531
+ ipMask: string;
532
+ /** List of access rights. */
533
+ rights: AccessRights[];
524
534
  }
525
535
 
526
- /**
527
- * Defines values for SkuName. \
528
- * {@link KnownSkuName} can be used interchangeably with SkuName,
529
- * this enum contains the known values that the service supports.
530
- * ### Known values supported by the service
531
- * **Free** \
532
- * **Basic** \
533
- * **Standard**
536
+ /** A default (public Internet) network authorization rule, which contains rights if no other network rule matches. */
537
+ export interface PublicInternetAuthorizationRule {
538
+ /** List of access rights. */
539
+ rights: AccessRights[];
540
+ }
541
+
542
+ /** Private Endpoint Connection properties. */
543
+ export interface PrivateEndpointConnectionProperties {
544
+ /** State of Private Endpoint Connection. */
545
+ provisioningState?: PrivateEndpointConnectionProvisioningState;
546
+ /** Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection. */
547
+ privateEndpoint?: RemotePrivateEndpointConnection;
548
+ /**
549
+ * List of group ids. For Notification Hubs, it always contains a single "namespace" element.
550
+ * NOTE: This property will not be serialized. It can only be populated by the server.
551
+ */
552
+ readonly groupIds?: string[];
553
+ /** State of the Private Link Service connection. */
554
+ privateLinkServiceConnectionState?: RemotePrivateLinkServiceConnectionState;
555
+ }
556
+
557
+ /** Represents a Private Endpoint that is connected to Notification Hubs namespace using Private Endpoint Connection. */
558
+ export interface RemotePrivateEndpointConnection {
559
+ /**
560
+ * ARM resource ID of the Private Endpoint. This may belong to different subscription and resource group than a Notification Hubs namespace.
561
+ * NOTE: This property will not be serialized. It can only be populated by the server.
562
+ */
563
+ readonly id?: string;
564
+ }
565
+
566
+ /** State of the Private Link Service connection. */
567
+ export interface RemotePrivateLinkServiceConnectionState {
568
+ /** State of Private Link Connection. */
569
+ status?: PrivateLinkConnectionStatus;
570
+ /**
571
+ * Human-friendly description.
572
+ * NOTE: This property will not be serialized. It can only be populated by the server.
573
+ */
574
+ readonly description?: string;
575
+ /**
576
+ * Human-friendly description of required actions.
577
+ * NOTE: This property will not be serialized. It can only be populated by the server.
578
+ */
579
+ readonly actionsRequired?: string;
580
+ }
581
+
582
+ /** Patch parameter for NamespaceResource. */
583
+ export interface NamespacePatchParameters {
584
+ /** The Sku description for a namespace */
585
+ sku?: Sku;
586
+ /** Represents namespace properties. */
587
+ properties?: NamespaceProperties;
588
+ /** Dictionary of <string> */
589
+ tags?: { [propertyName: string]: string };
590
+ }
591
+
592
+ /** The response of the List Namespace operation. */
593
+ export interface NamespaceListResult {
594
+ /**
595
+ * Gets or sets result of the List AuthorizationRules operation.
596
+ * NOTE: This property will not be serialized. It can only be populated by the server.
597
+ */
598
+ readonly value?: NamespaceResource[];
599
+ /**
600
+ * Gets or sets link to the next set of results.
601
+ * NOTE: This property will not be serialized. It can only be populated by the server.
602
+ */
603
+ readonly nextLink?: string;
604
+ }
605
+
606
+ /**
607
+ * Result of the request to list NotificationHubs operations. It contains
608
+ * a list of operations and a URL link to get the next set of results.
609
+ */
610
+ export interface OperationListResult {
611
+ /**
612
+ * Gets list of NotificationHubs operations supported by the
613
+ * Microsoft.NotificationHubs resource provider.
614
+ * NOTE: This property will not be serialized. It can only be populated by the server.
615
+ */
616
+ readonly value?: Operation[];
617
+ /**
618
+ * Gets URL to get the next set of operation list results if there are
619
+ * any.
620
+ * NOTE: This property will not be serialized. It can only be populated by the server.
621
+ */
622
+ readonly nextLink?: string;
623
+ }
624
+
625
+ /** A NotificationHubs REST API operation */
626
+ export interface Operation {
627
+ /**
628
+ * Gets operation name: {provider}/{resource}/{operation}
629
+ * NOTE: This property will not be serialized. It can only be populated by the server.
630
+ */
631
+ readonly name?: string;
632
+ /** The object that represents the operation. */
633
+ display?: OperationDisplay;
634
+ /** Optional operation properties. */
635
+ properties?: OperationProperties;
636
+ /**
637
+ * Gets or sets IsDataAction property. It is used to differentiate management and data plane operations.
638
+ * NOTE: This property will not be serialized. It can only be populated by the server.
639
+ */
640
+ readonly isDataAction?: boolean;
641
+ }
642
+
643
+ /** The object that represents the operation. */
644
+ export interface OperationDisplay {
645
+ /**
646
+ * Gets service provider: Microsoft.NotificationHubs
647
+ * NOTE: This property will not be serialized. It can only be populated by the server.
648
+ */
649
+ readonly provider?: string;
650
+ /**
651
+ * Gets resource on which the operation is performed: Invoice, etc.
652
+ * NOTE: This property will not be serialized. It can only be populated by the server.
653
+ */
654
+ readonly resource?: string;
655
+ /**
656
+ * Gets operation type: Read, write, delete, etc.
657
+ * NOTE: This property will not be serialized. It can only be populated by the server.
658
+ */
659
+ readonly operation?: string;
660
+ /**
661
+ * Human-friendly operation description.
662
+ * NOTE: This property will not be serialized. It can only be populated by the server.
663
+ */
664
+ readonly description?: string;
665
+ }
666
+
667
+ /** Optional operation properties. */
668
+ export interface OperationProperties {
669
+ /** Optional service specification used in Operations API. */
670
+ serviceSpecification?: ServiceSpecification;
671
+ }
672
+
673
+ /** Optional service specification used in Operations API. */
674
+ export interface ServiceSpecification {
675
+ /**
676
+ * Log specifications.
677
+ * NOTE: This property will not be serialized. It can only be populated by the server.
678
+ */
679
+ readonly logSpecifications?: LogSpecification[];
680
+ /**
681
+ * Metric specification.
682
+ * NOTE: This property will not be serialized. It can only be populated by the server.
683
+ */
684
+ readonly metricSpecifications?: MetricSpecification[];
685
+ }
686
+
687
+ /** A single log category specification. */
688
+ export interface LogSpecification {
689
+ /**
690
+ * Name of the log category.
691
+ * NOTE: This property will not be serialized. It can only be populated by the server.
692
+ */
693
+ readonly name?: string;
694
+ /**
695
+ * Display name of the log category.
696
+ * NOTE: This property will not be serialized. It can only be populated by the server.
697
+ */
698
+ readonly displayName?: string;
699
+ /**
700
+ * Duration of data written to a single blob.
701
+ * NOTE: This property will not be serialized. It can only be populated by the server.
702
+ */
703
+ readonly blobDuration?: string;
704
+ /** Category group for the log specification. */
705
+ categoryGroups?: string[];
706
+ }
707
+
708
+ /** A metric specification. */
709
+ export interface MetricSpecification {
710
+ /**
711
+ * Metric name / id.
712
+ * NOTE: This property will not be serialized. It can only be populated by the server.
713
+ */
714
+ readonly name?: string;
715
+ /**
716
+ * User-visible metric name.
717
+ * NOTE: This property will not be serialized. It can only be populated by the server.
718
+ */
719
+ readonly displayName?: string;
720
+ /**
721
+ * Description of the metric.
722
+ * NOTE: This property will not be serialized. It can only be populated by the server.
723
+ */
724
+ readonly displayDescription?: string;
725
+ /**
726
+ * Metric unit.
727
+ * NOTE: This property will not be serialized. It can only be populated by the server.
728
+ */
729
+ readonly unit?: string;
730
+ /**
731
+ * Type of the aggregation (Average, Minimum, Maximum, Total or Count).
732
+ * NOTE: This property will not be serialized. It can only be populated by the server.
733
+ */
734
+ readonly aggregationType?: string;
735
+ /**
736
+ * List of availabilities.
737
+ * NOTE: This property will not be serialized. It can only be populated by the server.
738
+ */
739
+ readonly availabilities?: Availability[];
740
+ /**
741
+ * List of supported time grain types.
742
+ * NOTE: This property will not be serialized. It can only be populated by the server.
743
+ */
744
+ readonly supportedTimeGrainTypes?: string[];
745
+ /**
746
+ * The matching regex pattern to be applied to the field pointed by the "metricsFilterPathSelector" flag in the ARM manifest.
747
+ * NOTE: This property will not be serialized. It can only be populated by the server.
748
+ */
749
+ readonly metricFilterPattern?: string;
750
+ /**
751
+ * Optional property. If set to true, then zero will be returned for time duration where no metric is emitted / published.
752
+ * NOTE: This property will not be serialized. It can only be populated by the server.
753
+ */
754
+ readonly fillGapWithZero?: boolean;
755
+ }
756
+
757
+ /** Represents metric availability (part of RP operation descriptions). */
758
+ export interface Availability {
759
+ /**
760
+ * Time grain of the availability.
761
+ * NOTE: This property will not be serialized. It can only be populated by the server.
762
+ */
763
+ readonly timeGrain?: string;
764
+ /**
765
+ * Duration of the availability blob.
766
+ * NOTE: This property will not be serialized. It can only be populated by the server.
767
+ */
768
+ readonly blobDuration?: string;
769
+ }
770
+
771
+ /** The response of the List Private Endpoint Connections operation. */
772
+ export interface PrivateEndpointConnectionResourceListResult {
773
+ /**
774
+ * Gets or sets result of the List AuthorizationRules operation.
775
+ * NOTE: This property will not be serialized. It can only be populated by the server.
776
+ */
777
+ readonly value?: PrivateEndpointConnectionResource[];
778
+ /**
779
+ * Gets or sets link to the next set of results.
780
+ * NOTE: This property will not be serialized. It can only be populated by the server.
781
+ */
782
+ readonly nextLink?: string;
783
+ }
784
+
785
+ /** Represents properties of Private Link Resource. */
786
+ export interface PrivateLinkResourceProperties {
787
+ /**
788
+ * A Group Id for Private Link. For Notification Hubs, it is always set to "namespace".
789
+ * NOTE: This property will not be serialized. It can only be populated by the server.
790
+ */
791
+ readonly groupId?: string;
792
+ /**
793
+ * Required members. For Notification Hubs, it's always a collection with a single "namespace" item.
794
+ * NOTE: This property will not be serialized. It can only be populated by the server.
795
+ */
796
+ readonly requiredMembers?: string[];
797
+ /**
798
+ * Required DNS zone names. For Notification Hubs, it contains two CNames for Service Bus and Notification Hubs zones.
799
+ * NOTE: This property will not be serialized. It can only be populated by the server.
800
+ */
801
+ readonly requiredZoneNames?: string[];
802
+ }
803
+
804
+ /** The response of the List Private Link Resources operation. */
805
+ export interface PrivateLinkResourceListResult {
806
+ /**
807
+ * Gets or sets result of the List AuthorizationRules operation.
808
+ * NOTE: This property will not be serialized. It can only be populated by the server.
809
+ */
810
+ readonly value?: PrivateLinkResource[];
811
+ /**
812
+ * Gets or sets link to the next set of results.
813
+ * NOTE: This property will not be serialized. It can only be populated by the server.
814
+ */
815
+ readonly nextLink?: string;
816
+ }
817
+
818
+ /**
819
+ * Part of Private Endpoint description that stores information about a connection between Private Endpoint and Notification Hubs namespace.
820
+ * This is internal class, not visible to customers, and we use it only to discover the link identifier.
821
+ */
822
+ export interface ConnectionDetails {
823
+ /**
824
+ * A unique ID of the connection. This is not the ARM id, but rather an internal identifier set by the Networking RP. Notification Hubs code
825
+ * does not analyze it.
826
+ * NOTE: This property will not be serialized. It can only be populated by the server.
827
+ */
828
+ readonly id?: string;
829
+ /**
830
+ * IP address of the Private Endpoint. This is not used by Notification Hubs.
831
+ * NOTE: This property will not be serialized. It can only be populated by the server.
832
+ */
833
+ readonly privateIpAddress?: string;
834
+ /**
835
+ * Link identifier. This is a string representation of an integer that is also encoded in every IPv6 frame received by Front Door,
836
+ * and we use it to create implicit authorization rule that allows connection from the associated Private Endpoint.
837
+ * NOTE: This property will not be serialized. It can only be populated by the server.
838
+ */
839
+ readonly linkIdentifier?: string;
840
+ /**
841
+ * Group name. Always "namespace" for Notification Hubs.
842
+ * NOTE: This property will not be serialized. It can only be populated by the server.
843
+ */
844
+ readonly groupId?: string;
845
+ /**
846
+ * Member name. Always "namespace" for Notification Hubs.
847
+ * NOTE: This property will not be serialized. It can only be populated by the server.
848
+ */
849
+ readonly memberName?: string;
850
+ }
851
+
852
+ /**
853
+ * Represents a connectivity information to Notification Hubs namespace. This is part of PrivateLinkService proxy that tell
854
+ * the Networking RP how to connect to the Notification Hubs namespace.
855
+ */
856
+ export interface GroupConnectivityInformation {
857
+ /**
858
+ * Group id. Always set to "namespace".
859
+ * NOTE: This property will not be serialized. It can only be populated by the server.
860
+ */
861
+ readonly groupId?: string;
862
+ /**
863
+ * Member name. Always set to "namespace".
864
+ * NOTE: This property will not be serialized. It can only be populated by the server.
865
+ */
866
+ readonly memberName?: string;
867
+ /**
868
+ * List of customer-visible domain names that point to a Notification Hubs namespace.
869
+ * NOTE: This property will not be serialized. It can only be populated by the server.
870
+ */
871
+ readonly customerVisibleFqdns?: string[];
872
+ /**
873
+ * One of the domain name from the customer-visible names; this is used internally by Private Link service to make connection to Notification Hubs
874
+ * namespace.
875
+ * NOTE: This property will not be serialized. It can only be populated by the server.
876
+ */
877
+ readonly internalFqdn?: string;
878
+ /**
879
+ * Not used by Notification Hubs.
880
+ * NOTE: This property will not be serialized. It can only be populated by the server.
881
+ */
882
+ readonly redirectMapId?: string;
883
+ /**
884
+ * ARM region for Private Link Service. We use the region that contains the connected Notification Hubs namespace.
885
+ * NOTE: This property will not be serialized. It can only be populated by the server.
886
+ */
887
+ readonly privateLinkServiceArmRegion?: string;
888
+ }
889
+
890
+ /** A customer-visible sub-resource of Private Endpoint, which describe the connection between Private Endpoint and Notification Hubs namespace. */
891
+ export interface PrivateLinkServiceConnection {
892
+ /** Name of the Private Link Service connection. */
893
+ name?: string;
894
+ /** List of group ids. Always contains a single element - "namespace" - for Notification Hub Namespace. */
895
+ groupIds?: string[];
896
+ /** Request message provided by the user that created the connection. This is usually used when the connection requires manual approval. */
897
+ requestMessage?: string;
898
+ }
899
+
900
+ /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
901
+ export interface ProxyResource extends Resource {}
902
+
903
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
904
+ export interface TrackedResource extends Resource {
905
+ /** Resource tags. */
906
+ tags?: { [propertyName: string]: string };
907
+ /** The geo-location where the resource lives */
908
+ location: string;
909
+ }
910
+
911
+ /** Description of a CheckAvailability resource. */
912
+ export interface CheckAvailabilityResult extends ProxyResource {
913
+ /**
914
+ * Gets or sets true if the name is available and can be used to
915
+ * create new Namespace/NotificationHub. Otherwise false.
916
+ */
917
+ isAvailiable?: boolean;
918
+ /** Deprecated - only for compatibility. */
919
+ location?: string;
920
+ /** Deprecated - only for compatibility. */
921
+ tags?: { [propertyName: string]: string };
922
+ /** The Sku description for a namespace */
923
+ sku?: Sku;
924
+ }
925
+
926
+ /** Description of a NotificationHub Resource. */
927
+ export interface DebugSendResponse extends ProxyResource {
928
+ /** Deprecated - only for compatibility. */
929
+ location?: string;
930
+ /** Deprecated - only for compatibility. */
931
+ tags?: { [propertyName: string]: string };
932
+ /**
933
+ * Gets or sets successful send
934
+ * NOTE: This property will not be serialized. It can only be populated by the server.
935
+ */
936
+ readonly success?: number;
937
+ /**
938
+ * Gets or sets send failure
939
+ * NOTE: This property will not be serialized. It can only be populated by the server.
940
+ */
941
+ readonly failure?: number;
942
+ /**
943
+ * Gets or sets actual failure description
944
+ * NOTE: This property will not be serialized. It can only be populated by the server.
945
+ */
946
+ readonly results?: RegistrationResult[];
947
+ }
948
+
949
+ /** Response for POST requests that return single SharedAccessAuthorizationRule. */
950
+ export interface SharedAccessAuthorizationRuleResource extends ProxyResource {
951
+ /** Deprecated - only for compatibility. */
952
+ location?: string;
953
+ /** Deprecated - only for compatibility. */
954
+ tags?: { [propertyName: string]: string };
955
+ /** Gets or sets the rights associated with the rule. */
956
+ rights?: AccessRights[];
957
+ /**
958
+ * Gets a base64-encoded 256-bit primary key for signing and
959
+ * validating the SAS token.
960
+ */
961
+ primaryKey?: string;
962
+ /**
963
+ * Gets a base64-encoded 256-bit primary key for signing and
964
+ * validating the SAS token.
965
+ */
966
+ secondaryKey?: string;
967
+ /**
968
+ * Gets a string that describes the authorization rule.
969
+ * NOTE: This property will not be serialized. It can only be populated by the server.
970
+ */
971
+ readonly keyName?: string;
972
+ /**
973
+ * Gets the last modified time for this rule
974
+ * NOTE: This property will not be serialized. It can only be populated by the server.
975
+ */
976
+ readonly modifiedTime?: Date;
977
+ /**
978
+ * Gets the created time for this rule
979
+ * NOTE: This property will not be serialized. It can only be populated by the server.
980
+ */
981
+ readonly createdTime?: Date;
982
+ /**
983
+ * Gets a string that describes the claim type
984
+ * NOTE: This property will not be serialized. It can only be populated by the server.
985
+ */
986
+ readonly claimType?: string;
987
+ /**
988
+ * Gets a string that describes the claim value
989
+ * NOTE: This property will not be serialized. It can only be populated by the server.
990
+ */
991
+ readonly claimValue?: string;
992
+ /**
993
+ * Gets the revision number for the rule
994
+ * NOTE: This property will not be serialized. It can only be populated by the server.
995
+ */
996
+ readonly revision?: number;
997
+ }
998
+
999
+ /**
1000
+ * Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs
1001
+ * PNS credentials.
1002
+ */
1003
+ export interface PnsCredentialsResource extends ProxyResource {
1004
+ /** Deprecated - only for compatibility. */
1005
+ location?: string;
1006
+ /** Deprecated - only for compatibility. */
1007
+ tags?: { [propertyName: string]: string };
1008
+ /** Description of a NotificationHub AdmCredential. */
1009
+ admCredential?: AdmCredential;
1010
+ /** Description of a NotificationHub ApnsCredential. */
1011
+ apnsCredential?: ApnsCredential;
1012
+ /** Description of a NotificationHub BaiduCredential. */
1013
+ baiduCredential?: BaiduCredential;
1014
+ /** Description of a NotificationHub BrowserCredential. */
1015
+ browserCredential?: BrowserCredential;
1016
+ /** Description of a NotificationHub GcmCredential. */
1017
+ gcmCredential?: GcmCredential;
1018
+ /** Description of a NotificationHub MpnsCredential. */
1019
+ mpnsCredential?: MpnsCredential;
1020
+ /** Description of a NotificationHub WnsCredential. */
1021
+ wnsCredential?: WnsCredential;
1022
+ /** Description of a NotificationHub XiaomiCredential. */
1023
+ xiaomiCredential?: XiaomiCredential;
1024
+ /** Description of a NotificationHub FcmV1Credential. */
1025
+ fcmV1Credential?: FcmV1Credential;
1026
+ }
1027
+
1028
+ /** Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace. */
1029
+ export interface PrivateEndpointConnectionResource extends ProxyResource {
1030
+ /** Private Endpoint Connection properties. */
1031
+ properties?: PrivateEndpointConnectionProperties;
1032
+ }
1033
+
1034
+ /** A Private Link Arm Resource. */
1035
+ export interface PrivateLinkResource extends ProxyResource {
1036
+ /** Represents properties of Private Link Resource. */
1037
+ properties?: PrivateLinkResourceProperties;
1038
+ }
1039
+
1040
+ /** Notification Hub Resource. */
1041
+ export interface NotificationHubResource extends TrackedResource {
1042
+ /** The Sku description for a namespace */
1043
+ sku?: Sku;
1044
+ /** Gets or sets the NotificationHub name. */
1045
+ namePropertiesName?: string;
1046
+ /** Gets or sets the RegistrationTtl of the created NotificationHub */
1047
+ registrationTtl?: string;
1048
+ /**
1049
+ * Gets or sets the AuthorizationRules of the created NotificationHub
1050
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1051
+ */
1052
+ readonly authorizationRules?: SharedAccessAuthorizationRuleProperties[];
1053
+ /** Description of a NotificationHub ApnsCredential. */
1054
+ apnsCredential?: ApnsCredential;
1055
+ /** Description of a NotificationHub WnsCredential. */
1056
+ wnsCredential?: WnsCredential;
1057
+ /** Description of a NotificationHub GcmCredential. */
1058
+ gcmCredential?: GcmCredential;
1059
+ /** Description of a NotificationHub MpnsCredential. */
1060
+ mpnsCredential?: MpnsCredential;
1061
+ /** Description of a NotificationHub AdmCredential. */
1062
+ admCredential?: AdmCredential;
1063
+ /** Description of a NotificationHub BaiduCredential. */
1064
+ baiduCredential?: BaiduCredential;
1065
+ /** Description of a NotificationHub BrowserCredential. */
1066
+ browserCredential?: BrowserCredential;
1067
+ /** Description of a NotificationHub XiaomiCredential. */
1068
+ xiaomiCredential?: XiaomiCredential;
1069
+ /** Description of a NotificationHub FcmV1Credential. */
1070
+ fcmV1Credential?: FcmV1Credential;
1071
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
1072
+ readonly dailyMaxActiveDevices?: number;
1073
+ }
1074
+
1075
+ /** Notification Hubs Namespace Resource. */
1076
+ export interface NamespaceResource extends TrackedResource {
1077
+ /** The Sku description for a namespace */
1078
+ sku: Sku;
1079
+ /**
1080
+ * Name of the Notification Hubs namespace. This is immutable property, set automatically
1081
+ * by the service when the namespace is created.
1082
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1083
+ */
1084
+ readonly namePropertiesName?: string;
1085
+ /** Defines values for OperationProvisioningState. */
1086
+ provisioningState?: OperationProvisioningState;
1087
+ /** Namespace status. */
1088
+ status?: NamespaceStatus;
1089
+ /**
1090
+ * Gets or sets whether or not the namespace is currently enabled.
1091
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1092
+ */
1093
+ readonly enabled?: boolean;
1094
+ /**
1095
+ * Gets or sets whether or not the namespace is set as Critical.
1096
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1097
+ */
1098
+ readonly critical?: boolean;
1099
+ /**
1100
+ * Namespace subscription id.
1101
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1102
+ */
1103
+ readonly subscriptionId?: string;
1104
+ /**
1105
+ * Region. The value is always set to the same value as Namespace.Location, so we are deprecating
1106
+ * this property.
1107
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1108
+ */
1109
+ readonly region?: string;
1110
+ /**
1111
+ * Azure Insights Metrics id.
1112
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1113
+ */
1114
+ readonly metricId?: string;
1115
+ /**
1116
+ * Time when the namespace was created.
1117
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1118
+ */
1119
+ readonly createdAt?: Date;
1120
+ /**
1121
+ * Time when the namespace was updated.
1122
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1123
+ */
1124
+ readonly updatedAt?: Date;
1125
+ /** Defines values for NamespaceType. */
1126
+ namespaceType?: NamespaceType;
1127
+ /** Allowed replication region */
1128
+ replicationRegion?: ReplicationRegion;
1129
+ /** Namespace SKU name. */
1130
+ zoneRedundancy?: ZoneRedundancyPreference;
1131
+ /** A collection of network authorization rules. */
1132
+ networkAcls?: NetworkAcls;
1133
+ /** Collection of Notification Hub or Notification Hub Namespace PNS credentials. */
1134
+ pnsCredentials?: PnsCredentials;
1135
+ /**
1136
+ * Gets or sets endpoint you can use to perform NotificationHub
1137
+ * operations.
1138
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1139
+ */
1140
+ readonly serviceBusEndpoint?: string;
1141
+ /**
1142
+ * Private Endpoint Connections for namespace
1143
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1144
+ */
1145
+ readonly privateEndpointConnections?: PrivateEndpointConnectionResource[];
1146
+ /** Gets or sets scaleUnit where the namespace gets created */
1147
+ scaleUnit?: string;
1148
+ /** Deprecated. */
1149
+ dataCenter?: string;
1150
+ /** Type of public network access. */
1151
+ publicNetworkAccess?: PublicNetworkAccess;
1152
+ }
1153
+
1154
+ /** Defines headers for PrivateEndpointConnections_delete operation. */
1155
+ export interface PrivateEndpointConnectionsDeleteHeaders {
1156
+ location?: string;
1157
+ }
1158
+
1159
+ /** Known values of {@link SkuName} that the service accepts. */
1160
+ export enum KnownSkuName {
1161
+ /** Free */
1162
+ Free = "Free",
1163
+ /** Basic */
1164
+ Basic = "Basic",
1165
+ /** Standard */
1166
+ Standard = "Standard",
1167
+ }
1168
+
1169
+ /**
1170
+ * Defines values for SkuName. \
1171
+ * {@link KnownSkuName} can be used interchangeably with SkuName,
1172
+ * this enum contains the known values that the service supports.
1173
+ * ### Known values supported by the service
1174
+ * **Free** \
1175
+ * **Basic** \
1176
+ * **Standard**
1177
+ */
1178
+ export type SkuName = string;
1179
+
1180
+ /** Known values of {@link CreatedByType} that the service accepts. */
1181
+ export enum KnownCreatedByType {
1182
+ /** User */
1183
+ User = "User",
1184
+ /** Application */
1185
+ Application = "Application",
1186
+ /** ManagedIdentity */
1187
+ ManagedIdentity = "ManagedIdentity",
1188
+ /** Key */
1189
+ Key = "Key",
1190
+ }
1191
+
1192
+ /**
1193
+ * Defines values for CreatedByType. \
1194
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
1195
+ * this enum contains the known values that the service supports.
1196
+ * ### Known values supported by the service
1197
+ * **User** \
1198
+ * **Application** \
1199
+ * **ManagedIdentity** \
1200
+ * **Key**
1201
+ */
1202
+ export type CreatedByType = string;
1203
+
1204
+ /** Known values of {@link AccessRights} that the service accepts. */
1205
+ export enum KnownAccessRights {
1206
+ /** Manage */
1207
+ Manage = "Manage",
1208
+ /** Send */
1209
+ Send = "Send",
1210
+ /** Listen */
1211
+ Listen = "Listen",
1212
+ }
1213
+
1214
+ /**
1215
+ * Defines values for AccessRights. \
1216
+ * {@link KnownAccessRights} can be used interchangeably with AccessRights,
1217
+ * this enum contains the known values that the service supports.
1218
+ * ### Known values supported by the service
1219
+ * **Manage** \
1220
+ * **Send** \
1221
+ * **Listen**
1222
+ */
1223
+ export type AccessRights = string;
1224
+
1225
+ /** Known values of {@link PolicyKeyType} that the service accepts. */
1226
+ export enum KnownPolicyKeyType {
1227
+ /** PrimaryKey */
1228
+ PrimaryKey = "PrimaryKey",
1229
+ /** SecondaryKey */
1230
+ SecondaryKey = "SecondaryKey",
1231
+ }
1232
+
1233
+ /**
1234
+ * Defines values for PolicyKeyType. \
1235
+ * {@link KnownPolicyKeyType} can be used interchangeably with PolicyKeyType,
1236
+ * this enum contains the known values that the service supports.
1237
+ * ### Known values supported by the service
1238
+ * **PrimaryKey** \
1239
+ * **SecondaryKey**
534
1240
  */
535
- export type SkuName = string;
536
- /** Defines values for NamespaceType. */
537
- export type NamespaceType = "Messaging" | "NotificationHub";
538
- /** Defines values for AccessRights. */
539
- export type AccessRights = "Manage" | "Send" | "Listen";
1241
+ export type PolicyKeyType = string;
1242
+
1243
+ /** Known values of {@link OperationProvisioningState} that the service accepts. */
1244
+ export enum KnownOperationProvisioningState {
1245
+ /** Unknown */
1246
+ Unknown = "Unknown",
1247
+ /** InProgress */
1248
+ InProgress = "InProgress",
1249
+ /** Succeeded */
1250
+ Succeeded = "Succeeded",
1251
+ /** Failed */
1252
+ Failed = "Failed",
1253
+ /** Canceled */
1254
+ Canceled = "Canceled",
1255
+ /** Pending */
1256
+ Pending = "Pending",
1257
+ /** Disabled */
1258
+ Disabled = "Disabled",
1259
+ }
540
1260
 
541
- /** Optional parameters. */
542
- export interface OperationsListOptionalParams
543
- extends coreClient.OperationOptions {}
1261
+ /**
1262
+ * Defines values for OperationProvisioningState. \
1263
+ * {@link KnownOperationProvisioningState} can be used interchangeably with OperationProvisioningState,
1264
+ * this enum contains the known values that the service supports.
1265
+ * ### Known values supported by the service
1266
+ * **Unknown** \
1267
+ * **InProgress** \
1268
+ * **Succeeded** \
1269
+ * **Failed** \
1270
+ * **Canceled** \
1271
+ * **Pending** \
1272
+ * **Disabled**
1273
+ */
1274
+ export type OperationProvisioningState = string;
1275
+
1276
+ /** Known values of {@link NamespaceStatus} that the service accepts. */
1277
+ export enum KnownNamespaceStatus {
1278
+ /** Created */
1279
+ Created = "Created",
1280
+ /** Creating */
1281
+ Creating = "Creating",
1282
+ /** Suspended */
1283
+ Suspended = "Suspended",
1284
+ /** Deleting */
1285
+ Deleting = "Deleting",
1286
+ }
544
1287
 
545
- /** Contains response data for the list operation. */
546
- export type OperationsListResponse = OperationListResult;
1288
+ /**
1289
+ * Defines values for NamespaceStatus. \
1290
+ * {@link KnownNamespaceStatus} can be used interchangeably with NamespaceStatus,
1291
+ * this enum contains the known values that the service supports.
1292
+ * ### Known values supported by the service
1293
+ * **Created** \
1294
+ * **Creating** \
1295
+ * **Suspended** \
1296
+ * **Deleting**
1297
+ */
1298
+ export type NamespaceStatus = string;
1299
+
1300
+ /** Known values of {@link NamespaceType} that the service accepts. */
1301
+ export enum KnownNamespaceType {
1302
+ /** Messaging */
1303
+ Messaging = "Messaging",
1304
+ /** NotificationHub */
1305
+ NotificationHub = "NotificationHub",
1306
+ }
1307
+
1308
+ /**
1309
+ * Defines values for NamespaceType. \
1310
+ * {@link KnownNamespaceType} can be used interchangeably with NamespaceType,
1311
+ * this enum contains the known values that the service supports.
1312
+ * ### Known values supported by the service
1313
+ * **Messaging** \
1314
+ * **NotificationHub**
1315
+ */
1316
+ export type NamespaceType = string;
1317
+
1318
+ /** Known values of {@link ReplicationRegion} that the service accepts. */
1319
+ export enum KnownReplicationRegion {
1320
+ /** Default */
1321
+ Default = "Default",
1322
+ /** WestUs2 */
1323
+ WestUs2 = "WestUs2",
1324
+ /** NorthEurope */
1325
+ NorthEurope = "NorthEurope",
1326
+ /** AustraliaEast */
1327
+ AustraliaEast = "AustraliaEast",
1328
+ /** BrazilSouth */
1329
+ BrazilSouth = "BrazilSouth",
1330
+ /** SouthEastAsia */
1331
+ SouthEastAsia = "SouthEastAsia",
1332
+ /** SouthAfricaNorth */
1333
+ SouthAfricaNorth = "SouthAfricaNorth",
1334
+ /** None */
1335
+ None = "None",
1336
+ }
1337
+
1338
+ /**
1339
+ * Defines values for ReplicationRegion. \
1340
+ * {@link KnownReplicationRegion} can be used interchangeably with ReplicationRegion,
1341
+ * this enum contains the known values that the service supports.
1342
+ * ### Known values supported by the service
1343
+ * **Default** \
1344
+ * **WestUs2** \
1345
+ * **NorthEurope** \
1346
+ * **AustraliaEast** \
1347
+ * **BrazilSouth** \
1348
+ * **SouthEastAsia** \
1349
+ * **SouthAfricaNorth** \
1350
+ * **None**
1351
+ */
1352
+ export type ReplicationRegion = string;
1353
+
1354
+ /** Known values of {@link ZoneRedundancyPreference} that the service accepts. */
1355
+ export enum KnownZoneRedundancyPreference {
1356
+ /** Disabled */
1357
+ Disabled = "Disabled",
1358
+ /** Enabled */
1359
+ Enabled = "Enabled",
1360
+ }
1361
+
1362
+ /**
1363
+ * Defines values for ZoneRedundancyPreference. \
1364
+ * {@link KnownZoneRedundancyPreference} can be used interchangeably with ZoneRedundancyPreference,
1365
+ * this enum contains the known values that the service supports.
1366
+ * ### Known values supported by the service
1367
+ * **Disabled** \
1368
+ * **Enabled**
1369
+ */
1370
+ export type ZoneRedundancyPreference = string;
1371
+
1372
+ /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
1373
+ export enum KnownPrivateEndpointConnectionProvisioningState {
1374
+ /** Unknown */
1375
+ Unknown = "Unknown",
1376
+ /** Succeeded */
1377
+ Succeeded = "Succeeded",
1378
+ /** Creating */
1379
+ Creating = "Creating",
1380
+ /** Updating */
1381
+ Updating = "Updating",
1382
+ /** UpdatingByProxy */
1383
+ UpdatingByProxy = "UpdatingByProxy",
1384
+ /** Deleting */
1385
+ Deleting = "Deleting",
1386
+ /** DeletingByProxy */
1387
+ DeletingByProxy = "DeletingByProxy",
1388
+ /** Deleted */
1389
+ Deleted = "Deleted",
1390
+ }
1391
+
1392
+ /**
1393
+ * Defines values for PrivateEndpointConnectionProvisioningState. \
1394
+ * {@link KnownPrivateEndpointConnectionProvisioningState} can be used interchangeably with PrivateEndpointConnectionProvisioningState,
1395
+ * this enum contains the known values that the service supports.
1396
+ * ### Known values supported by the service
1397
+ * **Unknown** \
1398
+ * **Succeeded** \
1399
+ * **Creating** \
1400
+ * **Updating** \
1401
+ * **UpdatingByProxy** \
1402
+ * **Deleting** \
1403
+ * **DeletingByProxy** \
1404
+ * **Deleted**
1405
+ */
1406
+ export type PrivateEndpointConnectionProvisioningState = string;
1407
+
1408
+ /** Known values of {@link PrivateLinkConnectionStatus} that the service accepts. */
1409
+ export enum KnownPrivateLinkConnectionStatus {
1410
+ /** Disconnected */
1411
+ Disconnected = "Disconnected",
1412
+ /** Pending */
1413
+ Pending = "Pending",
1414
+ /** Approved */
1415
+ Approved = "Approved",
1416
+ /** Rejected */
1417
+ Rejected = "Rejected",
1418
+ }
1419
+
1420
+ /**
1421
+ * Defines values for PrivateLinkConnectionStatus. \
1422
+ * {@link KnownPrivateLinkConnectionStatus} can be used interchangeably with PrivateLinkConnectionStatus,
1423
+ * this enum contains the known values that the service supports.
1424
+ * ### Known values supported by the service
1425
+ * **Disconnected** \
1426
+ * **Pending** \
1427
+ * **Approved** \
1428
+ * **Rejected**
1429
+ */
1430
+ export type PrivateLinkConnectionStatus = string;
1431
+
1432
+ /** Known values of {@link PublicNetworkAccess} that the service accepts. */
1433
+ export enum KnownPublicNetworkAccess {
1434
+ /** Enabled */
1435
+ Enabled = "Enabled",
1436
+ /** Disabled */
1437
+ Disabled = "Disabled",
1438
+ }
1439
+
1440
+ /**
1441
+ * Defines values for PublicNetworkAccess. \
1442
+ * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
1443
+ * this enum contains the known values that the service supports.
1444
+ * ### Known values supported by the service
1445
+ * **Enabled** \
1446
+ * **Disabled**
1447
+ */
1448
+ export type PublicNetworkAccess = string;
547
1449
 
548
1450
  /** Optional parameters. */
549
- export interface OperationsListNextOptionalParams
1451
+ export interface NotificationHubsCheckNotificationHubAvailabilityOptionalParams
550
1452
  extends coreClient.OperationOptions {}
551
1453
 
552
- /** Contains response data for the listNext operation. */
553
- export type OperationsListNextResponse = OperationListResult;
1454
+ /** Contains response data for the checkNotificationHubAvailability operation. */
1455
+ export type NotificationHubsCheckNotificationHubAvailabilityResponse =
1456
+ CheckAvailabilityResult;
554
1457
 
555
1458
  /** Optional parameters. */
556
- export interface NamespacesCheckAvailabilityOptionalParams
1459
+ export interface NotificationHubsGetOptionalParams
557
1460
  extends coreClient.OperationOptions {}
558
1461
 
559
- /** Contains response data for the checkAvailability operation. */
560
- export type NamespacesCheckAvailabilityResponse = CheckAvailabilityResult;
1462
+ /** Contains response data for the get operation. */
1463
+ export type NotificationHubsGetResponse = NotificationHubResource;
561
1464
 
562
1465
  /** Optional parameters. */
563
- export interface NamespacesCreateOrUpdateOptionalParams
1466
+ export interface NotificationHubsCreateOrUpdateOptionalParams
564
1467
  extends coreClient.OperationOptions {}
565
1468
 
566
1469
  /** Contains response data for the createOrUpdate operation. */
567
- export type NamespacesCreateOrUpdateResponse = NamespaceResource;
1470
+ export type NotificationHubsCreateOrUpdateResponse = NotificationHubResource;
568
1471
 
569
1472
  /** Optional parameters. */
570
- export interface NamespacesPatchOptionalParams
1473
+ export interface NotificationHubsUpdateOptionalParams
571
1474
  extends coreClient.OperationOptions {}
572
1475
 
573
- /** Contains response data for the patch operation. */
574
- export type NamespacesPatchResponse = NamespaceResource;
1476
+ /** Contains response data for the update operation. */
1477
+ export type NotificationHubsUpdateResponse = NotificationHubResource;
575
1478
 
576
1479
  /** Optional parameters. */
577
- export interface NamespacesDeleteOptionalParams
1480
+ export interface NotificationHubsDeleteOptionalParams
1481
+ extends coreClient.OperationOptions {}
1482
+
1483
+ /** Optional parameters. */
1484
+ export interface NotificationHubsListOptionalParams
578
1485
  extends coreClient.OperationOptions {
579
- /** Delay to wait until next poll, in milliseconds. */
580
- updateIntervalInMs?: number;
581
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
582
- resumeFrom?: string;
1486
+ /** Continuation token. */
1487
+ skipToken?: string;
1488
+ /** Page size. */
1489
+ top?: number;
583
1490
  }
584
1491
 
1492
+ /** Contains response data for the list operation. */
1493
+ export type NotificationHubsListResponse = NotificationHubListResult;
1494
+
585
1495
  /** Optional parameters. */
586
- export interface NamespacesGetOptionalParams
1496
+ export interface NotificationHubsDebugSendOptionalParams
587
1497
  extends coreClient.OperationOptions {}
588
1498
 
589
- /** Contains response data for the get operation. */
590
- export type NamespacesGetResponse = NamespaceResource;
1499
+ /** Contains response data for the debugSend operation. */
1500
+ export type NotificationHubsDebugSendResponse = DebugSendResponse;
591
1501
 
592
1502
  /** Optional parameters. */
593
- export interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams
1503
+ export interface NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams
594
1504
  extends coreClient.OperationOptions {}
595
1505
 
596
1506
  /** Contains response data for the createOrUpdateAuthorizationRule operation. */
597
- export type NamespacesCreateOrUpdateAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource;
1507
+ export type NotificationHubsCreateOrUpdateAuthorizationRuleResponse =
1508
+ SharedAccessAuthorizationRuleResource;
598
1509
 
599
1510
  /** Optional parameters. */
600
- export interface NamespacesDeleteAuthorizationRuleOptionalParams
1511
+ export interface NotificationHubsDeleteAuthorizationRuleOptionalParams
601
1512
  extends coreClient.OperationOptions {}
602
1513
 
603
1514
  /** Optional parameters. */
604
- export interface NamespacesGetAuthorizationRuleOptionalParams
1515
+ export interface NotificationHubsGetAuthorizationRuleOptionalParams
605
1516
  extends coreClient.OperationOptions {}
606
1517
 
607
1518
  /** Contains response data for the getAuthorizationRule operation. */
608
- export type NamespacesGetAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource;
609
-
610
- /** Optional parameters. */
611
- export interface NamespacesListOptionalParams
612
- extends coreClient.OperationOptions {}
613
-
614
- /** Contains response data for the list operation. */
615
- export type NamespacesListResponse = NamespaceListResult;
616
-
617
- /** Optional parameters. */
618
- export interface NamespacesListAllOptionalParams
619
- extends coreClient.OperationOptions {}
620
-
621
- /** Contains response data for the listAll operation. */
622
- export type NamespacesListAllResponse = NamespaceListResult;
1519
+ export type NotificationHubsGetAuthorizationRuleResponse =
1520
+ SharedAccessAuthorizationRuleResource;
623
1521
 
624
1522
  /** Optional parameters. */
625
- export interface NamespacesListAuthorizationRulesOptionalParams
1523
+ export interface NotificationHubsListAuthorizationRulesOptionalParams
626
1524
  extends coreClient.OperationOptions {}
627
1525
 
628
1526
  /** Contains response data for the listAuthorizationRules operation. */
629
- export type NamespacesListAuthorizationRulesResponse = SharedAccessAuthorizationRuleListResult;
1527
+ export type NotificationHubsListAuthorizationRulesResponse =
1528
+ SharedAccessAuthorizationRuleListResult;
630
1529
 
631
1530
  /** Optional parameters. */
632
- export interface NamespacesListKeysOptionalParams
1531
+ export interface NotificationHubsListKeysOptionalParams
633
1532
  extends coreClient.OperationOptions {}
634
1533
 
635
1534
  /** Contains response data for the listKeys operation. */
636
- export type NamespacesListKeysResponse = ResourceListKeys;
1535
+ export type NotificationHubsListKeysResponse = ResourceListKeys;
637
1536
 
638
1537
  /** Optional parameters. */
639
- export interface NamespacesRegenerateKeysOptionalParams
1538
+ export interface NotificationHubsRegenerateKeysOptionalParams
640
1539
  extends coreClient.OperationOptions {}
641
1540
 
642
1541
  /** Contains response data for the regenerateKeys operation. */
643
- export type NamespacesRegenerateKeysResponse = ResourceListKeys;
1542
+ export type NotificationHubsRegenerateKeysResponse = ResourceListKeys;
644
1543
 
645
1544
  /** Optional parameters. */
646
- export interface NamespacesListNextOptionalParams
1545
+ export interface NotificationHubsGetPnsCredentialsOptionalParams
647
1546
  extends coreClient.OperationOptions {}
648
1547
 
649
- /** Contains response data for the listNext operation. */
650
- export type NamespacesListNextResponse = NamespaceListResult;
1548
+ /** Contains response data for the getPnsCredentials operation. */
1549
+ export type NotificationHubsGetPnsCredentialsResponse = PnsCredentialsResource;
651
1550
 
652
1551
  /** Optional parameters. */
653
- export interface NamespacesListAllNextOptionalParams
1552
+ export interface NotificationHubsListNextOptionalParams
654
1553
  extends coreClient.OperationOptions {}
655
1554
 
656
- /** Contains response data for the listAllNext operation. */
657
- export type NamespacesListAllNextResponse = NamespaceListResult;
1555
+ /** Contains response data for the listNext operation. */
1556
+ export type NotificationHubsListNextResponse = NotificationHubListResult;
658
1557
 
659
1558
  /** Optional parameters. */
660
- export interface NamespacesListAuthorizationRulesNextOptionalParams
1559
+ export interface NotificationHubsListAuthorizationRulesNextOptionalParams
661
1560
  extends coreClient.OperationOptions {}
662
1561
 
663
1562
  /** Contains response data for the listAuthorizationRulesNext operation. */
664
- export type NamespacesListAuthorizationRulesNextResponse = SharedAccessAuthorizationRuleListResult;
1563
+ export type NotificationHubsListAuthorizationRulesNextResponse =
1564
+ SharedAccessAuthorizationRuleListResult;
665
1565
 
666
1566
  /** Optional parameters. */
667
- export interface NotificationHubsCheckNotificationHubAvailabilityOptionalParams
1567
+ export interface NamespacesCheckAvailabilityOptionalParams
668
1568
  extends coreClient.OperationOptions {}
669
1569
 
670
- /** Contains response data for the checkNotificationHubAvailability operation. */
671
- export type NotificationHubsCheckNotificationHubAvailabilityResponse = CheckAvailabilityResult;
1570
+ /** Contains response data for the checkAvailability operation. */
1571
+ export type NamespacesCheckAvailabilityResponse = CheckAvailabilityResult;
672
1572
 
673
1573
  /** Optional parameters. */
674
- export interface NotificationHubsCreateOrUpdateOptionalParams
1574
+ export interface NamespacesGetOptionalParams
675
1575
  extends coreClient.OperationOptions {}
676
1576
 
677
- /** Contains response data for the createOrUpdate operation. */
678
- export type NotificationHubsCreateOrUpdateResponse = NotificationHubResource;
1577
+ /** Contains response data for the get operation. */
1578
+ export type NamespacesGetResponse = NamespaceResource;
679
1579
 
680
1580
  /** Optional parameters. */
681
- export interface NotificationHubsPatchOptionalParams
1581
+ export interface NamespacesCreateOrUpdateOptionalParams
682
1582
  extends coreClient.OperationOptions {
683
- /** Parameters supplied to patch a NotificationHub Resource. */
684
- parameters?: NotificationHubPatchParameters;
1583
+ /** Delay to wait until next poll, in milliseconds. */
1584
+ updateIntervalInMs?: number;
1585
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1586
+ resumeFrom?: string;
685
1587
  }
686
1588
 
687
- /** Contains response data for the patch operation. */
688
- export type NotificationHubsPatchResponse = NotificationHubResource;
1589
+ /** Contains response data for the createOrUpdate operation. */
1590
+ export type NamespacesCreateOrUpdateResponse = NamespaceResource;
689
1591
 
690
1592
  /** Optional parameters. */
691
- export interface NotificationHubsDeleteOptionalParams
1593
+ export interface NamespacesUpdateOptionalParams
692
1594
  extends coreClient.OperationOptions {}
693
1595
 
1596
+ /** Contains response data for the update operation. */
1597
+ export type NamespacesUpdateResponse = NamespaceResource;
1598
+
694
1599
  /** Optional parameters. */
695
- export interface NotificationHubsGetOptionalParams
1600
+ export interface NamespacesDeleteOptionalParams
696
1601
  extends coreClient.OperationOptions {}
697
1602
 
698
- /** Contains response data for the get operation. */
699
- export type NotificationHubsGetResponse = NotificationHubResource;
1603
+ /** Optional parameters. */
1604
+ export interface NamespacesListAllOptionalParams
1605
+ extends coreClient.OperationOptions {
1606
+ /** Skip token for subsequent requests. */
1607
+ skipToken?: string;
1608
+ /** Maximum number of results to return. */
1609
+ top?: number;
1610
+ }
1611
+
1612
+ /** Contains response data for the listAll operation. */
1613
+ export type NamespacesListAllResponse = NamespaceListResult;
700
1614
 
701
1615
  /** Optional parameters. */
702
- export interface NotificationHubsDebugSendOptionalParams
1616
+ export interface NamespacesListOptionalParams
703
1617
  extends coreClient.OperationOptions {
704
- /** Debug send parameters */
705
- parameters?: Record<string, unknown>;
1618
+ /** Skip token for subsequent requests. */
1619
+ skipToken?: string;
1620
+ /** Maximum number of results to return. */
1621
+ top?: number;
706
1622
  }
707
1623
 
708
- /** Contains response data for the debugSend operation. */
709
- export type NotificationHubsDebugSendResponse = DebugSendResponse;
1624
+ /** Contains response data for the list operation. */
1625
+ export type NamespacesListResponse = NamespaceListResult;
710
1626
 
711
1627
  /** Optional parameters. */
712
- export interface NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams
1628
+ export interface NamespacesCreateOrUpdateAuthorizationRuleOptionalParams
713
1629
  extends coreClient.OperationOptions {}
714
1630
 
715
1631
  /** Contains response data for the createOrUpdateAuthorizationRule operation. */
716
- export type NotificationHubsCreateOrUpdateAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource;
1632
+ export type NamespacesCreateOrUpdateAuthorizationRuleResponse =
1633
+ SharedAccessAuthorizationRuleResource;
717
1634
 
718
1635
  /** Optional parameters. */
719
- export interface NotificationHubsDeleteAuthorizationRuleOptionalParams
1636
+ export interface NamespacesDeleteAuthorizationRuleOptionalParams
720
1637
  extends coreClient.OperationOptions {}
721
1638
 
722
1639
  /** Optional parameters. */
723
- export interface NotificationHubsGetAuthorizationRuleOptionalParams
1640
+ export interface NamespacesGetAuthorizationRuleOptionalParams
724
1641
  extends coreClient.OperationOptions {}
725
1642
 
726
1643
  /** Contains response data for the getAuthorizationRule operation. */
727
- export type NotificationHubsGetAuthorizationRuleResponse = SharedAccessAuthorizationRuleResource;
728
-
729
- /** Optional parameters. */
730
- export interface NotificationHubsListOptionalParams
731
- extends coreClient.OperationOptions {}
732
-
733
- /** Contains response data for the list operation. */
734
- export type NotificationHubsListResponse = NotificationHubListResult;
1644
+ export type NamespacesGetAuthorizationRuleResponse =
1645
+ SharedAccessAuthorizationRuleResource;
735
1646
 
736
1647
  /** Optional parameters. */
737
- export interface NotificationHubsListAuthorizationRulesOptionalParams
1648
+ export interface NamespacesListAuthorizationRulesOptionalParams
738
1649
  extends coreClient.OperationOptions {}
739
1650
 
740
1651
  /** Contains response data for the listAuthorizationRules operation. */
741
- export type NotificationHubsListAuthorizationRulesResponse = SharedAccessAuthorizationRuleListResult;
1652
+ export type NamespacesListAuthorizationRulesResponse =
1653
+ SharedAccessAuthorizationRuleListResult;
742
1654
 
743
1655
  /** Optional parameters. */
744
- export interface NotificationHubsListKeysOptionalParams
1656
+ export interface NamespacesListKeysOptionalParams
745
1657
  extends coreClient.OperationOptions {}
746
1658
 
747
1659
  /** Contains response data for the listKeys operation. */
748
- export type NotificationHubsListKeysResponse = ResourceListKeys;
1660
+ export type NamespacesListKeysResponse = ResourceListKeys;
749
1661
 
750
1662
  /** Optional parameters. */
751
- export interface NotificationHubsRegenerateKeysOptionalParams
1663
+ export interface NamespacesRegenerateKeysOptionalParams
752
1664
  extends coreClient.OperationOptions {}
753
1665
 
754
1666
  /** Contains response data for the regenerateKeys operation. */
755
- export type NotificationHubsRegenerateKeysResponse = ResourceListKeys;
1667
+ export type NamespacesRegenerateKeysResponse = ResourceListKeys;
756
1668
 
757
1669
  /** Optional parameters. */
758
- export interface NotificationHubsGetPnsCredentialsOptionalParams
1670
+ export interface NamespacesGetPnsCredentialsOptionalParams
759
1671
  extends coreClient.OperationOptions {}
760
1672
 
761
1673
  /** Contains response data for the getPnsCredentials operation. */
762
- export type NotificationHubsGetPnsCredentialsResponse = PnsCredentialsResource;
1674
+ export type NamespacesGetPnsCredentialsResponse = PnsCredentialsResource;
763
1675
 
764
1676
  /** Optional parameters. */
765
- export interface NotificationHubsListNextOptionalParams
1677
+ export interface NamespacesListAllNextOptionalParams
1678
+ extends coreClient.OperationOptions {}
1679
+
1680
+ /** Contains response data for the listAllNext operation. */
1681
+ export type NamespacesListAllNextResponse = NamespaceListResult;
1682
+
1683
+ /** Optional parameters. */
1684
+ export interface NamespacesListNextOptionalParams
766
1685
  extends coreClient.OperationOptions {}
767
1686
 
768
1687
  /** Contains response data for the listNext operation. */
769
- export type NotificationHubsListNextResponse = NotificationHubListResult;
1688
+ export type NamespacesListNextResponse = NamespaceListResult;
770
1689
 
771
1690
  /** Optional parameters. */
772
- export interface NotificationHubsListAuthorizationRulesNextOptionalParams
1691
+ export interface NamespacesListAuthorizationRulesNextOptionalParams
773
1692
  extends coreClient.OperationOptions {}
774
1693
 
775
1694
  /** Contains response data for the listAuthorizationRulesNext operation. */
776
- export type NotificationHubsListAuthorizationRulesNextResponse = SharedAccessAuthorizationRuleListResult;
1695
+ export type NamespacesListAuthorizationRulesNextResponse =
1696
+ SharedAccessAuthorizationRuleListResult;
1697
+
1698
+ /** Optional parameters. */
1699
+ export interface OperationsListOptionalParams
1700
+ extends coreClient.OperationOptions {}
1701
+
1702
+ /** Contains response data for the list operation. */
1703
+ export type OperationsListResponse = OperationListResult;
1704
+
1705
+ /** Optional parameters. */
1706
+ export interface OperationsListNextOptionalParams
1707
+ extends coreClient.OperationOptions {}
1708
+
1709
+ /** Contains response data for the listNext operation. */
1710
+ export type OperationsListNextResponse = OperationListResult;
1711
+
1712
+ /** Optional parameters. */
1713
+ export interface PrivateEndpointConnectionsUpdateOptionalParams
1714
+ extends coreClient.OperationOptions {
1715
+ /** Delay to wait until next poll, in milliseconds. */
1716
+ updateIntervalInMs?: number;
1717
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1718
+ resumeFrom?: string;
1719
+ }
1720
+
1721
+ /** Contains response data for the update operation. */
1722
+ export type PrivateEndpointConnectionsUpdateResponse =
1723
+ PrivateEndpointConnectionResource;
1724
+
1725
+ /** Optional parameters. */
1726
+ export interface PrivateEndpointConnectionsDeleteOptionalParams
1727
+ extends coreClient.OperationOptions {
1728
+ /** Delay to wait until next poll, in milliseconds. */
1729
+ updateIntervalInMs?: number;
1730
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1731
+ resumeFrom?: string;
1732
+ }
1733
+
1734
+ /** Contains response data for the delete operation. */
1735
+ export type PrivateEndpointConnectionsDeleteResponse =
1736
+ PrivateEndpointConnectionsDeleteHeaders;
1737
+
1738
+ /** Optional parameters. */
1739
+ export interface PrivateEndpointConnectionsGetOptionalParams
1740
+ extends coreClient.OperationOptions {}
1741
+
1742
+ /** Contains response data for the get operation. */
1743
+ export type PrivateEndpointConnectionsGetResponse =
1744
+ PrivateEndpointConnectionResource;
1745
+
1746
+ /** Optional parameters. */
1747
+ export interface PrivateEndpointConnectionsListOptionalParams
1748
+ extends coreClient.OperationOptions {}
1749
+
1750
+ /** Contains response data for the list operation. */
1751
+ export type PrivateEndpointConnectionsListResponse =
1752
+ PrivateEndpointConnectionResourceListResult;
1753
+
1754
+ /** Optional parameters. */
1755
+ export interface PrivateEndpointConnectionsGetGroupIdOptionalParams
1756
+ extends coreClient.OperationOptions {}
1757
+
1758
+ /** Contains response data for the getGroupId operation. */
1759
+ export type PrivateEndpointConnectionsGetGroupIdResponse = PrivateLinkResource;
1760
+
1761
+ /** Optional parameters. */
1762
+ export interface PrivateEndpointConnectionsListGroupIdsOptionalParams
1763
+ extends coreClient.OperationOptions {}
1764
+
1765
+ /** Contains response data for the listGroupIds operation. */
1766
+ export type PrivateEndpointConnectionsListGroupIdsResponse =
1767
+ PrivateLinkResourceListResult;
777
1768
 
778
1769
  /** Optional parameters. */
779
1770
  export interface NotificationHubsManagementClientOptionalParams