Skip to content

Commit

Permalink
updating swagger link from main
Browse files Browse the repository at this point in the history
  • Loading branch information
v-vdharmaraj committed Nov 23, 2024
1 parent 5c5af34 commit 16f1fe5
Show file tree
Hide file tree
Showing 56 changed files with 237 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.AddHeadersPolicy;
import com.azure.core.http.policy.AzureKeyCredentialPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
Expand Down Expand Up @@ -298,20 +298,24 @@ private HttpPipeline createHttpPipeline() {
if (headers.getSize() > 0) {
policies.add(new AddHeadersPolicy(headers));
}
this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
this.pipelinePolicies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.forEach(p -> policies.add(p));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(ClientBuilderUtil.validateAndGetRetryPolicy(retryPolicy, retryOptions, new RetryPolicy()));
policies.add(new AddDatePolicy());
if (azureKeyCredential != null) {
policies.add(new AzureKeyCredentialPolicy("Authorization", azureKeyCredential));
}
this.pipelinePolicies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
this.pipelinePolicies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.forEach(p -> policies.add(p));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(localHttpLogOptions));
HttpPipeline httpPipeline = new HttpPipelineBuilder().policies(policies.toArray(new HttpPipelinePolicy[0]))
.httpClient(httpClient).clientOptions(localClientOptions).build();
.httpClient(httpClient)
.clientOptions(localClientOptions)
.build();
return httpPipeline;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public final class AddParticipantRequestInternal implements JsonSerializable<Add

/*
* (Optional) The display name of the source that is associated with this invite operation when
* adding a PSTN participant or teams user. Note: Will not update the display name in the roster.
* adding a PSTN participant or teams user. Note: Will not update the display name in the roster.
*/
private String sourceDisplayName;

Expand All @@ -46,8 +46,7 @@ public final class AddParticipantRequestInternal implements JsonSerializable<Add

/*
* Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be
* used.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
*/
private String operationCallbackUri;

Expand All @@ -63,8 +62,8 @@ public AddParticipantRequestInternal() {
}

