Skip to content

Commit ac193c3

Browse files
author
SDKAuto
committed
CodeGen from PR 34320 in Azure/azure-rest-api-specs
Merge 3a8d2effa54913b5f5365e9a4610810825366409 into 5351ac8e1e6fdf48933bae2cd879434b93b36ac0
1 parent a14470d commit ac193c3

30 files changed

+2892
-2679
lines changed

sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md

Lines changed: 173 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,180 @@
11
# Release History
2-
3-
## 3.0.0-beta.2 (Unreleased)
4-
2+
3+
## 3.0.0-beta.2 (2025-04-30)
4+
Compared with version 2.1.0
5+
56
### Features Added
67

7-
### Breaking Changes
8-
9-
### Bugs Fixed
8+
- Added operation group PrivateEndpointConnections
9+
- Added operation Namespaces.beginCreateOrUpdate
10+
- Added operation Namespaces.beginCreateOrUpdateAndWait
11+
- Added operation Namespaces.delete
12+
- Added operation Namespaces.getPnsCredentials
13+
- Added operation Namespaces.update
14+
- Added operation NotificationHubs.update
15+
- Added Interface Availability
16+
- Added Interface BrowserCredential
17+
- Added Interface ErrorAdditionalInfo
18+
- Added Interface ErrorDetail
19+
- Added Interface FcmV1Credential
20+
- Added Interface IpRule
21+
- Added Interface LogSpecification
22+
- Added Interface MetricSpecification
23+
- Added Interface NamespaceProperties
24+
- Added Interface NamespacesCreateOrUpdateHeaders
25+
- Added Interface NamespacesGetPnsCredentialsOptionalParams
26+
- Added Interface NamespacesUpdateOptionalParams
27+
- Added Interface NetworkAcls
28+
- Added Interface NotificationHubsUpdateOptionalParams
29+
- Added Interface OperationProperties
30+
- Added Interface PnsCredentials
31+
- Added Interface PolicyKeyResource
32+
- Added Interface PrivateEndpointConnectionResource
33+
- Added Interface PrivateEndpointConnectionResourceListResult
34+
- Added Interface PrivateEndpointConnectionsDeleteHeaders
35+
- Added Interface PrivateEndpointConnectionsDeleteOptionalParams
36+
- Added Interface PrivateEndpointConnectionsGetGroupIdOptionalParams
37+
- Added Interface PrivateEndpointConnectionsGetOptionalParams
38+
- Added Interface PrivateEndpointConnectionsListGroupIdsNextOptionalParams
39+
- Added Interface PrivateEndpointConnectionsListGroupIdsOptionalParams
40+
- Added Interface PrivateEndpointConnectionsListNextOptionalParams
41+
- Added Interface PrivateEndpointConnectionsListOptionalParams
42+
- Added Interface PrivateEndpointConnectionsUpdateHeaders
43+
- Added Interface PrivateEndpointConnectionsUpdateOptionalParams
44+
- Added Interface PrivateLinkResource
45+
- Added Interface PrivateLinkResourceListResult
46+
- Added Interface ProxyResource
47+
- Added Interface PublicInternetAuthorizationRule
48+
- Added Interface RegistrationResult
49+
- Added Interface RemotePrivateEndpointConnection
50+
- Added Interface RemotePrivateLinkServiceConnectionState
51+
- Added Interface ServiceSpecification
52+
- Added Interface SystemData
53+
- Added Interface TrackedResource
54+
- Added Interface XiaomiCredential
55+
- Added Type Alias CreatedByType
56+
- Added Type Alias NamespacesGetPnsCredentialsResponse
57+
- Added Type Alias NamespaceStatus
58+
- Added Type Alias NamespacesUpdateResponse
59+
- Added Type Alias NotificationHubsUpdateResponse
60+
- Added Type Alias OperationProvisioningState
61+
- Added Type Alias PolicyKeyType
62+
- Added Type Alias PrivateEndpointConnectionProvisioningState
63+
- Added Type Alias PrivateEndpointConnectionsDeleteResponse
64+
- Added Type Alias PrivateEndpointConnectionsGetGroupIdResponse
65+
- Added Type Alias PrivateEndpointConnectionsGetResponse
66+
- Added Type Alias PrivateEndpointConnectionsListGroupIdsNextResponse
67+
- Added Type Alias PrivateEndpointConnectionsListGroupIdsResponse
68+
- Added Type Alias PrivateEndpointConnectionsListNextResponse
69+
- Added Type Alias PrivateEndpointConnectionsListResponse
70+
- Added Type Alias PrivateEndpointConnectionsUpdateResponse
71+
- Added Type Alias PrivateLinkConnectionStatus
72+
- Added Type Alias PublicNetworkAccess
73+
- Added Type Alias ReplicationRegion
74+
- Added Type Alias ZoneRedundancyPreference
75+
- Interface CheckAvailabilityResult has a new optional parameter location
76+
- Interface CheckAvailabilityResult has a new optional parameter sku
77+
- Interface CheckAvailabilityResult has a new optional parameter tags
78+
- Interface DebugSendResponse has a new optional parameter location
79+
- Interface DebugSendResponse has a new optional parameter tags
80+
- Interface ErrorResponse has a new optional parameter error
81+
- Interface NamespacePatchParameters has a new optional parameter properties
82+
- Interface NamespaceResource has a new optional parameter networkAcls
83+
- Interface NamespaceResource has a new optional parameter pnsCredentials
84+
- Interface NamespaceResource has a new optional parameter privateEndpointConnections
85+
- Interface NamespaceResource has a new optional parameter publicNetworkAccess
86+
- Interface NamespaceResource has a new optional parameter replicationRegion
87+
- Interface NamespaceResource has a new optional parameter zoneRedundancy
88+
- Interface NamespacesCreateOrUpdateOptionalParams has a new optional parameter resumeFrom
89+
- Interface NamespacesCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs
90+
- Interface NamespacesListAllOptionalParams has a new optional parameter skipToken
91+
- Interface NamespacesListAllOptionalParams has a new optional parameter top
92+
- Interface NamespacesListOptionalParams has a new optional parameter skipToken
93+
- Interface NamespacesListOptionalParams has a new optional parameter top
94+
- Interface NotificationHubPatchParameters has a new optional parameter browserCredential
95+
- Interface NotificationHubPatchParameters has a new optional parameter dailyMaxActiveDevices
96+
- Interface NotificationHubPatchParameters has a new optional parameter fcmV1Credential
97+
- Interface NotificationHubPatchParameters has a new optional parameter name
98+
- Interface NotificationHubPatchParameters has a new optional parameter sku
99+
- Interface NotificationHubPatchParameters has a new optional parameter tags
100+
- Interface NotificationHubPatchParameters has a new optional parameter xiaomiCredential
101+
- Interface NotificationHubResource has a new optional parameter browserCredential
102+
- Interface NotificationHubResource has a new optional parameter dailyMaxActiveDevices
103+
- Interface NotificationHubResource has a new optional parameter fcmV1Credential
104+
- Interface NotificationHubResource has a new optional parameter sku
105+
- Interface NotificationHubResource has a new optional parameter xiaomiCredential
106+
- Interface NotificationHubsListOptionalParams has a new optional parameter skipToken
107+
- Interface NotificationHubsListOptionalParams has a new optional parameter top
108+
- Interface Operation has a new optional parameter isDataAction
109+
- Interface Operation has a new optional parameter properties
110+
- Interface OperationDisplay has a new optional parameter description
111+
- Interface PnsCredentialsResource has a new optional parameter browserCredential
112+
- Interface PnsCredentialsResource has a new optional parameter fcmV1Credential
113+
- Interface PnsCredentialsResource has a new optional parameter location
114+
- Interface PnsCredentialsResource has a new optional parameter tags
115+
- Interface PnsCredentialsResource has a new optional parameter xiaomiCredential
116+
- Interface Resource has a new optional parameter systemData
117+
- Interface WnsCredential has a new optional parameter certificateKey
118+
- Interface WnsCredential has a new optional parameter wnsCertificate
119+
- Added Enum KnownAccessRights
120+
- Added Enum KnownCreatedByType
121+
- Added Enum KnownNamespaceStatus
122+
- Added Enum KnownNamespaceType
123+
- Added Enum KnownOperationProvisioningState
124+
- Added Enum KnownPolicyKeyType
125+
- Added Enum KnownPrivateEndpointConnectionProvisioningState
126+
- Added Enum KnownPrivateLinkConnectionStatus
127+
- Added Enum KnownPublicNetworkAccess
128+
- Added Enum KnownReplicationRegion
129+
- Added Enum KnownZoneRedundancyPreference
10130

