Class: License::Sqlserver
- Inherits:
-
Object
- Object
- License::Sqlserver
- Defined in:
- lib/ovh-api/api/license/sqlserver.rb
Instance Method Summary collapse
- #get(iam_tags: nil) ⇒ Object
-
#initialize(connection) ⇒ Sqlserver
constructor
A new instance of Sqlserver.
- #orderable_versions_get(ip:) ⇒ Object
- #service_name_confirm_termination_post(service_name:, cloud_project_service_name_confirm_termination_post_request:) ⇒ Object
- #service_name_get(service_name:) ⇒ Object
- #service_name_service_infos_get(service_name:) ⇒ Object
- #service_name_service_infos_put(service_name:, services_service:) ⇒ Object
- #service_name_tasks_get(service_name:, action: nil, status: nil) ⇒ Object
- #service_name_tasks_task_id_get(service_name:, task_id:) ⇒ Object
- #service_name_terminate_post(service_name:) ⇒ Object
Constructor Details
#initialize(connection) ⇒ Sqlserver
Returns a new instance of Sqlserver.
6 7 8 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 6 def initialize(connection) @connection = connection end |
Instance Method Details
#get(iam_tags: nil) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 10 def get(iam_tags: nil) @connection.call( :GET, '/license/sqlserver', type: nil, auth: [], query: { 'iamTags' => } ) end |
#orderable_versions_get(ip:) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 20 def orderable_versions_get(ip:) raise ArgumentError, 'ip is required' if ip.nil? @connection.call( :GET, '/license/sqlserver/orderableVersions', type: nil, auth: [], query: { 'ip' => ip } ) end |
#service_name_confirm_termination_post(service_name:, cloud_project_service_name_confirm_termination_post_request:) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 32 def service_name_confirm_termination_post(service_name:, cloud_project_service_name_confirm_termination_post_request:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'cloud_project_service_name_confirm_termination_post_request is required' if cloud_project_service_name_confirm_termination_post_request.nil? @connection.call( :POST, '/license/sqlserver/{serviceName}/confirmTermination' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: cloud_project_service_name_confirm_termination_post_request ) end |
#service_name_get(service_name:) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 46 def service_name_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/sqlserver/{serviceName}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_service_infos_get(service_name:) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 58 def service_name_service_infos_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/sqlserver/{serviceName}/serviceInfos' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_service_infos_put(service_name:, services_service:) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 70 def service_name_service_infos_put(service_name:, services_service:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'services_service is required' if services_service.nil? @connection.call( :PUT, '/license/sqlserver/{serviceName}/serviceInfos' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: services_service ) end |
#service_name_tasks_get(service_name:, action: nil, status: nil) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 84 def service_name_tasks_get(service_name:, action: nil, status: nil) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/sqlserver/{serviceName}/tasks' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], query: { 'action' => action, 'status' => status } ) end |
#service_name_tasks_task_id_get(service_name:, task_id:) ⇒ Object
97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 97 def service_name_tasks_task_id_get(service_name:, task_id:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'task_id is required' if task_id.nil? @connection.call( :GET, '/license/sqlserver/{serviceName}/tasks/{taskId}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)) .gsub('{taskId}', ERB::Util.url_encode(task_id.to_s)), type: nil, auth: [] ) end |
#service_name_terminate_post(service_name:) ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 |
# File 'lib/ovh-api/api/license/sqlserver.rb', line 111 def service_name_terminate_post(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :POST, '/license/sqlserver/{serviceName}/terminate' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |