Skip to content

Commit e8d2c07

Browse files
author
SDKAuto
committed
CodeGen from PR 34320 in Azure/azure-rest-api-specs
Merge 84761fc2eddf086f6211d5b1b28e95c88007fe05 into 761d8b58e465b26eddb8ad70dda3cde7b4228bdf
1 parent 26158f3 commit e8d2c07

30 files changed

+2859
-2565
lines changed

sdk/notificationhubs/arm-notificationhubs/CHANGELOG.md

Lines changed: 177 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,184 @@
11
# Release History
2-
3-
## 3.0.0-beta.2 (Unreleased)
4-
2+
3+
## 3.0.0-beta.2 (2025-05-09)
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 PrivateEndpointConnectionProperties
33+
- Added Interface PrivateEndpointConnectionResource
34+
- Added Interface PrivateEndpointConnectionResourceListResult
35+
- Added Interface PrivateEndpointConnectionsDeleteHeaders
36+
- Added Interface PrivateEndpointConnectionsDeleteOptionalParams
37+
- Added Interface PrivateEndpointConnectionsGetGroupIdOptionalParams
38+
- Added Interface PrivateEndpointConnectionsGetOptionalParams
39+
- Added Interface PrivateEndpointConnectionsListGroupIdsNextOptionalParams
40+
- Added Interface PrivateEndpointConnectionsListGroupIdsOptionalParams
41+
- Added Interface PrivateEndpointConnectionsListNextOptionalParams
42+
- Added Interface PrivateEndpointConnectionsListOptionalParams
43+
- Added Interface PrivateEndpointConnectionsUpdateHeaders
44+
- Added Interface PrivateEndpointConnectionsUpdateOptionalParams
45+
- Added Interface PrivateLinkResource
46+
- Added Interface PrivateLinkResourceListResult
47+
- Added Interface PrivateLinkResourceProperties
48+
- Added Interface ProxyResource
49+
- Added Interface PublicInternetAuthorizationRule
50+
- Added Interface RegistrationResult
51+
- Added Interface RemotePrivateEndpointConnection
52+
- Added Interface RemotePrivateLinkServiceConnectionState
53+
- Added Interface ServiceSpecification
54+
- Added Interface SystemData
55+
- Added Interface TrackedResource
56+
- Added Interface XiaomiCredential
57+
- Added Type Alias CreatedByType
58+
- Added Type Alias NamespacesGetPnsCredentialsResponse
59+
- Added Type Alias NamespaceStatus
60+
- Added Type Alias NamespacesUpdateResponse
61+
- Added Type Alias NotificationHubsUpdateResponse
62+
- Added Type Alias OperationProvisioningState
63+
- Added Type Alias PolicyKeyType
64+
- Added Type Alias PrivateEndpointConnectionProvisioningState
65+
- Added Type Alias PrivateEndpointConnectionsDeleteResponse
66+
- Added Type Alias PrivateEndpointConnectionsGetGroupIdResponse
67+
- Added Type Alias PrivateEndpointConnectionsGetResponse
68+
- Added Type Alias PrivateEndpointConnectionsListGroupIdsNextResponse
69+
- Added Type Alias PrivateEndpointConnectionsListGroupIdsResponse
70+
- Added Type Alias PrivateEndpointConnectionsListNextResponse
71+
- Added Type Alias PrivateEndpointConnectionsListResponse
72+
- Added Type Alias PrivateEndpointConnectionsUpdateResponse
73+
- Added Type Alias PrivateLinkConnectionStatus
74+
- Added Type Alias PublicNetworkAccess
75+
- Added Type Alias ReplicationRegion
76+
- Added Type Alias ZoneRedundancyPreference
77+
- Interface CheckAvailabilityResult has a new optional parameter location
78+
- Interface CheckAvailabilityResult has a new optional parameter sku
79+
- Interface CheckAvailabilityResult has a new optional parameter tags
80+
- Interface DebugSendResponse has a new optional parameter location
81+
- Interface DebugSendResponse has a new optional parameter tags
82+
- Interface ErrorResponse has a new optional parameter error
83+
- Interface NamespacePatchParameters has a new optional parameter properties
84+
- Interface NamespaceResource has a new optional parameter networkAcls
85+
- Interface NamespaceResource has a new optional parameter pnsCredentials
86+
- Interface NamespaceResource has a new optional parameter privateEndpointConnections
87+
- Interface NamespaceResource has a new optional parameter publicNetworkAccess
88+
- Interface NamespaceResource has a new optional parameter replicationRegion
89+
- Interface NamespaceResource has a new optional parameter zoneRedundancy
90+
- Interface NamespacesCreateOrUpdateOptionalParams has a new optional parameter resumeFrom
91+
- Interface NamespacesCreateOrUpdateOptionalParams has a new optional parameter updateIntervalInMs
92+
- Interface NamespacesListAllOptionalParams has a new optional parameter skipToken
93+
- Interface NamespacesListAllOptionalParams has a new optional parameter top
94+
- Interface NamespacesListOptionalParams has a new optional parameter skipToken
95+
- Interface NamespacesListOptionalParams has a new optional parameter top
96+
- Interface NotificationHubPatchParameters has a new optional parameter browserCredential
97+
- Interface NotificationHubPatchParameters has a new optional parameter dailyMaxActiveDevices
98+
- Interface NotificationHubPatchParameters has a new optional parameter fcmV1Credential
99+
- Interface NotificationHubPatchParameters has a new optional parameter name
100+
- Interface NotificationHubPatchParameters has a new optional parameter sku
101+
- Interface NotificationHubPatchParameters has a new optional parameter tags
102+
- Interface NotificationHubPatchParameters has a new optional parameter xiaomiCredential
103+
- Interface NotificationHubResource has a new optional parameter browserCredential
104+
- Interface NotificationHubResource has a new optional parameter dailyMaxActiveDevices
105+
- Interface NotificationHubResource has a new optional parameter fcmV1Credential
106+
- Interface NotificationHubResource has a new optional parameter sku
107+
- Interface NotificationHubResource has a new optional parameter xiaomiCredential
108+
- Interface NotificationHubsListOptionalParams has a new optional parameter skipToken
109+
- Interface NotificationHubsListOptionalParams has a new optional parameter top
110+
- Interface Operation has a new optional parameter isDataAction
111+
- Interface Operation has a new optional parameter properties
112+
- Interface OperationDisplay has a new optional parameter description
113+
- Interface PnsCredentialsResource has a new optional parameter browserCredential
114+
- Interface PnsCredentialsResource has a new optional parameter fcmV1Credential
115+
- Interface PnsCredentialsResource has a new optional parameter location
116+
- Interface PnsCredentialsResource has a new optional parameter tags
117+
- Interface PnsCredentialsResource has a new optional parameter xiaomiCredential
118+
- Interface Resource has a new optional parameter systemData
119+
- Interface SharedAccessAuthorizationRuleResource has a new optional parameter location
120+
- Interface SharedAccessAuthorizationRuleResource has a new optional parameter tags
121+
- Interface WnsCredential has a new optional parameter certificateKey
122+
- Interface WnsCredential has a new optional parameter wnsCertificate
123+
- Added Enum KnownAccessRights
124+
- Added Enum KnownCreatedByType
125+
- Added Enum KnownNamespaceStatus
126+
- Added Enum KnownNamespaceType
127+
- Added Enum KnownOperationProvisioningState
128+
- Added Enum KnownPolicyKeyType
129+
- Added Enum KnownPrivateEndpointConnectionProvisioningState
130+
- Added Enum KnownPrivateLinkConnectionStatus
131+
- Added Enum KnownPublicNetworkAccess
132+
- Added Enum KnownReplicationRegion
133+
- Added Enum KnownZoneRedundancyPreference
10134

