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.



2900
2901
2902
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2900

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)


2844
2845
2846
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2844

def cost_center
  @cost_center
end

#custom_typeString

Custom type. Corresponds to the JSON property customType

Returns:

  • (String)


2849
2850
2851
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2849

def custom_type
  @custom_type
end

#departmentString

Department within the organization. Corresponds to the JSON property department

Returns:

  • (String)


2854
2855
2856
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2854

def department
  @department
end

#descriptionString

Description of the organization. Corresponds to the JSON property description

Returns:

  • (String)


2859
2860
2861
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2859

def description
  @description
end

#domainString

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

Returns:

  • (String)


2864
2865
2866
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2864

def domain
  @domain
end

#locationString

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

Returns:

  • (String)


2869
2870
2871
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2869

def location
  @location
end

#nameString

Name of the organization Corresponds to the JSON property name

Returns:

  • (String)


2874
2875
2876
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2874

def name
  @name
end

#primaryBoolean Also known as: primary?

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

Returns:

  • (Boolean)


2879
2880
2881
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2879

def primary
  @primary
end

#symbolString

Symbol of the organization. Corresponds to the JSON property symbol

Returns:

  • (String)


2885
2886
2887
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2885

def symbol
  @symbol
end

#titleString

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

Returns:

  • (String)


2890
2891
2892
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2890

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)


2898
2899
2900
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2898

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 2905

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)
  @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