Partilhar via


GalleryInVMAccessControlProfileVersionInner Class

public final class GalleryInVMAccessControlProfileVersionInner
extends Resource

Specifies information about the gallery inVMAccessControlProfile version that you want to create or update.

Constructor Summary

Constructor Description
GalleryInVMAccessControlProfileVersionInner()

Creates an instance of GalleryInVMAccessControlProfileVersionInner class.

Method Summary

Modifier and Type Method and Description
EndpointAccess defaultAccess()

Get the defaultAccess property: This property allows you to specify if the requests will be allowed to access the host endpoints.

Boolean excludeFromLatest()

Get the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version.

static GalleryInVMAccessControlProfileVersionInner fromJson(JsonReader jsonReader)

Reads an instance of GalleryInVMAccessControlProfileVersionInner from the JsonReader.

String id()

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

AccessControlRulesMode mode()

Get the mode property: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled.

String name()

Get the name property: The name of the resource.

GalleryProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

OffsetDateTime publishedDate()

Get the publishedDate property: The timestamp for when the Resource Profile Version is published.

ReplicationStatus replicationStatus()

Get the replicationStatus property: This is the replication status of the gallery image version.

AccessControlRules rules()

Get the rules property: This is the Access Control Rules specification for an inVMAccessControlProfile version.

List<TargetRegion> targetLocations()

Get the targetLocations property: The target regions where the Resource Profile version is going to be replicated to.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GalleryInVMAccessControlProfileVersionInner withDefaultAccess(EndpointAccess defaultAccess)

Set the defaultAccess property: This property allows you to specify if the requests will be allowed to access the host endpoints.

GalleryInVMAccessControlProfileVersionInner withExcludeFromLatest(Boolean excludeFromLatest)

Set the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version.

GalleryInVMAccessControlProfileVersionInner withLocation(String location)
GalleryInVMAccessControlProfileVersionInner withMode(AccessControlRulesMode mode)

Set the mode property: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled.

GalleryInVMAccessControlProfileVersionInner withRules(AccessControlRules rules)

Set the rules property: This is the Access Control Rules specification for an inVMAccessControlProfile version.

GalleryInVMAccessControlProfileVersionInner withTags(Map<String,String> tags)
GalleryInVMAccessControlProfileVersionInner withTargetLocations(List<TargetRegion> targetLocations)

Set the targetLocations property: The target regions where the Resource Profile version is going to be replicated to.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

GalleryInVMAccessControlProfileVersionInner

public GalleryInVMAccessControlProfileVersionInner()

Creates an instance of GalleryInVMAccessControlProfileVersionInner class.

Method Details

defaultAccess

public EndpointAccess defaultAccess()

Get the defaultAccess property: This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'.

Returns:

the defaultAccess value.

excludeFromLatest

public Boolean excludeFromLatest()

Get the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version.

Returns:

the excludeFromLatest value.

fromJson

public static GalleryInVMAccessControlProfileVersionInner fromJson(JsonReader jsonReader)

Reads an instance of GalleryInVMAccessControlProfileVersionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GalleryInVMAccessControlProfileVersionInner 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.

id

public String id()

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

Overrides:

GalleryInVMAccessControlProfileVersionInner.id()

Returns:

the id value.

mode

public AccessControlRulesMode mode()

Get the mode property: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'.

Returns:

the mode value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GalleryInVMAccessControlProfileVersionInner.name()

Returns:

the name value.

provisioningState

public GalleryProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

Returns:

the provisioningState value.

publishedDate

public OffsetDateTime publishedDate()

Get the publishedDate property: The timestamp for when the Resource Profile Version is published.

Returns:

the publishedDate value.

replicationStatus

public ReplicationStatus replicationStatus()

Get the replicationStatus property: This is the replication status of the gallery image version.

Returns:

the replicationStatus value.

rules

public AccessControlRules rules()

Get the rules property: This is the Access Control Rules specification for an inVMAccessControlProfile version.

Returns:

the rules value.

targetLocations

public List targetLocations()

Get the targetLocations property: The target regions where the Resource Profile version is going to be replicated to. This property is updatable.

Returns:

the targetLocations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryInVMAccessControlProfileVersionInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GalleryInVMAccessControlProfileVersionInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDefaultAccess

public GalleryInVMAccessControlProfileVersionInner withDefaultAccess(EndpointAccess defaultAccess)

Set the defaultAccess property: This property allows you to specify if the requests will be allowed to access the host endpoints. Possible values are: 'Allow', 'Deny'.

Parameters:

defaultAccess - the defaultAccess value to set.

Returns:

the GalleryInVMAccessControlProfileVersionInner object itself.

withExcludeFromLatest

public GalleryInVMAccessControlProfileVersionInner withExcludeFromLatest(Boolean excludeFromLatest)

Set the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Resource Profile won't use this Profile version.

Parameters:

excludeFromLatest - the excludeFromLatest value to set.

Returns:

the GalleryInVMAccessControlProfileVersionInner object itself.

withLocation

public GalleryInVMAccessControlProfileVersionInner withLocation(String location)

Overrides:

GalleryInVMAccessControlProfileVersionInner.withLocation(String location)

Parameters:

location

withMode

public GalleryInVMAccessControlProfileVersionInner withMode(AccessControlRulesMode mode)

Set the mode property: This property allows you to specify whether the access control rules are in Audit mode, in Enforce mode or Disabled. Possible values are: 'Audit', 'Enforce' or 'Disabled'.

Parameters:

mode - the mode value to set.

Returns:

the GalleryInVMAccessControlProfileVersionInner object itself.

withRules

public GalleryInVMAccessControlProfileVersionInner withRules(AccessControlRules rules)

Set the rules property: This is the Access Control Rules specification for an inVMAccessControlProfile version.

Parameters:

rules - the rules value to set.

Returns:

the GalleryInVMAccessControlProfileVersionInner object itself.

withTags

public GalleryInVMAccessControlProfileVersionInner withTags(Map tags)

Overrides:

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

Parameters:

tags

withTargetLocations

public GalleryInVMAccessControlProfileVersionInner withTargetLocations(List targetLocations)

Set the targetLocations property: The target regions where the Resource Profile version is going to be replicated to. This property is updatable.

Parameters:

targetLocations - the targetLocations value to set.

Returns:

the GalleryInVMAccessControlProfileVersionInner object itself.

Applies to