Class: Azure::Security::Mgmt::V2020_01_01::Models::ProtectionMode

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb

Overview

The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#exeEnum



17
18
19
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb', line 17

def exe
  @exe
end

#executableEnum



26
27
28
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb', line 26

def executable
  @executable
end

#msiEnum



20
21
22
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb', line 20

def msi
  @msi
end

#scriptEnum



23
24
25
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb', line 23

def script
  @script
end

Class Method Details

.mapperObject

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



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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/protection_mode.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ProtectionMode',
    type: {
      name: 'Composite',
      class_name: 'ProtectionMode',
      model_properties: {
        exe: {
          client_side_validation: true,
          required: false,
          serialized_name: 'exe',
          type: {
            name: 'String'
          }
        },
        msi: {
          client_side_validation: true,
          required: false,
          serialized_name: 'msi',
          type: {
            name: 'String'
          }
        },
        script: {
          client_side_validation: true,
          required: false,
          serialized_name: 'script',
          type: {
            name: 'String'
          }
        },
        executable: {
          client_side_validation: true,
          required: false,
          serialized_name: 'executable',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end