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.



5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
# File 'lib/models/porcelain.rb', line 5021

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



5005
5006
5007
# File 'lib/models/porcelain.rb', line 5005

def caid
  @caid
end

#capoolidObject

The ID of the target CA pool



5007
5008
5009
# File 'lib/models/porcelain.rb', line 5007

def capoolid
  @capoolid
end

#idObject

Unique identifier of the SecretStore.



5009
5010
5011
# File 'lib/models/porcelain.rb', line 5009

def id
  @id
end

#issuedcertttlminutesObject

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



5011
5012
5013
# File 'lib/models/porcelain.rb', line 5011

def issuedcertttlminutes
  @issuedcertttlminutes
end

#locationObject

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



5013
5014
5015
# File 'lib/models/porcelain.rb', line 5013

def location
  @location
end

#nameObject

Unique human-readable name of the SecretStore.



5015
5016
5017
# File 'lib/models/porcelain.rb', line 5015

def name
  @name
end

#projectidObject

The GCP project ID to target.



5017
5018
5019
# File 'lib/models/porcelain.rb', line 5017

def projectid
  @projectid
end

#tagsObject

Tags is a map of key, value pairs.



5019
5020
5021
# File 'lib/models/porcelain.rb', line 5019

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



5041
5042
5043
5044
5045
5046
5047
# File 'lib/models/porcelain.rb', line 5041

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