11-
### Other Changes
131+
### Breaking Changes
12132

133+
- Removed operation Namespaces.beginDelete
134+
- Removed operation Namespaces.beginDeleteAndWait
135+
- Removed operation Namespaces.createOrUpdate
136+
- Removed operation Namespaces.patch
137+
- Removed operation NotificationHubs.patch
138+
- Operation Namespaces.createOrUpdateAuthorizationRule has a new signature
139+
- Operation Namespaces.regenerateKeys has a new signature
140+
- Operation NotificationHubs.createOrUpdate has a new signature
141+
- Operation NotificationHubs.createOrUpdateAuthorizationRule has a new signature
142+
- Operation NotificationHubs.regenerateKeys has a new signature
143+
- Interface ErrorResponse no longer has parameter code
144+
- Interface ErrorResponse no longer has parameter message
145+
- Interface NamespacesDeleteOptionalParams no longer has parameter resumeFrom
146+
- Interface NamespacesDeleteOptionalParams no longer has parameter updateIntervalInMs
147+
- Interface NotificationHubPatchParameters no longer has parameter namePropertiesName
148+
- Interface NotificationHubsDebugSendOptionalParams no longer has parameter parameters
149+
- Interface Resource no longer has parameter location
150+
- Interface Resource no longer has parameter sku
151+
- Interface Resource no longer has parameter tags
152+
- Interface NamespaceResource has a new required parameter sku
153+
- Parameter authTokenUrl of interface AdmCredential is now required
154+
- Parameter clientId of interface AdmCredential is now required
155+
- Parameter clientSecret of interface AdmCredential is now required
156+
- Parameter endpoint of interface ApnsCredential is now required
157+
- Parameter baiduApiKey of interface BaiduCredential is now required
158+
- Parameter baiduEndPoint of interface BaiduCredential is now required
159+
- Parameter baiduSecretKey of interface BaiduCredential is now required
160+
- Parameter googleApiKey of interface GcmCredential is now required
161+
- Parameter certificateKey of interface MpnsCredential is now required
162+
- Parameter mpnsCertificate of interface MpnsCredential is now required
163+
- Parameter thumbprint of interface MpnsCredential is now required
164+
- Parameter value of interface NamespaceListResult is now required
165+
- Parameter value of interface NotificationHubListResult is now required
166+
- Parameter value of interface OperationListResult is now required
167+
- Parameter value of interface SharedAccessAuthorizationRuleListResult is now required
168+
- Parameter rights of interface SharedAccessAuthorizationRuleProperties is now required
169+
- Type of parameter results of interface DebugSendResponse is changed from Record<string, unknown> to RegistrationResult[]
170+
- Type of parameter provisioningState of interface NamespaceResource is changed from string to OperationProvisioningState
171+
- Type of parameter status of interface NamespaceResource is changed from string to NamespaceStatus
172+
- Type of parameter createdTime of interface SharedAccessAuthorizationRuleProperties is changed from string to Date
173+
- Type of parameter modifiedTime of interface SharedAccessAuthorizationRuleProperties is changed from string to Date
174+
- Type of parameter createdTime of interface SharedAccessAuthorizationRuleResource is changed from string to Date
175+
- Type of parameter modifiedTime of interface SharedAccessAuthorizationRuleResource is changed from string to Date
176+
177+
13178
## 3.0.0-beta.1 (2024-03-18)
14179

