Share via


OperationsDiscovery Class

  • java.lang.Object
    • com.azure.resourcemanager.resourcemover.models.OperationsDiscovery

Implements

public final class OperationsDiscovery
implements JsonSerializable<OperationsDiscovery>

Operations discovery class.

Constructor Summary

Constructor Description
OperationsDiscovery()

Creates an instance of OperationsDiscovery class.

Method Summary

Modifier and Type Method and Description
Display display()

Get the display property: Contains the localized display information for this particular operation / action.

static OperationsDiscovery fromJson(JsonReader jsonReader)

Reads an instance of OperationsDiscovery from the JsonReader.

Boolean isDataAction()

Get the isDataAction property: Indicates whether the operation is a data action.

String name()

Get the name property: Gets or sets Name of the API.

String origin()

Get the origin property: Gets or sets Origin.

Object properties()

Get the properties property: ClientDiscovery properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationsDiscovery withDisplay(Display display)

Set the display property: Contains the localized display information for this particular operation / action.

OperationsDiscovery withIsDataAction(Boolean isDataAction)

Set the isDataAction property: Indicates whether the operation is a data action.

OperationsDiscovery withName(String name)

Set the name property: Gets or sets Name of the API.

OperationsDiscovery withOrigin(String origin)

Set the origin property: Gets or sets Origin.

OperationsDiscovery withProperties(Object properties)

Set the properties property: ClientDiscovery properties.

Methods inherited from java.lang.Object

Constructor Details

OperationsDiscovery

public OperationsDiscovery()

Creates an instance of OperationsDiscovery class.

Method Details

display

public Display display()

Get the display property: Contains the localized display information for this particular operation / action. These value will be used by several clients for (1) custom role definitions for RBAC; (2) complex query filters for the event service; and (3) audit history / records for management operations.

Returns:

the display value.

fromJson

public static OperationsDiscovery fromJson(JsonReader jsonReader)

Reads an instance of OperationsDiscovery from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isDataAction

public Boolean isDataAction()

Get the isDataAction property: Indicates whether the operation is a data action.

Returns:

the isDataAction value.

name

public String name()

Get the name property: Gets or sets Name of the API. The name of the operation being performed on this particular object. It should match the action name that appears in RBAC / the event service. Examples of operations include: * Microsoft.Compute/virtualMachine/capture/action * Microsoft.Compute/virtualMachine/restart/action * Microsoft.Compute/virtualMachine/write * Microsoft.Compute/virtualMachine/read * Microsoft.Compute/virtualMachine/delete Each action should include, in order: (1) Resource Provider Namespace (2) Type hierarchy for which the action applies (e.g. server/databases for a SQL Azure database) (3) Read, Write, Action or Delete indicating which type applies. If it is a PUT/PATCH on a collection or named value, Write should be used. If it is a GET, Read should be used. If it is a DELETE, Delete should be used. If it is a POST, Action should be used. As a note: all resource providers would need to include the "{Resource Provider Namespace}/register/action" operation in their response. This API is used to register for their service, and should include details about the operation (e.g. a localized name for the resource provider + any special considerations like PII release).

Returns:

the name value.

origin

public String origin()

Get the origin property: Gets or sets Origin. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is "user,system".

Returns:

the origin value.

properties

public Object properties()

Get the properties property: ClientDiscovery properties.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplay

public OperationsDiscovery withDisplay(Display display)

Set the display property: Contains the localized display information for this particular operation / action. These value will be used by several clients for (1) custom role definitions for RBAC; (2) complex query filters for the event service; and (3) audit history / records for management operations.

Parameters:

display - the display value to set.

Returns:

the OperationsDiscovery object itself.

withIsDataAction

public OperationsDiscovery withIsDataAction(Boolean isDataAction)

Set the isDataAction property: Indicates whether the operation is a data action.

Parameters:

isDataAction - the isDataAction value to set.

Returns:

the OperationsDiscovery object itself.

withName

public OperationsDiscovery withName(String name)

Set the name property: Gets or sets Name of the API. The name of the operation being performed on this particular object. It should match the action name that appears in RBAC / the event service. Examples of operations include: * Microsoft.Compute/virtualMachine/capture/action * Microsoft.Compute/virtualMachine/restart/action * Microsoft.Compute/virtualMachine/write * Microsoft.Compute/virtualMachine/read * Microsoft.Compute/virtualMachine/delete Each action should include, in order: (1) Resource Provider Namespace (2) Type hierarchy for which the action applies (e.g. server/databases for a SQL Azure database) (3) Read, Write, Action or Delete indicating which type applies. If it is a PUT/PATCH on a collection or named value, Write should be used. If it is a GET, Read should be used. If it is a DELETE, Delete should be used. If it is a POST, Action should be used. As a note: all resource providers would need to include the "{Resource Provider Namespace}/register/action" operation in their response. This API is used to register for their service, and should include details about the operation (e.g. a localized name for the resource provider + any special considerations like PII release).

Parameters:

name - the name value to set.

Returns:

the OperationsDiscovery object itself.

withOrigin

public OperationsDiscovery withOrigin(String origin)

Set the origin property: Gets or sets Origin. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is "user,system".

Parameters:

origin - the origin value to set.

Returns:

the OperationsDiscovery object itself.

withProperties

public OperationsDiscovery withProperties(Object properties)

Set the properties property: ClientDiscovery properties.

Parameters:

properties - the properties value to set.

Returns:

the OperationsDiscovery object itself.

Applies to