RegistryPropertiesUpdateParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.fluent.models.RegistryPropertiesUpdateParameters

Implements

public final class RegistryPropertiesUpdateParameters
implements JsonSerializable<RegistryPropertiesUpdateParameters>

The parameters for updating the properties of a container registry.

Constructor Summary

Constructor Description
RegistryPropertiesUpdateParameters()

Creates an instance of RegistryPropertiesUpdateParameters class.

Method Summary

Modifier and Type Method and Description
Boolean adminUserEnabled()

Get the adminUserEnabled property: The value that indicates whether the admin user is enabled.

Boolean anonymousPullEnabled()

Get the anonymousPullEnabled property: Enables registry-wide pull from unauthenticated clients.

Boolean dataEndpointEnabled()

Get the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.

EncryptionProperty encryption()

Get the encryption property: The encryption settings of container registry.

static RegistryPropertiesUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of RegistryPropertiesUpdateParameters from the JsonReader.

Boolean networkRuleBypassAllowedForTasks()

Get the networkRuleBypassAllowedForTasks property: Whether to allow ACR Tasks service to access a network restricted registry.

NetworkRuleBypassOptions networkRuleBypassOptions()

Get the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.

NetworkRuleSet networkRuleSet()

Get the networkRuleSet property: The network rule set for a container registry.

Policies policies()

Get the policies property: The policies for a container registry.

PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.

RoleAssignmentMode roleAssignmentMode()

Get the roleAssignmentMode property: Determines registry role assignment mode.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RegistryPropertiesUpdateParameters withAdminUserEnabled(Boolean adminUserEnabled)

Set the adminUserEnabled property: The value that indicates whether the admin user is enabled.

RegistryPropertiesUpdateParameters withAnonymousPullEnabled(Boolean anonymousPullEnabled)

Set the anonymousPullEnabled property: Enables registry-wide pull from unauthenticated clients.

RegistryPropertiesUpdateParameters withDataEndpointEnabled(Boolean dataEndpointEnabled)

Set the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.

RegistryPropertiesUpdateParameters withEncryption(EncryptionProperty encryption)

Set the encryption property: The encryption settings of container registry.

RegistryPropertiesUpdateParameters withNetworkRuleBypassAllowedForTasks(Boolean networkRuleBypassAllowedForTasks)

Set the networkRuleBypassAllowedForTasks property: Whether to allow ACR Tasks service to access a network restricted registry.

RegistryPropertiesUpdateParameters withNetworkRuleBypassOptions(NetworkRuleBypassOptions networkRuleBypassOptions)

Set the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.

RegistryPropertiesUpdateParameters withNetworkRuleSet(NetworkRuleSet networkRuleSet)

Set the networkRuleSet property: The network rule set for a container registry.

RegistryPropertiesUpdateParameters withPolicies(Policies policies)

Set the policies property: The policies for a container registry.

RegistryPropertiesUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.

RegistryPropertiesUpdateParameters withRoleAssignmentMode(RoleAssignmentMode roleAssignmentMode)

Set the roleAssignmentMode property: Determines registry role assignment mode.

Methods inherited from java.lang.Object

Constructor Details

RegistryPropertiesUpdateParameters

public RegistryPropertiesUpdateParameters()

Creates an instance of RegistryPropertiesUpdateParameters class.

Method Details

adminUserEnabled

public Boolean adminUserEnabled()

Get the adminUserEnabled property: The value that indicates whether the admin user is enabled.

Returns:

the adminUserEnabled value.

anonymousPullEnabled

public Boolean anonymousPullEnabled()

Get the anonymousPullEnabled property: Enables registry-wide pull from unauthenticated clients.

Returns:

the anonymousPullEnabled value.

dataEndpointEnabled

public Boolean dataEndpointEnabled()

Get the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.

Returns:

the dataEndpointEnabled value.

encryption

public EncryptionProperty encryption()

Get the encryption property: The encryption settings of container registry.

Returns:

the encryption value.

fromJson

