Class: Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionService

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb

Overview

A service that allows server-side encryption to be used.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#enabledBoolean

encrypts the data as it is stored.

Returns:

  • (Boolean)

    A boolean indicating whether or not the service



17
18
19
# File 'lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb', line 17

def enabled
  @enabled
end

#last_enabled_timeDateTime

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.

Returns:

  • (DateTime)

    Gets a rough estimate of the date/time when the



23
24
25
# File 'lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb', line 23

def last_enabled_time
  @last_enabled_time
end

Class Method Details

.mapperObject

Mapper for EncryptionService class as Ruby Hash. This will be used for serialization/deserialization.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb', line 30

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'
          }
        }
      }
    }
  }
end