Class: Azure::Storage::Mgmt::V2019_06_01::Models::EncryptionService

Inherits:
Object
  • Object
show all
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

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/2019-06-01/generated/azure_mgmt_storage/models/encryption_service.rb', line 17

def enabled
  @enabled
end

#key_typeKeyType

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’

Returns:

  • (KeyType)

    Encryption key type to be used for the encryption



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_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/2019-06-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.



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