Class: Google::Apis::YoutubeAnalyticsV1::BatchReportDefinition

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

Overview

Contains single batchReportDefinition resource.

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

Returns a new instance of BatchReportDefinition.


165
166
167
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 165

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

Instance Attribute Details

#idString

The ID that YouTube assigns and uses to uniquely identify the report definition. Corresponds to the JSON property id

Returns:

  • (String)

142
143
144
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 142

def id
  @id
end

#kindString

This value specifies the type of data of this item. For batch report definition the kind property value is youtubeAnalytics#batchReportDefinition. Corresponds to the JSON property kind

Returns:

  • (String)

148
149
150
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 148

def kind
  @kind
end

#nameString

Name of the report definition. Corresponds to the JSON property name

Returns:

  • (String)

153
154
155
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 153

def name
  @name
end

#statusString

Status of the report definition. Corresponds to the JSON property status

Returns:

  • (String)

158
159
160
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 158

def status
  @status
end

#typeString

Type of the report definition. Corresponds to the JSON property type

Returns:

  • (String)

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

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


170
171
172
173
174
175
176
# File 'generated/google/apis/youtube_analytics_v1/classes.rb', line 170

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end