Partager via


RevisionInner Class

public final class RevisionInner
extends Resource

Container App Revision.

Constructor Summary

Constructor Description
RevisionInner()

Creates an instance of RevisionInner class.

Method Summary

Modifier and Type Method and Description
Boolean active()

Get the active property: Boolean describing if the Revision is Active.

OffsetDateTime createdTime()

Get the createdTime property: Timestamp describing when the revision was created by controller.

String fqdn()

Get the fqdn property: Fully qualified domain name of the revision.

static RevisionInner fromJson(JsonReader jsonReader)

Reads an instance of RevisionInner from the JsonReader.

RevisionHealthState healthState()

Get the healthState property: Current health State of the revision.

String id()

Get the id property: Fully qualified resource Id for the resource.

String kind()

Get the kind property: Kind of resource.

String name()

Get the name property: The name of the resource.

String provisioningError()

Get the provisioningError property: Optional Field - Platform Error Message.

RevisionProvisioningState provisioningState()

Get the provisioningState property: Current provisioning State of the revision.

Integer replicas()

Get the replicas property: Number of pods currently running for this revision.

Template template()

Get the template property: Container App Revision Template with all possible settings and the defaults if user did not provide them.

JsonWriter toJson(JsonWriter jsonWriter)
Integer trafficWeight()

Get the trafficWeight property: Traffic weight assigned to this revision.

String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

RevisionInner withKind(String kind)

Set the kind property: Kind of resource.

RevisionInner withLocation(String location)
RevisionInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

RevisionInner

public RevisionInner()

Creates an instance of RevisionInner class.

Method Details

active

public Boolean active()

Get the active property: Boolean describing if the Revision is Active.

Returns:

the active value.

createdTime

public OffsetDateTime createdTime()

Get the createdTime property: Timestamp describing when the revision was created by controller.

Returns:

the createdTime value.

fqdn

public String fqdn()

Get the fqdn property: Fully qualified domain name of the revision.

Returns:

the fqdn value.

fromJson

public static RevisionInner fromJson(JsonReader jsonReader)

Reads an instance of RevisionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RevisionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

healthState

public RevisionHealthState healthState()

Get the healthState property: Current health State of the revision.

Returns:

the healthState value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RevisionInner.id()

Returns:

the id value.

kind

public String kind()

Get the kind property: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things\_You\_Should\_Know/kind\_property.md\#app-service-resource-kind-reference for details supported values for kind.

Returns:

the kind value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RevisionInner.name()

Returns:

the name value.

provisioningError

public String provisioningError()

Get the provisioningError property: Optional Field - Platform Error Message.

Returns:

the provisioningError value.

provisioningState

public RevisionProvisioningState provisioningState()

Get the provisioningState property: Current provisioning State of the revision.

Returns:

the provisioningState value.

replicas

public Integer replicas()

Get the replicas property: Number of pods currently running for this revision.

Returns:

the replicas value.

template

public Template template()

Get the template property: Container App Revision Template with all possible settings and the defaults if user did not provide them. The defaults are populated as they were at the creation time.

Returns:

the template value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RevisionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trafficWeight

public Integer trafficWeight()

Get the trafficWeight property: Traffic weight assigned to this revision.

Returns:

the trafficWeight value.

type

public String type()

Get the type property: The type of the resource.

Overrides:

RevisionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withKind

public RevisionInner withKind(String kind)

Set the kind property: Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things\_You\_Should\_Know/kind\_property.md\#app-service-resource-kind-reference for details supported values for kind.

Parameters:

kind - the kind value to set.

Returns:

the RevisionInner object itself.

withLocation

public RevisionInner withLocation(String location)

Overrides:

RevisionInner.withLocation(String location)

Parameters:

location

withTags

public RevisionInner withTags(Map tags)

Overrides:

RevisionInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to