Class: Google::Apis::CloudidentityV1beta1::OrgMembership
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1beta1::OrgMembership
- 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
-
#member ⇒ String
Immutable.
-
#member_uri ⇒ String
Uri with which you can read the member.
-
#name ⇒ String
Required.
-
#type ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrgMembership
constructor
A new instance of OrgMembership.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#member ⇒ String
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
3562 3563 3564 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3562 def member @member end |
#member_uri ⇒ String
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
3571 3572 3573 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3571 def member_uri @member_uri end |
#name ⇒ String
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
3584 3585 3586 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3584 def name @name end |
#type ⇒ String
Immutable. Entity type for the org member.
Corresponds to the JSON property type
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 |