Class: Azure::ResourcesManagement::Mgmt::V2017_11_01_preview::Models::ManagementGroupChildInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb

Overview

The child information of a management group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#child_idString

(management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

Returns:

  • (String)

    The fully qualified ID for the child resource



22
23
24
# File 'lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb', line 22

def child_id
  @child_id
end

#child_typeEnum

‘ManagementGroup’, ‘Subscription’

Returns:

  • (Enum)

    The type of child resource. Possible values include:



17
18
19
# File 'lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb', line 17

def child_type
  @child_type
end

#childrenArray<ManagementGroupChildInfo>

Returns The list of children.

Returns:



28
29
30
# File 'lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb', line 28

def children
  @children
end

#display_nameString

Returns The friendly name of the child resource.

Returns:

  • (String)

    The friendly name of the child resource.



25
26
27
# File 'lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb', line 25

def display_name
  @display_name
end

Class Method Details

.mapperObject

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



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
# File 'lib/2017-11-01-preview/generated/azure_mgmt_resources_management/models/management_group_child_info.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManagementGroupChildInfo',
    type: {
      name: 'Composite',
      class_name: 'ManagementGroupChildInfo',
      model_properties: {
        child_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'childType',
          type: {
            name: 'String'
          }
        },
        child_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'childId',
          type: {
            name: 'String'
          }
        },
        display_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'displayName',
          type: {
            name: 'String'
          }
        },
        children: {
          client_side_validation: true,
          required: false,
          serialized_name: 'children',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ManagementGroupChildInfoElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ManagementGroupChildInfo'
                }
            }
          }
        }
      }
    }
  }
end