class Azure::Network::Mgmt::V2020_08_01::Models::CustomIpPrefix

Custom IP prefix resource.

Attributes

cidr[RW]

@return [String] The prefix range in CIDR notation. Should include the start address and the prefix length.

commissioned_state[RW]

@return [CommissionedState] The commissioned state of the Custom IP Prefix. Possible values include: 'Provisioning', 'Provisioned', 'Commissioning', 'Commissioned', 'Decommissioning', 'Deprovisioning'

etag[RW]

@return [String] A unique read-only string that changes whenever the resource is updated.

extended_location[RW]

@return [ExtendedLocation] The extended location of the custom IP prefix.

provisioning_state[RW]

@return [ProvisioningState] The provisioning state of the custom IP prefix resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

public_ip_prefixes[RW]

@return [Array<SubResource>] The list of all referenced PublicIpPrefixes.

resource_guid[RW]

@return [String] The resource GUID property of the custom IP prefix resource.

zones[RW]

@return [Array<String>] A list of availability zones denoting the IP allocated for the resource needs to come from.

Private Class Methods

mapper() click to toggle source

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

# File lib/2020-08-01/generated/azure_mgmt_network/models/custom_ip_prefix.rb, line 54
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CustomIpPrefix',
    type: {
      name: 'Composite',
      class_name: 'CustomIpPrefix',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          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'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        extended_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'extendedLocation',
          type: {
            name: 'Composite',
            class_name: 'ExtendedLocation'
          }
        },
        cidr: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.cidr',
          type: {
            name: 'String'
          }
        },
        commissioned_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.commissionedState',
          type: {
            name: 'String'
          }
        },
        public_ip_prefixes: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.publicIpPrefixes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SubResourceElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SubResource'
                }
            }
          }
        },
        resource_guid: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.resourceGuid',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        },
        zones: {
          client_side_validation: true,
          required: false,
          serialized_name: 'zones',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end