Class: Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResourcesSummary

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/kmsinventory_v1/classes.rb,
lib/google/apis/kmsinventory_v1/representations.rb,
lib/google/apis/kmsinventory_v1/representations.rb

Overview

Aggregate information about the resources protected by a Cloud KMS key in the same Cloud organization as the key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudKmsInventoryV1ProtectedResourcesSummary

Returns a new instance of GoogleCloudKmsInventoryV1ProtectedResourcesSummary.



174
175
176
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 174

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cloud_productsHash<String,Fixnum>

The number of resources protected by the key grouped by Cloud product. Corresponds to the JSON property cloudProducts

Returns:

  • (Hash<String,Fixnum>)


143
144
145
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 143

def cloud_products
  @cloud_products
end

#locationsHash<String,Fixnum>

The number of resources protected by the key grouped by region. Corresponds to the JSON property locations

Returns:

  • (Hash<String,Fixnum>)


148
149
150
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 148

def locations
  @locations
end

#nameString

The full name of the ProtectedResourcesSummary resource. Example: projects/ test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/ protectedResourcesSummary Corresponds to the JSON property name

Returns:

  • (String)


155
156
157
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 155

def name
  @name
end

#project_countFixnum

The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key. Corresponds to the JSON property projectCount

Returns:

  • (Fixnum)


161
162
163
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 161

def project_count
  @project_count
end

#resource_countFixnum

The total number of protected resources in the same Cloud organization as the key. Corresponds to the JSON property resourceCount

Returns:

  • (Fixnum)


167
168
169
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 167

def resource_count
  @resource_count
end

#resource_typesHash<String,Fixnum>

The number of resources protected by the key grouped by resource type. Corresponds to the JSON property resourceTypes

Returns:

  • (Hash<String,Fixnum>)


172
173
174
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 172

def resource_types
  @resource_types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



179
180
181
182
183
184
185
186
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 179

def update!(**args)
  @cloud_products = args[:cloud_products] if args.key?(:cloud_products)
  @locations = args[:locations] if args.key?(:locations)
  @name = args[:name] if args.key?(:name)
  @project_count = args[:project_count] if args.key?(:project_count)
  @resource_count = args[:resource_count] if args.key?(:resource_count)
  @resource_types = args[:resource_types] if args.key?(:resource_types)
end