15180
### Features Added
@@ -209,4 +374,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
209374

210375
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
211376

212-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
377+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).

sdk/notificationhubs/arm-notificationhubs/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/notificationhubs/arm-notificationhubs/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ npm install @azure/identity
4444
```
4545

4646
You will also need to **register a new AAD application and grant access to Azure NotificationHubsManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4847

4948
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
5049

@@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6463
import { InteractiveBrowserCredential } from "@azure/identity";
6564
import { NotificationHubsManagementClient } from "@azure/arm-notificationhubs";
6665

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6866
const credential = new InteractiveBrowserCredential({
6967
tenantId: "<YOUR_TENANT_ID>",
70-
clientId: "<YOUR_CLIENT_ID>",
71-
});
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
7270
const client = new NotificationHubsManagementClient(credential, subscriptionId);
7371
```
7472

7573
### JavaScript Bundle
76-
7774
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7875

7976
## Key concepts
@@ -108,6 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide
108105

109106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110107

108+
111109
[azure_cli]: https://learn.microsoft.com/cli/azure
112110
[azure_sub]: https://azure.microsoft.com/free/
113111
[azure_sub]: https://azure.microsoft.com/free/
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "0cca8953ec713d8cc0e940c37e865d36b43d18f8",
2+
"commit": "66a77ede30154e72e827c3a6a448058cc7fc7426",
33
"readme": "specification/notificationhubs/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\notificationhubs\\resource-manager\\readme.md --use=@autorest/[email protected].17 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/notificationhubs/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].4",
7-
"use": "@autorest/[email protected].17"
6+
"release_tool": "@azure-tools/[email protected].26",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/notificationhubs/arm-notificationhubs/api-extractor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/notificationhubs/arm-notificationhubs/package.json

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"dependencies": {
1111
"@azure/abort-controller": "^2.1.2",
1212
"@azure/core-auth": "^1.9.0",
13-
"@azure/core-client": "^1.9.2",
14-
"@azure/core-lro": "^2.7.2",
13+
"@azure/core-client": "^1.9.3",
14+
"@azure/core-lro": "^2.5.4",
1515
"@azure/core-paging": "^1.6.2",
16-
"@azure/core-rest-pipeline": "^1.19.0",
16+
"@azure/core-rest-pipeline": "^1.19.1",
1717
"tslib": "^2.8.1"
1818
},
1919
"keywords": [
@@ -28,19 +28,19 @@
2828
"main": "./dist/commonjs/index.js",
2929
"module": "./dist/esm/index.js",
3030
"types": "./dist/commonjs/index.d.ts",
31+
"type": "module",
3132
"devDependencies": {
3233
"@azure-tools/test-credential": "^2.0.0",
3334
"@azure-tools/test-recorder": "^4.1.0",
3435
"@azure-tools/test-utils-vitest": "^1.0.0",
3536
"@azure/dev-tool": "^1.0.0",
36-
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
37-
"@azure/identity": "^4.6.0",
37+
"@azure/identity": "^4.9.1",
3838
"@azure/logger": "^1.1.4",
3939
"@types/node": "^18.0.0",
4040
"@vitest/browser": "^3.0.9",
4141
"@vitest/coverage-istanbul": "^3.0.9",
4242
"dotenv": "^16.0.0",
43-
"playwright": "^1.50.1",
43+
"playwright": "^1.52.0",
4444
"typescript": "~5.8.2",
4545
"vitest": "^3.0.9"
4646
},
@@ -61,17 +61,16 @@
6161
"build:node": "echo skipped",
6262
"build:samples": "echo skipped.",
6363
"build:test": "echo skipped",
64-
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
64+
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
6565
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
6666
"execute:samples": "echo skipped",
6767
"extract-api": "dev-tool run extract-api",
68-
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
68+
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
6969
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
7070
"integration-test:browser": "echo skipped",
7171
"integration-test:node": "dev-tool run test:vitest --esm",
72-
"lint": "dev-tool run vendored eslint README.md package.json api-extractor.json src test",
73-
"lint:fix": "dev-tool run vendored eslint README.md package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
74-
"minify": "echo skipped",
72+
"lint": "echo skipped",
73+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
7574
"pack": "npm pack 2>&1",
7675
"prepack": "npm run build",
7776
"test": "npm run integration-test",
@@ -92,16 +91,9 @@
9291
]
9392
},
9493
"autoPublish": true,
94+
"browser": "./dist/browser/index.js",
95+
"react-native": "./dist/react-native/index.js",
9596
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs",
96-
"//sampleConfiguration": {
97-
"productName": "",
98-
"productSlugs": [
99-
"azure"
100-
],
101-
"disableDocsMs": true,
102-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview"
103-
},
104-
"type": "module",
10597
"tshy": {
10698
"project": "./tsconfig.src.json",
10799
"exports": {
@@ -118,7 +110,6 @@
118110
],
119111
"selfLink": false
120112
},
121-
"browser": "./dist/browser/index.js",
122113
"exports": {
123114
"./package.json": "./package.json",
124115
".": {
@@ -139,6 +130,5 @@
139130
"default": "./dist/commonjs/index.js"
140131
}
141132
}
142-
},
143-
"react-native": "./dist/react-native/index.js"
144-
}
133+
}
134+
}

0 commit comments

Comments
 (0)