Class: Google::Apis::AnalyticsV3::Upload

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

Overview

Metadata returned for an upload operation.

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

Returns a new instance of Upload



5280
5281
5282
# File 'generated/google/apis/analytics_v3/classes.rb', line 5280

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

Instance Attribute Details

#account_idFixnum

Account Id to which this upload belongs. Corresponds to the JSON property accountId

Returns:

  • (Fixnum)


5248
5249
5250
# File 'generated/google/apis/analytics_v3/classes.rb', line 5248

def 
  @account_id
end

#custom_data_source_idString

Custom data source Id to which this data import belongs. Corresponds to the JSON property customDataSourceId

Returns:

  • (String)


5253
5254
5255
# File 'generated/google/apis/analytics_v3/classes.rb', line 5253

def custom_data_source_id
  @custom_data_source_id
end

#errorsArray<String>

Data import errors collection. Corresponds to the JSON property errors

Returns:

  • (Array<String>)


5258
5259
5260
# File 'generated/google/apis/analytics_v3/classes.rb', line 5258

def errors
  @errors
end

#idString

A unique ID for this upload. Corresponds to the JSON property id

Returns:

  • (String)


5263
5264
5265
# File 'generated/google/apis/analytics_v3/classes.rb', line 5263

def id
  @id
end

#kindString

Resource type for Analytics upload. Corresponds to the JSON property kind

Returns:

  • (String)


5268
5269
5270
# File 'generated/google/apis/analytics_v3/classes.rb', line 5268

def kind
  @kind
end

#statusString

Upload status. Possible values: PENDING, COMPLETED, FAILED, DELETING, DELETED. Corresponds to the JSON property status

Returns:

  • (String)


5273
5274
5275
# File 'generated/google/apis/analytics_v3/classes.rb', line 5273

def status
  @status
end

#upload_timeDateTime

Time this file is uploaded. Corresponds to the JSON property uploadTime

Returns:

  • (DateTime)


5278
5279
5280
# File 'generated/google/apis/analytics_v3/classes.rb', line 5278

def upload_time
  @upload_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5285
5286
5287
5288
5289
5290
5291
5292
5293
# File 'generated/google/apis/analytics_v3/classes.rb', line 5285

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @custom_data_source_id = args[:custom_data_source_id] if args.key?(:custom_data_source_id)
  @errors = args[:errors] if args.key?(:errors)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @status = args[:status] if args.key?(:status)
  @upload_time = args[:upload_time] if args.key?(:upload_time)
end