0.22.0 (latest) 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.2 0.15.1 0.14.1 0.13.0 0.12.2 0.11.3 0.10.0 0.9.1 0.8.3 0.7.0 0.6.1 0.5.0 0.4.0 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the KMS Inventory V1 API class Google::Cloud::Kms::Inventory::V1::ProtectedResourcesSummary.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cloud_products

    def cloud_products() -> ::Google::Protobuf::Map{::String => ::Integer}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by Cloud product.

### #cloud_products=

    def cloud_products=(value) -> ::Google::Protobuf::Map{::String => ::Integer}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by Cloud product.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by Cloud product.

### #locations

    def locations() -> ::Google::Protobuf::Map{::String => ::Integer}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by region.

### #locations=

    def locations=(value) -> ::Google::Protobuf::Map{::String => ::Integer}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by region.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by region.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary
**Returns**

- (::String) --- The full name of the ProtectedResourcesSummary resource. Example: projects/test-project/locations/us/keyRings/test-keyring/cryptoKeys/test-key/protectedResourcesSummary

### #project_count

    def project_count() -> ::Integer

**Returns**

- (::Integer) --- The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key.

### #project_count=

    def project_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key.
**Returns**

- (::Integer) --- The number of distinct Cloud projects in the same Cloud organization as the key that have resources protected by the key.

### #resource_count

    def resource_count() -> ::Integer

**Returns**

- (::Integer) --- The total number of protected resources in the same Cloud organization as the key.

### #resource_count=

    def resource_count=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The total number of protected resources in the same Cloud organization as the key.
**Returns**

- (::Integer) --- The total number of protected resources in the same Cloud organization as the key.

### #resource_types

    def resource_types() -> ::Google::Protobuf::Map{::String => ::Integer}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by resource type.

### #resource_types=

    def resource_types=(value) -> ::Google::Protobuf::Map{::String => ::Integer}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by resource type.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::Integer}) --- The number of resources protected by the key grouped by resource type.

### #warnings

    def warnings() -> ::Array<::Google::Cloud::Kms::Inventory::V1::Warning>

**Returns**

- (::Array\<[::Google::Cloud::Kms::Inventory::V1::Warning](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-Inventory-V1-Warning)\>) --- Warning messages for the state of response [ProtectedResourcesSummary](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-Inventory-V1-ProtectedResourcesSummary "Google::Cloud::Kms::Inventory::V1::ProtectedResourcesSummary (class)") For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.

### #warnings=

    def warnings=(value) -> ::Array<::Google::Cloud::Kms::Inventory::V1::Warning>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Kms::Inventory::V1::Warning](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-Inventory-V1-Warning)\>) --- Warning messages for the state of response [ProtectedResourcesSummary](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-Inventory-V1-ProtectedResourcesSummary "Google::Cloud::Kms::Inventory::V1::ProtectedResourcesSummary (class)") For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.
**Returns**

- (::Array\<[::Google::Cloud::Kms::Inventory::V1::Warning](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-Inventory-V1-Warning)\>) --- Warning messages for the state of response [ProtectedResourcesSummary](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-kms-inventory-v1/latest/Google-Cloud-Kms-Inventory-V1-ProtectedResourcesSummary "Google::Cloud::Kms::Inventory::V1::ProtectedResourcesSummary (class)") For example, if the organization service account is not configured, INSUFFICIENT_PERMISSIONS_PARTIAL_DATA warning will be returned.