Class: Ovh::Api::Api::Connectivity

Inherits:
Object
  • Object
show all
Defined in:
lib/ovh-api/api/connectivity.rb

Defined Under Namespace

Classes: Maintenance

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Connectivity

Returns a new instance of Connectivity.



6
7
8
# File 'lib/ovh-api/api/connectivity.rb', line 6

def initialize(connection)
  @connection = connection
end

Instance Method Details

#eligibility_recall_getObject



10
11
12
13
14
15
16
17
# File 'lib/ovh-api/api/connectivity.rb', line 10

def eligibility_recall_get
  @connection.call(
    :GET,
    '/connectivity/eligibility/recall',
    type: nil,
    auth: []
  )
end

#eligibility_recall_id_delete(id:) ⇒ Object

Raises:

  • (ArgumentError)


19
20
21
22
23
24
25
26
27
28
29
# File 'lib/ovh-api/api/connectivity.rb', line 19

def eligibility_recall_id_delete(id:)
  raise ArgumentError, 'id is required' if id.nil?

  @connection.call(
    :DELETE,
    '/connectivity/eligibility/recall/{id}'
      .gsub('{id}', ERB::Util.url_encode(id.to_s)),
    type: nil,
    auth: []
  )
end

#eligibility_recall_id_get(id:) ⇒ Object

Raises:

  • (ArgumentError)


31
32
33
34
35
36
37
38
39
40
41
# File 'lib/ovh-api/api/connectivity.rb', line 31

def eligibility_recall_id_get(id:)
  raise ArgumentError, 'id is required' if id.nil?

  @connection.call(
    :GET,
    '/connectivity/eligibility/recall/{id}'
      .gsub('{id}', ERB::Util.url_encode(id.to_s)),
    type: nil,
    auth: []
  )
end

#eligibility_recall_id_put(id:, connectivity_eligibility_eligibility_recall_post:) ⇒ Object

Raises:

  • (ArgumentError)


43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/ovh-api/api/connectivity.rb', line 43

def eligibility_recall_id_put(id:, connectivity_eligibility_eligibility_recall_post:)
  raise ArgumentError, 'id is required' if id.nil?
  raise ArgumentError, 'connectivity_eligibility_eligibility_recall_post is required' if connectivity_eligibility_eligibility_recall_post.nil?

  @connection.call(
    :PUT,
    '/connectivity/eligibility/recall/{id}'
      .gsub('{id}', ERB::Util.url_encode(id.to_s)),
    type: nil,
    auth: [],
    body: connectivity_eligibility_eligibility_recall_post
  )
end

#eligibility_recall_post(connectivity_eligibility_eligibility_recall_post:) ⇒ Object

Raises:

  • (ArgumentError)


57
58
59
60
61
62
63
64
65
66
67
# File 'lib/ovh-api/api/connectivity.rb', line 57

def eligibility_recall_post(connectivity_eligibility_eligibility_recall_post:)
  raise ArgumentError, 'connectivity_eligibility_eligibility_recall_post is required' if connectivity_eligibility_eligibility_recall_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/recall',
    type: nil,
    auth: [],
    body: connectivity_eligibility_eligibility_recall_post
  )
end

#eligibility_search_addresses_post(connectivity_eligibility_search_addresses_post:) ⇒ Object

Raises:

  • (ArgumentError)


69
70
71
72
73
74
75
76
77
78
79
# File 'lib/ovh-api/api/connectivity.rb', line 69

def eligibility_search_addresses_post(connectivity_eligibility_search_addresses_post:)
  raise ArgumentError, 'connectivity_eligibility_search_addresses_post is required' if connectivity_eligibility_search_addresses_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/addresses',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_addresses_post
  )
end

#eligibility_search_building_details_post(connectivity_eligibility_search_building_details_post:) ⇒ Object

Raises:

  • (ArgumentError)


81
82
83
84
85
86
87
88
89
90
91
# File 'lib/ovh-api/api/connectivity.rb', line 81

def eligibility_search_building_details_post(connectivity_eligibility_search_building_details_post:)
  raise ArgumentError, 'connectivity_eligibility_search_building_details_post is required' if connectivity_eligibility_search_building_details_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/buildingDetails',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_building_details_post
  )
end

#eligibility_search_buildings_by_line_post(connectivity_eligibility_search_buildings_by_line_post:) ⇒ Object

Raises:

  • (ArgumentError)


93
94
95
96
97
98
99
100
101
102
103
# File 'lib/ovh-api/api/connectivity.rb', line 93

def (connectivity_eligibility_search_buildings_by_line_post:)
  raise ArgumentError, 'connectivity_eligibility_search_buildings_by_line_post is required' if .nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/buildingsByLine',
    type: nil,
    auth: [],
    body: 
  )
end

#eligibility_search_buildings_post(connectivity_eligibility_search_buildings_post:) ⇒ Object

Raises:

  • (ArgumentError)


105
106
107
108
109
110
111
112
113
114
115
# File 'lib/ovh-api/api/connectivity.rb', line 105

