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.



2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
# File 'lib/models/porcelain.rb', line 2567

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.



2551
2552
2553
# File 'lib/models/porcelain.rb', line 2551

def access_key
  @access_key
end

#certificate_authorityObject

Returns the value of attribute certificate_authority.



2555
2556
2557
# File 'lib/models/porcelain.rb', line 2555

def certificate_authority
  @certificate_authority
end

#cluster_nameObject

Returns the value of attribute cluster_name.



2559
2560
2561
# File 'lib/models/porcelain.rb', line 2559

def cluster_name
  @cluster_name
end

#egress_filterObject

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



2547
2548
2549
# File 'lib/models/porcelain.rb', line 2547

def egress_filter
  @egress_filter
end

#endpointObject

Returns the value of attribute endpoint.



2549
2550
2551
# File 'lib/models/porcelain.rb', line 2549

def endpoint
  @endpoint
end

#healthcheck_namespaceObject

Returns the value of attribute healthcheck_namespace.



2565
2566
2567
# File 'lib/models/porcelain.rb', line 2565

def healthcheck_namespace
  @healthcheck_namespace
end

#healthyObject

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



2541
2542
2543
# File 'lib/models/porcelain.rb', line 2541

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



2537
2538
2539
# File 'lib/models/porcelain.rb', line 2537

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



2539
2540
2541
# File 'lib/models/porcelain.rb', line 2539

def name
  @name
end

#regionObject

Returns the value of attribute region.



2557
2558
2559
# File 'lib/models/porcelain.rb', line 2557

def region
  @region
end

#role_arnObject

Returns the value of attribute role_arn.



2561
2562
2563
# File 'lib/models/porcelain.rb', line 2561

def role_arn
  @role_arn
end

#role_external_idObject

Returns the value of attribute role_external_id.



2563
2564
2565
# File 'lib/models/porcelain.rb', line 2563

def role_external_id
  @role_external_id
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



2553
2554
2555
# File 'lib/models/porcelain.rb', line 2553

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

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



2545
2546
2547
# File 'lib/models/porcelain.rb', line 2545

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



2543
2544
2545
# File 'lib/models/porcelain.rb', line 2543

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



2631
2632
2633
2634
2635
2636
2637
# File 'lib/models/porcelain.rb', line 2631

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