Class: Google::Apis::AdminDirectoryV1::OrgUnit

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

Overview

JSON template for Org Unit resource in Directory API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrgUnit

Returns a new instance of OrgUnit



2155
2156
2157
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2155

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

Instance Attribute Details

#block_inheritanceBoolean Also known as: block_inheritance?

Should block inheritance Corresponds to the JSON property blockInheritance

Returns:

  • (Boolean)


2112
2113
2114
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2112

def block_inheritance
  @block_inheritance
end

#descriptionString

Description of OrgUnit Corresponds to the JSON property description

Returns:

  • (String)


2118
2119
2120
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2118

def description
  @description
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


2123
2124
2125
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2123

def etag
  @etag
end

#kindString

Kind of resource this is. Corresponds to the JSON property kind

Returns:

  • (String)


2128
2129
2130
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2128

def kind
  @kind
end

#nameString

Name of OrgUnit Corresponds to the JSON property name

Returns:

  • (String)


2133
2134
2135
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2133

def name
  @name
end

#org_unit_idString

Id of OrgUnit Corresponds to the JSON property orgUnitId

Returns:

  • (String)


2138
2139
2140
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2138

def org_unit_id
  @org_unit_id
end

#org_unit_pathString

Path of OrgUnit Corresponds to the JSON property orgUnitPath

Returns:

  • (String)


2143
2144
2145
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2143

def org_unit_path
  @org_unit_path
end

#parent_org_unit_idString

Id of parent OrgUnit Corresponds to the JSON property parentOrgUnitId

Returns:

  • (String)


2148
2149
2150
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2148

def parent_org_unit_id
  @parent_org_unit_id
end

#parent_org_unit_pathString

Path of parent OrgUnit Corresponds to the JSON property parentOrgUnitPath

Returns:

  • (String)


2153
2154
2155
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2153

def parent_org_unit_path
  @parent_org_unit_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2160

def update!(**args)
  @block_inheritance = args[:block_inheritance] if args.key?(:block_inheritance)
  @description = args[:description] if args.key?(:description)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
  @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
  @parent_org_unit_id = args[:parent_org_unit_id] if args.key?(:parent_org_unit_id)
  @parent_org_unit_path = args[:parent_org_unit_path] if args.key?(:parent_org_unit_path)
end