Class: Azure::Storage::Mgmt::V2021_01_01::Models::EncryptionScope

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb

Overview

The Encryption Scope resource.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#creation_timeDateTime

scope in UTC.

Returns:

  • (DateTime)

    Gets the creation date and time of the encryption



28
29
30
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb', line 28

def creation_time
  @creation_time
end

#key_vault_propertiesEncryptionScopeKeyVaultProperties

for the encryption scope. This is a required field if encryption scope ‘source’ attribute is set to ‘Microsoft.KeyVault’.

Returns:



37
38
39
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb', line 37

def key_vault_properties
  @key_vault_properties
end

#last_modified_timeDateTime

encryption scope in UTC.

Returns:

  • (DateTime)

    Gets the last modification date and time of the



32
33
34
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb', line 32

def last_modified_time
  @last_modified_time
end

#require_infrastructure_encryptionBoolean

applies a secondary layer of encryption with platform managed keys for data at rest.

Returns:

  • (Boolean)

    A boolean indicating whether or not the service



42
43
44
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb', line 42

def require_infrastructure_encryption
  @require_infrastructure_encryption
end

#sourceEncryptionScopeSource

Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault. Possible values include: ‘Microsoft.Storage’, ‘Microsoft.KeyVault’

Returns:



19
20
21
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb', line 19

def source
  @source
end

#stateEncryptionScopeState

Possible values (case-insensitive): Enabled, Disabled. Possible values include: ‘Enabled’, ‘Disabled’

Returns:



24
25
26
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb', line 24

def state
  @state
end

Class Method Details

.mapperObject

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



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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/encryption_scope.rb', line 49

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EncryptionScope',
    type: {
      name: 'Composite',
      class_name: 'EncryptionScope',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        source: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.source',
          type: {
            name: 'String'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.state',
          type: {
            name: 'String'
          }
        },
        creation_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.creationTime',
          type: {
            name: 'DateTime'
          }
        },
        last_modified_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lastModifiedTime',
          type: {
            name: 'DateTime'
          }
        },
        key_vault_properties: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.keyVaultProperties',
          type: {
            name: 'Composite',
            class_name: 'EncryptionScopeKeyVaultProperties'
          }
        },
        require_infrastructure_encryption: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.requireInfrastructureEncryption',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end