Class: Google::Apis::AnalyticsV3::CustomDataSource

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

JSON template for an Analytics custom data source.

Defined Under Namespace

Classes: ChildLink, ParentLink

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

Returns a new instance of CustomDataSource



835
836
837
# File 'generated/google/apis/analytics_v3/classes.rb', line 835

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

Instance Attribute Details

#account_idString

Account ID to which this custom data source belongs. Corresponds to the JSON property accountId

Returns:

  • (String)


756
757
758
# File 'generated/google/apis/analytics_v3/classes.rb', line 756

def 
  @account_id
end

Corresponds to the JSON property childLink



761
762
763
# File 'generated/google/apis/analytics_v3/classes.rb', line 761

def child_link
  @child_link
end

#createdDateTime

Time this custom data source was created. Corresponds to the JSON property created

Returns:

  • (DateTime)


766
767
768
# File 'generated/google/apis/analytics_v3/classes.rb', line 766

def created
  @created
end

#descriptionString

Description of custom data source. Corresponds to the JSON property description

Returns:

  • (String)


771
772
773
# File 'generated/google/apis/analytics_v3/classes.rb', line 771

def description
  @description
end

#idString

Custom data source ID. Corresponds to the JSON property id

Returns:

  • (String)


776
777
778
# File 'generated/google/apis/analytics_v3/classes.rb', line 776

def id
  @id
end

#import_behaviorString

Corresponds to the JSON property importBehavior

Returns:

  • (String)


781
782
783
# File 'generated/google/apis/analytics_v3/classes.rb', line 781

def import_behavior
  @import_behavior
end

#kindString

Resource type for Analytics custom data source. Corresponds to the JSON property kind

Returns:

  • (String)


786
787
788
# File 'generated/google/apis/analytics_v3/classes.rb', line 786

def kind
  @kind
end

#nameString

Name of this custom data source. Corresponds to the JSON property name

Returns:

  • (String)


791
792
793
# File 'generated/google/apis/analytics_v3/classes.rb', line 791

def name
  @name
end

Parent link for this custom data source. Points to the web property to which this custom data source belongs. Corresponds to the JSON property parentLink



797
798
799
# File 'generated/google/apis/analytics_v3/classes.rb', line 797

def parent_link
  @parent_link
end

#profiles_linkedArray<String>

IDs of views (profiles) linked to the custom data source. Corresponds to the JSON property profilesLinked

Returns:

  • (Array<String>)


802
803
804
# File 'generated/google/apis/analytics_v3/classes.rb', line 802

def profiles_linked
  @profiles_linked
end

#schemaArray<String>

Collection of schema headers of the custom data source. Corresponds to the JSON property schema

Returns:

  • (Array<String>)


807
808
809
# File 'generated/google/apis/analytics_v3/classes.rb', line 807

def schema
  @schema
end

Link for this Analytics custom data source. Corresponds to the JSON property selfLink

Returns:

  • (String)


812
813
814
# File 'generated/google/apis/analytics_v3/classes.rb', line 812

def self_link
  @self_link
end

#typeString

Type of the custom data source. Corresponds to the JSON property type

Returns:

  • (String)


817
818
819
# File 'generated/google/apis/analytics_v3/classes.rb', line 817

def type
  @type
end

#updatedDateTime

Time this custom data source was last modified. Corresponds to the JSON property updated

Returns:

  • (DateTime)


822
823
824
# File 'generated/google/apis/analytics_v3/classes.rb', line 822

def updated
  @updated
end

#upload_typeString

Upload type of the custom data source. Corresponds to the JSON property uploadType

Returns:

  • (String)


827
828
829
# File 'generated/google/apis/analytics_v3/classes.rb', line 827

def upload_type
  @upload_type
end

#web_property_idString

Web property ID of the form UA-XXXXX-YY to which this custom data source belongs. Corresponds to the JSON property webPropertyId

Returns:

  • (String)


833
834
835
# File 'generated/google/apis/analytics_v3/classes.rb', line 833

def web_property_id
  @web_property_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
# File 'generated/google/apis/analytics_v3/classes.rb', line 840

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @child_link = args[:child_link] if args.key?(:child_link)
  @created = args[:created] if args.key?(:created)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @import_behavior = args[:import_behavior] if args.key?(:import_behavior)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @parent_link = args[:parent_link] if args.key?(:parent_link)
  @profiles_linked = args[:profiles_linked] if args.key?(:profiles_linked)
  @schema = args[:schema] if args.key?(:schema)
  @self_link = args[:self_link] if args.key?(:self_link)
  @type = args[:type] if args.key?(:type)
  @updated = args[:updated] if args.key?(:updated)
  @upload_type = args[:upload_type] if args.key?(:upload_type)
  @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
end