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.
3834 3835 3836 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3834 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
3805 3806 3807 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3805 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
3814 3815 3816 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3814 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
3827 3828 3829 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3827 def name @name end |
#type ⇒ String
Immutable. Entity type for the org member.
Corresponds to the JSON property type
3832 3833 3834 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3832 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3839 3840 3841 3842 3843 3844 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3839 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 |