Class: SDM::AzureConnector
- Inherits:
-
Object
- Object
- SDM::AzureConnector
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
ClientId is the ID of the Application / Service Account we're acting as.
-
#description ⇒ Object
Description of the Connector.
-
#exclude_tags ⇒ Object
ExcludeTags filters out discovered resources that have the tag and value.
-
#id ⇒ Object
Unique identifier of the Connector.
-
#include_tags ⇒ Object
IncludeTags only discovers cloud resources that have one of the included tags.
-
#name ⇒ Object
Unique human-readable name of the Connector.
-
#scan_period ⇒ Object
ScanPeriod identifies which remote system this Connector discovers.
-
#services ⇒ Object
Services is a list of services this connector should scan.
-
#subscription_ids ⇒ Object
SubscriptionIds are the targets of discovery.
-
#tenant_id ⇒ Object
TenantId is the Azure Tenant we're discovering in.
Instance Method Summary collapse
-
#initialize(client_id: nil, description: nil, exclude_tags: nil, id: nil, include_tags: nil, name: nil, scan_period: nil, services: nil, subscription_ids: nil, tenant_id: nil) ⇒ AzureConnector
constructor
A new instance of AzureConnector.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(client_id: nil, description: nil, exclude_tags: nil, id: nil, include_tags: nil, name: nil, scan_period: nil, services: nil, subscription_ids: nil, tenant_id: nil) ⇒ AzureConnector
4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 |
# File 'lib/models/porcelain.rb', line 4260 def initialize( client_id: nil, description: nil, exclude_tags: nil, id: nil, include_tags: nil, name: nil, scan_period: nil, services: nil, subscription_ids: nil, tenant_id: nil ) @client_id = client_id == nil ? "" : client_id @description = description == nil ? "" : description = == nil ? [] : @id = id == nil ? "" : id = == nil ? [] : @name = name == nil ? "" : name @scan_period = scan_period == nil ? "" : scan_period @services = services == nil ? [] : services @subscription_ids = subscription_ids == nil ? [] : subscription_ids @tenant_id = tenant_id == nil ? "" : tenant_id end |
Instance Attribute Details
#client_id ⇒ Object
ClientId is the ID of the Application / Service Account we're acting as
4238 4239 4240 |
# File 'lib/models/porcelain.rb', line 4238 def client_id @client_id end |
#description ⇒ Object
Description of the Connector.
4240 4241 4242 |
# File 'lib/models/porcelain.rb', line 4240 def description @description end |
#exclude_tags ⇒ Object
ExcludeTags filters out discovered resources that have the tag and value. We do allow duplicate tag names for ExcludeTags to support multiple excluded values for the tag.
4243 4244 4245 |
# File 'lib/models/porcelain.rb', line 4243 def end |
#id ⇒ Object
Unique identifier of the Connector.
4245 4246 4247 |
# File 'lib/models/porcelain.rb', line 4245 def id @id end |
#include_tags ⇒ Object
IncludeTags only discovers cloud resources that have one of the included tags. We do not allow duplicate tag names for IncludeTags
4248 4249 4250 |
# File 'lib/models/porcelain.rb', line 4248 def end |
#name ⇒ Object
Unique human-readable name of the Connector.
4250 4251 4252 |
# File 'lib/models/porcelain.rb', line 4250 def name @name end |
#scan_period ⇒ Object
ScanPeriod identifies which remote system this Connector discovers
4252 4253 4254 |
# File 'lib/models/porcelain.rb', line 4252 def scan_period @scan_period end |
#services ⇒ Object
Services is a list of services this connector should scan.
4254 4255 4256 |
# File 'lib/models/porcelain.rb', line 4254 def services @services end |
#subscription_ids ⇒ Object
SubscriptionIds are the targets of discovery.
4256 4257 4258 |
# File 'lib/models/porcelain.rb', line 4256 def subscription_ids @subscription_ids end |
#tenant_id ⇒ Object
TenantId is the Azure Tenant we're discovering in
4258 4259 4260 |
# File 'lib/models/porcelain.rb', line 4258 def tenant_id @tenant_id end |
Instance Method Details
#to_json(options = {}) ⇒ Object
4284 4285 4286 4287 4288 4289 4290 |
# File 'lib/models/porcelain.rb', line 4284 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |