Class: Azure::Storage::Mgmt::V2019_06_01::Models::EncryptionService
- Inherits:
-
Object
- Object
- Azure::Storage::Mgmt::V2019_06_01::Models::EncryptionService
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_service.rb
Overview
A service that allows server-side encryption to be used.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
encrypts the data as it is stored.
-
#key_type ⇒ KeyType
service.
-
#last_enabled_time ⇒ DateTime
encryption was last enabled by the user.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for EncryptionService class as Ruby Hash.
Instance Attribute Details
#enabled ⇒ Boolean
encrypts the data as it is stored.
17 18 19 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_service.rb', line 17 def enabled @enabled end |
#key_type ⇒ KeyType
service. ‘Account’ key type implies that an account-scoped encryption key will be used. ‘Service’ key type implies that a default service key is used. Possible values include: ‘Service’, ‘Account’
29 30 31 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_service.rb', line 29 def key_type @key_type end |
#last_enabled_time ⇒ DateTime
encryption was last enabled by the user. Only returned when encryption is enabled. There might be some unencrypted blobs which were written after this time, as it is just a rough estimate.
23 24 25 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_service.rb', line 23 def last_enabled_time @last_enabled_time end |
Class Method Details
.mapper ⇒ Object
Mapper for EncryptionService class as Ruby Hash. This will be used for serialization/deserialization.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_service.rb', line 36 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'EncryptionService', type: { name: 'Composite', class_name: 'EncryptionService', model_properties: { enabled: { client_side_validation: true, required: false, serialized_name: 'enabled', type: { name: 'Boolean' } }, last_enabled_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'lastEnabledTime', type: { name: 'DateTime' } }, key_type: { client_side_validation: true, required: false, serialized_name: 'keyType', type: { name: 'String' } } } } } end |