Skip to content

Commit

Permalink
Merge pull request #3 from richardpark-msft/rp-eventgrid-renames
Browse files Browse the repository at this point in the history
Adding in renames for Go
  • Loading branch information
l0lawrence authored May 17, 2024
2 parents 3bbe41a + 47d673c commit 5a7ad7d
Show file tree
Hide file tree
Showing 5 changed files with 609 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -692,18 +692,17 @@ model AcsRouterWorkerSelector {
key?: string;

/** Router Job Worker Selector Label Operator */
operator: AcsRouterLabelOperator;
labelOperator: AcsRouterLabelOperator;

/** Router Job Worker Selector Value */
#suppress "@azure-tools/typespec-azure-core/no-unknown" "The type of labelValue is object"
labelValue: unknown;

/** Router Job Worker Selector Time to Live in Seconds */
@encode("ISO8601") // TODO verify this is timespan in C#
ttlSeconds: duration;
ttlSeconds: float64;

/** Router Job Worker Selector State */
selectorState: AcsRouterWorkerSelectorState;
state: AcsRouterWorkerSelectorState;

/** Router Job Worker Selector Expiration Time */
expirationTime: utcDateTime;
Expand Down Expand Up @@ -1052,6 +1051,7 @@ model CommunicationIdentifierModel {
microsoftTeamsApp: MicrosoftTeamsAppIdentifierModel;
}

/** Communication model identifier kind */
union CommunicationIdentifierModelKind {
"unknown",
"communicationUser",
Expand Down Expand Up @@ -1242,6 +1242,7 @@ model AcsMessageChannelEventError {
channelMessage?: string;
}

/** Interactive reply kind */
union AcsInteractiveReplyKind {
/** Messaged interactive reply type is ButtonReply */
"buttonReply",
Expand All @@ -1255,13 +1256,15 @@ union AcsInteractiveReplyKind {
string,
}

/** Message channel kind */
union AcsMessageChannelKind {
/** Updated message channel type is Whatsapp */
"whatsapp",

string,
}

/** Message delivery status */
union AcsMessageDeliveryStatus {
"Read",
"Delivered",
Expand All @@ -1272,6 +1275,7 @@ union AcsMessageDeliveryStatus {
string,
}

/** Worker properties that can be updated */
union AcsRouterUpdatedWorkerProperty {
"AvailableForOffers",
"TotalCapacity",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ union EventGridMQTTClientDisconnectionReason {
string,
}

/** Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SystemEvents.SubscriptionValidationEvent event. */
/** Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event. */
model SubscriptionValidationEventData {
/** The validation code sent by Azure Event Grid to validate an event subscription.
* To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response,
Expand All @@ -76,14 +76,14 @@ model SubscriptionValidationResponse {

/**
Schema of the Data property of an EventGridEvent for a
Microsoft.EventGrid.SystemEvents.SubscriptionDeletedEvent event.
Microsoft.EventGrid.SubscriptionDeletedEvent event.
*/
model SubscriptionDeletedEventData {
/** The Azure resource ID of the deleted event subscription. */
eventSubscriptionId?: string;
}

/** Event data for Microsoft.EventGrid.SystemEvents.MQTTClientCreatedOrUpdated event. */
/** Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. */
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Following Swagger Inheritance"
#suppress "@azure-tools/typespec-azure-core/casing-style" "MQTT is an acronym and should be all caps"
model EventGridMQTTClientCreatedOrUpdatedEventData
Expand Down Expand Up @@ -123,13 +123,13 @@ long, and supports UTF-8 characters.
namespaceName?: string;
}

/** Event data for Microsoft.EventGrid.SystemEvents.MQTTClientDeleted event. */
/** Event data for Microsoft.EventGrid.MQTTClientDeleted event. */
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Following Swagger Inheritance"
#suppress "@azure-tools/typespec-azure-core/casing-style" "MQTT is an acronym and should be all caps"
model EventGridMQTTClientDeletedEventData
extends EventGridMQTTClientEventData {}

/** Event data for Microsoft.EventGrid.SystemEvents.MQTTClientSessionConnected event. */
/** Event data for Microsoft.EventGrid.MQTTClientSessionConnected event. */
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Following Swagger Inheritance"
#suppress "@azure-tools/typespec-azure-core/casing-style" "MQTT is an acronym and should be all caps"
model EventGridMQTTClientSessionConnectedEventData
Expand All @@ -148,7 +148,7 @@ than the previous event.
sequenceNumber?: int64;
}

/** Event data for Microsoft.EventGrid.SystemEvents.MQTTClientSessionDisconnected event. */
/** Event data for Microsoft.EventGrid.MQTTClientSessionDisconnected event. */
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Following Swagger Inheritance"
#suppress "@azure-tools/typespec-azure-core/casing-style" "MQTT is an acronym and should be all caps"
model EventGridMQTTClientSessionDisconnectedEventData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ namespace Microsoft.EventGrid.SystemEvents {
}

/** The event data for a Job output. */
@discriminator("@odataType")
@discriminator("@odata.type")
model MediaJobOutput {
/** The discriminator for derived types. */
`@odataType`: string;
`@odata.type`: string;

/** Gets the Job output error. */
error: MediaJobError;
Expand All @@ -162,7 +162,7 @@ namespace Microsoft.EventGrid.SystemEvents {
assetName?: string;

/** The discriminator for derived types. */
`@odataType`: "#Microsoft.Media.JobOutputAsset";
`@odata.type`: "#Microsoft.Media.JobOutputAsset";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "./Microsoft.ResourceNotifications/ResourceNotifications.tsp";
import "./Microsoft.Storage/Storage.tsp";
import "./Microsoft.DataBox/DataBox.tsp";
import "./Microsoft.EventGrid/EventGrid.tsp";
import "./propertyNameOverrideGo.tsp";

import "@azure-tools/typespec-client-generator-core";

Expand Down Expand Up @@ -339,7 +340,6 @@ using Azure.ClientGenerator.Core;
"csharp"
);


@@clientName(Microsoft.EventGrid.SystemEvents.AcsMessageMediaContent.id,
"mediaId",
"javascript"
Expand Down
Loading

0 comments on commit 5a7ad7d

Please sign in to comment.