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.
174 175 176 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 174 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
143 144 145 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 143 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
148 149 150 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 148 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
155 156 157 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 155 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
161 162 163 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 161 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
167 168 169 |
# File 'lib/google/apis/kmsinventory_v1/classes.rb', line 167 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
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 |