Class: NgrokAPI::Models::EventTargetAzureLogsIngestion

Inherits:
Object
  • Object
show all
Defined in:
lib/ngrokapi/models/event_target_azure_logs_ingestion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client: nil, attrs: {}) ⇒ EventTargetAzureLogsIngestion

Returns a new instance of EventTargetAzureLogsIngestion.



17
18
19
20
21
22
23
24
25
26
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 17

def initialize(client: nil, attrs: {})
  @client = client
  @attrs = attrs
  @tenant_id = @attrs['tenant_id']
  @client_id = @attrs['client_id']
  @client_secret = @attrs['client_secret']
  @logs_ingestion_uri = @attrs['logs_ingestion_uri']
  @data_collection_rule_id = @attrs['data_collection_rule_id']
  @data_collection_stream_name = @attrs['data_collection_stream_name']
end

Instance Attribute Details

#attrsObject (readonly)

Returns the value of attribute attrs.



8
9
10
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 8

def attrs
  @attrs
end

#clientObject (readonly)

Returns the value of attribute client.



8
9
10
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 8

def client
  @client
end

#client_idObject (readonly)

Returns the value of attribute client_id.



8
9
10
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 8

def client_id
  @client_id
end

#client_secretObject (readonly)

Returns the value of attribute client_secret.



8
9
10
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 8

def client_secret
  @client_secret
end

#data_collection_rule_idObject (readonly)

Returns the value of attribute data_collection_rule_id.



8
9
10
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 8

def data_collection_rule_id
  @data_collection_rule_id
end

#data_collection_stream_nameObject (readonly)

Returns the value of attribute data_collection_stream_name.



8
9
10
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 8

def data_collection_stream_name
  @data_collection_stream_name
end

#logs_ingestion_uriObject (readonly)

Returns the value of attribute logs_ingestion_uri.



8
9
10
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 8

def logs_ingestion_uri
  @logs_ingestion_uri
end

#tenant_idObject (readonly)

Returns the value of attribute tenant_id.



8
9
10
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 8

def tenant_id
  @tenant_id
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 28

def ==(other)
  @attrs == other.attrs
end

#to_hObject



36
37
38
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 36

def to_h
  @attrs.to_h
end

#to_sObject



32
33
34
# File 'lib/ngrokapi/models/event_target_azure_logs_ingestion.rb', line 32

def to_s
  @attrs.to_s
end