Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
540a16d
Initial changes
aayush3011 Apr 24, 2024
6f49c75
Initial changes
aayush3011 Apr 25, 2024
97509eb
Merge branch 'main' into users/akataria/nonStreamingOrderBy
aayush3011 Apr 25, 2024
938279a
Increment versions for core releases (#40003)
azure-sdk May 2, 2024
c6c520e
Ensure ServiceBus session idle timeout fall back to retry-options::tr…
anuchandy May 2, 2024
222f2d9
Added Alpha3 Java Media Streaming Events (#40002)
v-durgeshs May 2, 2024
387170a
Update version of github-event-processor to 1.0.0-dev.20240502.2 (#40…
azure-sdk May 2, 2024
b1e8fdc
Prepare May 2024 Identity Release (#40006)
billwert May 2, 2024
c3c4648
Prepare Identity Broker May 2024 Release (#40014)
billwert May 2, 2024
a5127c6
Increment package versions for identity releases (#40015)
azure-sdk May 2, 2024
ba334df
[JobRouter] SDK Review updates (#40011)
williamzhao87 May 2, 2024
5682de3
FixFaultInjectionRuleFailedToApplyPerPartitionInGatewayMode (#40005)
xinlian12 May 3, 2024
39cb79f
azure-cosmos-test_1.0.0.beta.7Release (#40021)
xinlian12 May 3, 2024
86b36d3
Merge branch 'main' into users/akataria/nonStreamingOrderBy
aayush3011 May 3, 2024
9a38357
Fixed existsById API in ReactiveCosmosTemplate (#40022)
kushagraThapar May 3, 2024
a979c11
Initial changes
aayush3011 May 3, 2024
e2756a5
Initial changes
aayush3011 May 3, 2024
d768057
Skip Recorded test and delete Event record until test proxy to work w…
minwoolee-msft May 3, 2024
71b1905
Fix invalid CODEOWNERS (#40032)
alzimmermsft May 3, 2024
8be2277
Initial changes
aayush3011 May 3, 2024
28a2b5a
ServiceBus: fix session tracing (#39962)
May 3, 2024
deff567
[Automation] Generate SDK based on TypeSpec 0.15.15 (#40048)
azure-sdk May 6, 2024
058f8a8
[CODEOWNERS] Updates for org changes (#40049)
jsquire May 6, 2024
9406783
Move from using the docker image to java2docfx for docs validation (#…
JimSuplizio May 6, 2024
6dee85b
owners (#39686)
harsimar May 6, 2024
61b177c
Use ClientLogger in testing output (#40010)
alzimmermsft May 6, 2024
8349880
Fix null pointer exception and context usage (#40053)
alzimmermsft May 6, 2024
c75b369
Rename AML to AzureMachineLearning (#40056)
alzimmermsft May 6, 2024
af7f403
Fixed the Key Vault `test-resources.json` file to properly configure …
vcolin7 May 6, 2024
c9da24c
Close response body in bearer policy (#40052)
May 6, 2024
7055e66
Running Prepare-Release for azure-messaging-servicebus 7.17.0 (#40058)
anuchandy May 7, 2024
4428897
mgmt, TypeSpec code generation pipeline (#39963)
XiaofeiCao May 7, 2024
a755e6a
Add codeowner linter owners (#39997)
weshaggard May 7, 2024
23b7d1e
Update to ESRP task version that supports federated auth (#40059)
hallipr May 7, 2024
94bd0d4
Increment package versions for cosmos releases (#40031)
azure-sdk May 7, 2024
149bd61
Update azure-sdk-build-tools Repository Resource Refs in Yaml files (…
azure-sdk May 7, 2024
847a8ae
Add reduced embeddings sample to azure-search-documents (#40069)
alzimmermsft May 7, 2024
376955f
Search May Preview Regen Updates (#40057)
jairmyree May 7, 2024
f01f7f4
Preparing Search May 2024 Beta Release (#40071)
jairmyree May 7, 2024
e491b9d
Resolving comments
aayush3011 May 7, 2024
151bb50
Fixing build issues
aayush3011 May 7, 2024
c86b87e
eng, update autorest.java, improve error output in sdk automation (#4…
weidongxu-microsoft May 8, 2024
a3d2d26
Merge to main after spring cloud azure 4.18.0 released (#40075)
Netyyyy May 8, 2024
f6909fb
Miscellaneous Core performance improvements (#39552)
alzimmermsft May 8, 2024
73afd5b
Merge branch 'Azure:main' into users/akataria/nonStreamingOrderBy
aayush3011 May 8, 2024
3271984
Increment package versions for search releases (#40072)
azure-sdk May 9, 2024
0e921d2
Update io.fabric8:kubernetes-client (#40086)
jairmyree May 9, 2024
b2a4bef
Increment package versions for servicebus releases (#40094)
azure-sdk May 9, 2024
6884420
Emit stable auto-instrumented otel metrics (#39960)
heyams May 9, 2024
3b0d751
Merge branch 'Azure:main' into users/akataria/nonStreamingOrderBy
aayush3011 May 9, 2024
87572f7
Merge branch 'feature/vector_search' into users/akataria/nonStreaming…
aayush3011 May 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added Alpha3 Java Media Streaming Events (#40002)
* Added Alpha3 Java Media Streaming Events

* updating readme to add the media streaming events to remove model

---------

Co-authored-by: Vinothini Dharmaraj <[email protected]>
  • Loading branch information
v-durgeshs and Vinothini Dharmaraj authored May 2, 2024
commit 222f2d946a8bcf0e47edd6e3d1ce6d1e5dfc5c59
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
import com.azure.communication.callautomation.models.events.SendDtmfTonesCompleted;
import com.azure.communication.callautomation.models.events.SendDtmfTonesFailed;
import com.azure.communication.callautomation.models.events.TranscriptionUpdated;
import com.azure.communication.callautomation.models.events.MediaStreamingStarted;
import com.azure.communication.callautomation.models.events.MediaStreamingStopped;
import com.azure.communication.callautomation.models.events.MediaStreamingFailed;
import com.azure.core.models.CloudEvent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.core.JsonProcessingException;
Expand Down Expand Up @@ -190,6 +193,12 @@ private static CallAutomationEventBase parseSingleCloudEvent(String data, String
ret = mapper.convertValue(eventData, CreateCallFailed.class);
} else if (Objects.equals(eventType, "Microsoft.Communication.HoldFailed")) {
ret = mapper.convertValue(eventData, HoldFailed.class);
} else if (Objects.equals(eventType, "Microsoft.Communication.MediaStreamingStarted")) {
ret = mapper.convertValue(eventData, MediaStreamingStarted.class);
} else if (Objects.equals(eventType, "Microsoft.Communication.MediaStreamingStopped")) {
ret = mapper.convertValue(eventData, MediaStreamingStopped.class);
} else if (Objects.equals(eventType, "Microsoft.Communication.MediaStreamingFailed")) {
ret = mapper.convertValue(eventData, MediaStreamingFailed.class);
}
return ret;
} catch (RuntimeException e) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callautomation.implementation.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The MediaStreamingFailed model. */
@Immutable
public final class MediaStreamingFailed {
/*
* Used by customers when calling mid-call actions to correlate the request
* to the response event.
*/
@JsonProperty(value = "operationContext", access = JsonProperty.Access.WRITE_ONLY)
private String operationContext;

/*
* Contains the resulting SIP code, sub-code and message.
*/
@JsonProperty(value = "resultInformation", access = JsonProperty.Access.WRITE_ONLY)
private ResultInformation resultInformation;

/*
* Defines the result for audio streaming update with the current status
* and the details about the status
*/
@JsonProperty(value = "mediaStreamingUpdate", access = JsonProperty.Access.WRITE_ONLY)
private MediaStreamingUpdate mediaStreamingUpdate;

/*
* Call connection ID.
*/
@JsonProperty(value = "callConnectionId", access = JsonProperty.Access.WRITE_ONLY)
private String callConnectionId;

/*
* Server call ID.
*/
@JsonProperty(value = "serverCallId", access = JsonProperty.Access.WRITE_ONLY)
private String serverCallId;

/*
* Correlation ID for event to call correlation. Also called ChainId for
* skype chain ID.
*/
@JsonProperty(value = "correlationId", access = JsonProperty.Access.WRITE_ONLY)
private String correlationId;

/**
* Get the operationContext property: Used by customers when calling mid-call actions to correlate the request to
* the response event.
*
* @return the operationContext value.
*/
public String getOperationContext() {
return this.operationContext;
}

/**
* Get the resultInformation property: Contains the resulting SIP code, sub-code and message.
*
* @return the resultInformation value.
*/
public ResultInformation getResultInformation() {
return this.resultInformation;
}

/**
* Get the mediaStreamingUpdate property: Defines the result for audio streaming update with the current status and
* the details about the status.
*
* @return the mediaStreamingUpdate value.
*/
public MediaStreamingUpdate getMediaStreamingUpdate() {
return this.mediaStreamingUpdate;
}

/**
* Get the callConnectionId property: Call connection ID.
*
* @return the callConnectionId value.
*/
public String getCallConnectionId() {
return this.callConnectionId;
}

/**
* Get the serverCallId property: Server call ID.
*
* @return the serverCallId value.
*/
public String getServerCallId() {
return this.serverCallId;
}

/**
* Get the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
* ID.
*
* @return the correlationId value.
*/
public String getCorrelationId() {
return this.correlationId;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callautomation.implementation.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The MediaStreamingStarted model. */
@Immutable
public final class MediaStreamingStarted {
/*
* Used by customers when calling mid-call actions to correlate the request
* to the response event.
*/
@JsonProperty(value = "operationContext", access = JsonProperty.Access.WRITE_ONLY)
private String operationContext;

/*
* Contains the resulting SIP code, sub-code and message.
*/
@JsonProperty(value = "resultInformation", access = JsonProperty.Access.WRITE_ONLY)
private ResultInformation resultInformation;

/*
* Defines the result for audio streaming update with the current status
* and the details about the status
*/
@JsonProperty(value = "mediaStreamingUpdate", access = JsonProperty.Access.WRITE_ONLY)
private MediaStreamingUpdate mediaStreamingUpdate;

/*
* Call connection ID.
*/
@JsonProperty(value = "callConnectionId", access = JsonProperty.Access.WRITE_ONLY)
private String callConnectionId;

/*
* Server call ID.
*/
@JsonProperty(value = "serverCallId", access = JsonProperty.Access.WRITE_ONLY)
private String serverCallId;

/*
* Correlation ID for event to call correlation. Also called ChainId for
* skype chain ID.
*/
@JsonProperty(value = "correlationId", access = JsonProperty.Access.WRITE_ONLY)
private String correlationId;

/**
* Get the operationContext property: Used by customers when calling mid-call actions to correlate the request to
* the response event.
*
* @return the operationContext value.
*/
public String getOperationContext() {
return this.operationContext;
}

/**
* Get the resultInformation property: Contains the resulting SIP code, sub-code and message.
*
* @return the resultInformation value.
*/
public ResultInformation getResultInformation() {
return this.resultInformation;
}

/**
* Get the mediaStreamingUpdate property: Defines the result for audio streaming update with the current status and
* the details about the status.
*
* @return the mediaStreamingUpdate value.
*/
public MediaStreamingUpdate getMediaStreamingUpdate() {
return this.mediaStreamingUpdate;
}

/**
* Get the callConnectionId property: Call connection ID.
*
* @return the callConnectionId value.
*/
public String getCallConnectionId() {
return this.callConnectionId;
}

/**
* Get the serverCallId property: Server call ID.
*
* @return the serverCallId value.
*/
public String getServerCallId() {
return this.serverCallId;
}

/**
* Get the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
* ID.
*
* @return the correlationId value.
*/
public String getCorrelationId() {
return this.correlationId;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callautomation.implementation.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for MediaStreamingStatus. */
public final class MediaStreamingStatus extends ExpandableStringEnum<MediaStreamingStatus> {
/** Static value mediaStreamingStarted for MediaStreamingStatus. */
public static final MediaStreamingStatus MEDIA_STREAMING_STARTED = fromString("mediaStreamingStarted");

/** Static value mediaStreamingFailed for MediaStreamingStatus. */
public static final MediaStreamingStatus MEDIA_STREAMING_FAILED = fromString("mediaStreamingFailed");

/** Static value mediaStreamingStopped for MediaStreamingStatus. */
public static final MediaStreamingStatus MEDIA_STREAMING_STOPPED = fromString("mediaStreamingStopped");

/** Static value unspecifiedError for MediaStreamingStatus. */
public static final MediaStreamingStatus UNSPECIFIED_ERROR = fromString("unspecifiedError");

/**
* Creates or finds a MediaStreamingStatus from its string representation.
*
* @param name a name to look for.
* @return the corresponding MediaStreamingStatus.
*/
@JsonCreator
public static MediaStreamingStatus fromString(String name) {
return fromString(name, MediaStreamingStatus.class);
}

/** @return known MediaStreamingStatus values. */
public static Collection<MediaStreamingStatus> values() {
return values(MediaStreamingStatus.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.communication.callautomation.implementation.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for MediaStreamingStatusDetails. */
public final class MediaStreamingStatusDetails extends ExpandableStringEnum<MediaStreamingStatusDetails> {
/** Static value subscriptionStarted for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails SUBSCRIPTION_STARTED = fromString("subscriptionStarted");

/** Static value streamConnectionReestablished for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails STREAM_CONNECTION_REESTABLISHED =
fromString("streamConnectionReestablished");

/** Static value streamConnectionUnsuccessful for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails STREAM_CONNECTION_UNSUCCESSFUL =
fromString("streamConnectionUnsuccessful");

/** Static value streamUrlMissing for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails STREAM_URL_MISSING = fromString("streamUrlMissing");

/** Static value serviceShutdown for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails SERVICE_SHUTDOWN = fromString("serviceShutdown");

/** Static value streamConnectionInterrupted for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails STREAM_CONNECTION_INTERRUPTED =
fromString("streamConnectionInterrupted");

/** Static value speechServicesConnectionError for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails SPEECH_SERVICES_CONNECTION_ERROR =
fromString("speechServicesConnectionError");

/** Static value subscriptionStopped for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails SUBSCRIPTION_STOPPED = fromString("subscriptionStopped");

/** Static value unspecifiedError for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails UNSPECIFIED_ERROR = fromString("unspecifiedError");

/** Static value authenticationFailure for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails AUTHENTICATION_FAILURE = fromString("authenticationFailure");

/** Static value badRequest for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails BAD_REQUEST = fromString("badRequest");

/** Static value tooManyRequests for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails TOO_MANY_REQUESTS = fromString("tooManyRequests");

/** Static value forbidden for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails FORBIDDEN = fromString("forbidden");

/** Static value serviceTimeout for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails SERVICE_TIMEOUT = fromString("serviceTimeout");

/** Static value initialWebSocketConnectionFailed for MediaStreamingStatusDetails. */
public static final MediaStreamingStatusDetails INITIAL_WEB_SOCKET_CONNECTION_FAILED =
fromString("initialWebSocketConnectionFailed");

/**
* Creates or finds a MediaStreamingStatusDetails from its string representation.
*
* @param name a name to look for.
* @return the corresponding MediaStreamingStatusDetails.
*/
@JsonCreator
public static MediaStreamingStatusDetails fromString(String name) {
return fromString(name, MediaStreamingStatusDetails.class);
}

/** @return known MediaStreamingStatusDetails values. */
public static Collection<MediaStreamingStatusDetails> values() {
return values(MediaStreamingStatusDetails.class);
}
}
Loading