public static RegistryPropertiesUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of RegistryPropertiesUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the RegistryPropertiesUpdateParameters.

networkRuleBypassAllowedForTasks

public Boolean networkRuleBypassAllowedForTasks()

Get the networkRuleBypassAllowedForTasks property: Whether to allow ACR Tasks service to access a network restricted registry.

Returns:

the networkRuleBypassAllowedForTasks value.

networkRuleBypassOptions

public NetworkRuleBypassOptions networkRuleBypassOptions()

Get the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.

Returns:

the networkRuleBypassOptions value.

networkRuleSet

public NetworkRuleSet networkRuleSet()

Get the networkRuleSet property: The network rule set for a container registry.

Returns:

the networkRuleSet value.

policies

public Policies policies()

Get the policies property: The policies for a container registry.

Returns:

the policies value.

publicNetworkAccess

public PublicNetworkAccess publicNetworkAccess()

Get the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.

Returns:

the publicNetworkAccess value.

roleAssignmentMode

public RoleAssignmentMode roleAssignmentMode()

Get the roleAssignmentMode property: Determines registry role assignment mode.

Returns:

the roleAssignmentMode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdminUserEnabled

public RegistryPropertiesUpdateParameters withAdminUserEnabled(Boolean adminUserEnabled)

Set the adminUserEnabled property: The value that indicates whether the admin user is enabled.

Parameters:

adminUserEnabled - the adminUserEnabled value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withAnonymousPullEnabled

public RegistryPropertiesUpdateParameters withAnonymousPullEnabled(Boolean anonymousPullEnabled)

Set the anonymousPullEnabled property: Enables registry-wide pull from unauthenticated clients.

Parameters:

anonymousPullEnabled - the anonymousPullEnabled value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withDataEndpointEnabled

public RegistryPropertiesUpdateParameters withDataEndpointEnabled(Boolean dataEndpointEnabled)

Set the dataEndpointEnabled property: Enable a single data endpoint per region for serving data.

Parameters:

dataEndpointEnabled - the dataEndpointEnabled value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withEncryption

public RegistryPropertiesUpdateParameters withEncryption(EncryptionProperty encryption)

Set the encryption property: The encryption settings of container registry.

Parameters:

encryption - the encryption value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withNetworkRuleBypassAllowedForTasks

public RegistryPropertiesUpdateParameters withNetworkRuleBypassAllowedForTasks(Boolean networkRuleBypassAllowedForTasks)

Set the networkRuleBypassAllowedForTasks property: Whether to allow ACR Tasks service to access a network restricted registry.

Parameters:

networkRuleBypassAllowedForTasks - the networkRuleBypassAllowedForTasks value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withNetworkRuleBypassOptions

public RegistryPropertiesUpdateParameters withNetworkRuleBypassOptions(NetworkRuleBypassOptions networkRuleBypassOptions)

Set the networkRuleBypassOptions property: Whether to allow trusted Azure services to access a network restricted registry.

Parameters:

networkRuleBypassOptions - the networkRuleBypassOptions value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withNetworkRuleSet

public RegistryPropertiesUpdateParameters withNetworkRuleSet(NetworkRuleSet networkRuleSet)

Set the networkRuleSet property: The network rule set for a container registry.

Parameters:

networkRuleSet - the networkRuleSet value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withPolicies

public RegistryPropertiesUpdateParameters withPolicies(Policies policies)

Set the policies property: The policies for a container registry.

Parameters:

policies - the policies value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withPublicNetworkAccess

public RegistryPropertiesUpdateParameters withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess)

Set the publicNetworkAccess property: Whether or not public network access is allowed for the container registry.

Parameters:

publicNetworkAccess - the publicNetworkAccess value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

withRoleAssignmentMode

public RegistryPropertiesUpdateParameters withRoleAssignmentMode(RoleAssignmentMode roleAssignmentMode)

Set the roleAssignmentMode property: Determines registry role assignment mode.

Parameters:

roleAssignmentMode - the roleAssignmentMode value to set.

Returns:

the RegistryPropertiesUpdateParameters object itself.

Applies to