Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-webpubsub] Signalr 2023 08 01 preview #6358

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 9 additions & 15 deletions sdk/web-pubsub/arm-webpubsub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
# Release History

## 2.0.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 2.0.0-beta.1 (2023-07-11)

## 2.0.0-beta.2 (2023-08-18)

**Features**

- Added operation group WebPubSubReplicas
- Added operation WebPubSub.listReplicaSkus
- Added Interface IPRule
- Added Interface Replica
- Added Interface ReplicaList
- Added Interface WebPubSubListReplicaSkusOptionalParams
Expand All @@ -41,17 +32,20 @@
- Added Type Alias WebPubSubReplicasUpdateResponse
- Added Type Alias WebPubSubRestartResponse
- Interface Resource has a new optional parameter systemData
- Interface WebPubSubNetworkACLs has a new optional parameter ipRules
- Interface WebPubSubResource has a new optional parameter kind
- Interface WebPubSubResource has a new optional parameter regionEndpointEnabled
- Interface WebPubSubResource has a new optional parameter resourceStopped
- Added Enum KnownServiceKind

**Breaking Changes**

- Interface CustomCertificate no longer has parameter systemData
- Interface CustomDomain no longer has parameter systemData
- Interface PrivateEndpointConnection no longer has parameter systemData
- Interface SharedPrivateLinkResource no longer has parameter systemData
- Interface WebPubSubHub no longer has parameter systemData
- Interface WebPubSubResource no longer has parameter systemData

**Breaking Changes**

- Parameter location of interface TrackedResource is now required


Expand Down
8 changes: 4 additions & 4 deletions sdk/web-pubsub/arm-webpubsub/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "9975d3476c05bcc6bd9535ad3dfb564e6a168fa5",
"commit": "e4f05ae0d0ec8fd2258803174f88602cd6ad31cb",
"readme": "specification/webpubsub/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --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\\webpubsub\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true",
"autorest_command": "autorest --version=3.9.3 --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/webpubsub/resource-manager/readme.md --use=@autorest/typescript@^6.0.4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/typescript@6.0.5"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
"use": "@autorest/typescript@^6.0.4"
}
17 changes: 5 additions & 12 deletions sdk/web-pubsub/arm-webpubsub/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.3",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand Down Expand Up @@ -48,6 +48,7 @@
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
Expand Down Expand Up @@ -111,13 +112,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub"
}
11 changes: 11 additions & 0 deletions sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@ export interface EventNameFilter extends EventListenerFilter {
// @public
export function getContinuationToken(page: unknown): string | undefined;

// @public
export interface IPRule {
action?: ACLAction;
value?: string;
}

// @public
type KeyType_2 = string;
export { KeyType_2 as KeyType }
Expand Down Expand Up @@ -409,6 +415,8 @@ export interface RegenerateKeyParameters {
// @public
export interface Replica extends TrackedResource {
readonly provisioningState?: ProvisioningState;
regionEndpointEnabled?: string;
resourceStopped?: string;
sku?: ResourceSku;
}

Expand Down Expand Up @@ -890,6 +898,7 @@ export interface WebPubSubManagementClientOptionalParams extends coreClient.Serv
// @public
export interface WebPubSubNetworkACLs {
defaultAction?: ACLAction;
ipRules?: IPRule[];
privateEndpoints?: PrivateEndpointACL[];
publicNetwork?: NetworkACL;
}
Expand Down Expand Up @@ -1066,7 +1075,9 @@ export interface WebPubSubResource extends TrackedResource {
readonly provisioningState?: ProvisioningState;
publicNetworkAccess?: string;
readonly publicPort?: number;
regionEndpointEnabled?: string;
resourceLogConfiguration?: ResourceLogConfiguration;
resourceStopped?: string;
readonly serverPort?: number;
readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[];
sku?: ResourceSku;
Expand Down
33 changes: 33 additions & 0 deletions sdk/web-pubsub/arm-webpubsub/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ export interface WebPubSubNetworkACLs {
publicNetwork?: NetworkACL;
/** ACLs for requests from private endpoints */
privateEndpoints?: PrivateEndpointACL[];
/** IP rules for filtering public traffic */
ipRules?: IPRule[];
}

/** Network ACL */
Expand All @@ -386,6 +388,14 @@ export interface NetworkACL {
deny?: WebPubSubRequestType[];
}

/** An IP rule */
export interface IPRule {
/** An IP or CIDR or ServiceTag */
value?: string;
/** Azure Networking ACL Action. */
action?: ACLAction;
}

/** A class represent managed identities used for request and response */
export interface ManagedIdentity {
/** Represents the identity type: systemAssigned, userAssigned, None */
Expand Down Expand Up @@ -880,6 +890,18 @@ export interface WebPubSubResource extends TrackedResource {
* When set as true, connection with AuthType=aad won't work.
*/
disableAadAuth?: boolean;
/**
* Enable or disable the regional endpoint. Default to "Enabled".
* When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
* This property is replica specific. Disable the regional endpoint without replica is not allowed.
*/
regionEndpointEnabled?: string;
/**
* Stop or start the resource. Default to "false".
* When it's true, the data plane of the resource is shutdown.
* When it's false, the data plane of the resource is started.
*/
resourceStopped?: string;
}

/** A class represent a replica resource. */
Expand All @@ -891,6 +913,17 @@ export interface Replica extends TrackedResource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ProvisioningState;
/**
* Enable or disable the regional endpoint. Default to "Enabled".
* When it's Disabled, new connections will not be routed to this endpoint, however existing connections will not be affected.
*/
regionEndpointEnabled?: string;
/**
* Stop or start the resource. Default to "false".
* When it's true, the data plane of the resource is shutdown.
* When it's false, the data plane of the resource is started.
*/
resourceStopped?: string;
}

/** Defines headers for WebPubSub_update operation. */
Expand Down
64 changes: 64 additions & 0 deletions sdk/web-pubsub/arm-webpubsub/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,21 @@ export const WebPubSubNetworkACLs: coreClient.CompositeMapper = {
}
}
}
},
ipRules: {
constraints: {
MaxItems: 30
},
serializedName: "ipRules",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "IPRule"
}
}
}
}
}
}
Expand Down Expand Up @@ -874,6 +889,27 @@ export const NetworkACL: coreClient.CompositeMapper = {
}
};

export const IPRule: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "IPRule",
modelProperties: {
value: {
serializedName: "value",
type: {
name: "String"
}
},
action: {
serializedName: "action",
type: {
name: "String"
}
}
}
}
};

export const ManagedIdentity: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down Expand Up @@ -2008,6 +2044,20 @@ export const WebPubSubResource: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
regionEndpointEnabled: {
defaultValue: "Enabled",
serializedName: "properties.regionEndpointEnabled",
type: {
name: "String"
}
},
resourceStopped: {
defaultValue: "false",
serializedName: "properties.resourceStopped",
type: {
name: "String"
}
}
}
}
Expand All @@ -2032,6 +2082,20 @@ export const Replica: coreClient.CompositeMapper = {
type: {
name: "String"
}
},
regionEndpointEnabled: {
defaultValue: "Enabled",
serializedName: "properties.regionEndpointEnabled",
type: {
name: "String"
}
},
resourceStopped: {
defaultValue: "false",
serializedName: "properties.resourceStopped",
type: {
name: "String"
}
}
}
}
Expand Down
Loading