Class: SDM::GCPCertX509Store

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(caid: nil, capoolid: nil, id: nil, issuedcertttlminutes: nil, location: nil, name: nil, projectid: nil, tags: nil) ⇒ GCPCertX509Store

Returns a new instance of GCPCertX509Store.



5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
# File 'lib/models/porcelain.rb', line 5615

def initialize(
  caid: nil,
  capoolid: nil,
  id: nil,
  issuedcertttlminutes: nil,
  location: nil,
  name: nil,
  projectid: nil,
  tags: nil
)
  @caid = caid == nil ? "" : caid
  @capoolid = capoolid == nil ? "" : capoolid
  @id = id == nil ? "" : id
  @issuedcertttlminutes = issuedcertttlminutes == nil ? 0 : issuedcertttlminutes
  @location = location == nil ? "" : location
  @name = name == nil ? "" : name
  @projectid = projectid == nil ? "" : projectid
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
end

Instance Attribute Details

#caidObject

The ID of the target CA



5599
5600
5601
# File 'lib/models/porcelain.rb', line 5599

def caid
  @caid
end

#capoolidObject

The ID of the target CA pool



5601
5602
5603
# File 'lib/models/porcelain.rb', line 5601

def capoolid
  @capoolid
end

#idObject

Unique identifier of the SecretStore.



5603
5604
5605
# File 'lib/models/porcelain.rb', line 5603

def id
  @id
end

#issuedcertttlminutesObject

The lifetime of certificates issued by this CA represented in minutes.



5605
5606
5607
# File 'lib/models/porcelain.rb', line 5605

def issuedcertttlminutes
  @issuedcertttlminutes
end

#locationObject

The Region for the CA in GCP format e.g. us-west1



5607
5608
5609
# File 'lib/models/porcelain.rb', line 5607

def location
  @location
end

#nameObject

Unique human-readable name of the SecretStore.



5609
5610
5611
# File 'lib/models/porcelain.rb', line 5609

def name
  @name
end

#projectidObject

The GCP project ID to target.



5611
5612
5613
# File 'lib/models/porcelain.rb', line 5611

def projectid
  @projectid
end

#tagsObject

Tags is a map of key, value pairs.



5613
5614
5615
# File 'lib/models/porcelain.rb', line 5613

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5635
5636
5637
5638
5639
5640
5641
# File 'lib/models/porcelain.rb', line 5635

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end