Class: Google::Apis::CloudidentityV1beta1::OrgMembership

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

Overview

A membership in an OrgUnit. An OrgMembership defines a relationship between an OrgUnit and an entity belonging to that OrgUnit, referred to as a " member".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrgMembership

Returns a new instance of OrgMembership.



3591
3592
3593
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3591

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

Instance Attribute Details

#memberString

Immutable. Org member id as full resource name. Format for shared drive resource: //drive.googleapis.com/drives/$memberId where $memberId is the id from Drive API (V3) Drive resource. Corresponds to the JSON property member

Returns:

  • (String)


3562
3563
3564
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3562

def member
  @member
end

#member_uriString

Uri with which you can read the member. This follows https://aip.dev/122 Format for shared drive resource: https://drive.googleapis.com/drive/v3/drives/ $memberId where $memberId is the id from Drive API (V3) Drive resource . Corresponds to the JSON property memberUri

Returns:

  • (String)


3571
3572
3573
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3571

def member_uri
  @member_uri
end

#nameString

Required. Immutable. The resource name of the OrgMembership. Format: orgUnits/$orgUnitId/ memberships/$membership The $orgUnitId is the orgUnitId from the Admin SDK OrgUnit resource. The $membership shall be of the form $ entityType`;`$memberId, where $entityType is the enum value of [ OrgMembership.EntityType], and memberId is the id from Drive API (V3) Drive resource for OrgMembership.EntityType.SHARED_DRIVE. Corresponds to the JSON property name

Returns:

  • (String)


3584
3585
3586
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3584

def name
  @name
end

#typeString

Immutable. Entity type for the org member. Corresponds to the JSON property type

Returns:

  • (String)


3589
3590
3591
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3589

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3596
3597
3598
3599
3600
3601
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3596

def update!(**args)
  @member = args[:member] if args.key?(:member)
  @member_uri = args[:member_uri] if args.key?(:member_uri)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end