Class: Google::Apis::DriveV3::About::TeamDriveTheme

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v3/classes.rb,
generated/google/apis/drive_v3/representations.rb,
generated/google/apis/drive_v3/representations.rb

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

Returns a new instance of TeamDriveTheme



163
164
165
# File 'generated/google/apis/drive_v3/classes.rb', line 163

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

Instance Attribute Details

A link to this Team Drive theme's background image. Corresponds to the JSON property backgroundImageLink

Returns:

  • (String)


151
152
153
# File 'generated/google/apis/drive_v3/classes.rb', line 151

def background_image_link
  @background_image_link
end

#color_rgbString

The color of this Team Drive theme as an RGB hex string. Corresponds to the JSON property colorRgb

Returns:

  • (String)


156
157
158
# File 'generated/google/apis/drive_v3/classes.rb', line 156

def color_rgb
  @color_rgb
end

#idString

The ID of the theme. Corresponds to the JSON property id

Returns:

  • (String)


161
162
163
# File 'generated/google/apis/drive_v3/classes.rb', line 161

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



168
169
170
171
172
# File 'generated/google/apis/drive_v3/classes.rb', line 168

def update!(**args)
  @background_image_link = args[:background_image_link] if args.key?(:background_image_link)
  @color_rgb = args[:color_rgb] if args.key?(:color_rgb)
  @id = args[:id] if args.key?(:id)
end