Class: Google::Apis::YoutubePartnerV1::SpreadsheetTemplate

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/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) ⇒ SpreadsheetTemplate

Returns a new instance of SpreadsheetTemplate.



3467
3468
3469
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3467

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

Instance Attribute Details

#kindString

The type of the API resource. For spreadsheet template resources, the value is youtubePartner#spreadsheetTemplate. Corresponds to the JSON property kind

Returns:

  • (String)


3445
3446
3447
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3445

def kind
  @kind
end

#statusString

The template status. Corresponds to the JSON property status

Returns:

  • (String)


3450
3451
3452
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3450

def status
  @status
end

#template_contentString

The template content. Corresponds to the JSON property templateContent

Returns:

  • (String)


3455
3456
3457
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3455

def template_content
  @template_content
end

#template_nameString

The template name. Corresponds to the JSON property templateName

Returns:

  • (String)


3460
3461
3462
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3460

def template_name
  @template_name
end

#template_typeString

The template type. Corresponds to the JSON property templateType

Returns:

  • (String)


3465
3466
3467
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3465

def template_type
  @template_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3472
3473
3474
3475
3476
3477
3478
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3472

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @status = args[:status] if args.key?(:status)
  @template_content = args[:template_content] if args.key?(:template_content)
  @template_name = args[:template_name] if args.key?(:template_name)
  @template_type = args[:template_type] if args.key?(:template_type)
end