Class: Google::Apis::AdminDirectoryV1::UserOrganization
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdminDirectoryV1::UserOrganization
 
- 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
- 
  
    
      #cost_center  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The cost center of the users department. 
- 
  
    
      #custom_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Custom type. 
- 
  
    
      #department  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Department within the organization. 
- 
  
    
      #description  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Description of the organization. 
- 
  
    
      #domain  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The domain to which the organization belongs to. 
- 
  
    
      #full_time_equivalent  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The full-time equivalent percent within the organization (100000 = 100%). 
- 
  
    
      #location  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Location of the organization. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of the organization Corresponds to the JSON property name.
- 
  
    
      #primary  ⇒ Boolean 
    
    
      (also: #primary?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    If it user's primary organization. 
- 
  
    
      #symbol  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Symbol of the organization. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Title (designation) of the user in the organization. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Each entry can have a type which indicates standard types of that entry. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UserOrganization 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of UserOrganization. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserOrganization
Returns a new instance of UserOrganization
| 3687 3688 3689 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3687 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#cost_center ⇒ String
The cost center of the users department.
Corresponds to the JSON property costCenter
| 3626 3627 3628 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3626 def cost_center @cost_center end | 
#custom_type ⇒ String
Custom type.
Corresponds to the JSON property customType
| 3631 3632 3633 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3631 def custom_type @custom_type end | 
#department ⇒ String
Department within the organization.
Corresponds to the JSON property department
| 3636 3637 3638 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3636 def department @department end | 
#description ⇒ String
Description of the organization.
Corresponds to the JSON property description
| 3641 3642 3643 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3641 def description @description end | 
#domain ⇒ String
The domain to which the organization belongs to.
Corresponds to the JSON property domain
| 3646 3647 3648 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3646 def domain @domain end | 
#full_time_equivalent ⇒ Fixnum
The full-time equivalent percent within the organization (100000 = 100%).
Corresponds to the JSON property fullTimeEquivalent
| 3651 3652 3653 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3651 def full_time_equivalent @full_time_equivalent end | 
#location ⇒ String
Location of the organization. This need not be fully qualified address.
Corresponds to the JSON property location
| 3656 3657 3658 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3656 def location @location end | 
#name ⇒ String
Name of the organization
Corresponds to the JSON property name
| 3661 3662 3663 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3661 def name @name end | 
#primary ⇒ Boolean Also known as: primary?
If it user's primary organization.
Corresponds to the JSON property primary
| 3666 3667 3668 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3666 def primary @primary end | 
#symbol ⇒ String
Symbol of the organization.
Corresponds to the JSON property symbol
| 3672 3673 3674 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3672 def symbol @symbol end | 
#title ⇒ String
Title (designation) of the user in the organization.
Corresponds to the JSON property title
| 3677 3678 3679 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3677 def title @title end | 
#type ⇒ String
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
| 3685 3686 3687 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3685 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 3692 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 |