Class: SDM::AKSServiceAccount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(egress_filter: nil, healthcheck_namespace: nil, healthy: nil, hostname: nil, id: nil, name: nil, port: nil, secret_store_id: nil, tags: nil, token: nil) ⇒ AKSServiceAccount

Returns a new instance of AKSServiceAccount.



208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
# File 'lib/models/porcelain.rb', line 208

def initialize(
  egress_filter: nil,
  healthcheck_namespace: nil,
  healthy: nil,
  hostname: nil,
  id: nil,
  name: nil,
  port: nil,
  secret_store_id: nil,
  tags: nil,
  token: nil
)
  if egress_filter != nil
    @egress_filter = egress_filter
  end
  if healthcheck_namespace != nil
    @healthcheck_namespace = healthcheck_namespace
  end
  if healthy != nil
    @healthy = healthy
  end
  if hostname != nil
    @hostname = hostname
  end
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if port != nil
    @port = port
  end
  if secret_store_id != nil
    @secret_store_id = secret_store_id
  end
  if tags != nil
    @tags = tags
  end
  if token != nil
    @token = token
  end
end

Instance Attribute Details

#egress_filterObject

A filter applied to the routing logic to pin datasource to nodes.



188
189
190
# File 'lib/models/porcelain.rb', line 188

def egress_filter
  @egress_filter
end

#healthcheck_namespaceObject

The path used to check the health of your connection. Defaults to ‘default`.



190
191
192
# File 'lib/models/porcelain.rb', line 190

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

True if the datasource is reachable and the credentials are valid.



192
193
194
# File 'lib/models/porcelain.rb', line 192

def healthy
  @healthy
end

#hostnameObject

Returns the value of attribute hostname.



194
195
196
# File 'lib/models/porcelain.rb', line 194

def hostname
  @hostname
end

#idObject

Unique identifier of the Resource.



196
197
198
# File 'lib/models/porcelain.rb', line 196

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



198
199
200
# File 'lib/models/porcelain.rb', line 198

def name
  @name
end

#portObject

Returns the value of attribute port.



200
201
202
# File 'lib/models/porcelain.rb', line 200

def port
  @port
end

#secret_store_idObject

ID of the secret store containing credentials for this resource, if any.



202
203
204
# File 'lib/models/porcelain.rb', line 202

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



204
205
206
# File 'lib/models/porcelain.rb', line 204

def tags
  @tags
end

#tokenObject

Returns the value of attribute token.



206
207
208
# File 'lib/models/porcelain.rb', line 206

def token
  @token
end

Instance Method Details

#to_json(options = {}) ⇒ Object



252
253
254
255
256
257
258
# File 'lib/models/porcelain.rb', line 252

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