class Google::Apis::AdminDirectoryV1::UserOrganization

JSON template for an organization entry.

Attributes

cost_center[RW]

The cost center of the users department. Corresponds to the JSON property `costCenter` @return [String]

custom_type[RW]

Custom type. Corresponds to the JSON property `customType` @return [String]

department[RW]

Department within the organization. Corresponds to the JSON property `department` @return [String]

description[RW]

Description of the organization. Corresponds to the JSON property `description` @return [String]

domain[RW]

The domain to which the organization belongs to. Corresponds to the JSON property `domain` @return [String]

location[RW]

Location of the organization. This need not be fully qualified address. Corresponds to the JSON property `location` @return [String]

name[RW]

Name of the organization Corresponds to the JSON property `name` @return [String]

primary[RW]

If it user's primary organization. Corresponds to the JSON property `primary` @return [Boolean]

primary?[RW]

If it user's primary organization. Corresponds to the JSON property `primary` @return [Boolean]

symbol[RW]

Symbol of the organization. Corresponds to the JSON property `symbol` @return [String]

title[RW]

Title (designation) of the user in the organization. Corresponds to the JSON property `title` @return [String]

type[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/admin_directory_v1/classes.rb, line 2814
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/admin_directory_v1/classes.rb, line 2819
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