/**
* Get the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN
* participant being invited.
* Get the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN participant
* being invited.
* Required only when inviting a PSTN participant.
*
* @return the sourceCallerIdNumber value.
Expand All @@ -74,8 +73,8 @@ public PhoneNumberIdentifierModel getSourceCallerIdNumber() {
}

/**
* Set the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN
* participant being invited.
* Set the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN participant
* being invited.
* Required only when inviting a PSTN participant.
*
* @param sourceCallerIdNumber the sourceCallerIdNumber value to set.
Expand All @@ -87,8 +86,8 @@ public AddParticipantRequestInternal setSourceCallerIdNumber(PhoneNumberIdentifi
}

/**
* Get the sourceDisplayName property: (Optional) The display name of the source that is associated with this
* invite operation when
* Get the sourceDisplayName property: (Optional) The display name of the source that is associated with this invite
* operation when
* adding a PSTN participant or teams user. Note: Will not update the display name in the roster.
*
* @return the sourceDisplayName value.
Expand All @@ -98,8 +97,8 @@ public String getSourceDisplayName() {
}

/**
* Set the sourceDisplayName property: (Optional) The display name of the source that is associated with this
* invite operation when
* Set the sourceDisplayName property: (Optional) The display name of the source that is associated with this invite
* operation when
* adding a PSTN participant or teams user. Note: Will not update the display name in the roster.
*
* @param sourceDisplayName the sourceDisplayName value to set.
Expand Down Expand Up @@ -179,8 +178,7 @@ public AddParticipantRequestInternal setOperationContext(String operationContext
/**
* Get the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by
* CreateCall/AnswerCall for this operation.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be
* used.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
*
* @return the operationCallbackUri value.
*/
Expand All @@ -191,8 +189,7 @@ public String getOperationCallbackUri() {
/**
* Set the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by
* CreateCall/AnswerCall for this operation.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be
* used.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
*
* @param operationCallbackUri the operationCallbackUri value to set.
* @return the AddParticipantRequestInternal object itself.
Expand Down Expand Up @@ -222,6 +219,9 @@ public AddParticipantRequestInternal setCustomCallingContext(CustomCallingContex
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public AddParticipantResponseInternal setInvitationId(String invitationId) {
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ public AnswerCallRequestInternal setAnsweredBy(CommunicationUserIdentifierModel
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public final class CallConnectionPropertiesInternal implements JsonSerializable<
private CommunicationUserIdentifierModel answeredBy;

/*
* Identity of the original PSTN target of an incoming Call. Only populated when the original target is a PSTN
* number and an inbound call.
* Identity of the original PSTN target of an incoming Call. Only populated when the original target is a PSTN number and an inbound call.
*/
private PhoneNumberIdentifierModel answeredFor;

Expand Down Expand Up @@ -182,8 +181,8 @@ public CallConnectionPropertiesInternal setCallbackUri(String callbackUri) {
}

/**
* Get the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN
* participant being invited.
* Get the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN participant
* being invited.
* Only populated in outbound PSTN calls.
*
* @return the sourceCallerIdNumber value.
Expand All @@ -193,8 +192,8 @@ public PhoneNumberIdentifierModel getSourceCallerIdNumber() {
}

/**
* Set the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN
* participant being invited.
* Set the sourceCallerIdNumber property: The source caller Id, a phone number, that's shown to the PSTN participant
* being invited.
* Only populated in outbound PSTN calls.
*
* @param sourceCallerIdNumber the sourceCallerIdNumber value to set.
Expand Down Expand Up @@ -309,6 +308,9 @@ public CallConnectionPropertiesInternal setAnsweredFor(PhoneNumberIdentifierMode
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public CallIntelligenceOptionsInternal setCognitiveServicesEndpoint(String cogni
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ public CallLocatorInternal setKind(CallLocatorKindInternal kind) {
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public CallParticipantInternal setIsOnHold(Boolean isOnHold) {
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public final class CancelAddParticipantRequest implements JsonSerializable<Cance

/*
* Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be
* used.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
*/
private String operationCallbackUri;

Expand Down Expand Up @@ -84,8 +83,7 @@ public CancelAddParticipantRequest setOperationContext(String operationContext)
/**
* Get the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by
* CreateCall/AnswerCall for this operation.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be
* used.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
*
* @return the operationCallbackUri value.
*/
Expand All @@ -96,8 +94,7 @@ public String getOperationCallbackUri() {
/**
* Set the operationCallbackUri property: Set a callback URI that overrides the default callback URI set by
* CreateCall/AnswerCall for this operation.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be
* used.
* This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.
*
* @param operationCallbackUri the operationCallbackUri value to set.
* @return the CancelAddParticipantRequest object itself.
Expand All @@ -107,6 +104,9 @@ public CancelAddParticipantRequest setOperationCallbackUri(String operationCallb
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ public CancelAddParticipantResponse setOperationContext(String operationContext)
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public final class ChannelAffinityInternal implements JsonSerializable<ChannelAf
private Integer channel;

/*
* The identifier for the participant whose bitstream will be written to the channel
* The identifier for the participant whose bitstream will be written to the channel
* represented by the channel number.
*/
private CommunicationIdentifierModel participant;
Expand Down Expand Up @@ -75,6 +75,9 @@ public ChannelAffinityInternal setParticipant(CommunicationIdentifierModel parti
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public final class ChoiceResultInternal implements JsonSerializable<ChoiceResult

/*
* Phrases are set to the value if choice is selected via phrase detection.
* If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set
* to null
* If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to null
*/
private String recognizedPhrase;

Expand Down Expand Up @@ -56,8 +55,8 @@ public ChoiceResultInternal setLabel(String label) {

/**
* Get the recognizedPhrase property: Phrases are set to the value if choice is selected via phrase detection.
* If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set
* to null.
* If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to
* null.
*
* @return the recognizedPhrase value.
*/
Expand All @@ -67,8 +66,8 @@ public String getRecognizedPhrase() {

/**
* Set the recognizedPhrase property: Phrases are set to the value if choice is selected via phrase detection.
* If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set
* to null.
* If Dtmf input is recognized, then Label will be the identifier for the choice detected and phrases will be set to
* null.
*
* @param recognizedPhrase the recognizedPhrase value to set.
* @return the ChoiceResultInternal object itself.
Expand All @@ -78,6 +77,9 @@ public ChoiceResultInternal setRecognizedPhrase(String recognizedPhrase) {
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ public CommunicationError getInnerError() {
return this.innerError;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public CommunicationErrorResponse setError(CommunicationError error) {
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ public CommunicationIdentifierModel setMicrosoftTeamsApp(MicrosoftTeamsAppIdenti
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public CommunicationUserIdentifierModel setId(String id) {
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ public ConnectRequestInternal setCallIntelligenceOptions(CallIntelligenceOptions
return this;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
Expand Down
Loading

0 comments on commit 16f1fe5

Please sign in to comment.