11-
### Other Changes
135+
### Breaking Changes
12136

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

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

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

212-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
381+
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": "667754246f5134bee75359ea2cd11a3c3f52d511",
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: 27 additions & 27 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.4",
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.20.0",
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",
38-
"@azure/logger": "^1.1.4",
37+
"@azure/identity": "^4.9.1",
38+
"@azure/logger": "^1.2.0",
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
},
@@ -57,21 +57,30 @@
5757
],
5858
"scripts": {
5959
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
60+
"build:browser": "echo skipped",
61+
"build:node": "echo skipped",
6062
"build:samples": "echo skipped.",
61-
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
63+
"build:test": "echo skipped",
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}\" ",
6265
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
6366
"execute:samples": "echo skipped",
6467
"extract-api": "dev-tool run extract-api",
65-
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
66-
"lint": "dev-tool run vendored eslint README.md package.json api-extractor.json src test",
67-
"lint:fix": "dev-tool run vendored eslint README.md package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
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}\" ",
69+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
70+
"integration-test:browser": "echo skipped",
71+
"integration-test:node": "dev-tool run test:vitest --esm",
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",
6874
"pack": "npm pack 2>&1",
6975
"prepack": "npm run build",
70-
"test": "npm run test:node && npm run test:browser",
76+
"test": "npm run integration-test",
7177
"test:browser": "echo skipped",
7278
"test:node": "dev-tool run test:vitest",
73-
"test:node:esm": "dev-tool run test:vitest --esm",
74-
"update-snippets": "dev-tool run update-snippets"
79+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
80+
"unit-test:browser": "echo skipped",
81+
"unit-test:node": "dev-tool run test:vitest",
82+
"update-snippets": "dev-tool run update-snippets",
83+
"test:node:esm": "dev-tool run test:vitest --esm"
7584
},
7685
"sideEffects": false,
7786
"//metadata": {
@@ -83,16 +92,9 @@
8392
]
8493
},
8594
"autoPublish": true,
95+
"browser": "./dist/browser/index.js",
96+
"react-native": "./dist/react-native/index.js",
8697
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/notificationhubs/arm-notificationhubs",
87-
"//sampleConfiguration": {
88-
"productName": "",
89-
"productSlugs": [
90-
"azure"
91-
],
92-
"disableDocsMs": true,
93-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-notificationhubs?view=azure-node-preview"
94-
},
95-
"type": "module",
9698
"tshy": {
9799
"project": "./tsconfig.src.json",
98100
"exports": {
@@ -109,7 +111,6 @@
109111
],
110112
"selfLink": false
111113
},
112-
"browser": "./dist/browser/index.js",
113114
"exports": {
114115
"./package.json": "./package.json",
115116
".": {
@@ -130,6 +131,5 @@
130131
"default": "./dist/commonjs/index.js"
131132
}
132133
}
133-
},
134-
"react-native": "./dist/react-native/index.js"
135-
}
134+
}
135+
}

0 commit comments

Comments
 (0)