Class: Google::Apis::AdminDirectoryV1::Role::RolePrivilege

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RolePrivilege

Returns a new instance of RolePrivilege.



3894
3895
3896
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3894

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#privilege_nameString

The name of the privilege. Corresponds to the JSON property privilegeName

Returns:

  • (String)


3886
3887
3888
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3886

def privilege_name
  @privilege_name
end

#service_idString

The obfuscated ID of the service this privilege is for. This value is returned with Privileges.list(). Corresponds to the JSON property serviceId

Returns:

  • (String)


3892
3893
3894
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3892

def service_id
  @service_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3899
3900
3901
3902
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3899

def update!(**args)
  @privilege_name = args[:privilege_name] if args.key?(:privilege_name)
  @service_id = args[:service_id] if args.key?(:service_id)
end