Class: Zanshin::SDK::ScanTarget::GCP

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

Overview

GCP scan target

Constant Summary collapse

KIND =

Type of provider that will be sent to the API

'GCP'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_id) ⇒ GCP

Returns a new instance of GCP.



63
64
65
# File 'lib/zanshin/scan_target.rb', line 63

def initialize(project_id)
  @project_id = project_id
end

Instance Attribute Details

#project_idObject

Returns the value of attribute project_id.



61
62
63
# File 'lib/zanshin/scan_target.rb', line 61

def project_id
  @project_id
end

Instance Method Details

#to_json(*_args) ⇒ Object

Convert GCP class to json



68
69
70
71
72
# File 'lib/zanshin/scan_target.rb', line 68

def to_json(*_args)
  {
    'project_id' => @project_id
  }
end