Class: SDM::Athena

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, access_key: nil, secret_access_key: nil, output: nil, port_override: nil, region: nil, role_arn: nil, role_external_id: nil) ⇒ Athena

Returns a new instance of Athena.



922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
# File 'lib/models/porcelain.rb', line 922

def initialize(
  id: nil,
  name: nil,
  healthy: nil,
  tags: nil,
  secret_store_id: nil,
  egress_filter: nil,
  access_key: nil,
  secret_access_key: nil,
  output: nil,
  port_override: nil,
  region: nil,
  role_arn: nil,
  role_external_id: 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 access_key != nil
    @access_key = access_key
  end
  if secret_access_key != nil
    @secret_access_key = secret_access_key
  end
  if output != nil
    @output = output
  end
  if port_override != nil
    @port_override = port_override
  end
  if region != nil
    @region = region
  end
  if role_arn != nil
    @role_arn = role_arn
  end
  if role_external_id != nil
    @role_external_id = role_external_id
  end
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



908
909
910
# File 'lib/models/porcelain.rb', line 908

def access_key
  @access_key
end

#egress_filterObject

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



906
907
908
# File 'lib/models/porcelain.rb', line 906

def egress_filter
  @egress_filter
end

#healthyObject

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



900
901
902
# File 'lib/models/porcelain.rb', line 900

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



896
897
898
# File 'lib/models/porcelain.rb', line 896

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



898
899
900
# File 'lib/models/porcelain.rb', line 898

def name
  @name
end

#outputObject

Returns the value of attribute output.



912
913
914
# File 'lib/models/porcelain.rb', line 912

def output
  @output
end

#port_overrideObject

Returns the value of attribute port_override.



914
915
916
# File 'lib/models/porcelain.rb', line 914

def port_override
  @port_override
end

#regionObject

Returns the value of attribute region.



916
917
918
# File 'lib/models/porcelain.rb', line 916

def region
  @region
end

#role_arnObject

Returns the value of attribute role_arn.



918
919
920
# File 'lib/models/porcelain.rb', line 918

def role_arn
  @role_arn
end

#role_external_idObject

Returns the value of attribute role_external_id.



920
921
922
# File 'lib/models/porcelain.rb', line 920

def role_external_id
  @role_external_id
end

#secret_access_keyObject

Returns the value of attribute secret_access_key.



910
911
912
# File 'lib/models/porcelain.rb', line 910

def secret_access_key
  @secret_access_key
end

#secret_store_idObject

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



904
905
906
# File 'lib/models/porcelain.rb', line 904

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



902
903
904
# File 'lib/models/porcelain.rb', line 902

def tags
  @tags
end

Instance Method Details

#to_json(options = {}) ⇒ Object



978
979
980
981
982
983
984
# File 'lib/models/porcelain.rb', line 978

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