Class: Google::Apis::AdminDirectoryV1::Printer

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

Printer configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Printer

Returns a new instance of Printer.



3676
3677
3678
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3676

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

Instance Attribute Details

#auxiliary_messagesArray<Google::Apis::AdminDirectoryV1::AuxiliaryMessage>

Output only. Auxiliary messages about issues with the printer configuration if any. Corresponds to the JSON property auxiliaryMessages



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

def auxiliary_messages
  @auxiliary_messages
end

#create_timeString

Output only. Time when printer was created. Corresponds to the JSON property createTime

Returns:

  • (String)


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

def create_time
  @create_time
end

#descriptionString

Editable. Description of printer. Corresponds to the JSON property description

Returns:

  • (String)


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

def description
  @description
end

#display_nameString

Editable. Name of printer. Corresponds to the JSON property displayName

Returns:

  • (String)


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

def display_name
  @display_name
end

#idString

Id of the printer. (During printer creation leave empty) Corresponds to the JSON property id

Returns:

  • (String)


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

def id
  @id
end

#make_and_modelString

Editable. Make and model of printer. e.g. Lexmark MS610de Value must be in format as seen in ListPrinterModels response. Corresponds to the JSON property makeAndModel

Returns:

  • (String)


3650
3651
3652
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3650

def make_and_model
  @make_and_model
end

#nameString

The resource name of the Printer object, in the format customers/customer-id/ printers/printer-id (During printer creation leave empty) Corresponds to the JSON property name

Returns:

  • (String)


3656
3657
3658
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3656

def name
  @name
end

#org_unit_idString

Organization Unit that owns this printer (Only can be set during Printer creation) Corresponds to the JSON property orgUnitId

Returns:

  • (String)


3662
3663
3664
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3662

def org_unit_id
  @org_unit_id
end

#uriString

Editable. Printer URI. Corresponds to the JSON property uri

Returns:

  • (String)


3667
3668
3669
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 3667

def uri
  @uri
end

#use_driverless_configBoolean Also known as: use_driverless_config?

Editable. flag to use driverless configuration or not. If it's set to be true, make_and_model can be ignored Corresponds to the JSON property useDriverlessConfig

Returns:

  • (Boolean)


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

def use_driverless_config
  @use_driverless_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

def update!(**args)
  @auxiliary_messages = args[:auxiliary_messages] if args.key?(:auxiliary_messages)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @make_and_model = args[:make_and_model] if args.key?(:make_and_model)
  @name = args[:name] if args.key?(:name)
  @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
  @uri = args[:uri] if args.key?(:uri)
  @use_driverless_config = args[:use_driverless_config] if args.key?(:use_driverless_config)
end