Class: Zanshin::SDK::ScanTarget::Azure

Inherits:
Object
  • Object
show all
Defined in:
lib/zanshin/scan_target.rb

Overview

Azure scan target

Constant Summary collapse

KIND =

Type of provider that will be sent to the API

'Azure'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(application_id, subscription_id, directory_id, secret) ⇒ Azure

Returns a new instance of Azure.


38
39
40
41
42
43
# File 'lib/zanshin/scan_target.rb', line 38

def initialize(application_id, subscription_id, directory_id, secret)
  @application_id = application_id
  @subscription_id = subscription_id
  @directory_id = directory_id
  @secret = secret
end

Instance Attribute Details

#application_idObject

Returns the value of attribute application_id.


36
37
38
# File 'lib/zanshin/scan_target.rb', line 36

def application_id
  @application_id
end

#directory_idObject

Returns the value of attribute directory_id.


36
37
38
# File 'lib/zanshin/scan_target.rb', line 36

def directory_id
  @directory_id
end

#secretObject

Returns the value of attribute secret.


36
37
38
# File 'lib/zanshin/scan_target.rb', line 36

def secret
  @secret
end

#subscription_idObject

Returns the value of attribute subscription_id.


36
37
38
# File 'lib/zanshin/scan_target.rb', line 36

def subscription_id
  @subscription_id
end

Instance Method Details

#to_json(*_args) ⇒ Object

Convert Azure class to json


46
47
48
49
50
51
52
53
# File 'lib/zanshin/scan_target.rb', line 46

def to_json(*_args)
  {
    'application_id' => @application_id,
    'subscription_id' => @subscription_id,
    'directory_id' => @directory_id,
    'secret' => @secret
  }
end