From 8a5be400c7e86540f5f6f32cd96c9b5c44ae9cfd Mon Sep 17 00:00:00 2001 From: colawwj Date: Thu, 17 Jun 2021 14:42:20 +0800 Subject: [PATCH 1/3] arm-eventgrid-release --- sdk/eventgrid/arm-eventgrid/README.md | 106 ++--- sdk/eventgrid/arm-eventgrid/package.json | 9 +- .../src/eventGridManagementClient.ts | 10 +- .../src/eventGridManagementClientContext.ts | 16 +- .../src/models/domainTopicsMappers.ts | 1 - .../src/models/domainsMappers.ts | 1 - .../src/models/eventChannelsMappers.ts | 1 - .../src/models/eventSubscriptionsMappers.ts | 1 - .../src/models/extensionTopicsMappers.ts | 1 - .../arm-eventgrid/src/models/index.ts | 415 ++++++++++-------- .../arm-eventgrid/src/models/mappers.ts | 377 +++++++++------- .../src/models/partnerNamespacesMappers.ts | 1 - .../src/models/partnerRegistrationsMappers.ts | 1 - .../partnerTopicEventSubscriptionsMappers.ts | 1 - .../src/models/partnerTopicsMappers.ts | 1 - .../privateEndpointConnectionsMappers.ts | 1 - .../systemTopicEventSubscriptionsMappers.ts | 1 - .../src/models/systemTopicsMappers.ts | 1 - .../src/models/topicTypesMappers.ts | 1 - .../arm-eventgrid/src/models/topicsMappers.ts | 1 - .../src/operations/domainTopics.ts | 1 + .../arm-eventgrid/src/operations/domains.ts | 1 + .../src/operations/partnerRegistrations.ts | 45 -- .../operations/privateEndpointConnections.ts | 94 ++-- .../src/operations/privateLinkResources.ts | 50 ++- 25 files changed, 624 insertions(+), 514 deletions(-) diff --git a/sdk/eventgrid/arm-eventgrid/README.md b/sdk/eventgrid/arm-eventgrid/README.md index 9a71e7ac5a15..cb83abecbb17 100644 --- a/sdk/eventgrid/arm-eventgrid/README.md +++ b/sdk/eventgrid/arm-eventgrid/README.md @@ -1,93 +1,101 @@ ## Azure EventGridManagementClient SDK for JavaScript -This package contains an isomorphic SDK for EventGridManagementClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for EventGridManagementClient. ### Currently supported environments -- Node.js version 6.x.x or higher -- Browser JavaScript +- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- Latest versions of Safari, Chrome, Edge and Firefox. -### How to Install +### Prerequisites +You must have an [Azure subscription](https://azure.microsoft.com/free/). + +### How to install + +To use this SDK in your project, you will need to install two packages. +- `@azure/arm-eventgrid` that contains the client. +- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory. + +Install both packages using the below command: ```bash -npm install @azure/arm-eventgrid +npm install --save @azure/arm-eventgrid @azure/identity ``` +> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. +If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. ### How to use -#### nodejs - client creation and get domains as an example written in TypeScript. +- If you are writing a client side browser application, + - Follow the instructions in the section on Authenticating client side browser applications in [Azure Identity examples](https://aka.ms/azsdk/js/identity/examples) to register your application in the Microsoft identity platform and set the right permissions. + - Copy the client ID and tenant ID from the Overview section of your app registration in Azure portal and use it in the browser sample below. +- If you are writing a server side application, + - [Select a credential from `@azure/identity` based on the authentication method of your choice](https://aka.ms/azsdk/js/identity/examples) + - Complete the set up steps required by the credential if any. + - Use the credential you picked in the place of `DefaultAzureCredential` in the Node.js sample below. -##### Install @azure/ms-rest-nodeauth - -- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. -```bash -npm install @azure/ms-rest-nodeauth@"^3.0.0" -``` +In the below samples, we pass the credential and the Azure subscription id to instantiate the client. +Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. +#### nodejs - Authentication, client creation, and get domains as an example written in JavaScript. ##### Sample code -While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package -```typescript -const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +```javascript +const { DefaultAzureCredential } = require("@azure/identity"); const { EventGridManagementClient } = require("@azure/arm-eventgrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new EventGridManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const domainName = "testdomainName"; - client.domains.get(resourceGroupName, domainName).then((result) => { - console.log("The result is:"); - console.log(result); - }); +// Use `DefaultAzureCredential` or any other credential of your choice based on https://aka.ms/azsdk/js/identity/examples +// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. +const creds = new DefaultAzureCredential(); +const client = new EventGridManagementClient(creds, subscriptionId); +const resourceGroupName = "testresourceGroupName"; +const domainName = "testdomainName"; +client.domains.get(resourceGroupName, domainName).then((result) => { + console.log("The result is:"); + console.log(result); }).catch((err) => { + console.log("An error occurred:"); console.error(err); }); ``` -#### browser - Authentication, client creation and get domains as an example written in JavaScript. +#### browser - Authentication, client creation, and get domains as an example written in JavaScript. -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` +In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser. + - See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser. + - Note down the client Id from the previous step and use it in the browser sample below. ##### Sample code -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - - index.html + ```html @azure/arm-eventgrid sample - - + diff --git a/sdk/eventgrid/arm-eventgrid/package.json b/sdk/eventgrid/arm-eventgrid/package.json index e6df49fe6e3f..525357de3541 100644 --- a/sdk/eventgrid/arm-eventgrid/package.json +++ b/sdk/eventgrid/arm-eventgrid/package.json @@ -2,10 +2,11 @@ "name": "@azure/arm-eventgrid", "author": "Microsoft Corporation", "description": "EventGridManagementClient Library with typescript type definitions for node.js and browser.", - "version": "10.0.0", + "version": "11.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^2.0.1", - "@azure/ms-rest-js": "^2.0.4", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", + "@azure/core-auth": "^1.1.4", "tslib": "^1.10.0" }, "keywords": [ @@ -20,7 +21,7 @@ "module": "./esm/eventGridManagementClient.js", "types": "./esm/eventGridManagementClient.d.ts", "devDependencies": { - "typescript": "^3.5.3", + "typescript": "^3.6.0", "rollup": "^1.18.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", diff --git a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts index e8f75e082283..a94dd9bbe5b6 100644 --- a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts +++ b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts @@ -8,6 +8,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import { TokenCredential } from "@azure/core-auth"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; import * as operations from "./operations"; @@ -35,12 +36,17 @@ class EventGridManagementClient extends EventGridManagementClientContext { /** * Initializes a new instance of the EventGridManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.EventGridManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.EventGridManagementClientOptions) { super(credentials, subscriptionId, options); this.domains = new operations.Domains(this); this.domainTopics = new operations.DomainTopics(this); diff --git a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts index 1a68b4d06cc4..bb8fd2444771 100644 --- a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts +++ b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts @@ -10,23 +10,29 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-eventgrid"; -const packageVersion = "10.0.0"; +const packageVersion = "11.0.0"; export class EventGridManagementClientContext extends msRestAzure.AzureServiceClient { - credentials: msRest.ServiceClientCredentials; + credentials: msRest.ServiceClientCredentials | TokenCredential; subscriptionId: string; apiVersion?: string; /** * Initializes a new instance of the EventGridManagementClient class. - * @param credentials Credentials needed for the client to connect to Azure. + * @param credentials Credentials needed for the client to connect to Azure. Credentials + * implementing the TokenCredential interface from the @azure/identity package are recommended. For + * more information about these credentials, see + * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the + * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and + * @azure/ms-rest-browserauth are also supported. * @param subscriptionId Subscription credentials that uniquely identify a Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. * @param [options] The parameter options */ - constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.EventGridManagementClientOptions) { + constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.EventGridManagementClientOptions) { if (credentials == undefined) { throw new Error('\'credentials\' cannot be null.'); } @@ -44,7 +50,7 @@ export class EventGridManagementClientContext extends msRestAzure.AzureServiceCl super(credentials, options); - this.apiVersion = '2020-10-15-preview'; + this.apiVersion = '2021-06-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts index 219e6f9e971b..9a88c5f158ae 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts @@ -54,7 +54,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts index 5bafd97475ad..701d7d83192e 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts @@ -57,7 +57,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts index b78f4a31a6d1..528d8700f8bd 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts @@ -54,7 +54,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts index f0ff5301de8e..62a9a4d4958e 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts @@ -57,7 +57,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts index 7337a3674a2c..3c5419606cdd 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts @@ -53,7 +53,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/index.ts b/sdk/eventgrid/arm-eventgrid/src/models/index.ts index d05f2b28145b..a5dab9d3abfd 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/index.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/index.ts @@ -122,7 +122,7 @@ export interface InboundIpRule { export interface ResourceSku { /** * The Sku name of the resource. The possible values are: Basic or Premium. Possible values - * include: 'Basic', 'Premium' + * include: 'Basic', 'Premium'. Default value: 'Basic'. */ name?: Sku; } @@ -249,28 +249,61 @@ export interface TrackedResource extends Resource { tags?: { [propertyName: string]: string }; } +/** + * Metadata pertaining to creation and last modification of the resource. + */ +export interface SystemData { + /** + * The identity that created the resource. + */ + createdBy?: string; + /** + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + createdByType?: CreatedByType; + /** + * The timestamp of resource creation (UTC). + */ + createdAt?: Date; + /** + * The identity that last modified the resource. + */ + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + /** * EventGrid Domain. */ export interface Domain extends TrackedResource { /** * List of private endpoint connections. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - privateEndpointConnections?: PrivateEndpointConnection[]; + readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** - * Provisioning state of the domain. Possible values include: 'Creating', 'Updating', 'Deleting', - * 'Succeeded', 'Canceled', 'Failed' + * Provisioning state of the Event Grid Domain Resource. Possible values include: 'Creating', + * 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: DomainProvisioningState; /** - * Endpoint for the domain. + * Endpoint for the Event Grid Domain Resource which is used for publishing the events. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly endpoint?: string; /** * This determines the format that Event Grid should expect for incoming events published to the - * domain. Possible values include: 'EventGridSchema', 'CustomEventSchema', + * Event Grid Domain Resource. Possible values include: 'EventGridSchema', 'CustomEventSchema', * 'CloudEventSchemaV1_0'. Default value: 'EventGridSchema'. */ inputSchema?: InputSchema; @@ -279,7 +312,7 @@ export interface Domain extends TrackedResource { */ inputSchemaMapping?: InputSchemaMappingUnion; /** - * Metric resource id for the domain. + * Metric resource id for the Event Grid Domain Resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly metricResourceId?: string; @@ -287,7 +320,7 @@ export interface Domain extends TrackedResource { * This determines if traffic is allowed over public network. By default it is enabled. * You can further restrict to specific IPs by configuring . Possible values include: 'Enabled', 'Disabled' + * />. Possible values include: 'Enabled', 'Disabled'. Default value: 'Enabled'. */ publicNetworkAccess?: PublicNetworkAccess; /** @@ -296,13 +329,56 @@ export interface Domain extends TrackedResource { */ inboundIpRules?: InboundIpRule[]; /** - * The Sku pricing tier for the domain. + * This boolean is used to enable or disable local auth. Default value is false. When the + * property is set to true, only AAD token will be used to authenticate if user is allowed to + * publish to the domain. Default value: false. + */ + disableLocalAuth?: boolean; + /** + * This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics + * associated with this Event Grid Domain resource. + * In this context, creation of domain topic can be auto-managed (when true) or self-managed + * (when false). The default value for this property is true. + * When this property is null or set to true, Event Grid is responsible of automatically creating + * the domain topic when the first event subscription is + * created at the scope of the domain topic. If this property is set to false, then creating the + * first event subscription will require creating a domain topic + * by the user. The self-management mode can be used if the user wants full control of when the + * domain topic is created, while auto-managed mode provides the + * flexibility to perform less operations and manage fewer resources by the user. Also, note that + * in auto-managed creation mode, user is allowed to create the + * domain topic on demand if needed. Default value: true. + */ + autoCreateTopicWithFirstSubscription?: boolean; + /** + * This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics + * associated with this Event Grid Domain resource. + * In this context, deletion of domain topic can be auto-managed (when true) or self-managed + * (when false). The default value for this property is true. + * When this property is set to true, Event Grid is responsible of automatically deleting the + * domain topic when the last event subscription at the scope + * of the domain topic is deleted. If this property is set to false, then the user needs to + * manually delete the domain topic when it is no longer needed + * (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The + * self-management mode can be used if the user wants full + * control of when the domain topic needs to be deleted, while auto-managed mode provides the + * flexibility to perform less operations and manage fewer + * resources by the user. Default value: true. + */ + autoDeleteTopicWithLastSubscription?: boolean; + /** + * The Sku pricing tier for the Event Grid Domain resource. */ sku?: ResourceSku; /** - * Identity information for the resource. + * Identity information for the Event Grid Domain resource. */ identity?: IdentityInfo; + /** + * The system metadata relating to the Event Grid Domain resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -325,6 +401,44 @@ export interface DomainUpdateParameters { * considered only if PublicNetworkAccess is enabled. */ inboundIpRules?: InboundIpRule[]; + /** + * This boolean is used to enable or disable local auth. Default value is false. When the + * property is set to true, only AAD token will be used to authenticate if user is allowed to + * publish to the domain. + */ + disableLocalAuth?: boolean; + /** + * This Boolean is used to specify the creation mechanism for 'all' the Event Grid Domain Topics + * associated with this Event Grid Domain resource. + * In this context, creation of domain topic can be auto-managed (when true) or self-managed + * (when false). The default value for this property is true. + * When this property is null or set to true, Event Grid is responsible of automatically creating + * the domain topic when the first event subscription is + * created at the scope of the domain topic. If this property is set to false, then creating the + * first event subscription will require creating a domain topic + * by the user. The self-management mode can be used if the user wants full control of when the + * domain topic is created, while auto-managed mode provides the + * flexibility to perform less operations and manage fewer resources by the user. Also, note that + * in auto-managed creation mode, user is allowed to create the + * domain topic on demand if needed. + */ + autoCreateTopicWithFirstSubscription?: boolean; + /** + * This Boolean is used to specify the deletion mechanism for 'all' the Event Grid Domain Topics + * associated with this Event Grid Domain resource. + * In this context, deletion of domain topic can be auto-managed (when true) or self-managed + * (when false). The default value for this property is true. + * When this property is set to true, Event Grid is responsible of automatically deleting the + * domain topic when the last event subscription at the scope + * of the domain topic is deleted. If this property is set to false, then the user needs to + * manually delete the domain topic when it is no longer needed + * (e.g., when last event subscription is deleted and the resource needs to be cleaned up). The + * self-management mode can be used if the user wants full + * control of when the domain topic needs to be deleted, while auto-managed mode provides the + * flexibility to perform less operations and manage fewer + * resources by the user. + */ + autoDeleteTopicWithLastSubscription?: boolean; /** * Identity information for the resource. */ @@ -366,8 +480,14 @@ export interface DomainTopic extends Resource { /** * Provisioning state of the domain topic. Possible values include: 'Creating', 'Updating', * 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - provisioningState?: DomainTopicProvisioningState; + readonly provisioningState?: DomainTopicProvisioningState; + /** + * The system metadata relating to Domain Topic resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -429,7 +549,7 @@ export interface AdvancedFilter { export interface EventChannelFilter { /** * Allows advanced filters to be evaluated against an array of values instead of expecting a - * singular value. + * singular value. The default value is either false or null. Default value: false. */ enableAdvancedFilteringOnArrays?: boolean; /** @@ -772,38 +892,6 @@ export interface IsNotNullAdvancedFilter { key?: string; } -/** - * Metadata pertaining to creation and last modification of the resource. - */ -export interface SystemData { - /** - * The identity that created the resource. - */ - createdBy?: string; - /** - * The type of identity that created the resource. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' - */ - createdByType?: CreatedByType; - /** - * The timestamp of resource creation (UTC). - */ - createdAt?: Date; - /** - * The identity that last modified the resource. - */ - lastModifiedBy?: string; - /** - * The type of identity that last modified the resource. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' - */ - lastModifiedByType?: CreatedByType; - /** - * The timestamp of resource last modification (UTC) - */ - lastModifiedAt?: Date; -} - /** * Event Channel. */ @@ -847,7 +935,7 @@ export interface EventChannel extends Resource { */ partnerTopicFriendlyDescription?: string; /** - * The system metadata relating to this resource. + * The system metadata relating to Event Channel resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; @@ -942,11 +1030,11 @@ export interface EventSubscriptionFilter { */ export interface RetryPolicy { /** - * Maximum number of delivery retry attempts for events. + * Maximum number of delivery retry attempts for events. Default value: 30. */ maxDeliveryAttempts?: number; /** - * Time To Live (in minutes) for events. + * Time To Live (in minutes) for events. Default value: 1440. */ eventTimeToLiveInMinutes?: number; } @@ -1081,11 +1169,11 @@ export interface WebHookEventSubscriptionDestination { */ readonly endpointBaseUrl?: string; /** - * Maximum number of events per batch. + * Maximum number of events per batch. Default value: 1. */ maxEventsPerBatch?: number; /** - * Preferred batch size in Kilobytes. + * Preferred batch size in Kilobytes. Default value: 64. */ preferredBatchSizeInKilobytes?: number; /** @@ -1218,11 +1306,11 @@ export interface AzureFunctionEventSubscriptionDestination { */ resourceId?: string; /** - * Maximum number of events per batch. + * Maximum number of events per batch. Default value: 1. */ maxEventsPerBatch?: number; /** - * Preferred batch size in Kilobytes. + * Preferred batch size in Kilobytes. Default value: 64. */ preferredBatchSizeInKilobytes?: number; /** @@ -1274,7 +1362,8 @@ export interface EventSubscription extends Resource { expirationTimeUtc?: Date; /** * The event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0' + * 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0'. Default value: + * 'EventGridSchema'. */ eventDeliverySchema?: EventDeliverySchema; /** @@ -1297,7 +1386,7 @@ export interface EventSubscription extends Resource { */ deadLetterWithResourceIdentity?: DeadLetterWithResourceIdentity; /** - * The system metadata relating to this resource. + * The system metadata relating to Event Subscription resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; @@ -1417,6 +1506,10 @@ export interface Operation { * Origin of the operation */ origin?: string; + /** + * This Boolean is used to determine if the operation is a data plane action or not. + */ + isDataAction?: boolean; /** * Properties of the operation */ @@ -1427,6 +1520,10 @@ export interface Operation { * EventGrid Partner Namespace. */ export interface PartnerNamespace extends TrackedResource { + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** * Provisioning state of the partner namespace. Possible values include: 'Creating', 'Updating', * 'Deleting', 'Succeeded', 'Canceled', 'Failed' @@ -1445,7 +1542,25 @@ export interface PartnerNamespace extends TrackedResource { */ readonly endpoint?: string; /** - * The system metadata relating to this resource. + * This determines if traffic is allowed over public network. By default it is enabled. + * You can further restrict to specific IPs by configuring . Possible values include: 'Enabled', 'Disabled'. Default value: 'Enabled'. + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are + * considered only if PublicNetworkAccess is enabled. + */ + inboundIpRules?: InboundIpRule[]; + /** + * This boolean is used to enable or disable local auth. Default value is false. When the + * property is set to true, only AAD token will be used to authenticate if user is allowed to + * publish to the partner namespace. Default value: false. + */ + disableLocalAuth?: boolean; + /** + * The system metadata relating to Partner Namespace resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; @@ -1459,6 +1574,24 @@ export interface PartnerNamespaceUpdateParameters { * Tags of the partner namespace. */ tags?: { [propertyName: string]: string }; + /** + * This determines if traffic is allowed over public network. By default it is enabled. + * You can further restrict to specific IPs by configuring . Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are + * considered only if PublicNetworkAccess is enabled. + */ + inboundIpRules?: InboundIpRule[]; + /** + * This boolean is used to enable or disable local auth. Default value is false. When the + * property is set to true, only AAD token will be used to authenticate if user is allowed to + * publish to the partner namespace. + */ + disableLocalAuth?: boolean; } /** @@ -1560,7 +1693,7 @@ export interface PartnerRegistration extends TrackedResource { */ authorizedAzureSubscriptionIds?: string[]; /** - * The system metadata relating to this resource. + * The system metadata relating to Partner Registration resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; @@ -1626,28 +1759,18 @@ export interface EventType extends Resource { isInDefaultSet?: boolean; } -/** - * Result of the List Partner Registration Event Types operation. - */ -export interface PartnerRegistrationEventTypesListResult { - /** - * A collection of partner registration event types. - */ - value?: EventType[]; - /** - * A link for the next page of partner registration event types. - */ - nextLink?: string; -} - /** * Properties of the Partner Topic update. */ export interface PartnerTopicUpdateParameters { /** - * Tags of the partner topic. + * Tags of the Partner Topic resource. */ tags?: { [propertyName: string]: string }; + /** + * Identity information for the Partner Topic resource. + */ + identity?: IdentityInfo; } /** @@ -1683,58 +1806,14 @@ export interface PartnerTopic extends TrackedResource { */ partnerTopicFriendlyDescription?: string; /** - * Identity information for the resource. - */ - identity?: IdentityInfo; - /** - * The system metadata relating to this resource. + * The system metadata relating to Partner Topic resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; -} - -/** - * Properties of a partner topic type. - */ -export interface PartnerTopicType extends Resource { - /** - * Official name of the partner. - */ - partnerName?: string; - /** - * Name of the partner topic type. This name should be unique among all partner topic types - * names. - */ - topicTypeName?: string; /** - * Display Name for the partner topic type. + * Identity information for the Partner Topic resource. */ - displayName?: string; - /** - * Description of the partner topic type. - */ - description?: string; - /** - * URI of the partner website that can be used by Azure customers to setup Event Grid - * integration on an event source. - */ - setupUri?: string; - /** - * Status of whether the customer has authorized a partner to create partner topics - * in the customer's subscription. Possible values include: 'NotApplicable', 'NotAuthorized', - * 'Authorized' - */ - authorizationState?: PartnerTopicTypeAuthorizationState; -} - -/** - * Result of the List Partner Topic Types operation. - */ -export interface PartnerTopicTypesListResult { - /** - * A collection of partner topic types. - */ - value?: PartnerTopicType[]; + identity?: IdentityInfo; } /** @@ -1783,14 +1862,14 @@ export interface SystemTopic extends TrackedResource { */ readonly metricResourceId?: string; /** - * Identity information for the resource. - */ - identity?: IdentityInfo; - /** - * The system metadata relating to this resource. + * The system metadata relating to System Topic resource. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly systemData?: SystemData; + /** + * Identity information for the resource. + */ + identity?: IdentityInfo; } /** @@ -1825,7 +1904,10 @@ export interface ExtendedLocation { * EventGrid Topic */ export interface Topic extends TrackedResource { - privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateEndpointConnections?: PrivateEndpointConnection[]; /** * Provisioning state of the topic. Possible values include: 'Creating', 'Updating', 'Deleting', * 'Succeeded', 'Canceled', 'Failed' @@ -1858,7 +1940,7 @@ export interface Topic extends TrackedResource { * This determines if traffic is allowed over public network. By default it is enabled. * You can further restrict to specific IPs by configuring . Possible values include: 'Enabled', 'Disabled' + * />. Possible values include: 'Enabled', 'Disabled'. Default value: 'Enabled'. */ publicNetworkAccess?: PublicNetworkAccess; /** @@ -1866,6 +1948,12 @@ export interface Topic extends TrackedResource { * considered only if PublicNetworkAccess is enabled. */ inboundIpRules?: InboundIpRule[]; + /** + * This boolean is used to enable or disable local auth. Default value is false. When the + * property is set to true, only AAD token will be used to authenticate if user is allowed to + * publish to the topic. Default value: false. + */ + disableLocalAuth?: boolean; /** * The Sku pricing tier for the topic. */ @@ -1882,6 +1970,11 @@ export interface Topic extends TrackedResource { * Extended location of the resource. */ extendedLocation?: ExtendedLocation; + /** + * The system metadata relating to Topic resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** @@ -1889,11 +1982,11 @@ export interface Topic extends TrackedResource { */ export interface TopicUpdateParameters { /** - * Tags of the resource. + * Tags of the Topic resource. */ tags?: { [propertyName: string]: string }; /** - * Resource identity information. + * Topic resource identity information. */ identity?: IdentityInfo; /** @@ -1908,6 +2001,12 @@ export interface TopicUpdateParameters { * considered only if PublicNetworkAccess is enabled. */ inboundIpRules?: InboundIpRule[]; + /** + * This boolean is used to enable or disable local auth. Default value is false. When the + * property is set to true, only AAD token will be used to authenticate if user is allowed to + * publish to the topic. + */ + disableLocalAuth?: boolean; /** * The Sku pricing tier for the topic. */ @@ -3189,12 +3288,12 @@ export interface DomainsListResult extends Array { /** * @interface - * Result of the List Domain Topics operation + * Result of the List Domain Topics operation. * @extends Array */ export interface DomainTopicsListResult extends Array { /** - * A link for the next page of domain topics + * A link for the next page of domain topics. */ nextLink?: string; } @@ -3396,6 +3495,14 @@ export type Sku = 'Basic' | 'Premium'; */ export type IdentityType = 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned'; +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + /** * Defines values for DomainTopicProvisioningState. * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' @@ -3421,14 +3528,6 @@ export type EventChannelProvisioningState = 'Creating' | 'Updating' | 'Deleting' */ export type PartnerTopicReadinessState = 'NotActivatedByUserYet' | 'ActivatedByUser' | 'DeactivatedByUser' | 'DeletedByUser'; -/** - * Defines values for CreatedByType. - * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - * @readonly - * @enum {string} - */ -export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; - /** * Defines values for EventSubscriptionProvisioningState. * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed', @@ -3494,14 +3593,6 @@ export type PartnerTopicProvisioningState = 'Creating' | 'Updating' | 'Deleting' */ export type PartnerTopicActivationState = 'NeverActivated' | 'Activated' | 'Deactivated'; -/** - * Defines values for PartnerTopicTypeAuthorizationState. - * Possible values include: 'NotApplicable', 'NotAuthorized', 'Authorized' - * @readonly - * @enum {string} - */ -export type PartnerTopicTypeAuthorizationState = 'NotApplicable' | 'NotAuthorized' | 'Authorized'; - /** * Defines values for TopicProvisioningState. * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' @@ -3536,35 +3627,35 @@ export type TopicTypeProvisioningState = 'Creating' | 'Updating' | 'Deleting' | /** * Defines values for ParentType. - * Possible values include: 'topics', 'domains' + * Possible values include: 'topics', 'domains', 'partnerNamespaces' * @readonly * @enum {string} */ -export type ParentType = 'topics' | 'domains'; +export type ParentType = 'topics' | 'domains' | 'partnerNamespaces'; /** * Defines values for ParentType1. - * Possible values include: 'topics', 'domains' + * Possible values include: 'topics', 'domains', 'partnerNamespaces' * @readonly * @enum {string} */ -export type ParentType1 = 'topics' | 'domains'; +export type ParentType1 = 'topics' | 'domains' | 'partnerNamespaces'; /** * Defines values for ParentType2. - * Possible values include: 'topics', 'domains' + * Possible values include: 'topics', 'domains', 'partnerNamespaces' * @readonly * @enum {string} */ -export type ParentType2 = 'topics' | 'domains'; +export type ParentType2 = 'topics' | 'domains' | 'partnerNamespaces'; /** * Defines values for ParentType3. - * Possible values include: 'topics', 'domains' + * Possible values include: 'topics', 'domains', 'partnerNamespaces' * @readonly * @enum {string} */ -export type ParentType3 = 'topics' | 'domains'; +export type ParentType3 = 'topics' | 'domains' | 'partnerNamespaces'; /** * Contains response data for the get operation. @@ -5206,26 +5297,6 @@ export type PartnerRegistrationsListByResourceGroupResponse = PartnerRegistratio }; }; -/** - * Contains response data for the list operation. - */ -export type PartnerRegistrationsListResponse = PartnerRegistrationsListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PartnerRegistrationsListResult; - }; -}; - /** * Contains response data for the listBySubscriptionNext operation. */ diff --git a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts index bc21a5531e3e..47fb345ddabe 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts @@ -181,6 +181,7 @@ export const ResourceSku: msRest.CompositeMapper = { modelProperties: { name: { serializedName: "name", + defaultValue: 'Basic', type: { name: "String" } @@ -373,6 +374,52 @@ export const TrackedResource: msRest.CompositeMapper = { } }; +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String" + } + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String" + } + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime" + } + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String" + } + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String" + } + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime" + } + } + } + } +}; + export const Domain: msRest.CompositeMapper = { serializedName: "Domain", type: { @@ -381,6 +428,7 @@ export const Domain: msRest.CompositeMapper = { modelProperties: { ...TrackedResource.type.modelProperties, privateEndpointConnections: { + readOnly: true, serializedName: "properties.privateEndpointConnections", type: { name: "Sequence", @@ -429,6 +477,7 @@ export const Domain: msRest.CompositeMapper = { }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", + defaultValue: 'Enabled', type: { name: "String" } @@ -445,6 +494,27 @@ export const Domain: msRest.CompositeMapper = { } } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + defaultValue: false, + type: { + name: "Boolean" + } + }, + autoCreateTopicWithFirstSubscription: { + serializedName: "properties.autoCreateTopicWithFirstSubscription", + defaultValue: true, + type: { + name: "Boolean" + } + }, + autoDeleteTopicWithLastSubscription: { + serializedName: "properties.autoDeleteTopicWithLastSubscription", + defaultValue: true, + type: { + name: "Boolean" + } + }, sku: { serializedName: "sku", type: { @@ -458,6 +528,14 @@ export const Domain: msRest.CompositeMapper = { name: "Composite", className: "IdentityInfo" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -498,6 +576,24 @@ export const DomainUpdateParameters: msRest.CompositeMapper = { } } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, + autoCreateTopicWithFirstSubscription: { + serializedName: "properties.autoCreateTopicWithFirstSubscription", + type: { + name: "Boolean" + } + }, + autoDeleteTopicWithLastSubscription: { + serializedName: "properties.autoDeleteTopicWithLastSubscription", + type: { + name: "Boolean" + } + }, identity: { serializedName: "identity", type: { @@ -563,10 +659,19 @@ export const DomainTopic: msRest.CompositeMapper = { modelProperties: { ...Resource.type.modelProperties, provisioningState: { + readOnly: true, serializedName: "properties.provisioningState", type: { name: "String" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -652,6 +757,7 @@ export const EventChannelFilter: msRest.CompositeMapper = { modelProperties: { enableAdvancedFilteringOnArrays: { serializedName: "enableAdvancedFilteringOnArrays", + defaultValue: false, type: { name: "Boolean" } @@ -1091,52 +1197,6 @@ export const IsNotNullAdvancedFilter: msRest.CompositeMapper = { } }; -export const SystemData: msRest.CompositeMapper = { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - export const EventChannel: msRest.CompositeMapper = { serializedName: "EventChannel", type: { @@ -1337,12 +1397,14 @@ export const RetryPolicy: msRest.CompositeMapper = { modelProperties: { maxDeliveryAttempts: { serializedName: "maxDeliveryAttempts", + defaultValue: 30, type: { name: "Number" } }, eventTimeToLiveInMinutes: { serializedName: "eventTimeToLiveInMinutes", + defaultValue: 1440, type: { name: "Number" } @@ -1518,12 +1580,14 @@ export const WebHookEventSubscriptionDestination: msRest.CompositeMapper = { }, maxEventsPerBatch: { serializedName: "properties.maxEventsPerBatch", + defaultValue: 1, type: { name: "Number" } }, preferredBatchSizeInKilobytes: { serializedName: "properties.preferredBatchSizeInKilobytes", + defaultValue: 64, type: { name: "Number" } @@ -1728,12 +1792,14 @@ export const AzureFunctionEventSubscriptionDestination: msRest.CompositeMapper = }, maxEventsPerBatch: { serializedName: "properties.maxEventsPerBatch", + defaultValue: 1, type: { name: "Number" } }, preferredBatchSizeInKilobytes: { serializedName: "properties.preferredBatchSizeInKilobytes", + defaultValue: 64, type: { name: "Number" } @@ -1815,6 +1881,7 @@ export const EventSubscription: msRest.CompositeMapper = { }, eventDeliverySchema: { serializedName: "properties.eventDeliverySchema", + defaultValue: 'EventGridSchema', type: { name: "String" } @@ -2024,6 +2091,12 @@ export const Operation: msRest.CompositeMapper = { name: "String" } }, + isDataAction: { + serializedName: "isDataAction", + type: { + name: "Boolean" + } + }, properties: { serializedName: "properties", type: { @@ -2041,6 +2114,19 @@ export const PartnerNamespace: msRest.CompositeMapper = { className: "PartnerNamespace", modelProperties: { ...TrackedResource.type.modelProperties, + privateEndpointConnections: { + readOnly: true, + serializedName: "properties.privateEndpointConnections", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection" + } + } + } + }, provisioningState: { readOnly: true, serializedName: "properties.provisioningState", @@ -2061,6 +2147,32 @@ export const PartnerNamespace: msRest.CompositeMapper = { name: "String" } }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + defaultValue: 'Enabled', + type: { + name: "String" + } + }, + inboundIpRules: { + serializedName: "properties.inboundIpRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundIpRule" + } + } + } + }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + defaultValue: false, + type: { + name: "Boolean" + } + }, systemData: { readOnly: true, serializedName: "systemData", @@ -2089,6 +2201,30 @@ export const PartnerNamespaceUpdateParameters: msRest.CompositeMapper = { } } } + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", + type: { + name: "String" + } + }, + inboundIpRules: { + serializedName: "properties.inboundIpRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundIpRule" + } + } + } + }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } } } } @@ -2333,34 +2469,6 @@ export const EventType: msRest.CompositeMapper = { } }; -export const PartnerRegistrationEventTypesListResult: msRest.CompositeMapper = { - serializedName: "PartnerRegistrationEventTypesListResult", - type: { - name: "Composite", - className: "PartnerRegistrationEventTypesListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EventType" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const PartnerTopicUpdateParameters: msRest.CompositeMapper = { serializedName: "PartnerTopicUpdateParameters", type: { @@ -2377,6 +2485,13 @@ export const PartnerTopicUpdateParameters: msRest.CompositeMapper = { } } } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityInfo" + } } } } @@ -2420,13 +2535,6 @@ export const PartnerTopic: msRest.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityInfo" - } - }, systemData: { readOnly: true, serializedName: "systemData", @@ -2434,74 +2542,12 @@ export const PartnerTopic: msRest.CompositeMapper = { name: "Composite", className: "SystemData" } - } - } - } -}; - -export const PartnerTopicType: msRest.CompositeMapper = { - serializedName: "PartnerTopicType", - type: { - name: "Composite", - className: "PartnerTopicType", - modelProperties: { - ...Resource.type.modelProperties, - partnerName: { - serializedName: "properties.partnerName", - type: { - name: "String" - } - }, - topicTypeName: { - serializedName: "properties.topicTypeName", - type: { - name: "String" - } - }, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } }, - setupUri: { - serializedName: "properties.setupUri", - type: { - name: "String" - } - }, - authorizationState: { - serializedName: "properties.authorizationState", - type: { - name: "String" - } - } - } - } -}; - -export const PartnerTopicTypesListResult: msRest.CompositeMapper = { - serializedName: "PartnerTopicTypesListResult", - type: { - name: "Composite", - className: "PartnerTopicTypesListResult", - modelProperties: { - value: { - serializedName: "value", + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerTopicType" - } - } + name: "Composite", + className: "IdentityInfo" } } } @@ -2603,13 +2649,6 @@ export const SystemTopic: msRest.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "IdentityInfo" - } - }, systemData: { readOnly: true, serializedName: "systemData", @@ -2617,6 +2656,13 @@ export const SystemTopic: msRest.CompositeMapper = { name: "Composite", className: "SystemData" } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityInfo" + } } } } @@ -2680,6 +2726,7 @@ export const Topic: msRest.CompositeMapper = { modelProperties: { ...TrackedResource.type.modelProperties, privateEndpointConnections: { + readOnly: true, serializedName: "properties.privateEndpointConnections", type: { name: "Sequence", @@ -2728,6 +2775,7 @@ export const Topic: msRest.CompositeMapper = { }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", + defaultValue: 'Enabled', type: { name: "String" } @@ -2744,6 +2792,13 @@ export const Topic: msRest.CompositeMapper = { } } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + defaultValue: false, + type: { + name: "Boolean" + } + }, sku: { serializedName: "sku", type: { @@ -2770,6 +2825,14 @@ export const Topic: msRest.CompositeMapper = { name: "Composite", className: "ExtendedLocation" } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -2817,6 +2880,12 @@ export const TopicUpdateParameters: msRest.CompositeMapper = { } } }, + disableLocalAuth: { + serializedName: "properties.disableLocalAuth", + type: { + name: "Boolean" + } + }, sku: { serializedName: "sku", type: { diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts index 5317a9fa5261..b7321832bd5d 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts @@ -57,7 +57,6 @@ export { PartnerNamespaceUpdateParameters, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts index a9ede6c017ec..6b5bed65d8f9 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts @@ -55,7 +55,6 @@ export { PartnerRegistrationsListResult, PartnerRegistrationUpdateParameters, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts index f0ff5301de8e..62a9a4d4958e 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts @@ -57,7 +57,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts index 65359234294b..6bd2de64ab0a 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts @@ -54,7 +54,6 @@ export { PartnerRegistration, PartnerTopic, PartnerTopicsListResult, - PartnerTopicType, PartnerTopicUpdateParameters, PrivateEndpoint, PrivateEndpointConnection, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts index 100abc468699..72af2f510a3b 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts @@ -53,7 +53,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionListResult, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts index f0ff5301de8e..62a9a4d4958e 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts @@ -57,7 +57,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts index 0cf533c42022..a7620c6be7d7 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts @@ -53,7 +53,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts index 40f1f1c6813d..60e1e18de7e0 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts @@ -54,7 +54,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts index 89226e19cc01..493840462550 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts @@ -54,7 +54,6 @@ export { PartnerNamespace, PartnerRegistration, PartnerTopic, - PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/domainTopics.ts b/sdk/eventgrid/arm-eventgrid/src/operations/domainTopics.ts index cf39abb48fd9..5d0b701ca416 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/domainTopics.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/domainTopics.ts @@ -293,6 +293,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/domains.ts b/sdk/eventgrid/arm-eventgrid/src/operations/domains.ts index 643757adfeca..62ff03d132cb 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/domains.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/domains.ts @@ -526,6 +526,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], responses: { + 200: {}, 202: {}, 204: {}, default: { diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/partnerRegistrations.ts b/sdk/eventgrid/arm-eventgrid/src/operations/partnerRegistrations.ts index b3eab50bd3ed..343ca64c1815 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/partnerRegistrations.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/partnerRegistrations.ts @@ -219,31 +219,6 @@ export class PartnerRegistrations { callback) as Promise; } - /** - * List all partners registrations. - * @summary List all available partners registrations. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - /** * List all the partner registrations under an Azure subscription. * @summary List partner registrations under an Azure subscription. @@ -474,26 +449,6 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { serializer }; -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "providers/Microsoft.EventGrid/partnerRegistrations", - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PartnerRegistrationsListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts b/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts index 4a35ad9c8679..09ade02dc5c4 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts @@ -27,13 +27,13 @@ export class PrivateEndpointConnections { } /** - * Get a specific private endpoint connection under a topic or domain. + * Get a specific private endpoint connection under a topic, domain, or partner namespace. * @summary Get a specific private endpoint connection. * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. * @param [options] The optional parameters * @returns Promise @@ -41,20 +41,20 @@ export class PrivateEndpointConnections { get(resourceGroupName: string, parentType: Models.ParentType, parentName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. * @param callback The callback */ get(resourceGroupName: string, parentType: Models.ParentType, parentName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. * @param options The optional parameters * @param callback The callback @@ -74,13 +74,13 @@ export class PrivateEndpointConnections { } /** - * Update a specific private endpoint connection under a topic or domain. + * Update a specific private endpoint connection under a topic, domain or partner namespace. * @summary Update a specific private endpoint connection. * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. * @param privateEndpointConnection The private endpoint connection object to update. * @param [options] The optional parameters @@ -92,13 +92,13 @@ export class PrivateEndpointConnections { } /** - * Delete a specific private endpoint connection under a topic or domain. + * Delete a specific private endpoint connection under a topic, domain, or partner namespace. * @summary Delete a specific private endpoint connection. * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. * @param [options] The optional parameters * @returns Promise @@ -109,32 +109,32 @@ export class PrivateEndpointConnections { } /** - * Get all private endpoint connections under a topic or domain. + * Get all private endpoint connections under a topic, domain, or partner namespace. * @summary Lists all private endpoint connections under a resource. * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param [options] The optional parameters * @returns Promise */ listByResource(resourceGroupName: string, parentType: Models.ParentType3, parentName: string, options?: Models.PrivateEndpointConnectionsListByResourceOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param callback The callback */ listByResource(resourceGroupName: string, parentType: Models.ParentType3, parentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param options The optional parameters * @param callback The callback */ @@ -152,13 +152,13 @@ export class PrivateEndpointConnections { } /** - * Update a specific private endpoint connection under a topic or domain. + * Update a specific private endpoint connection under a topic, domain or partner namespace. * @summary Update a specific private endpoint connection. * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. * @param privateEndpointConnection The private endpoint connection object to update. * @param [options] The optional parameters @@ -179,13 +179,13 @@ export class PrivateEndpointConnections { } /** - * Delete a specific private endpoint connection under a topic or domain. + * Delete a specific private endpoint connection under a topic, domain, or partner namespace. * @summary Delete a specific private endpoint connection. * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * Possible values include: 'topics', 'domains' - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. Possible values include: 'topics', 'domains', 'partnerNamespaces' + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. * @param [options] The optional parameters * @returns Promise @@ -204,7 +204,7 @@ export class PrivateEndpointConnections { } /** - * Get all private endpoint connections under a topic or domain. + * Get all private endpoint connections under a topic, domain, or partner namespace. * @summary Lists all private endpoint connections under a resource. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/privateLinkResources.ts b/sdk/eventgrid/arm-eventgrid/src/operations/privateLinkResources.ts index eb9e8318d193..418811b13ebb 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/privateLinkResources.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/privateLinkResources.ts @@ -29,9 +29,10 @@ export class PrivateLinkResources { * Get properties of a private link resource. * @summary Get a private link resource. * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateLinkResourceName The name of private link resource. * @param [options] The optional parameters * @returns Promise @@ -39,18 +40,20 @@ export class PrivateLinkResources { get(resourceGroupName: string, parentType: string, parentName: string, privateLinkResourceName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateLinkResourceName The name of private link resource. * @param callback The callback */ get(resourceGroupName: string, parentType: string, parentName: string, privateLinkResourceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param privateLinkResourceName The name of private link resource. * @param options The optional parameters * @param callback The callback @@ -70,29 +73,32 @@ export class PrivateLinkResources { } /** - * List all the private link resources under a topic or domain. - * @summary List private link resources under specific topic or domain. + * List all the private link resources under a topic, domain, or partner namespace. + * @summary List private link resources under specific topic, domain, or partner namespace. * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param [options] The optional parameters * @returns Promise */ listByResource(resourceGroupName: string, parentType: string, parentName: string, options?: Models.PrivateLinkResourcesListByResourceOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param callback The callback */ listByResource(resourceGroupName: string, parentType: string, parentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group within the user's subscription. - * @param parentType The type of the parent resource. This can be either \'topics\' or \'domains\'. - * @param parentName The name of the parent resource (namely, either, the topic name or domain - * name). + * @param parentType The type of the parent resource. This can be either \'topics\', \'domains\', + * or \'partnerNamespaces\'. + * @param parentName The name of the parent resource (namely, either, the topic name, domain name, + * or partner namespace name). * @param options The optional parameters * @param callback The callback */ @@ -110,8 +116,8 @@ export class PrivateLinkResources { } /** - * List all the private link resources under a topic or domain. - * @summary List private link resources under specific topic or domain. + * List all the private link resources under a topic, domain, or partner namespace. + * @summary List private link resources under specific topic, domain, or partner namespace. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise From 4b9d2f23fa52cd3ed064dd5de858dd667d164c5b Mon Sep 17 00:00:00 2001 From: colawwj Date: Thu, 24 Jun 2021 11:31:00 +0800 Subject: [PATCH 2/3] update package.json --- sdk/eventgrid/arm-eventgrid/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/eventgrid/arm-eventgrid/package.json b/sdk/eventgrid/arm-eventgrid/package.json index 525357de3541..100062887bd8 100644 --- a/sdk/eventgrid/arm-eventgrid/package.json +++ b/sdk/eventgrid/arm-eventgrid/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/eventgrid/arm-eventgrid", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/arm-eventgrid", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" From 49792eef0aa63c4943b21bb5acf4b41bca428967 Mon Sep 17 00:00:00 2001 From: Wei Dong <40835867+dw511214992@users.noreply.github.com> Date: Thu, 24 Jun 2021 11:40:08 +0800 Subject: [PATCH 3/3] Update sdk/eventgrid/arm-eventgrid/README.md Co-authored-by: Ramya Rao --- sdk/eventgrid/arm-eventgrid/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/eventgrid/arm-eventgrid/README.md b/sdk/eventgrid/arm-eventgrid/README.md index cb83abecbb17..9d2baac15a15 100644 --- a/sdk/eventgrid/arm-eventgrid/README.md +++ b/sdk/eventgrid/arm-eventgrid/README.md @@ -1,6 +1,6 @@ ## Azure EventGridManagementClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in node.js and in browsers) for EventGridManagementClient. +This package contains an isomorphic SDK (runs both in Node.js and in browsers) for EventGridManagementClient. ### Currently supported environments