def eligibility_search_buildings_post(connectivity_eligibility_search_buildings_post:)
  raise ArgumentError, 'connectivity_eligibility_search_buildings_post is required' if connectivity_eligibility_search_buildings_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/buildings',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_buildings_post
  )
end

#eligibility_search_cities_post(connectivity_eligibility_search_cities:) ⇒ Object

Raises:

  • (ArgumentError)


117
118
119
120
121
122
123
124
125
126
127
# File 'lib/ovh-api/api/connectivity.rb', line 117

def eligibility_search_cities_post(connectivity_eligibility_search_cities:)
  raise ArgumentError, 'connectivity_eligibility_search_cities is required' if connectivity_eligibility_search_cities.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/cities',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_cities
  )
end

#eligibility_search_lines_post(connectivity_eligibility_search_lines_post:) ⇒ Object

Raises:

  • (ArgumentError)


129
130
131
132
133
134
135
136
137
138
139
# File 'lib/ovh-api/api/connectivity.rb', line 129

def eligibility_search_lines_post(connectivity_eligibility_search_lines_post:)
  raise ArgumentError, 'connectivity_eligibility_search_lines_post is required' if connectivity_eligibility_search_lines_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/lines',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_lines_post
  )
end

#eligibility_search_meetings_post(connectivity_eligibility_search_meetings_post:) ⇒ Object

Raises:

  • (ArgumentError)


141
142
143
144
145
146
147
148
149
150
151
# File 'lib/ovh-api/api/connectivity.rb', line 141

def eligibility_search_meetings_post(connectivity_eligibility_search_meetings_post:)
  raise ArgumentError, 'connectivity_eligibility_search_meetings_post is required' if connectivity_eligibility_search_meetings_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/meetings',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_meetings_post
  )
end

#eligibility_search_street_numbers_details_post(connectivity_eligibility_search_street_numbers_details_post:) ⇒ Object

Raises:

  • (ArgumentError)


153
154
155
156
157
158
159
160
161
162
163
# File 'lib/ovh-api/api/connectivity.rb', line 153

def eligibility_search_street_numbers_details_post(connectivity_eligibility_search_street_numbers_details_post:)
  raise ArgumentError, 'connectivity_eligibility_search_street_numbers_details_post is required' if connectivity_eligibility_search_street_numbers_details_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/streetNumbers/details',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_street_numbers_details_post
  )
end

#eligibility_search_street_numbers_post(connectivity_eligibility_search_street_numbers_post:) ⇒ Object

Raises:

  • (ArgumentError)


165
166
167
168
169
170
171
172
173
174
175
# File 'lib/ovh-api/api/connectivity.rb', line 165

def eligibility_search_street_numbers_post(connectivity_eligibility_search_street_numbers_post:)
  raise ArgumentError, 'connectivity_eligibility_search_street_numbers_post is required' if connectivity_eligibility_search_street_numbers_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/streetNumbers',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_street_numbers_post
  )
end

#eligibility_search_streets_post(connectivity_eligibility_search_streets_post:) ⇒ Object

Raises:

  • (ArgumentError)


177
178
179
180
181
182
183
184
185
186
187
# File 'lib/ovh-api/api/connectivity.rb', line 177

def eligibility_search_streets_post(connectivity_eligibility_search_streets_post:)
  raise ArgumentError, 'connectivity_eligibility_search_streets_post is required' if connectivity_eligibility_search_streets_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/search/streets',
    type: nil,
    auth: [],
    body: connectivity_eligibility_search_streets_post
  )
end

#eligibility_test_address_partners_post(connectivity_eligibility_test_address_partners_post:) ⇒ Object

Raises:

  • (ArgumentError)


189
190
191
192
193
194
195
196
197
198
199
# File 'lib/ovh-api/api/connectivity.rb', line 189

def eligibility_test_address_partners_post(connectivity_eligibility_test_address_partners_post:)
  raise ArgumentError, 'connectivity_eligibility_test_address_partners_post is required' if connectivity_eligibility_test_address_partners_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/test/address/partners',
    type: nil,
    auth: [],
    body: connectivity_eligibility_test_address_partners_post
  )
end

#eligibility_test_address_post(connectivity_eligibility_test_address_post:) ⇒ Object

Raises:

  • (ArgumentError)


201
202
203
204
205
206
207
208
209
210
211
# File 'lib/ovh-api/api/connectivity.rb', line 201

def eligibility_test_address_post(connectivity_eligibility_test_address_post:)
  raise ArgumentError, 'connectivity_eligibility_test_address_post is required' if connectivity_eligibility_test_address_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/test/address',
    type: nil,
    auth: [],
    body: connectivity_eligibility_test_address_post
  )
end

#eligibility_test_building_partners_post(connectivity_eligibility_test_building_partners_post:) ⇒ Object

Raises:

  • (ArgumentError)


213
214
215
216
217
218
219
220
221
222
223
# File 'lib/ovh-api/api/connectivity.rb', line 213

