Class: Google::Apis::AnalyticsV3::Segment
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AnalyticsV3::Segment
 
- 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 segment.
Instance Attribute Summary collapse
- 
  
    
      #created  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time the segment was created. 
- 
  
    
      #definition  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Segment definition. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Segment ID. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Resource type for Analytics segment. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Segment name. 
- 
  
    
      #segment_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Segment ID. 
- 
  
    
      #self_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Link for this segment. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Type for a segment. 
- 
  
    
      #updated  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time the segment was last modified. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Segment 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Segment. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Segment
Returns a new instance of Segment
| 4883 4884 4885 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4883 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#created ⇒ DateTime
Time the segment was created.
Corresponds to the JSON property created
| 4841 4842 4843 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4841 def created @created end | 
#definition ⇒ String
Segment definition.
Corresponds to the JSON property definition
| 4846 4847 4848 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4846 def definition @definition end | 
#id ⇒ String
Segment ID.
Corresponds to the JSON property id
| 4851 4852 4853 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4851 def id @id end | 
#kind ⇒ String
Resource type for Analytics segment.
Corresponds to the JSON property kind
| 4856 4857 4858 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4856 def kind @kind end | 
#name ⇒ String
Segment name.
Corresponds to the JSON property name
| 4861 4862 4863 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4861 def name @name end | 
#segment_id ⇒ String
Segment ID. Can be used with the 'segment' parameter in Core Reporting API.
Corresponds to the JSON property segmentId
| 4866 4867 4868 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4866 def segment_id @segment_id end | 
#self_link ⇒ String
Link for this segment.
Corresponds to the JSON property selfLink
| 4871 4872 4873 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4871 def self_link @self_link end | 
#type ⇒ String
Type for a segment. Possible values are "BUILT_IN" or "CUSTOM".
Corresponds to the JSON property type
| 4876 4877 4878 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4876 def type @type end | 
#updated ⇒ DateTime
Time the segment was last modified.
Corresponds to the JSON property updated
| 4881 4882 4883 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4881 def updated @updated end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 | # File 'generated/google/apis/analytics_v3/classes.rb', line 4888 def update!(**args) @created = args[:created] if args.key?(:created) @definition = args[:definition] if args.key?(:definition) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @segment_id = args[:segment_id] if args.key?(:segment_id) @self_link = args[:self_link] if args.key?(:self_link) @type = args[:type] if args.key?(:type) @updated = args[:updated] if args.key?(:updated) end |