Class: SDM::Azure

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_id: nil, egress_filter: nil, healthy: nil, id: nil, name: nil, password: nil, secret_store_id: nil, tags: nil, tenant_id: nil) ⇒ Azure

Returns a new instance of Azure.



1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
# File 'lib/models/porcelain.rb', line 1231

def initialize(
  app_id: nil,
  egress_filter: nil,
  healthy: nil,
  id: nil,
  name: nil,
  password: nil,
  secret_store_id: nil,
  tags: nil,
  tenant_id: nil
)
  @app_id = app_id == nil ? "" : app_id
  @egress_filter = egress_filter == nil ? "" : egress_filter
  @healthy = healthy == nil ? false : healthy
  @id = id == nil ? "" : id
  @name = name == nil ? "" : name
  @password = password == nil ? "" : password
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
  @tenant_id = tenant_id == nil ? "" : tenant_id
end

Instance Attribute Details

#app_idObject

Returns the value of attribute app_id.



1213
1214
1215
# File 'lib/models/porcelain.rb', line 1213

def app_id
  @app_id
end

#egress_filterObject

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



1215
1216
1217
# File 'lib/models/porcelain.rb', line 1215

def egress_filter
  @egress_filter
end

#healthyObject

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



1217
1218
1219
# File 'lib/models/porcelain.rb', line 1217

def healthy
  @healthy
end

#idObject

Unique identifier of the Resource.



1219
1220
1221
# File 'lib/models/porcelain.rb', line 1219

def id
  @id
end

#nameObject

Unique human-readable name of the Resource.



1221
1222
1223
# File 'lib/models/porcelain.rb', line 1221

def name
  @name
end

#passwordObject

Returns the value of attribute password.



1223
1224
1225
# File 'lib/models/porcelain.rb', line 1223

def password
  @password
end

#secret_store_idObject

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



1225
1226
1227
# File 'lib/models/porcelain.rb', line 1225

def secret_store_id
  @secret_store_id
end

#tagsObject

Tags is a map of key, value pairs.



1227
1228
1229
# File 'lib/models/porcelain.rb', line 1227

def tags
  @tags
end

#tenant_idObject

Returns the value of attribute tenant_id.



1229
1230
1231
# File 'lib/models/porcelain.rb', line 1229

def tenant_id
  @tenant_id
end

Instance Method Details

#to_json(options = {}) ⇒ Object



1253
1254
1255
1256
1257
1258
1259
# File 'lib/models/porcelain.rb', line 1253

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