Class: SDM::AmazonEKS

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: nil, name: nil, healthy: nil, tags: nil, secret_store_id: nil, egress_filter: nil, endpoint: nil, access_key: nil, secret_access_key: nil, certificate_authority: nil, region: nil, cluster_name: nil, role_arn: nil, role_external_id: nil, healthcheck_namespace: nil) ⇒ AmazonEKS

Returns a new instance of AmazonEKS.



2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
# File 'lib/models/porcelain.rb', line 2288

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  secret_store_id: nil,
  egress_filter: nil,
  endpoint: nil,
  access_key: nil,
  secret_access_key: nil,
  certificate_authority: nil,
  region: nil,
  cluster_name: nil,
  role_arn: nil,
  role_external_id: nil,
  healthcheck_namespace: nil
)
  if id != nil
    @id = id
  end
  if name != nil
    @name = name
  end
  if healthy != nil
    @healthy = healthy
  end
  if tags != nil
    @tags = tags
  end
  if secret_store_id != nil
    @secret_store_id = secret_store_id
  end
  if egress_filter != nil
    @egress_filter = egress_filter
  end
  if endpoint != nil
    @endpoint = endpoint
  end
  if access_key != nil
    @access_key = access_key
  end
  if secret_access_key != nil
    @secret_access_key = secret_access_key
  end
  if certificate_authority != nil
    @certificate_authority = certificate_authority
  end
  if region != nil
    @region = region
  end
  if cluster_name != nil
    @cluster_name = cluster_name
  end
  if role_arn != nil
    @role_arn = role_arn
  end
  if role_external_id != nil
    @role_external_id = role_external_id
  end
  if healthcheck_namespace != nil
    @healthcheck_namespace = healthcheck_namespace
  end
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



2272
2273
2274
# File 'lib/models/porcelain.rb', line 2272

def access_key
  @access_key
end

#certificate_authorityObject

Returns the value of attribute certificate_authority.



2276
2277
2278
# File 'lib/models/porcelain.rb', line 2276

def certificate_authority
  @certificate_authority
end

#cluster_nameObject

Returns the value of attribute cluster_name.



2280
2281
2282
# File 'lib/models/porcelain.rb', line 2280

def cluster_name
  @cluster_name
end

#egress_filterObject

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



2268
2269
2270
# File 'lib/models/porcelain.rb', line 2268

def egress_filter
  @egress_filter
end

#endpointObject

Returns the value of attribute endpoint.



2270
2271
2272
# File 'lib/models/porcelain.rb', line 2270

def endpoint
  @endpoint
end

#healthcheck_namespaceObject

Returns the value of attribute healthcheck_namespace.



2286
2287
2288
# File 'lib/models/porcelain.rb', line 2286

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

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



2262
2263
2264
# File 'lib/models/porcelain.rb', line 2262

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



2258
2259
2260
# File 'lib/models/porcelain.rb', line 2258

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



2260
2261
2262
# File 'lib/models/porcelain.rb', line 2260

def name
  @name
end

#regionObject

Returns the value of attribute region.



2278
2279
2280
# File 'lib/models/porcelain.rb', line 2278

def region
  @region
end

#role_arnObject

Returns the value of attribute role_arn.



2282
2283
2284
# File 'lib/models/porcelain.rb', line 2282

def role_arn
  @role_arn
end

#role_external_idObject

Returns the value of attribute role_external_id.



2284
2285
2286
# File 'lib/models/porcelain.rb', line 2284

def role_external_id
  @role_external_id
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



2274
2275
2276
# File 'lib/models/porcelain.rb', line 2274

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

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



2266
2267
2268
# File 'lib/models/porcelain.rb', line 2266

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



2264
2265
2266
# File 'lib/models/porcelain.rb', line 2264

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2352
2353
2354
2355
2356
2357
2358
# File 'lib/models/porcelain.rb', line 2352

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