Class: Aws::RDS::AccountQuota

Inherits:
Object
  • Object
show all
Extended by:
Deprecations
Defined in:
lib/aws-sdk-rds/account_quota.rb

Defined Under Namespace

Classes: Collection

Read-Only Attributes collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ AccountQuota #initialize(options = {}) ⇒ AccountQuota

Returns a new instance of AccountQuota.

Overloads:

  • #initialize(name, options = {}) ⇒ AccountQuota

    Parameters:

    • name (String)

    Options Hash (options):

  • #initialize(options = {}) ⇒ AccountQuota

    Options Hash (options):

    • :name (required, String)
    • :client (Client)


19
20
21
22
23
24
# File 'lib/aws-sdk-rds/account_quota.rb', line 19

def initialize(*args)
  options = Hash === args.last ? args.pop.dup : {}
  @name = extract_name(args, options)
  @data = options.delete(:data)
  @client = options.delete(:client) || Client.new(options)
end

Instance Method Details

#clientClient

Returns:



49
50
51
# File 'lib/aws-sdk-rds/account_quota.rb', line 49

def client
  @client
end

#dataTypes::AccountQuota

Returns the data for this Aws::RDS::AccountQuota.

Returns:

Raises:

  • (NotImplementedError)

    Raises when #data_loaded? is ‘false`.



64
65
66
67
# File 'lib/aws-sdk-rds/account_quota.rb', line 64

def data
  load unless @data
  @data
end

#data_loaded?Boolean

Returns ‘true` if this resource is loaded. Accessing attributes or #data on an unloaded resource will trigger a call to #load.

Returns:

  • (Boolean)

    Returns ‘true` if this resource is loaded. Accessing attributes or #data on an unloaded resource will trigger a call to #load.



72
73
74
# File 'lib/aws-sdk-rds/account_quota.rb', line 72

def data_loaded?
  !!@data
end

#identifiersObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Deprecated.


78
79
80
# File 'lib/aws-sdk-rds/account_quota.rb', line 78

def identifiers
  { name: @name }
end

#loadObject Also known as: reload

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Raises:

  • (NotImplementedError)


55
56
57
58
# File 'lib/aws-sdk-rds/account_quota.rb', line 55

def load
  msg = "#load is not implemented, data only available via enumeration"
  raise NotImplementedError, msg
end

#maxInteger

The maximum allowed value for the quota.

Returns:

  • (Integer)


42
43
44
# File 'lib/aws-sdk-rds/account_quota.rb', line 42

def max
  data.max
end

#nameString Also known as: account_quota_name

Returns:

  • (String)


29
30
31
# File 'lib/aws-sdk-rds/account_quota.rb', line 29

def name
  @name
end

#usedInteger

The amount currently used toward the quota maximum.

Returns:

  • (Integer)


36
37
38
# File 'lib/aws-sdk-rds/account_quota.rb', line 36

def used
  data.used
end