target.apidocs.com.google.api.services.directory.model.RoleAssignment.html Maven / Gradle / Ivy
RoleAssignment (Admin SDK API directory_v1-rev20220802-2.0.0)
com.google.api.services.directory.model
Class RoleAssignment
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.RoleAssignment
-
public final class RoleAssignment
extends GenericJson
Defines an assignment of a role.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Admin SDK API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
RoleAssignment()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
RoleAssignment
clone()
String
getAssignedTo()
The unique ID of the entity this role is assigned to—either the `user_id` of a user or the
`uniqueId` of a service account, as defined in [Identity and Access Management
(IAM)](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts).
String
getEtag()
ETag of the resource.
String
getKind()
The type of the API resource.
String
getOrgUnitId()
If the role is restricted to an organization unit, this contains the ID for the organization
unit the exercise of this role is restricted to.
Long
getRoleAssignmentId()
ID of this roleAssignment.
Long
getRoleId()
The ID of the role that is assigned.
String
getScopeType()
The scope in which this role is assigned.
RoleAssignment
set(String fieldName,
Object value)
RoleAssignment
setAssignedTo(String assignedTo)
The unique ID of the entity this role is assigned to—either the `user_id` of a user or the
`uniqueId` of a service account, as defined in [Identity and Access Management
(IAM)](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts).
RoleAssignment
setEtag(String etag)
ETag of the resource.
RoleAssignment
setKind(String kind)
The type of the API resource.
RoleAssignment
setOrgUnitId(String orgUnitId)
If the role is restricted to an organization unit, this contains the ID for the organization
unit the exercise of this role is restricted to.
RoleAssignment
setRoleAssignmentId(Long roleAssignmentId)
ID of this roleAssignment.
RoleAssignment
setRoleId(Long roleId)
The ID of the role that is assigned.
RoleAssignment
setScopeType(String scopeType)
The scope in which this role is assigned.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAssignedTo
public String getAssignedTo()
The unique ID of the entity this role is assigned to—either the `user_id` of a user or the
`uniqueId` of a service account, as defined in [Identity and Access Management
(IAM)](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts).
- Returns:
- value or
null
for none
-
setAssignedTo
public RoleAssignment setAssignedTo(String assignedTo)
The unique ID of the entity this role is assigned to—either the `user_id` of a user or the
`uniqueId` of a service account, as defined in [Identity and Access Management
(IAM)](https://cloud.google.com/iam/docs/reference/rest/v1/projects.serviceAccounts).
- Parameters:
assignedTo
- assignedTo or null
for none
-
getEtag
public String getEtag()
ETag of the resource.
- Returns:
- value or
null
for none
-
setEtag
public RoleAssignment setEtag(String etag)
ETag of the resource.
- Parameters:
etag
- etag or null
for none
-
getKind
public String getKind()
The type of the API resource. This is always `admin#directory#roleAssignment`.
- Returns:
- value or
null
for none
-
setKind
public RoleAssignment setKind(String kind)
The type of the API resource. This is always `admin#directory#roleAssignment`.
- Parameters:
kind
- kind or null
for none
-
getOrgUnitId
public String getOrgUnitId()
If the role is restricted to an organization unit, this contains the ID for the organization
unit the exercise of this role is restricted to.
- Returns:
- value or
null
for none
-
setOrgUnitId
public RoleAssignment setOrgUnitId(String orgUnitId)
If the role is restricted to an organization unit, this contains the ID for the organization
unit the exercise of this role is restricted to.
- Parameters:
orgUnitId
- orgUnitId or null
for none
-
getRoleAssignmentId
public Long getRoleAssignmentId()
ID of this roleAssignment.
- Returns:
- value or
null
for none
-
setRoleAssignmentId
public RoleAssignment setRoleAssignmentId(Long roleAssignmentId)
ID of this roleAssignment.
- Parameters:
roleAssignmentId
- roleAssignmentId or null
for none
-
getRoleId
public Long getRoleId()
The ID of the role that is assigned.
- Returns:
- value or
null
for none
-
setRoleId
public RoleAssignment setRoleId(Long roleId)
The ID of the role that is assigned.
- Parameters:
roleId
- roleId or null
for none
-
getScopeType
public String getScopeType()
The scope in which this role is assigned.
- Returns:
- value or
null
for none
-
setScopeType
public RoleAssignment setScopeType(String scopeType)
The scope in which this role is assigned.
- Parameters:
scopeType
- scopeType or null
for none
-
set
public RoleAssignment set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public RoleAssignment clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.