Class: SDM::GCPCertX509Store

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

Overview

GCPCertX509Store is currently unstable, and its API may change, or it may be removed, without a major version bump.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GCPCertX509Store.



4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
# File 'lib/models/porcelain.rb', line 4154

def initialize(
  caid: nil,
  capoolid: nil,
  id: nil,
  location: nil,
  name: nil,
  projectid: nil,
  tags: nil
)
  @caid = caid == nil ? "" : caid
  @capoolid = capoolid == nil ? "" : capoolid
  @id = id == nil ? "" : id
  @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



4140
4141
4142
# File 'lib/models/porcelain.rb', line 4140

def caid
  @caid
end

#capoolidObject

The ID of the target CA pool



4142
4143
4144
# File 'lib/models/porcelain.rb', line 4142

def capoolid
  @capoolid
end

#idObject

Unique identifier of the SecretStore.



4144
4145
4146
# File 'lib/models/porcelain.rb', line 4144

def id
  @id
end

#locationObject

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



4146
4147
4148
# File 'lib/models/porcelain.rb', line 4146

def location
  @location
end

#nameObject

Unique human-readable name of the SecretStore.



4148
4149
4150
# File 'lib/models/porcelain.rb', line 4148

def name
  @name
end

#projectidObject

The GCP project ID to target.



4150
4151
4152
# File 'lib/models/porcelain.rb', line 4150

def projectid
  @projectid
end

#tagsObject

Tags is a map of key, value pairs.



4152
4153
4154
# File 'lib/models/porcelain.rb', line 4152

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



4172
4173
4174
4175
4176
4177
4178
# File 'lib/models/porcelain.rb', line 4172

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