Sha256: aeaa0b6cce26f5d9318aeeaf98ea939e494c7e0654e8af2fa2000b287924e6b1
Contents?: true
Size: 1.87 KB
Versions: 1
Compression:
Stored size: 1.87 KB
Contents
# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing for info on making contributions: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws module IAM class AccountSummary extend Aws::Deprecations # @overload def initialize(options = {}) # @option options [Client] :client def initialize(*args) options = Hash === args.last ? args.pop.dup : {} @data = options.delete(:data) @client = options.delete(:client) || Client.new(options) end # @!group Read-Only Attributes # A set of key value pairs containing information about IAM entity usage # and IAM quotas. # @return [Hash<String,Integer>] def summary_map data.summary_map end # @!endgroup # @return [Client] def client @client end # Loads, or reloads {#data} for the current {AccountSummary}. # Returns `self` making it possible to chain methods. # # account_summary.reload.data # # @return [self] def load resp = @client.get_account_summary @data = resp.data self end alias :reload :load # @return [Types::GetAccountSummaryResponse] # Returns the data for this {AccountSummary}. Calls # {Client#get_account_summary} if {#data_loaded?} is `false`. def data load unless @data @data end # @return [Boolean] # Returns `true` if this resource is loaded. Accessing attributes or # {#data} on an unloaded resource will trigger a call to {#load}. def data_loaded? !!@data end # @deprecated # @api private def identifiers {} end deprecated(:identifiers) class Collection < Aws::Resources::Collection; end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws-sdk-iam-1.0.0.rc1 | lib/aws-sdk-iam/account_summary.rb |