ApiPortalProperties Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. ApiPortalProperties
- com.
Implements
public final class ApiPortalProperties
implements JsonSerializable<ApiPortalProperties>
API portal properties payload.
Constructor Summary
Constructor | Description |
---|---|
ApiPortalProperties() |
Creates an instance of Api |
Method Summary
Modifier and Type | Method and Description |
---|---|
Api |
apiTryOutEnabledState()
Get the api |
static
Api |
fromJson(JsonReader jsonReader)
Reads an instance of Api |
List<String> |
gatewayIds()
Get the gateway |
Boolean |
httpsOnly()
Get the https |
List<Api |
instances()
Get the instances property: Collection of instances belong to API portal. |
Api |
provisioningState()
Get the provisioning |
Boolean |
publicProperty()
Get the public |
Api |
resourceRequests()
Get the resource |
List<String> |
sourceUrls()
Get the source |
Sso |
ssoProperties()
Get the sso |
Json |
toJson(JsonWriter jsonWriter) |
String |
url()
Get the url property: URL of the API portal, exposed when 'public' is true. |
void |
validate()
Validates the instance. |
Api |
withApiTryOutEnabledState(ApiPortalApiTryOutEnabledState apiTryOutEnabledState)
Set the api |
Api |
withGatewayIds(List<String> gatewayIds)
Set the gateway |
Api |
withHttpsOnly(Boolean httpsOnly)
Set the https |
Api |
withPublicProperty(Boolean publicProperty)
Set the public |
Api |
withSourceUrls(List<String> sourceUrls)
Set the source |
Api |
withSsoProperties(SsoProperties ssoProperties)
Set the sso |
Methods inherited from java.lang.Object
Constructor Details
ApiPortalProperties
public ApiPortalProperties()
Creates an instance of ApiPortalProperties class.
Method Details
apiTryOutEnabledState
public ApiPortalApiTryOutEnabledState apiTryOutEnabledState()
Get the apiTryOutEnabledState property: Indicates whether the API try-out feature is enabled or disabled. When enabled, users can try out the API by sending requests and viewing responses in API portal. When disabled, users cannot try out the API.
Returns:
fromJson
public static ApiPortalProperties fromJson(JsonReader jsonReader)
Reads an instance of ApiPortalProperties from the JsonReader.
Parameters:
Returns:
Throws:
gatewayIds
public List
Get the gatewayIds property: The array of resource Ids of gateway to integrate with API portal.
Returns:
httpsOnly
public Boolean httpsOnly()
Get the httpsOnly property: Indicate if only https is allowed.
Returns:
instances
public List
Get the instances property: Collection of instances belong to API portal.
Returns:
provisioningState
public ApiPortalProvisioningState provisioningState()
Get the provisioningState property: State of the API portal.
Returns:
publicProperty
public Boolean publicProperty()
Get the publicProperty property: Indicates whether the API portal exposes endpoint.
Returns:
resourceRequests
public ApiPortalResourceRequests resourceRequests()
Get the resourceRequests property: The requested resource quantity for required CPU and Memory.
Returns:
sourceUrls
public List
Get the sourceUrls property: Collection of OpenAPI source URL locations.
Returns:
ssoProperties
public SsoProperties ssoProperties()
Get the ssoProperties property: Single sign-on related configuration.
Returns:
toJson
url
public String url()
Get the url property: URL of the API portal, exposed when 'public' is true.
Returns:
validate
public void validate()
Validates the instance.
withApiTryOutEnabledState
public ApiPortalProperties withApiTryOutEnabledState(ApiPortalApiTryOutEnabledState apiTryOutEnabledState)
Set the apiTryOutEnabledState property: Indicates whether the API try-out feature is enabled or disabled. When enabled, users can try out the API by sending requests and viewing responses in API portal. When disabled, users cannot try out the API.
Parameters:
Returns:
withGatewayIds
public ApiPortalProperties withGatewayIds(List
Set the gatewayIds property: The array of resource Ids of gateway to integrate with API portal.
Parameters:
Returns:
withHttpsOnly
public ApiPortalProperties withHttpsOnly(Boolean httpsOnly)
Set the httpsOnly property: Indicate if only https is allowed.
Parameters:
Returns:
withPublicProperty
public ApiPortalProperties withPublicProperty(Boolean publicProperty)
Set the publicProperty property: Indicates whether the API portal exposes endpoint.
Parameters:
Returns:
withSourceUrls
public ApiPortalProperties withSourceUrls(List
Set the sourceUrls property: Collection of OpenAPI source URL locations.
Parameters:
Returns:
withSsoProperties
public ApiPortalProperties withSsoProperties(SsoProperties ssoProperties)
Set the ssoProperties property: Single sign-on related configuration.
Parameters:
Returns:
Applies to
Azure SDK for Java