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

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 an organization entry.

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) ⇒ UserOrganization

Returns a new instance of UserOrganization



3675
3676
3677
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3675

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)


3614
3615
3616
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3614

def cost_center
  @cost_center
end

#custom_typeString

Custom type. Corresponds to the JSON property customType

Returns:

  • (String)


3619
3620
3621
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3619

def custom_type
  @custom_type
end

#departmentString

Department within the organization. Corresponds to the JSON property department

Returns:

  • (String)


3624
3625
3626
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3624

def department
  @department
end

#descriptionString

Description of the organization. Corresponds to the JSON property description

Returns:

  • (String)


3629
3630
3631
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3629

def description
  @description
end

#domainString

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

Returns:

  • (String)


3634
3635
3636
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3634

def domain
  @domain
end

#full_time_equivalentFixnum

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

Returns:

  • (Fixnum)


3639
3640
3641
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3639

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)


3644
3645
3646
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3644

def location
  @location
end

#nameString

Name of the organization Corresponds to the JSON property name

Returns:

  • (String)


3649
3650
3651
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3649

def name
  @name
end

#primaryBoolean Also known as: primary?

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

Returns:

  • (Boolean)


3654
3655
3656
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3654

def primary
  @primary
end

#symbolString

Symbol of the organization. Corresponds to the JSON property symbol

Returns:

  • (String)


3660
3661
3662
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3660

def symbol
  @symbol
end

#titleString

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

Returns:

  • (String)


3665
3666
3667
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3665

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)


3673
3674
3675
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3673

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 3680

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