Class: Google::Apis::AdminDirectoryV1::UserOrganization

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

Overview

JSON template for an organization entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserOrganization

Returns a new instance of UserOrganization.



4692
4693
4694
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4692

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

Instance Attribute Details

#cost_centerString

The cost center of the users department. Corresponds to the JSON property costCenter

Returns:

  • (String)


4631
4632
4633
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4631

def cost_center
  @cost_center
end

#custom_typeString

Custom type. Corresponds to the JSON property customType

Returns:

  • (String)


4636
4637
4638
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4636

def custom_type
  @custom_type
end

#departmentString

Department within the organization. Corresponds to the JSON property department

Returns:

  • (String)


4641
4642
4643
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4641

def department
  @department
end

#descriptionString

Description of the organization. Corresponds to the JSON property description

Returns:

  • (String)


4646
4647
4648
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4646

def description
  @description
end

#domainString

The domain to which the organization belongs to. Corresponds to the JSON property domain

Returns:

  • (String)


4651
4652
4653
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4651

def domain
  @domain
end

#full_time_equivalentFixnum

The full-time equivalent millipercent within the organization (100000 = 100%). Corresponds to the JSON property fullTimeEquivalent

Returns:

  • (Fixnum)


4656
4657
4658
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4656

def full_time_equivalent
  @full_time_equivalent
end

#locationString

Location of the organization. This need not be fully qualified address. Corresponds to the JSON property location

Returns:

  • (String)


4661
4662
4663
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4661

def location
  @location
end

#nameString

Name of the organization Corresponds to the JSON property name

Returns:

  • (String)


4666
4667
4668
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4666

def name
  @name
end

#primaryBoolean Also known as: primary?

If it user's primary organization. Corresponds to the JSON property primary

Returns:

  • (Boolean)


4671
4672
4673
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4671

def primary
  @primary
end

#symbolString

Symbol of the organization. Corresponds to the JSON property symbol

Returns:

  • (String)


4677
4678
4679
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4677

def symbol
  @symbol
end

#titleString

Title (designation) of the user in the organization. Corresponds to the JSON property title

Returns:

  • (String)


4682
4683
4684
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4682

def title
  @title
end

#typeString

Each entry can have a type which indicates standard types of that entry. For example organization could be of school work etc. In addition to the standard type an entry can have a custom type and can give it any name. Such types should have the CUSTOM value as type and also have a CustomType value. Corresponds to the JSON property type

Returns:

  • (String)


4690
4691
4692
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4690

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 4697

def update!(**args)
  @cost_center = args[:cost_center] if args.key?(:cost_center)
  @custom_type = args[:custom_type] if args.key?(:custom_type)
  @department = args[:department] if args.key?(:department)
  @description = args[:description] if args.key?(:description)
  @domain = args[:domain] if args.key?(:domain)
  @full_time_equivalent = args[:full_time_equivalent] if args.key?(:full_time_equivalent)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @primary = args[:primary] if args.key?(:primary)
  @symbol = args[:symbol] if args.key?(:symbol)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
end