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.



3575
3576
3577
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3575

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)


3546
3547
3548
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3546

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)


3555
3556
3557
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3555

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)


3568
3569
3570
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3568

def name
  @name
end

#typeString

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

Returns:

  • (String)


3573
3574
3575
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3573

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3580
3581
3582
3583
3584
3585
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3580

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