Class: Google::Apis::DrivelabelsV2beta::GoogleAppsDriveLabelsV2betaLabelPermission

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

Overview

The permission that applies to a principal (user, group, audience) on a label.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsDriveLabelsV2betaLabelPermission

Returns a new instance of GoogleAppsDriveLabelsV2betaLabelPermission.



2591
2592
2593
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2591

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

Instance Attribute Details

#audienceString

Audience to grant a role to. The magic value of audiences/default may be used to apply the role to the default audience in the context of the organization that owns the Label. Corresponds to the JSON property audience

Returns:

  • (String)


2561
2562
2563
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2561

def audience
  @audience
end

#emailString

Specifies the email address for a user or group pricinpal. Not populated for audience principals. User and Group permissions may only be inserted using email address. On update requests, if email address is specified, no principal should be specified. Corresponds to the JSON property email

Returns:

  • (String)


2569
2570
2571
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2569

def email
  @email
end

#groupString

Group resource name. Corresponds to the JSON property group

Returns:

  • (String)


2574
2575
2576
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2574

def group
  @group
end

#nameString

Resource name of this permission. Corresponds to the JSON property name

Returns:

  • (String)


2579
2580
2581
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2579

def name
  @name
end

#personString

Person resource name. Corresponds to the JSON property person

Returns:

  • (String)


2584
2585
2586
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2584

def person
  @person
end

#roleString

The role the principal should have. Corresponds to the JSON property role

Returns:

  • (String)


2589
2590
2591
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2589

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2596
2597
2598
2599
2600
2601
2602
2603
# File 'lib/google/apis/drivelabels_v2beta/classes.rb', line 2596

def update!(**args)
  @audience = args[:audience] if args.key?(:audience)
  @email = args[:email] if args.key?(:email)
  @group = args[:group] if args.key?(:group)
  @name = args[:name] if args.key?(:name)
  @person = args[:person] if args.key?(:person)
  @role = args[:role] if args.key?(:role)
end