Class: Azure::Security::Mgmt::V2017_08_01_preview::Models::Compliance

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance.rb

Overview

Compliance of a scope

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#assessment_resultArray<ComplianceSegment>

actually the compliance assessment.

Returns:



26
27
28
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance.rb', line 26

def assessment_result
  @assessment_result
end

#assessment_timestamp_utc_dateDateTime

conducted.

Returns:

  • (DateTime)

    The timestamp when the Compliance calculation was



17
18
19
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance.rb', line 17

def assessment_timestamp_utc_date
  @assessment_timestamp_utc_date
end

#resource_countInteger

which the Compliance calculation was conducted (needed for Management Group Compliance calculation).

Returns:

  • (Integer)

    The resource count of the given subscription for



22
23
24
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance.rb', line 22

def resource_count
  @resource_count
end

Class Method Details

.mapperObject

Mapper for Compliance 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
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
# File 'lib/2017-08-01-preview/generated/azure_mgmt_security/models/compliance.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Compliance',
    type: {
      name: 'Composite',
      class_name: 'Compliance',
      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'
          }
        },
        assessment_timestamp_utc_date: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.assessmentTimestampUtcDate',
          type: {
            name: 'DateTime'
          }
        },
        resource_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.resourceCount',
          type: {
            name: 'Number'
          }
        },
        assessment_result: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.assessmentResult',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ComplianceSegmentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ComplianceSegment'
                }
            }
          }
        }
      }
    }
  }
end