Class: LinodeOpenapiClient::ManagedApi

Inherits:
Object
  • Object
show all
Defined in:
lib/linode_openapi_client/api/managed_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ ManagedApi

Returns a new instance of ManagedApi.



19
20
21
# File 'lib/linode_openapi_client/api/managed_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/linode_openapi_client/api/managed_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#delete_managed_contact(api_version, contact_id, opts = {}) ⇒ Object

Delete a managed contact Deletes a Managed Contact. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed contact-delete 567 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • contact_id (Integer)

    The ID of the contact to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


28
29
30
31
# File 'lib/linode_openapi_client/api/managed_api.rb', line 28

def delete_managed_contact(api_version, contact_id, opts = {})
  data, _status_code, _headers = delete_managed_contact_with_http_info(api_version, contact_id, opts)
  data
end

#delete_managed_contact_with_http_info(api_version, contact_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Delete a managed contact Deletes a Managed Contact. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed contact-delete 567 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • contact_id (Integer)

    The ID of the contact to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



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
89
90
91
92
93
94
# File 'lib/linode_openapi_client/api/managed_api.rb', line 39

def delete_managed_contact_with_http_info(api_version, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.delete_managed_contact ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.delete_managed_contact"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling ManagedApi.delete_managed_contact"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/contacts/{contactId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'contactId' + '}', CGI.escape(contact_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.delete_managed_contact",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#delete_managed_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_managed_service(api_version, service_id, opts = {}) ⇒ Object

Delete a managed service Deletes a Managed Service. This service will no longer be monitored by Linode Managed. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed service-delete 9994 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


102
103
104
105
# File 'lib/linode_openapi_client/api/managed_api.rb', line 102

def delete_managed_service(api_version, service_id, opts = {})
  data, _status_code, _headers = delete_managed_service_with_http_info(api_version, service_id, opts)
  data
end

#delete_managed_service_with_http_info(api_version, service_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Delete a managed service Deletes a Managed Service. This service will no longer be monitored by Linode Managed. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed service-delete 9994 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



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
# File 'lib/linode_openapi_client/api/managed_api.rb', line 113

def delete_managed_service_with_http_info(api_version, service_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.delete_managed_service ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.delete_managed_service"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'service_id' is set
  if @api_client.config.client_side_validation && service_id.nil?
    fail ArgumentError, "Missing the required parameter 'service_id' when calling ManagedApi.delete_managed_service"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/services/{serviceId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'serviceId' + '}', CGI.escape(service_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.delete_managed_service",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#delete_managed_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_contact(api_version, contact_id, opts = {}) ⇒ GetManagedContact200Response

Get a managed contact Returns a single Managed Contact. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed contact-view 567 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • contact_id (Integer)

    The ID of the contact to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



176
177
178
179
# File 'lib/linode_openapi_client/api/managed_api.rb', line 176

def get_managed_contact(api_version, contact_id, opts = {})
  data, _status_code, _headers = get_managed_contact_with_http_info(api_version, contact_id, opts)
  data
end

#get_managed_contact_with_http_info(api_version, contact_id, opts = {}) ⇒ Array<(GetManagedContact200Response, Integer, Hash)>

Get a managed contact Returns a single Managed Contact. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed contact-view 567 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • contact_id (Integer)

    The ID of the contact to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# File 'lib/linode_openapi_client/api/managed_api.rb', line 187

def get_managed_contact_with_http_info(api_version, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_contact ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_contact"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling ManagedApi.get_managed_contact"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/contacts/{contactId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'contactId' + '}', CGI.escape(contact_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedContact200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_contact",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_contacts(api_version, opts = {}) ⇒ GetManagedContacts200Response

List managed contacts Returns a paginated list of Managed Contacts on your Account. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed contacts-list “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The page of a collection to return. (default to 1)

  • :page_size (Integer)

    The number of items to return per page. (default to 100)

Returns:



251
252
253
254
# File 'lib/linode_openapi_client/api/managed_api.rb', line 251

def get_managed_contacts(api_version, opts = {})
  data, _status_code, _headers = get_managed_contacts_with_http_info(api_version, opts)
  data
end

#get_managed_contacts_with_http_info(api_version, opts = {}) ⇒ Array<(GetManagedContacts200Response, Integer, Hash)>

List managed contacts Returns a paginated list of Managed Contacts on your Account. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed contacts-list &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The page of a collection to return. (default to 1)

  • :page_size (Integer)

    The number of items to return per page. (default to 100)

Returns:



263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/linode_openapi_client/api/managed_api.rb', line 263

def get_managed_contacts_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_contacts ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_contacts"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
    fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ManagedApi.get_managed_contacts, must be greater than or equal to 1.'
  end

  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 500
    fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ManagedApi.get_managed_contacts, must be smaller than or equal to 500.'
  end

  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 25
    fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ManagedApi.get_managed_contacts, must be greater than or equal to 25.'
  end

  # resource path
  local_var_path = '/{apiVersion}/managed/contacts'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedContacts200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_contacts",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_credential(api_version, credential_id, opts = {}) ⇒ GetManagedCredential200Response

Get a managed credential Returns a single Managed Credential. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed credential-view 9991 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • credential_id (Integer)

    The ID of the Credential to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



336
337
338
339
# File 'lib/linode_openapi_client/api/managed_api.rb', line 336

def get_managed_credential(api_version, credential_id, opts = {})
  data, _status_code, _headers = get_managed_credential_with_http_info(api_version, credential_id, opts)
  data
end

#get_managed_credential_with_http_info(api_version, credential_id, opts = {}) ⇒ Array<(GetManagedCredential200Response, Integer, Hash)>

Get a managed credential Returns a single Managed Credential. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed credential-view 9991 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • credential_id (Integer)

    The ID of the Credential to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
# File 'lib/linode_openapi_client/api/managed_api.rb', line 347

def get_managed_credential_with_http_info(api_version, credential_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_credential ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_credential"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'credential_id' is set
  if @api_client.config.client_side_validation && credential_id.nil?
    fail ArgumentError, "Missing the required parameter 'credential_id' when calling ManagedApi.get_managed_credential"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/credentials/{credentialId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'credentialId' + '}', CGI.escape(credential_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedCredential200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_credential",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_credentials(api_version, opts = {}) ⇒ GetManagedCredentials200Response

List managed credentials Returns a paginated list of Managed Credentials on your Account. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed credentials-list “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The page of a collection to return. (default to 1)

  • :page_size (Integer)

    The number of items to return per page. (default to 100)

Returns:



411
412
413
414
# File 'lib/linode_openapi_client/api/managed_api.rb', line 411

def get_managed_credentials(api_version, opts = {})
  data, _status_code, _headers = get_managed_credentials_with_http_info(api_version, opts)
  data
end

#get_managed_credentials_with_http_info(api_version, opts = {}) ⇒ Array<(GetManagedCredentials200Response, Integer, Hash)>

List managed credentials Returns a paginated list of Managed Credentials on your Account. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed credentials-list &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The page of a collection to return. (default to 1)

  • :page_size (Integer)

    The number of items to return per page. (default to 100)

Returns:



423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
# File 'lib/linode_openapi_client/api/managed_api.rb', line 423

def get_managed_credentials_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_credentials ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_credentials"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
    fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ManagedApi.get_managed_credentials, must be greater than or equal to 1.'
  end

  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 500
    fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ManagedApi.get_managed_credentials, must be smaller than or equal to 500.'
  end

  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 25
    fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ManagedApi.get_managed_credentials, must be greater than or equal to 25.'
  end

  # resource path
  local_var_path = '/{apiVersion}/managed/credentials'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedCredentials200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_credentials",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_issue(api_version, issue_id, opts = {}) ⇒ GetManagedIssue200Response

Get a managed issue Returns a single Issue that is impacting or did impact one of your Managed Services. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed issue-view 823 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • issue_id (Integer)

    The Issue to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



496
497
498
499
# File 'lib/linode_openapi_client/api/managed_api.rb', line 496

def get_managed_issue(api_version, issue_id, opts = {})
  data, _status_code, _headers = get_managed_issue_with_http_info(api_version, issue_id, opts)
  data
end

#get_managed_issue_with_http_info(api_version, issue_id, opts = {}) ⇒ Array<(GetManagedIssue200Response, Integer, Hash)>

Get a managed issue Returns a single Issue that is impacting or did impact one of your Managed Services. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed issue-view 823 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • issue_id (Integer)

    The Issue to look up.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetManagedIssue200Response, Integer, Hash)>)

    GetManagedIssue200Response data, response status code and response headers



507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
# File 'lib/linode_openapi_client/api/managed_api.rb', line 507

def get_managed_issue_with_http_info(api_version, issue_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_issue ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_issue"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'issue_id' is set
  if @api_client.config.client_side_validation && issue_id.nil?
    fail ArgumentError, "Missing the required parameter 'issue_id' when calling ManagedApi.get_managed_issue"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/issues/{issueId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'issueId' + '}', CGI.escape(issue_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedIssue200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_issue",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_issue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_issues(api_version, opts = {}) ⇒ GetManagedIssues200Response

List managed issues Returns a paginated list of recent and ongoing issues detected on your Managed Services. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed issues-list “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The page of a collection to return. (default to 1)

  • :page_size (Integer)

    The number of items to return per page. (default to 100)

Returns:



571
572
573
574
# File 'lib/linode_openapi_client/api/managed_api.rb', line 571

def get_managed_issues(api_version, opts = {})
  data, _status_code, _headers = get_managed_issues_with_http_info(api_version, opts)
  data
end

#get_managed_issues_with_http_info(api_version, opts = {}) ⇒ Array<(GetManagedIssues200Response, Integer, Hash)>

List managed issues Returns a paginated list of recent and ongoing issues detected on your Managed Services. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed issues-list &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The page of a collection to return. (default to 1)

  • :page_size (Integer)

    The number of items to return per page. (default to 100)

Returns:

  • (Array<(GetManagedIssues200Response, Integer, Hash)>)

    GetManagedIssues200Response data, response status code and response headers



583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
# File 'lib/linode_openapi_client/api/managed_api.rb', line 583

def get_managed_issues_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_issues ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_issues"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
    fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ManagedApi.get_managed_issues, must be greater than or equal to 1.'
  end

  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 500
    fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ManagedApi.get_managed_issues, must be smaller than or equal to 500.'
  end

  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 25
    fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ManagedApi.get_managed_issues, must be greater than or equal to 25.'
  end

  # resource path
  local_var_path = '/{apiVersion}/managed/issues'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedIssues200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_issues",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_issues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_linode_setting(api_version, linode_id, opts = {}) ⇒ GetManagedLinodeSetting200Response

Get a Linode’s managed settings Returns a single Linode’s Managed settings. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed linode-setting-view 123 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • linode_id (Integer)

    The Linode ID whose settings we are accessing.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



656
657
658
659
# File 'lib/linode_openapi_client/api/managed_api.rb', line 656

def get_managed_linode_setting(api_version, linode_id, opts = {})
  data, _status_code, _headers = get_managed_linode_setting_with_http_info(api_version, linode_id, opts)
  data
end

#get_managed_linode_setting_with_http_info(api_version, linode_id, opts = {}) ⇒ Array<(GetManagedLinodeSetting200Response, Integer, Hash)>

Get a Linode&#39;s managed settings Returns a single Linode&#39;s Managed settings. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed linode-setting-view 123 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • linode_id (Integer)

    The Linode ID whose settings we are accessing.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
# File 'lib/linode_openapi_client/api/managed_api.rb', line 667

def get_managed_linode_setting_with_http_info(api_version, linode_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_linode_setting ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_linode_setting"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'linode_id' is set
  if @api_client.config.client_side_validation && linode_id.nil?
    fail ArgumentError, "Missing the required parameter 'linode_id' when calling ManagedApi.get_managed_linode_setting"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/linode-settings/{linodeId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'linodeId' + '}', CGI.escape(linode_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedLinodeSetting200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_linode_setting",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_linode_setting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_linode_settings(api_version, opts = {}) ⇒ GetManagedLinodeSettings200Response

List managed Linode settings Returns a paginated list of Managed Settings for your Linodes. There will be one entry per Linode on your Account. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed linode-settings-list “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The page of a collection to return. (default to 1)

  • :page_size (Integer)

    The number of items to return per page. (default to 100)

Returns:



731
732
733
734
# File 'lib/linode_openapi_client/api/managed_api.rb', line 731

def get_managed_linode_settings(api_version, opts = {})
  data, _status_code, _headers = get_managed_linode_settings_with_http_info(api_version, opts)
  data
end

#get_managed_linode_settings_with_http_info(api_version, opts = {}) ⇒ Array<(GetManagedLinodeSettings200Response, Integer, Hash)>

List managed Linode settings Returns a paginated list of Managed Settings for your Linodes. There will be one entry per Linode on your Account. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed linode-settings-list &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    The page of a collection to return. (default to 1)

  • :page_size (Integer)

    The number of items to return per page. (default to 100)

Returns:



743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
# File 'lib/linode_openapi_client/api/managed_api.rb', line 743

def get_managed_linode_settings_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_linode_settings ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_linode_settings"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
    fail ArgumentError, 'invalid value for "opts[:"page"]" when calling ManagedApi.get_managed_linode_settings, must be greater than or equal to 1.'
  end

  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 500
    fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ManagedApi.get_managed_linode_settings, must be smaller than or equal to 500.'
  end

  if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 25
    fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling ManagedApi.get_managed_linode_settings, must be greater than or equal to 25.'
  end

  # resource path
  local_var_path = '/{apiVersion}/managed/linode-settings'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedLinodeSettings200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_linode_settings",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_linode_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_service(api_version, service_id, opts = {}) ⇒ GetManagedService200Response

Get a managed service Returns information about a single Managed Service on your Account. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed service-view 9994 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



816
817
818
819
# File 'lib/linode_openapi_client/api/managed_api.rb', line 816

def get_managed_service(api_version, service_id, opts = {})
  data, _status_code, _headers = get_managed_service_with_http_info(api_version, service_id, opts)
  data
end

#get_managed_service_with_http_info(api_version, service_id, opts = {}) ⇒ Array<(GetManagedService200Response, Integer, Hash)>

Get a managed service Returns information about a single Managed Service on your Account. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed service-view 9994 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
# File 'lib/linode_openapi_client/api/managed_api.rb', line 827

def get_managed_service_with_http_info(api_version, service_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_service ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_service"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'service_id' is set
  if @api_client.config.client_side_validation && service_id.nil?
    fail ArgumentError, "Missing the required parameter 'service_id' when calling ManagedApi.get_managed_service"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/services/{serviceId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'serviceId' + '}', CGI.escape(service_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedService200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_service",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_services(api_version, opts = {}) ⇒ GetManagedServices200Response

List managed services Returns a paginated list of Managed Services on your Account. These are the services Linode Managed is monitoring and will report and attempt to resolve issues with. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed services-list “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



889
890
891
892
# File 'lib/linode_openapi_client/api/managed_api.rb', line 889

def get_managed_services(api_version, opts = {})
  data, _status_code, _headers = get_managed_services_with_http_info(api_version, opts)
  data
end

#get_managed_services_with_http_info(api_version, opts = {}) ⇒ Array<(GetManagedServices200Response, Integer, Hash)>

List managed services Returns a paginated list of Managed Services on your Account. These are the services Linode Managed is monitoring and will report and attempt to resolve issues with. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed services-list &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
# File 'lib/linode_openapi_client/api/managed_api.rb', line 899

def get_managed_services_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_services ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_services"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/services'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedServices200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_services",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_ssh_key(api_version, opts = {}) ⇒ GetManagedSshKey200Response

Get a managed SSH key Returns the unique SSH public key assigned to your Linode account’s Managed service. If you [add this public key](www.linode.com/docs/products/services/managed/get-started/#adding-the-public-key) to a Linode on your account, Linode special forces will be able to log in to the Linode with this key when attempting to resolve issues. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed credential-sshkey-view “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



957
958
959
960
# File 'lib/linode_openapi_client/api/managed_api.rb', line 957

def get_managed_ssh_key(api_version, opts = {})
  data, _status_code, _headers = get_managed_ssh_key_with_http_info(api_version, opts)
  data
end

#get_managed_ssh_key_with_http_info(api_version, opts = {}) ⇒ Array<(GetManagedSshKey200Response, Integer, Hash)>

Get a managed SSH key Returns the unique SSH public key assigned to your Linode account&#39;s Managed service. If you [add this public key](www.linode.com/docs/products/services/managed/get-started/#adding-the-public-key) to a Linode on your account, Linode special forces will be able to log in to the Linode with this key when attempting to resolve issues. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed credential-sshkey-view &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetManagedSshKey200Response, Integer, Hash)>)

    GetManagedSshKey200Response data, response status code and response headers



967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
# File 'lib/linode_openapi_client/api/managed_api.rb', line 967

def get_managed_ssh_key_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_ssh_key ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_ssh_key"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/credentials/sshkey'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedSshKey200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_ssh_key",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_ssh_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_managed_stats(api_version, opts = {}) ⇒ GetManagedStats200Response

List managed stats Returns a list of Managed Stats on your Account in the form of x and y data points. You can use these data points to plot your own graph visualizations. These stats reflect the last 24 hours of combined usage across all managed Linodes on your account giving you a high-level snapshot of data for the following: - cpu - disk - swap - network in - network out This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed stats-list “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_only “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1025
1026
1027
1028
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1025

def get_managed_stats(api_version, opts = {})
  data, _status_code, _headers = get_managed_stats_with_http_info(api_version, opts)
  data
end

#get_managed_stats_with_http_info(api_version, opts = {}) ⇒ Array<(GetManagedStats200Response, Integer, Hash)>

List managed stats Returns a list of Managed Stats on your Account in the form of x and y data points. You can use these data points to plot your own graph visualizations. These stats reflect the last 24 hours of combined usage across all managed Linodes on your account giving you a high-level snapshot of data for the following: - cpu - disk - swap - network in - network out This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed stats-list &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_only &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(GetManagedStats200Response, Integer, Hash)>)

    GetManagedStats200Response data, response status code and response headers



1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1035

def get_managed_stats_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.get_managed_stats ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.get_managed_stats"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/stats'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedStats200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.get_managed_stats",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#get_managed_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_disable_managed_service(api_version, service_id, opts = {}) ⇒ PostDisableManagedService200Response

Disable a managed service Temporarily disables monitoring of a Managed Service. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed service-disable 9994 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to disable.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1094
1095
1096
1097
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1094

def post_disable_managed_service(api_version, service_id, opts = {})
  data, _status_code, _headers = post_disable_managed_service_with_http_info(api_version, service_id, opts)
  data
end

#post_disable_managed_service_with_http_info(api_version, service_id, opts = {}) ⇒ Array<(PostDisableManagedService200Response, Integer, Hash)>

Disable a managed service Temporarily disables monitoring of a Managed Service. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed service-disable 9994 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to disable.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1105

def post_disable_managed_service_with_http_info(api_version, service_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.post_disable_managed_service ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.post_disable_managed_service"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'service_id' is set
  if @api_client.config.client_side_validation && service_id.nil?
    fail ArgumentError, "Missing the required parameter 'service_id' when calling ManagedApi.post_disable_managed_service"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/services/{serviceId}/disable'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'serviceId' + '}', CGI.escape(service_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PostDisableManagedService200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.post_disable_managed_service",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#post_disable_managed_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_enable_managed_service(api_version, service_id, opts = {}) ⇒ PostEnableManagedService200Response

Enable a managed service Enables monitoring of a Managed Service. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed service-enable 9994 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to enable.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1168
1169
1170
1171
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1168

def post_enable_managed_service(api_version, service_id, opts = {})
  data, _status_code, _headers = post_enable_managed_service_with_http_info(api_version, service_id, opts)
  data
end

#post_enable_managed_service_with_http_info(api_version, service_id, opts = {}) ⇒ Array<(PostEnableManagedService200Response, Integer, Hash)>

Enable a managed service Enables monitoring of a Managed Service. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed service-enable 9994 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to enable.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1179

def post_enable_managed_service_with_http_info(api_version, service_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.post_enable_managed_service ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.post_enable_managed_service"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'service_id' is set
  if @api_client.config.client_side_validation && service_id.nil?
    fail ArgumentError, "Missing the required parameter 'service_id' when calling ManagedApi.post_enable_managed_service"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/services/{serviceId}/enable'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'serviceId' + '}', CGI.escape(service_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PostEnableManagedService200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.post_enable_managed_service",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#post_enable_managed_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_managed_contact(api_version, opts = {}) ⇒ PostManagedContact200Response

Create a managed contact Creates a Managed Contact. A Managed Contact is someone Linode special forces can contact in the course of attempting to resolve an issue with a Managed Service. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed contact-create \ –name "John Doe" \ –email "[email protected]" \ –phone.primary "123-456-7890" “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1242
1243
1244
1245
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1242

def post_managed_contact(api_version, opts = {})
  data, _status_code, _headers = post_managed_contact_with_http_info(api_version, opts)
  data
end

#post_managed_contact_with_http_info(api_version, opts = {}) ⇒ Array<(PostManagedContact200Response, Integer, Hash)>

Create a managed contact Creates a Managed Contact. A Managed Contact is someone Linode special forces can contact in the course of attempting to resolve an issue with a Managed Service. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed contact-create \ –name &quot;John Doe&quot; \ –email &quot;[email protected]&quot; \ –phone.primary &quot;123-456-7890&quot; &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1253

def post_managed_contact_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.post_managed_contact ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.post_managed_contact"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/contacts'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_managed_contact_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'PostManagedContact200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.post_managed_contact",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#post_managed_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_managed_credential(api_version, opts = {}) ⇒ PostManagedCredential200Response

Create a managed credential Creates a Managed Credential. A Managed Credential is stored securely to allow Linode special forces to access your Managed Services and resolve issues. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed credential-create \ –label prod-password-1 \ –username johndoe \ –password s3cur3P@ssw0rd “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1317
1318
1319
1320
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1317

def post_managed_credential(api_version, opts = {})
  data, _status_code, _headers = post_managed_credential_with_http_info(api_version, opts)
  data
end

#post_managed_credential_revoke(api_version, credential_id, opts = {}) ⇒ Object

Delete a managed credential Deletes a Managed Credential. Linode special forces will no longer have access to this Credential when attempting to resolve issues. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed credential-revoke 9991 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • credential_id (Integer)

    The ID of the Credential to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Object)


1392
1393
1394
1395
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1392

def post_managed_credential_revoke(api_version, credential_id, opts = {})
  data, _status_code, _headers = post_managed_credential_revoke_with_http_info(api_version, credential_id, opts)
  data
end

#post_managed_credential_revoke_with_http_info(api_version, credential_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Delete a managed credential Deletes a Managed Credential. Linode special forces will no longer have access to this Credential when attempting to resolve issues. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed credential-revoke 9991 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • credential_id (Integer)

    The ID of the Credential to access.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1403

def post_managed_credential_revoke_with_http_info(api_version, credential_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.post_managed_credential_revoke ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.post_managed_credential_revoke"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'credential_id' is set
  if @api_client.config.client_side_validation && credential_id.nil?
    fail ArgumentError, "Missing the required parameter 'credential_id' when calling ManagedApi.post_managed_credential_revoke"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/credentials/{credentialId}/revoke'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'credentialId' + '}', CGI.escape(credential_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.post_managed_credential_revoke",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#post_managed_credential_revoke\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_managed_credential_username_password(api_version, credential_id, opts = {}) ⇒ Object

Update a managed credential’s username and password Updates the username and password for a Managed Credential. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed credential-update-username-password 9991 \ –username johndoe \ –password s3cur3P@ssw0rd “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • credential_id (Integer)

    The ID of the Credential to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Object)


1467
1468
1469
1470
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1467

def post_managed_credential_username_password(api_version, credential_id, opts = {})
  data, _status_code, _headers = post_managed_credential_username_password_with_http_info(api_version, credential_id, opts)
  data
end

#post_managed_credential_username_password_with_http_info(api_version, credential_id, opts = {}) ⇒ Array<(Object, Integer, Hash)>

Update a managed credential&#39;s username and password Updates the username and password for a Managed Credential. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed credential-update-username-password 9991 \ –username johndoe \ –password s3cur3P@ssw0rd &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • credential_id (Integer)

    The ID of the Credential to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(Object, Integer, Hash)>)

    Object data, response status code and response headers



1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1479

def post_managed_credential_username_password_with_http_info(api_version, credential_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.post_managed_credential_username_password ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.post_managed_credential_username_password"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'credential_id' is set
  if @api_client.config.client_side_validation && credential_id.nil?
    fail ArgumentError, "Missing the required parameter 'credential_id' when calling ManagedApi.post_managed_credential_username_password"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/credentials/{credentialId}/update'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'credentialId' + '}', CGI.escape(credential_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_managed_credential_username_password_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'Object'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.post_managed_credential_username_password",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#post_managed_credential_username_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_managed_credential_with_http_info(api_version, opts = {}) ⇒ Array<(PostManagedCredential200Response, Integer, Hash)>

Create a managed credential Creates a Managed Credential. A Managed Credential is stored securely to allow Linode special forces to access your Managed Services and resolve issues. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed credential-create \ –label prod-password-1 \ –username johndoe \ –password s3cur3P@ssw0rd &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1328

def post_managed_credential_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.post_managed_credential ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.post_managed_credential"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/credentials'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_managed_credential_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'PostManagedCredential200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.post_managed_credential",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#post_managed_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#post_managed_service(api_version, opts = {}) ⇒ PostManagedService200Response

Create a managed service Creates a Managed Service. Linode Managed will begin monitoring this service and reporting and attempting to resolve any Issues. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed service-create \ –service_type url \ –label prod-1 \ –address "example.org" \ –timeout 30 \ –body "it worked" \ –consultation_group on-call \ –notes "The service name is \ my-cool-application" \ –credentials 9991 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1547
1548
1549
1550
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1547

def post_managed_service(api_version, opts = {})
  data, _status_code, _headers = post_managed_service_with_http_info(api_version, opts)
  data
end

#post_managed_service_with_http_info(api_version, opts = {}) ⇒ Array<(PostManagedService200Response, Integer, Hash)>

Create a managed service Creates a Managed Service. Linode Managed will begin monitoring this service and reporting and attempting to resolve any Issues. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed service-create \ –service_type url \ –label prod-1 \ –address &quot;example.org&quot; \ –timeout 30 \ –body &quot;it worked&quot; \ –consultation_group on-call \ –notes &quot;The service name is \ my-cool-application&quot; \ –credentials 9991 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1558

def post_managed_service_with_http_info(api_version, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.post_managed_service ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.post_managed_service"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/services'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'post_managed_service_request'])

  # return_type
  return_type = opts[:debug_return_type] || 'PostManagedService200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.post_managed_service",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#post_managed_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_managed_contact(api_version, contact_id, put_managed_contact_request, opts = {}) ⇒ PutManagedContact200Response

Update a managed contact Updates information about a Managed Contact. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed contact-update 567 \ –name "John Doe" \ –email "[email protected]" \ –phone.primary "123-456-7890" “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • contact_id (Integer)

    The ID of the contact to access.

  • put_managed_contact_request (PutManagedContactRequest)

    The fields to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1623
1624
1625
1626
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1623

def put_managed_contact(api_version, contact_id, put_managed_contact_request, opts = {})
  data, _status_code, _headers = put_managed_contact_with_http_info(api_version, contact_id, put_managed_contact_request, opts)
  data
end

#put_managed_contact_with_http_info(api_version, contact_id, put_managed_contact_request, opts = {}) ⇒ Array<(PutManagedContact200Response, Integer, Hash)>

Update a managed contact Updates information about a Managed Contact. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed contact-update 567 \ –name &quot;John Doe&quot; \ –email &quot;[email protected]&quot; \ –phone.primary &quot;123-456-7890&quot; &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • contact_id (Integer)

    The ID of the contact to access.

  • put_managed_contact_request (PutManagedContactRequest)

    The fields to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1635

def put_managed_contact_with_http_info(api_version, contact_id, put_managed_contact_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.put_managed_contact ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.put_managed_contact"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling ManagedApi.put_managed_contact"
  end
  # verify the required parameter 'put_managed_contact_request' is set
  if @api_client.config.client_side_validation && put_managed_contact_request.nil?
    fail ArgumentError, "Missing the required parameter 'put_managed_contact_request' when calling ManagedApi.put_managed_contact"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/contacts/{contactId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'contactId' + '}', CGI.escape(contact_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(put_managed_contact_request)

  # return_type
  return_type = opts[:debug_return_type] || 'PutManagedContact200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.put_managed_contact",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#put_managed_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_managed_credential(api_version, credential_id, post_managed_credential200_response, opts = {}) ⇒ GetManagedCredentials200ResponseDataInner

Update a managed credential Updates the label of a Managed Credential. This operation does not update the username and password for a Managed Credential. To do this, run the [Update a managed credential’s username and password](techdocs.akamai.com/linode-api/reference/post-managed-credential-username-password)) operation instead. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed credential-update 9991 \ –label prod-password-1 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • credential_id (Integer)

    The ID of the Credential to access.

  • post_managed_credential200_response (PostManagedCredential200Response)

    The fields to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1708
1709
1710
1711
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1708

def put_managed_credential(api_version, credential_id, post_managed_credential200_response, opts = {})
  data, _status_code, _headers = put_managed_credential_with_http_info(api_version, credential_id, post_managed_credential200_response, opts)
  data
end

#put_managed_credential_with_http_info(api_version, credential_id, post_managed_credential200_response, opts = {}) ⇒ Array<(GetManagedCredentials200ResponseDataInner, Integer, Hash)>

Update a managed credential Updates the label of a Managed Credential. This operation does not update the username and password for a Managed Credential. To do this, run the [Update a managed credential&#39;s username and password](techdocs.akamai.com/linode-api/reference/post-managed-credential-username-password)) operation instead. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed credential-update 9991 \ –label prod-password-1 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • credential_id (Integer)

    The ID of the Credential to access.

  • post_managed_credential200_response (PostManagedCredential200Response)

    The fields to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1720

def put_managed_credential_with_http_info(api_version, credential_id, post_managed_credential200_response, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.put_managed_credential ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.put_managed_credential"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'credential_id' is set
  if @api_client.config.client_side_validation && credential_id.nil?
    fail ArgumentError, "Missing the required parameter 'credential_id' when calling ManagedApi.put_managed_credential"
  end
  # verify the required parameter 'post_managed_credential200_response' is set
  if @api_client.config.client_side_validation && post_managed_credential200_response.nil?
    fail ArgumentError, "Missing the required parameter 'post_managed_credential200_response' when calling ManagedApi.put_managed_credential"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/credentials/{credentialId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'credentialId' + '}', CGI.escape(credential_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(post_managed_credential200_response)

  # return_type
  return_type = opts[:debug_return_type] || 'GetManagedCredentials200ResponseDataInner'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.put_managed_credential",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#put_managed_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_managed_linode_setting(api_version, linode_id, put_managed_linode_setting_request, opts = {}) ⇒ PutManagedLinodeSetting200Response

Update a Linode’s managed settings Updates a single Linode’s Managed settings. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed linode-setting-update \ 7833234 \ –ssh.access true \ –ssh.user linode \ –ssh.port 22 \ –ssh.ip 203.0.113.1 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • linode_id (Integer)

    The Linode ID whose settings we are accessing.

  • put_managed_linode_setting_request (PutManagedLinodeSettingRequest)

    The settings to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1793
1794
1795
1796
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1793

def put_managed_linode_setting(api_version, linode_id, put_managed_linode_setting_request, opts = {})
  data, _status_code, _headers = put_managed_linode_setting_with_http_info(api_version, linode_id, put_managed_linode_setting_request, opts)
  data
end

#put_managed_linode_setting_with_http_info(api_version, linode_id, put_managed_linode_setting_request, opts = {}) ⇒ Array<(PutManagedLinodeSetting200Response, Integer, Hash)>

Update a Linode&#39;s managed settings Updates a single Linode&#39;s Managed settings. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed linode-setting-update \ 7833234 \ –ssh.access true \ –ssh.user linode \ –ssh.port 22 \ –ssh.ip 203.0.113.1 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • linode_id (Integer)

    The Linode ID whose settings we are accessing.

  • put_managed_linode_setting_request (PutManagedLinodeSettingRequest)

    The settings to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1805

def put_managed_linode_setting_with_http_info(api_version, linode_id, put_managed_linode_setting_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.put_managed_linode_setting ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.put_managed_linode_setting"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'linode_id' is set
  if @api_client.config.client_side_validation && linode_id.nil?
    fail ArgumentError, "Missing the required parameter 'linode_id' when calling ManagedApi.put_managed_linode_setting"
  end
  # verify the required parameter 'put_managed_linode_setting_request' is set
  if @api_client.config.client_side_validation && put_managed_linode_setting_request.nil?
    fail ArgumentError, "Missing the required parameter 'put_managed_linode_setting_request' when calling ManagedApi.put_managed_linode_setting"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/linode-settings/{linodeId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'linodeId' + '}', CGI.escape(linode_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(put_managed_linode_setting_request)

  # return_type
  return_type = opts[:debug_return_type] || 'PutManagedLinodeSetting200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.put_managed_linode_setting",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#put_managed_linode_setting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#put_managed_service(api_version, service_id, put_managed_service_request, opts = {}) ⇒ PutManagedService200Response

Update a managed service Updates information about a Managed Service. This operation can only be accessed by the unrestricted users of an account. <<LB>> — - __CLI__. “‘ linode-cli managed service-update 9994 \ –service_type url \ –label prod-1 \ –address "example.org" \ –timeout 30 \ –body "it worked" \ –consultation_group on-call \ –notes "The service name is my-cool-application" \ –credentials 9991 “` [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. “` account:read_write “` [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to access.

  • put_managed_service_request (PutManagedServiceRequest)

    The fields to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1878
1879
1880
1881
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1878

def put_managed_service(api_version, service_id, put_managed_service_request, opts = {})
  data, _status_code, _headers = put_managed_service_with_http_info(api_version, service_id, put_managed_service_request, opts)
  data
end

#put_managed_service_with_http_info(api_version, service_id, put_managed_service_request, opts = {}) ⇒ Array<(PutManagedService200Response, Integer, Hash)>

Update a managed service Updates information about a Managed Service. This operation can only be accessed by the unrestricted users of an account. &lt;&lt;LB&gt;&gt; — - __CLI__. &#x60;&#x60;&#x60; linode-cli managed service-update 9994 \ –service_type url \ –label prod-1 \ –address &quot;example.org&quot; \ –timeout 30 \ –body &quot;it worked&quot; \ –consultation_group on-call \ –notes &quot;The service name is my-cool-application&quot; \ –credentials 9991 &#x60;&#x60;&#x60; [Learn more…](www.linode.com/docs/products/tools/cli/get-started/) - __OAuth scopes__. &#x60;&#x60;&#x60; account:read_write &#x60;&#x60;&#x60; [Learn more…](techdocs.akamai.com/linode-api/reference/get-started#oauth)

Parameters:

  • api_version (String)

    __Enum__ Call either the &#x60;v4&#x60; URL, or &#x60;v4beta&#x60; for operations still in Beta.

  • service_id (Integer)

    The ID of the Managed Service to access.

  • put_managed_service_request (PutManagedServiceRequest)

    The fields to update.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
# File 'lib/linode_openapi_client/api/managed_api.rb', line 1890

def put_managed_service_with_http_info(api_version, service_id, put_managed_service_request, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ManagedApi.put_managed_service ...'
  end
  # verify the required parameter 'api_version' is set
  if @api_client.config.client_side_validation && api_version.nil?
    fail ArgumentError, "Missing the required parameter 'api_version' when calling ManagedApi.put_managed_service"
  end
  # verify enum value
  allowable_values = ["v4", "v4beta"]
  if @api_client.config.client_side_validation && !allowable_values.include?(api_version)
    fail ArgumentError, "invalid value for \"api_version\", must be one of #{allowable_values}"
  end
  # verify the required parameter 'service_id' is set
  if @api_client.config.client_side_validation && service_id.nil?
    fail ArgumentError, "Missing the required parameter 'service_id' when calling ManagedApi.put_managed_service"
  end
  # verify the required parameter 'put_managed_service_request' is set
  if @api_client.config.client_side_validation && put_managed_service_request.nil?
    fail ArgumentError, "Missing the required parameter 'put_managed_service_request' when calling ManagedApi.put_managed_service"
  end
  # resource path
  local_var_path = '/{apiVersion}/managed/services/{serviceId}'.sub('{' + 'apiVersion' + '}', CGI.escape(api_version.to_s)).sub('{' + 'serviceId' + '}', CGI.escape(service_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(put_managed_service_request)

  # return_type
  return_type = opts[:debug_return_type] || 'PutManagedService200Response'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['personalAccessToken', 'oauth']

  new_options = opts.merge(
    :operation => :"ManagedApi.put_managed_service",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ManagedApi#put_managed_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end