Class: Azure::PolicyInsights::Mgmt::V2018_07_01_preview::Models::PolicyTrackedResource

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb

Overview

Policy tracked resource record.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#created_byTrackedResourceModificationDetails

triggered deployment that created the tracked resource.

Returns:



24
25
26
# File 'lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb', line 24

def created_by
  @created_by
end

#last_modified_byTrackedResourceModificationDetails

triggered deployment that modified the tracked resource.

Returns:



28
29
30
# File 'lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb', line 28

def last_modified_by
  @last_modified_by
end

#last_update_utcDateTime

resource.

Returns:

  • (DateTime)

    Timestamp of the last update to the tracked



32
33
34
# File 'lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb', line 32

def last_update_utc
  @last_update_utc
end

#policy_detailsPolicyDetails

tracked resource.

Returns:



20
21
22
# File 'lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb', line 20

def policy_details
  @policy_details
end

#tracked_resource_idString

Returns The ID of the policy tracked resource.

Returns:

  • (String)

    The ID of the policy tracked resource.



16
17
18
# File 'lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb', line 16

def tracked_resource_id
  @tracked_resource_id
end

Class Method Details

.mapperObject

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



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
# File 'lib/2018-07-01-preview/generated/azure_mgmt_policy_insights/models/policy_tracked_resource.rb', line 39

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PolicyTrackedResource',
    type: {
      name: 'Composite',
      class_name: 'PolicyTrackedResource',
      model_properties: {
        tracked_resource_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'trackedResourceId',
          type: {
            name: 'String'
          }
        },
        policy_details: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'policyDetails',
          type: {
            name: 'Composite',
            class_name: 'PolicyDetails'
          }
        },
        created_by: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'createdBy',
          type: {
            name: 'Composite',
            class_name: 'TrackedResourceModificationDetails'
          }
        },
        last_modified_by: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastModifiedBy',
          type: {
            name: 'Composite',
            class_name: 'TrackedResourceModificationDetails'
          }
        },
        last_update_utc: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastUpdateUtc',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end