Class: Azure::Security::Mgmt::V2020_01_01::Models::AdaptiveNetworkHardening

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

Overview

The resource whose properties describes the Adaptive Network Hardening settings for some Azure 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

#effective_network_security_groupsArray<EffectiveNetworkSecurityGroups>

Groups effective on the network interfaces of the protected resource

Returns:



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

def effective_network_security_groups
  @effective_network_security_groups
end

#rulesArray<Rule>

effective on the VM

Returns:

  • (Array<Rule>)

    The security rules which are recommended to be



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

def rules
  @rules
end

#rules_calculation_timeDateTime

Returns The UTC time on which the rules were calculated.

Returns:

  • (DateTime)

    The UTC time on which the rules were calculated



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

def rules_calculation_time
  @rules_calculation_time
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/adaptive_network_hardening.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AdaptiveNetworkHardening',
    type: {
      name: 'Composite',
      class_name: 'AdaptiveNetworkHardening',
      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'
          }
        },
        rules: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.rules',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RuleElementType',
                type: {
                  name: 'Composite',
                  class_name: 'Rule'
                }
            }
          }
        },
        rules_calculation_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.rulesCalculationTime',
          type: {
            name: 'DateTime'
          }
        },
        effective_network_security_groups: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.effectiveNetworkSecurityGroups',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'EffectiveNetworkSecurityGroupsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EffectiveNetworkSecurityGroups'
                }
            }
          }
        }
      }
    }
  }
end