Class: Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResourcesSummary
- Inherits:
-
Object
- Object
- Google::Apis::KmsinventoryV1::GoogleCloudKmsInventoryV1ProtectedResourcesSummary
- 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
-
#cloud_products ⇒ Hash<String,Fixnum>
The number of resources protected by the key grouped by Cloud product.
-
#locations ⇒ Hash<String,Fixnum>
The number of resources protected by the key grouped by region.
-
#name ⇒ String
The full name of the ProtectedResourcesSummary resource.
-
#project_count ⇒ Fixnum
The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key.
-
#resource_count ⇒ Fixnum
The total number of protected resources in the same Cloud organization as the key.
-
#resource_types ⇒ Hash<String,Fixnum>
The number of resources protected by the key grouped by resource type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudKmsInventoryV1ProtectedResourcesSummary
constructor
A new instance of GoogleCloudKmsInventoryV1ProtectedResourcesSummary.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudKmsInventoryV1ProtectedResourcesSummary
Returns a new instance of GoogleCloudKmsInventoryV1ProtectedResourcesSummary.
162 163 164 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 162 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_products ⇒ Hash<String,Fixnum>
The number of resources protected by the key grouped by Cloud product.
Corresponds to the JSON property cloudProducts
131 132 133 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 131 def cloud_products @cloud_products end |
#locations ⇒ Hash<String,Fixnum>
The number of resources protected by the key grouped by region.
Corresponds to the JSON property locations
136 137 138 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 136 def locations @locations end |
#name ⇒ String
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
143 144 145 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 143 def name @name end |
#project_count ⇒ Fixnum
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
149 150 151 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 149 def project_count @project_count end |
#resource_count ⇒ Fixnum
The total number of protected resources in the same Cloud organization as the
key.
Corresponds to the JSON property resourceCount
155 156 157 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 155 def resource_count @resource_count end |
#resource_types ⇒ Hash<String,Fixnum>
The number of resources protected by the key grouped by resource type.
Corresponds to the JSON property resourceTypes
160 161 162 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 160 def resource_types @resource_types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
167 168 169 170 171 172 173 174 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 167 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 |