Class: Azure::PolicyInsights::Mgmt::V2019_10_01::Models::ComponentEventDetails

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb

Overview

Component event details.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#additional_propertiesObject

collection

Returns:

  • Unmatched properties from the message are deserialized this



17
18
19
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 17

def additional_properties
  @additional_properties
end

#idString

Returns Component Id.

Returns:

  • (String)

    Component Id.



20
21
22
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 20

def id
  @id
end

#nameString

Returns Component name.

Returns:

  • (String)

    Component name.



26
27
28
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 26

def name
  @name
end

#policy_definition_actionString

Returns Policy definition action, i.e. effect.

Returns:

  • (String)

    Policy definition action, i.e. effect.



39
40
41
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 39

def policy_definition_action
  @policy_definition_action
end

#principal_oidString

resource component operation that triggered the policy event.

Returns:

  • (String)

    Principal object ID for the user who initiated the



36
37
38
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 36

def principal_oid
  @principal_oid
end

#tenant_idString

Returns Tenant ID for the policy event record.

Returns:

  • (String)

    Tenant ID for the policy event record.



32
33
34
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 32

def tenant_id
  @tenant_id
end

#timestampDateTime

Returns Timestamp for component policy event record.

Returns:

  • (DateTime)

    Timestamp for component policy event record.



29
30
31
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 29

def timestamp
  @timestamp
end

#typeString

Returns Component type.

Returns:

  • (String)

    Component type.



23
24
25
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 23

def type
  @type
end

Class Method Details

.mapperObject

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



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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/2019-10-01/generated/azure_mgmt_policy_insights/models/component_event_details.rb', line 46

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ComponentEventDetails',
    type: {
      name: 'Composite',
      class_name: 'ComponentEventDetails',
      model_properties: {
        additional_properties: {
          client_side_validation: true,
          required: false,
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        timestamp: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timestamp',
          type: {
            name: 'DateTime'
          }
        },
        tenant_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tenantId',
          type: {
            name: 'String'
          }
        },
        principal_oid: {
          client_side_validation: true,
          required: false,
          serialized_name: 'principalOid',
          type: {
            name: 'String'
          }
        },
        policy_definition_action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'policyDefinitionAction',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end