Class: Zanshin::SDK::ScanTarget::Azure
- Inherits:
-
Object
- Object
- Zanshin::SDK::ScanTarget::Azure
- 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
-
#application_id ⇒ Object
Returns the value of attribute application_id.
-
#directory_id ⇒ Object
Returns the value of attribute directory_id.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
Instance Method Summary collapse
-
#initialize(application_id, subscription_id, directory_id, secret) ⇒ Azure
constructor
A new instance of Azure.
-
#to_json(*_args) ⇒ Object
Convert Azure class to json.
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_id ⇒ Object
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_id ⇒ Object
Returns the value of attribute directory_id.
36 37 38 |
# File 'lib/zanshin/scan_target.rb', line 36 def directory_id @directory_id end |
#secret ⇒ Object
Returns the value of attribute secret.
36 37 38 |
# File 'lib/zanshin/scan_target.rb', line 36 def secret @secret end |
#subscription_id ⇒ Object
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 |