def eligibility_test_building_partners_post(connectivity_eligibility_test_building_partners_post:)
  raise ArgumentError, 'connectivity_eligibility_test_building_partners_post is required' if connectivity_eligibility_test_building_partners_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/test/building/partners',
    type: nil,
    auth: [],
    body: connectivity_eligibility_test_building_partners_post
  )
end

#eligibility_test_building_post(connectivity_eligibility_test_building_post:) ⇒ Object

Raises:

  • (ArgumentError)


225
226
227
228
229
230
231
232
233
234
235
# File 'lib/ovh-api/api/connectivity.rb', line 225

def eligibility_test_building_post(connectivity_eligibility_test_building_post:)
  raise ArgumentError, 'connectivity_eligibility_test_building_post is required' if connectivity_eligibility_test_building_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/test/building',
    type: nil,
    auth: [],
    body: connectivity_eligibility_test_building_post
  )
end

#eligibility_test_get(eligibility_reference:) ⇒ Object

Raises:

  • (ArgumentError)


237
238
239
240
241
242
243
244
245
246
247
# File 'lib/ovh-api/api/connectivity.rb', line 237

def eligibility_test_get(eligibility_reference:)
  raise ArgumentError, 'eligibility_reference is required' if eligibility_reference.nil?

  @connection.call(
    :GET,
    '/connectivity/eligibility/test',
    type: nil,
    auth: [],
    query: { 'eligibilityReference' => eligibility_reference }
  )
end

#eligibility_test_line_partners_post(connectivity_eligibility_test_line_partners_post:) ⇒ Object

Raises:

  • (ArgumentError)


249
250
251
252
253
254
255
256
257
258
259
# File 'lib/ovh-api/api/connectivity.rb', line 249

def eligibility_test_line_partners_post(connectivity_eligibility_test_line_partners_post:)
  raise ArgumentError, 'connectivity_eligibility_test_line_partners_post is required' if connectivity_eligibility_test_line_partners_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/test/line/partners',
    type: nil,
    auth: [],
    body: connectivity_eligibility_test_line_partners_post
  )
end

#eligibility_test_line_post(connectivity_eligibility_test_line_post:) ⇒ Object

Raises:

  • (ArgumentError)


261
262
263
264
265
266
267
268
269
270
271
# File 'lib/ovh-api/api/connectivity.rb', line 261

def eligibility_test_line_post(connectivity_eligibility_test_line_post:)
  raise ArgumentError, 'connectivity_eligibility_test_line_post is required' if connectivity_eligibility_test_line_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/test/line',
    type: nil,
    auth: [],
    body: connectivity_eligibility_test_line_post
  )
end

#eligibility_test_otp_partners_post(connectivity_eligibility_test_otp_partners_post:) ⇒ Object

Raises:

  • (ArgumentError)


273
274
275
276
277
278
279
280
281
282
283
# File 'lib/ovh-api/api/connectivity.rb', line 273

def eligibility_test_otp_partners_post(connectivity_eligibility_test_otp_partners_post:)
  raise ArgumentError, 'connectivity_eligibility_test_otp_partners_post is required' if connectivity_eligibility_test_otp_partners_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/test/otp/partners',
    type: nil,
    auth: [],
    body: connectivity_eligibility_test_otp_partners_post
  )
end

#eligibility_test_otp_post(connectivity_eligibility_test_otp_post:) ⇒ Object

Raises:

  • (ArgumentError)


285
286
287
288
289
290
291
292
293
294
295
# File 'lib/ovh-api/api/connectivity.rb', line 285

def eligibility_test_otp_post(connectivity_eligibility_test_otp_post:)
  raise ArgumentError, 'connectivity_eligibility_test_otp_post is required' if connectivity_eligibility_test_otp_post.nil?

  @connection.call(
    :POST,
    '/connectivity/eligibility/test/otp',
    type: nil,
    auth: [],
    body: connectivity_eligibility_test_otp_post
  )
end

#monitoring_generic_incident_partners_get(creation_date: nil, end_date: nil, status: nil) ⇒ Object



297
298
299
300
301
302
303
304
305
# File 'lib/ovh-api/api/connectivity.rb', line 297

def monitoring_generic_incident_partners_get(creation_date: nil, end_date: nil, status: nil)
  @connection.call(
    :GET,
    '/connectivity/monitoring/genericIncident/partners',
    type: nil,
    auth: [],
    query: { 'creationDate' => creation_date, 'endDate' => end_date, 'status' => status }
  )
end

#monitoring_generic_incident_public_get(creation_date: nil, end_date: nil, status: nil) ⇒ Object



307
308
309
310
311
312
313
314
315
# File 'lib/ovh-api/api/connectivity.rb', line 307

def monitoring_generic_incident_public_get(creation_date: nil, end_date: nil, status: nil)
  @connection.call(
    :GET,
    '/connectivity/monitoring/genericIncident/public',
    type: nil,
    auth: [],
    query: { 'creationDate' => creation_date, 'endDate' => end_date, 'status' => status }
  )
end