Interface AuthorizationContract
public interface AuthorizationContract
An immutable client-side representation of AuthorizationContract.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the AuthorizationContract definition.static interfaceThe AuthorizationContract definition stages.static interfaceThe template for AuthorizationContract update.static interfaceThe AuthorizationContract update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the authorizationType property: Authorization type options.voidConfirm valid consent code to suppress Authorizations anti-phishing page.confirmConsentCodeWithResponse(AuthorizationConfirmConsentCodeRequestContract parameters, com.azure.core.util.Context context) Confirm valid consent code to suppress Authorizations anti-phishing page.error()Gets the error property: Authorization error details.id()Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.AuthorizationContractInner object.name()Gets the name property: The name of the resource.Gets the oAuth2GrantType property: OAuth2 grant type options.Gets the parameters property: Authorization parameters.refresh()Refreshes the resource to sync with Azure.refresh(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.Gets the name of the resource group.status()Gets the status property: Status of the Authorization.type()Gets the type property: The type of the resource.update()Begins update for the AuthorizationContract resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
authorizationType
AuthorizationType authorizationType()Gets the authorizationType property: Authorization type options.- Returns:
- the authorizationType value.
-
oAuth2GrantType
OAuth2GrantType oAuth2GrantType()Gets the oAuth2GrantType property: OAuth2 grant type options.- Returns:
- the oAuth2GrantType value.
-
parameters
Gets the parameters property: Authorization parameters.- Returns:
- the parameters value.
-
error
AuthorizationError error()Gets the error property: Authorization error details.- Returns:
- the error value.
-
status
String status()Gets the status property: Status of the Authorization.- Returns:
- the status value.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
AuthorizationContractInner innerModel()Gets the inner com.azure.resourcemanager.apimanagement.fluent.models.AuthorizationContractInner object.- Returns:
- the inner object.
-
update
AuthorizationContract.Update update()Begins update for the AuthorizationContract resource.- Returns:
- the stage of resource update.
-
refresh
AuthorizationContract refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context- The context to associate with this operation.- Returns:
- the refreshed resource.
-
confirmConsentCodeWithResponse
AuthorizationsConfirmConsentCodeResponse confirmConsentCodeWithResponse(AuthorizationConfirmConsentCodeRequestContract parameters, com.azure.core.util.Context context) Confirm valid consent code to suppress Authorizations anti-phishing page.- Parameters:
parameters- Create parameters.context- The context to associate with this operation.- Returns:
- the response.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
confirmConsentCode
Confirm valid consent code to suppress Authorizations anti-phishing page.- Parameters:
parameters- Create parameters.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-