Class OAuthTokensAsyncClient
java.lang.Object
com.azure.verticals.agrifood.farming.OAuthTokensAsyncClient
Initializes a new instance of the asynchronous FarmBeatsClient type.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,
com.azure.core.util.BinaryData> beginCreateCascadeDeleteJob
(String jobId, String partyId, String oauthProviderId, com.azure.core.http.rest.RequestOptions requestOptions) Create remove job for OAuth token.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
getCascadeDeleteJobDetailsWithResponse
(String jobId, com.azure.core.http.rest.RequestOptions requestOptions) Get remove job for OAuth token.Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>>
getOAuthConnectionLinkWithResponse
(com.azure.core.util.BinaryData oauthConnectRequest, com.azure.core.http.rest.RequestOptions requestOptions) Returns Connection link needed in the OAuth flow.com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData>
list
(com.azure.core.http.rest.RequestOptions requestOptions) Returns a list of OAuthToken documents.
-
Method Details
-
list
public com.azure.core.http.rest.PagedFlux<com.azure.core.util.BinaryData> list(com.azure.core.http.rest.RequestOptions requestOptions) Returns a list of OAuthToken documents.Query Parameters
Query Parameters Name Type Required Description authProviderIds List<String> No Name of AuthProvider. Call RequestOptions.addQueryParam(java.lang.String, java.lang.String)
to add string to array.partyIds List<String> No List of parties. Call RequestOptions.addQueryParam(java.lang.String, java.lang.String)
to add string to array.isValid Boolean No If the token object is valid. minCreatedDateTime OffsetDateTime No Minimum creation date of resource (inclusive). maxCreatedDateTime OffsetDateTime No Maximum creation date of resource (inclusive). minLastModifiedDateTime OffsetDateTime No Minimum last modified date of resource (inclusive). maxLastModifiedDateTime OffsetDateTime No Maximum last modified date of resource (inclusive). maxPageSize Integer No Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50. skipToken String No Skip token for getting next set of results. RequestOptions.addQueryParam(java.lang.String, java.lang.String)
Response Body Schema
{ partyId: String (Required) authProviderId: String (Required) isValid: Boolean (Optional) eTag: String (Optional) createdDateTime: OffsetDateTime (Optional) modifiedDateTime: OffsetDateTime (Optional) }
- Parameters:
requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- paged response contains list of requested objects and a URL link to get the next set of results as
paginated response with
PagedFlux
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getOAuthConnectionLinkWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getOAuthConnectionLinkWithResponse(com.azure.core.util.BinaryData oauthConnectRequest, com.azure.core.http.rest.RequestOptions requestOptions) Returns Connection link needed in the OAuth flow.Request Body Schema
{ partyId: String (Required) oAuthProviderId: String (Required) userRedirectLink: String (Required) userRedirectState: String (Optional) }
Response Body Schema
String
- Parameters:
oauthConnectRequest
- OAuth Connect Request.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the response body along with
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
getCascadeDeleteJobDetailsWithResponse
public Mono<com.azure.core.http.rest.Response<com.azure.core.util.BinaryData>> getCascadeDeleteJobDetailsWithResponse(String jobId, com.azure.core.http.rest.RequestOptions requestOptions) Get remove job for OAuth token.Response Body Schema
{ partyId: String (Required) resourceId: String (Required) resourceType: String (Required) id: String (Optional) status: String(Waiting/Running/Succeeded/Failed/Cancelled) (Optional) durationInSeconds: Double (Optional) message: String (Optional) errorCode: String (Optional) createdDateTime: OffsetDateTime (Optional) lastActionDateTime: OffsetDateTime (Optional) startTime: OffsetDateTime (Optional) endTime: OffsetDateTime (Optional) }
- Parameters:
jobId
- Id of the job.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- remove job for OAuth token along with
Response
on successful completion ofMono
. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-
beginCreateCascadeDeleteJob
public com.azure.core.util.polling.PollerFlux<com.azure.core.util.BinaryData,com.azure.core.util.BinaryData> beginCreateCascadeDeleteJob(String jobId, String partyId, String oauthProviderId, com.azure.core.http.rest.RequestOptions requestOptions) Create remove job for OAuth token.Response Body Schema
{ partyId: String (Required) resourceId: String (Required) resourceType: String (Required) id: String (Optional) status: String(Waiting/Running/Succeeded/Failed/Cancelled) (Optional) durationInSeconds: Double (Optional) message: String (Optional) errorCode: String (Optional) createdDateTime: OffsetDateTime (Optional) lastActionDateTime: OffsetDateTime (Optional) startTime: OffsetDateTime (Optional) endTime: OffsetDateTime (Optional) }
- Parameters:
jobId
- Job Id supplied by end user.partyId
- Id of the party.oauthProviderId
- Id of the OAuthProvider.requestOptions
- The options to configure the HTTP request before HTTP client sends it.- Returns:
- the
PollerFlux
for polling of schema of cascade delete job. - Throws:
com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.com.azure.core.exception.ClientAuthenticationException
- thrown if the request is rejected by server on status code 401.com.azure.core.exception.ResourceNotFoundException
- thrown if the request is rejected by server on status code 404.com.azure.core.exception.ResourceModifiedException
- thrown if the request is rejected by server on status code 409.
-