Class: Azure::DevTestLabs::Mgmt::V2018_09_15::Models::SubnetFragment

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb

Overview

Subnet information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#allow_public_ipUsagePermissionType

allowing public IP addresses (i.e. Allow, Deny)). Possible values include: ‘Default’, ‘Deny’, ‘Allow’

Returns:



24
25
26
# File 'lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb', line 24

def allow_public_ip
  @allow_public_ip
end

#lab_subnet_nameString

Returns The name of the subnet as seen in the lab.

Returns:

  • (String)

    The name of the subnet as seen in the lab.



19
20
21
# File 'lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb', line 19

def lab_subnet_name
  @lab_subnet_name
end

#resource_idString

Returns The resource ID of the subnet.

Returns:

  • (String)

    The resource ID of the subnet.



16
17
18
# File 'lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb', line 16

def resource_id
  @resource_id
end

Class Method Details

.mapperObject

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



31
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
# File 'lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SubnetFragment',
    type: {
      name: 'Composite',
      class_name: 'SubnetFragment',
      model_properties: {
        resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'resourceId',
          type: {
            name: 'String'
          }
        },
        lab_subnet_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'labSubnetName',
          type: {
            name: 'String'
          }
        },
        allow_public_ip: {
          client_side_validation: true,
          required: false,
          serialized_name: 'allowPublicIp',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end