Skip to content

Commit

Permalink
[mgmt] eventgrid release (#29483)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 committed Apr 30, 2024
1 parent 0741a20 commit 44eb266
Show file tree
Hide file tree
Showing 617 changed files with 9,995 additions and 8,662 deletions.
385 changes: 375 additions & 10 deletions sdk/eventgrid/arm-eventgrid/CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/eventgrid/arm-eventgrid/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Microsoft
Copyright (c) 2024 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions sdk/eventgrid/arm-eventgrid/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "cb798ffa99c193a88388f358965f377fde3699e8",
"commit": "b8691fbfca8fcdc5a241a0b501c32fd4a76bb0cd",
"readme": "specification/eventgrid/resource-manager/readme.md",
"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\\eventgrid\\resource-manager\\readme.md --use=@autorest/typescript@6.0.12 --generate-sample=true",
"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\\eventgrid\\resource-manager\\readme.md --use=@autorest/typescript@6.0.21 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@6.0.12"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.7",
"use": "@autorest/typescript@6.0.21"
}
2 changes: 1 addition & 1 deletion sdk/eventgrid/arm-eventgrid/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/eventgrid/arm-eventgrid",
"Tag": "js/eventgrid/arm-eventgrid_518e326595"
"Tag": "js/eventgrid/arm-eventgrid_78aeb8080b"
}
5 changes: 2 additions & 3 deletions sdk/eventgrid/arm-eventgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"@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.12.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand Down Expand Up @@ -77,7 +77,6 @@
"pack": "npm pack 2>&1",
"extract-api": "dev-tool run extract-api",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
Expand Down
120 changes: 117 additions & 3 deletions sdk/eventgrid/arm-eventgrid/review/arm-eventgrid.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ export interface Client extends Resource {
// @public
export interface ClientAuthenticationSettings {
alternativeAuthenticationNameSources?: AlternativeAuthenticationNameSource[];
customJwtAuthentication?: CustomJwtAuthenticationSettings;
}

// @public
Expand Down Expand Up @@ -395,6 +396,49 @@ export interface ConnectionState {
// @public
export type CreatedByType = string;

// @public
export interface CustomDomainConfiguration {
certificateUrl?: string;
expectedTxtRecordName?: string;
expectedTxtRecordValue?: string;
fullyQualifiedDomainName: string;
identity?: CustomDomainIdentity;
validationState?: CustomDomainValidationState;
}

// @public
export interface CustomDomainIdentity {
type?: CustomDomainIdentityType;
userAssignedIdentity?: string;
}

// @public
export type CustomDomainIdentityType = string;

// @public
export interface CustomDomainOwnershipValidationResult {
customDomainsForTopicsConfiguration?: CustomDomainConfiguration[];
customDomainsForTopicSpacesConfiguration?: CustomDomainConfiguration[];
}

// @public
export type CustomDomainValidationState = string;

// @public
export interface CustomJwtAuthenticationManagedIdentity {
type: CustomJwtAuthenticationManagedIdentityType;
userAssignedIdentity?: string;
}

// @public
export type CustomJwtAuthenticationManagedIdentityType = string;

// @public
export interface CustomJwtAuthenticationSettings {
issuerCertificates?: IssuerCertificateInfo[];
tokenIssuer?: string;
}

// @public
export type DataResidencyBoundary = string;

Expand Down Expand Up @@ -1409,6 +1453,12 @@ export interface IsNullOrUndefinedFilter extends Filter {
operatorType: "IsNullOrUndefined";
}

// @public
export interface IssuerCertificateInfo {
certificateUrl: string;
identity?: CustomJwtAuthenticationManagedIdentity;
}

// @public
export interface JsonField {
sourceField?: string;
Expand Down Expand Up @@ -1538,6 +1588,25 @@ export enum KnownCreatedByType {
User = "User"
}

// @public
export enum KnownCustomDomainIdentityType {
SystemAssigned = "SystemAssigned",
UserAssigned = "UserAssigned"
}

// @public
export enum KnownCustomDomainValidationState {
Approved = "Approved",
ErrorRetrievingDnsRecord = "ErrorRetrievingDnsRecord",
Pending = "Pending"
}

// @public
export enum KnownCustomJwtAuthenticationManagedIdentityType {
SystemAssigned = "SystemAssigned",
UserAssigned = "UserAssigned"
}

// @public
export enum KnownDataResidencyBoundary {
WithinGeopair = "WithinGeopair",
Expand Down Expand Up @@ -2035,7 +2104,6 @@ export interface Namespace extends TrackedResource {
inboundIpRules?: InboundIpRule[];
isZoneRedundant?: boolean;
minimumTlsVersionAllowed?: TlsVersion;
// (undocumented)
privateEndpointConnections?: PrivateEndpointConnection[];
readonly provisioningState?: NamespaceProvisioningState;
publicNetworkAccess?: PublicNetworkAccess;
Expand Down Expand Up @@ -2063,6 +2131,8 @@ export interface Namespaces {
beginRegenerateKeyAndWait(resourceGroupName: string, namespaceName: string, regenerateKeyRequest: NamespaceRegenerateKeyRequest, options?: NamespacesRegenerateKeyOptionalParams): Promise<NamespacesRegenerateKeyResponse>;
beginUpdate(resourceGroupName: string, namespaceName: string, namespaceUpdateParameters: NamespaceUpdateParameters, options?: NamespacesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<NamespacesUpdateResponse>, NamespacesUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, namespaceName: string, namespaceUpdateParameters: NamespaceUpdateParameters, options?: NamespacesUpdateOptionalParams): Promise<NamespacesUpdateResponse>;
beginValidateCustomDomainOwnership(resourceGroupName: string, namespaceName: string, options?: NamespacesValidateCustomDomainOwnershipOptionalParams): Promise<SimplePollerLike<OperationState<NamespacesValidateCustomDomainOwnershipResponse>, NamespacesValidateCustomDomainOwnershipResponse>>;
beginValidateCustomDomainOwnershipAndWait(resourceGroupName: string, namespaceName: string, options?: NamespacesValidateCustomDomainOwnershipOptionalParams): Promise<NamespacesValidateCustomDomainOwnershipResponse>;
get(resourceGroupName: string, namespaceName: string, options?: NamespacesGetOptionalParams): Promise<NamespacesGetResponse>;
listByResourceGroup(resourceGroupName: string, options?: NamespacesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Namespace>;
listBySubscription(options?: NamespacesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Namespace>;
Expand Down Expand Up @@ -2184,6 +2254,21 @@ export interface NamespacesUpdateOptionalParams extends coreClient.OperationOpti
// @public
export type NamespacesUpdateResponse = Namespace;

// @public
export interface NamespacesValidateCustomDomainOwnershipHeaders {
// (undocumented)
location?: string;
}

// @public
export interface NamespacesValidateCustomDomainOwnershipOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type NamespacesValidateCustomDomainOwnershipResponse = CustomDomainOwnershipValidationResult;

// @public
export interface NamespaceTopic extends Resource {
eventRetentionInDays?: number;
Expand All @@ -2209,6 +2294,7 @@ export interface NamespaceTopicEventSubscriptions {
beginUpdateAndWait(resourceGroupName: string, namespaceName: string, topicName: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: SubscriptionUpdateParameters, options?: NamespaceTopicEventSubscriptionsUpdateOptionalParams): Promise<NamespaceTopicEventSubscriptionsUpdateResponse>;
get(resourceGroupName: string, namespaceName: string, topicName: string, eventSubscriptionName: string, options?: NamespaceTopicEventSubscriptionsGetOptionalParams): Promise<NamespaceTopicEventSubscriptionsGetResponse>;
getDeliveryAttributes(resourceGroupName: string, namespaceName: string, topicName: string, eventSubscriptionName: string, options?: NamespaceTopicEventSubscriptionsGetDeliveryAttributesOptionalParams): Promise<NamespaceTopicEventSubscriptionsGetDeliveryAttributesResponse>;
getFullUrl(resourceGroupName: string, namespaceName: string, topicName: string, eventSubscriptionName: string, options?: NamespaceTopicEventSubscriptionsGetFullUrlOptionalParams): Promise<NamespaceTopicEventSubscriptionsGetFullUrlResponse>;
listByNamespaceTopic(resourceGroupName: string, namespaceName: string, topicName: string, options?: NamespaceTopicEventSubscriptionsListByNamespaceTopicOptionalParams): PagedAsyncIterableIterator<Subscription>;
}

Expand Down Expand Up @@ -2240,6 +2326,13 @@ export interface NamespaceTopicEventSubscriptionsGetDeliveryAttributesOptionalPa
// @public
export type NamespaceTopicEventSubscriptionsGetDeliveryAttributesResponse = DeliveryAttributeListResult;

// @public
export interface NamespaceTopicEventSubscriptionsGetFullUrlOptionalParams extends coreClient.OperationOptions {
}

// @public
export type NamespaceTopicEventSubscriptionsGetFullUrlResponse = SubscriptionFullUrl;

// @public
export interface NamespaceTopicEventSubscriptionsGetOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -2397,6 +2490,7 @@ export interface NamespaceUpdateParameters {
tags?: {
[propertyName: string]: string;
};
topicsConfiguration?: UpdateTopicsConfigurationInfo;
topicSpacesConfiguration?: UpdateTopicSpacesConfigurationInfo;
}

Expand Down Expand Up @@ -2500,7 +2594,7 @@ export interface NetworkSecurityPerimeterProfileAccessRule {
name?: string;
networkSecurityPerimeters?: NetworkSecurityPerimeterInfo[];
phoneNumbers?: string[];
subscriptions?: string[];
subscriptions?: NetworkSecurityPerimeterSubscription[];
type?: string;
}

Expand All @@ -2510,6 +2604,11 @@ export type NetworkSecurityPerimeterProfileAccessRuleDirection = string;
// @public
export type NetworkSecurityPerimeterResourceType = string;

// @public
export interface NetworkSecurityPerimeterSubscription {
id?: string;
}

// @public
export interface NumberGreaterThanAdvancedFilter extends AdvancedFilter {
operatorType: "NumberGreaterThan";
Expand Down Expand Up @@ -3635,6 +3734,7 @@ export type PublisherType = string;
export interface PushInfo {
deadLetterDestinationWithResourceIdentity?: DeadLetterWithResourceIdentity;
deliveryWithResourceIdentity?: DeliveryWithResourceIdentity;
destination?: EventSubscriptionDestinationUnion;
eventTimeToLive?: string;
maxDeliveryCount?: number;
}
Expand Down Expand Up @@ -3700,7 +3800,6 @@ export interface RoutingEnrichments {

// @public
export interface RoutingIdentityInfo {
// (undocumented)
type?: RoutingIdentityType;
// (undocumented)
userAssignedIdentity?: string;
Expand Down Expand Up @@ -3869,11 +3968,17 @@ export interface StringNotInFilter extends Filter {
export interface Subscription extends Resource {
deliveryConfiguration?: DeliveryConfiguration;
eventDeliverySchema?: DeliverySchema;
expirationTimeUtc?: Date;
filtersConfiguration?: FiltersConfiguration;
readonly provisioningState?: SubscriptionProvisioningState;
readonly systemData?: SystemData;
}

// @public
export interface SubscriptionFullUrl {
endpointUrl?: string;
}

// @public
export type SubscriptionProvisioningState = string;

Expand All @@ -3887,6 +3992,7 @@ export interface SubscriptionsListResult {
export interface SubscriptionUpdateParameters {
deliveryConfiguration?: DeliveryConfiguration;
eventDeliverySchema?: DeliverySchema;
expirationTimeUtc?: Date;
filtersConfiguration?: FiltersConfiguration;
}

Expand Down Expand Up @@ -4219,6 +4325,7 @@ export interface Topics {

// @public
export interface TopicsConfiguration {
customDomains?: CustomDomainConfiguration[];
readonly hostname?: string;
}

Expand Down Expand Up @@ -4335,6 +4442,7 @@ export interface TopicSpaces {
// @public
export interface TopicSpacesConfiguration {
clientAuthentication?: ClientAuthenticationSettings;
customDomains?: CustomDomainConfiguration[];
readonly hostname?: string;
maximumClientSessionsPerAuthenticationName?: number;
maximumSessionExpiryInHours?: number;
Expand Down Expand Up @@ -4502,9 +4610,15 @@ export interface TrackedResource extends Resource {
};
}

// @public
export interface UpdateTopicsConfigurationInfo {
customDomains?: CustomDomainConfiguration[];
}

// @public
export interface UpdateTopicSpacesConfigurationInfo {
clientAuthentication?: ClientAuthenticationSettings;
customDomains?: CustomDomainConfiguration[];
maximumClientSessionsPerAuthenticationName?: number;
maximumSessionExpiryInHours?: number;
routeTopicResourceId?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Create or update a CA certificate with the specified parameters.
*
* @summary Create or update a CA certificate with the specified parameters.
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2023-12-15-preview/examples/CaCertificates_CreateOrUpdate.json
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_CreateOrUpdate.json
*/
async function caCertificatesCreateOrUpdate() {
const subscriptionId =
Expand All @@ -30,15 +30,15 @@ async function caCertificatesCreateOrUpdate() {
const caCertificateName = "exampleCACertificateName1";
const caCertificateInfo: CaCertificate = {
description: "This is a test certificate",
encodedCertificate: "base64EncodePemFormattedCertificateString"
encodedCertificate: "base64EncodePemFormattedCertificateString",
};
const credential = new DefaultAzureCredential();
const client = new EventGridManagementClient(credential, subscriptionId);
const result = await client.caCertificates.beginCreateOrUpdateAndWait(
resourceGroupName,
namespaceName,
caCertificateName,
caCertificateInfo
caCertificateInfo,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Delete an existing CA certificate.
*
* @summary Delete an existing CA certificate.
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2023-12-15-preview/examples/CaCertificates_Delete.json
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_Delete.json
*/
async function caCertificatesDelete() {
const subscriptionId =
Expand All @@ -33,7 +33,7 @@ async function caCertificatesDelete() {
const result = await client.caCertificates.beginDeleteAndWait(
resourceGroupName,
namespaceName,
caCertificateName
caCertificateName,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Get properties of a CA certificate.
*
* @summary Get properties of a CA certificate.
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2023-12-15-preview/examples/CaCertificates_Get.json
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_Get.json
*/
async function caCertificatesGet() {
const subscriptionId =
Expand All @@ -33,7 +33,7 @@ async function caCertificatesGet() {
const result = await client.caCertificates.get(
resourceGroupName,
namespaceName,
caCertificateName
caCertificateName,
);
console.log(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Get all the CA certificates under a namespace.
*
* @summary Get all the CA certificates under a namespace.
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2023-12-15-preview/examples/CaCertificates_ListByNamespace.json
* x-ms-original-file: specification/eventgrid/resource-manager/Microsoft.EventGrid/preview/2024-06-01-preview/examples/CaCertificates_ListByNamespace.json
*/
async function caCertificatesListByNamespace() {
const subscriptionId =
Expand All @@ -32,7 +32,7 @@ async function caCertificatesListByNamespace() {
const resArray = new Array();
for await (let item of client.caCertificates.listByNamespace(
resourceGroupName,
namespaceName
namespaceName,
)) {
resArray.push(item);
}
Expand Down

0 comments on commit 44eb266

Please sign in to comment.