Class: Azure::TrafficManager::Mgmt::V2018_02_01::Models::Endpoint

Inherits:
ProxyResource show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb

Overview

Class representing a Traffic Manager endpoint.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#endpoint_locationString

endpoints when using the ‘Performance’ traffic routing method.

Returns:

  • (String)

    Specifies the location of the external or nested



42
43
44
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 42

def endpoint_location
  @endpoint_location
end

#endpoint_monitor_statusEndpointMonitorStatus

Possible values include: ‘CheckingEndpoint’, ‘Online’, ‘Degraded’, ‘Disabled’, ‘Inactive’, ‘Stopped’

Returns:



47
48
49
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 47

def endpoint_monitor_status
  @endpoint_monitor_status
end

#endpoint_statusEndpointStatus

Enabled, it is probed for endpoint health and is included in the traffic routing method. Possible values include: ‘Enabled’, ‘Disabled’

Returns:



27
28
29
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 27

def endpoint_status
  @endpoint_status
end

#geo_mappingArray<String>

endpoint when using the ‘Geographic’ traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.

Returns:

  • (Array<String>)

    The list of countries/regions mapped to this



59
60
61
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 59

def geo_mapping
  @geo_mapping
end

#min_child_endpointsInteger

available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type ‘NestedEndpoints’.

Returns:

  • (Integer)

    The minimum number of endpoints that must be



53
54
55
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 53

def min_child_endpoints
  @min_child_endpoints
end

#priorityInteger

‘Priority’ traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.

Returns:

  • (Integer)

    The priority of this endpoint when using the



38
39
40
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 38

def priority
  @priority
end

#targetString

Manager returns this value in DNS responses to direct traffic to this endpoint.

Returns:

  • (String)

    The fully-qualified DNS name of the endpoint. Traffic



22
23
24
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 22

def target
  @target
end

#target_resource_idString

applicable to endpoints of type ‘ExternalEndpoints’.

Returns:

  • (String)

    The Azure Resource URI of the of the endpoint. Not



17
18
19
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 17

def target_resource_id
  @target_resource_id
end

#weightInteger

traffic routing method. Possible values are from 1 to 1000.

Returns:

  • (Integer)

    The weight of this endpoint when using the ‘Weighted’



31
32
33
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 31

def weight
  @weight
end

Class Method Details

.mapperObject

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



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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# File 'lib/2018-02-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb', line 66

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Endpoint',
    type: {
      name: 'Composite',
      class_name: 'Endpoint',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          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'
          }
        },
        target_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.targetResourceId',
          type: {
            name: 'String'
          }
        },
        target: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.target',
          type: {
            name: 'String'
          }
        },
        endpoint_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.endpointStatus',
          type: {
            name: 'String'
          }
        },
        weight: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.weight',
          type: {
            name: 'Number'
          }
        },
        priority: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.priority',
          type: {
            name: 'Number'
          }
        },
        endpoint_location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.endpointLocation',
          type: {
            name: 'String'
          }
        },
        endpoint_monitor_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.endpointMonitorStatus',
          type: {
            name: 'String'
          }
        },
        min_child_endpoints: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.minChildEndpoints',
          type: {
            name: 'Number'
          }
        },
        geo_mapping: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.geoMapping',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end