ScopeMapInner Class

public final class ScopeMapInner
extends ProxyResource

An object that represents a scope map for a container registry.

Constructor Summary

Constructor Description
ScopeMapInner()

Creates an instance of ScopeMapInner class.

Method Summary

Modifier and Type Method and Description
List<String> actions()

Get the actions property: The list of scoped permissions for registry artifacts.

OffsetDateTime creationDate()

Get the creationDate property: The creation date of scope map.

String description()

Get the description property: The user friendly description of the scope map.

static ScopeMapInner fromJson(JsonReader jsonReader)

Reads an instance of ScopeMapInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

String typePropertiesType()

Get the type property: The type of the scope map.

void validate()

Validates the instance.

ScopeMapInner withActions(List<String> actions)

Set the actions property: The list of scoped permissions for registry artifacts.

ScopeMapInner withDescription(String description)

Set the description property: The user friendly description of the scope map.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ScopeMapInner

public ScopeMapInner()

Creates an instance of ScopeMapInner class.

Method Details

actions

public List actions()

Get the actions property: The list of scoped permissions for registry artifacts. E.g. repositories/repository-name/content/read, repositories/repository-name/metadata/write.

Returns:

the actions value.

creationDate

public OffsetDateTime creationDate()

Get the creationDate property: The creation date of scope map.

Returns:

the creationDate value.

description

public String description()

Get the description property: The user friendly description of the scope map.

Returns:

the description value.

fromJson

public static ScopeMapInner fromJson(JsonReader jsonReader)

Reads an instance of ScopeMapInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ScopeMapInner 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:

ScopeMapInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ScopeMapInner.name()

Returns:

the name value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ScopeMapInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ScopeMapInner.type()

Returns:

the type value.

typePropertiesType

public String typePropertiesType()

Get the type property: The type of the scope map. E.g. BuildIn scope map.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withActions

public ScopeMapInner withActions(List actions)

Set the actions property: The list of scoped permissions for registry artifacts. E.g. repositories/repository-name/content/read, repositories/repository-name/metadata/write.

Parameters:

actions - the actions value to set.

Returns:

the ScopeMapInner object itself.

withDescription

public ScopeMapInner withDescription(String description)

Set the description property: The user friendly description of the scope map.

Parameters:

description - the description value to set.

Returns:

the ScopeMapInner object itself.

Applies to