Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DataCollector

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

Overview

Data collector configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1DataCollector

Returns a new instance of GoogleCloudApigeeV1DataCollector.



2907
2908
2909
# File 'lib/google/apis/apigee_v1/classes.rb', line 2907

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

Instance Attribute Details

#created_atFixnum

Output only. The time at which the data collector was created in milliseconds since the epoch. Corresponds to the JSON property createdAt

Returns:

  • (Fixnum)


2884
2885
2886
# File 'lib/google/apis/apigee_v1/classes.rb', line 2884

def created_at
  @created_at
end

#descriptionString

A description of the data collector. Corresponds to the JSON property description

Returns:

  • (String)


2889
2890
2891
# File 'lib/google/apis/apigee_v1/classes.rb', line 2889

def description
  @description
end

#last_modified_atFixnum

Output only. The time at which the Data Collector was last updated in milliseconds since the epoch. Corresponds to the JSON property lastModifiedAt

Returns:

  • (Fixnum)


2895
2896
2897
# File 'lib/google/apis/apigee_v1/classes.rb', line 2895

def last_modified_at
  @last_modified_at
end

#nameString

ID of the data collector. Must begin with dc_. Corresponds to the JSON property name

Returns:

  • (String)


2900
2901
2902
# File 'lib/google/apis/apigee_v1/classes.rb', line 2900

def name
  @name
end

#typeString

Immutable. The type of data this data collector will collect. Corresponds to the JSON property type

Returns:

  • (String)


2905
2906
2907
# File 'lib/google/apis/apigee_v1/classes.rb', line 2905

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2912
2913
2914
2915
2916
2917
2918
# File 'lib/google/apis/apigee_v1/classes.rb', line 2912

def update!(**args)
  @created_at = args[:created_at] if args.key?(:created_at)
  @description = args[:description] if args.key?(:description)
  @last_modified_at = args[:last_modified_at] if args.key?(:last_modified_at)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end