Class: SDM::AmazonEKSUserImpersonation

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) ⇒ AmazonEKSUserImpersonation

Returns a new instance of AmazonEKSUserImpersonation.



2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
# File 'lib/models/porcelain.rb', line 2393

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.



2377
2378
2379
# File 'lib/models/porcelain.rb', line 2377

def access_key
  @access_key
end

#certificate_authorityObject

Returns the value of attribute certificate_authority.



2381
2382
2383
# File 'lib/models/porcelain.rb', line 2381

def certificate_authority
  @certificate_authority
end

#cluster_nameObject

Returns the value of attribute cluster_name.



2385
2386
2387
# File 'lib/models/porcelain.rb', line 2385

def cluster_name
  @cluster_name
end

#egress_filterObject

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



2373
2374
2375
# File 'lib/models/porcelain.rb', line 2373

def egress_filter
  @egress_filter
end

#endpointObject

Returns the value of attribute endpoint.



2375
2376
2377
# File 'lib/models/porcelain.rb', line 2375

def endpoint
  @endpoint
end

#healthcheck_namespaceObject

Returns the value of attribute healthcheck_namespace.



2391
2392
2393
# File 'lib/models/porcelain.rb', line 2391

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

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



2367
2368
2369
# File 'lib/models/porcelain.rb', line 2367

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



2363
2364
2365
# File 'lib/models/porcelain.rb', line 2363

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



2365
2366
2367
# File 'lib/models/porcelain.rb', line 2365

def name
  @name
end

#regionObject

Returns the value of attribute region.



2383
2384
2385
# File 'lib/models/porcelain.rb', line 2383

def region
  @region
end

#role_arnObject

Returns the value of attribute role_arn.



2387
2388
2389
# File 'lib/models/porcelain.rb', line 2387

def role_arn
  @role_arn
end

#role_external_idObject

Returns the value of attribute role_external_id.



2389
2390
2391
# File 'lib/models/porcelain.rb', line 2389

def role_external_id
  @role_external_id
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



2379
2380
2381
# File 'lib/models/porcelain.rb', line 2379

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

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



2371
2372
2373
# File 'lib/models/porcelain.rb', line 2371

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



2369
2370
2371
# File 'lib/models/porcelain.rb', line 2369

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2457
2458
2459
2460
2461
2462
2463
# File 'lib/models/porcelain.rb', line 2457

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