Users Class

  • java.lang.Object
    • com.azure.resourcemanager.dashboard.models.Users

Implements

public final class Users
implements JsonSerializable<Users>

Grafana users settings.

Constructor Summary

Constructor Description
Users()

Creates an instance of Users class.

Method Summary

Modifier and Type Method and Description
Boolean editorsCanAdmin()

Get the editorsCanAdmin property: Set to true so editors can administrate dashboards, folders and teams they create.

static Users fromJson(JsonReader jsonReader)

Reads an instance of Users from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean viewersCanEdit()

Get the viewersCanEdit property: Set to true so viewers can access and use explore and perform temporary edits on panels in dashboards they have access to.

Users withEditorsCanAdmin(Boolean editorsCanAdmin)

Set the editorsCanAdmin property: Set to true so editors can administrate dashboards, folders and teams they create.

Users withViewersCanEdit(Boolean viewersCanEdit)

Set the viewersCanEdit property: Set to true so viewers can access and use explore and perform temporary edits on panels in dashboards they have access to.

Methods inherited from java.lang.Object

Constructor Details

Users

public Users()

Creates an instance of Users class.

Method Details

editorsCanAdmin

public Boolean editorsCanAdmin()

Get the editorsCanAdmin property: Set to true so editors can administrate dashboards, folders and teams they create.

Returns:

the editorsCanAdmin value.

fromJson

public static Users fromJson(JsonReader jsonReader)

Reads an instance of Users from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

viewersCanEdit

public Boolean viewersCanEdit()

Get the viewersCanEdit property: Set to true so viewers can access and use explore and perform temporary edits on panels in dashboards they have access to. They cannot save their changes.

Returns:

the viewersCanEdit value.

withEditorsCanAdmin

public Users withEditorsCanAdmin(Boolean editorsCanAdmin)

Set the editorsCanAdmin property: Set to true so editors can administrate dashboards, folders and teams they create.

Parameters:

editorsCanAdmin - the editorsCanAdmin value to set.

Returns:

the Users object itself.

withViewersCanEdit

public Users withViewersCanEdit(Boolean viewersCanEdit)

Set the viewersCanEdit property: Set to true so viewers can access and use explore and perform temporary edits on panels in dashboards they have access to. They cannot save their changes.

Parameters:

viewersCanEdit - the viewersCanEdit value to set.

Returns:

the Users object itself.

Applies to