Class: License::Hycu
- Inherits:
-
Object
- Object
- License::Hycu
- Defined in:
- lib/ovh-api/api/license/hycu.rb
Instance Method Summary collapse
- #get(iam_tags: nil) ⇒ Object
-
#initialize(connection) ⇒ Hycu
constructor
A new instance of Hycu.
- #service_name_activate_post(service_name:, hycu_activate_license_payload:) ⇒ 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_license_get(service_name:) ⇒ Object
- #service_name_put(service_name:, license_hycu_hycu:) ⇒ Object
- #service_name_refresh_post(service_name:, hycu_refresh_license_payload:) ⇒ Object
- #service_name_service_infos_get(service_name:) ⇒ Object
- #service_name_service_infos_put(service_name:, services_service:) ⇒ Object
- #service_name_terminate_post(service_name:) ⇒ Object
Constructor Details
#initialize(connection) ⇒ Hycu
Returns a new instance of Hycu.
6 7 8 |
# File 'lib/ovh-api/api/license/hycu.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/hycu.rb', line 10 def get(iam_tags: nil) @connection.call( :GET, '/license/hycu', type: nil, auth: [], query: { 'iamTags' => } ) end |
#service_name_activate_post(service_name:, hycu_activate_license_payload:) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/ovh-api/api/license/hycu.rb', line 20 def service_name_activate_post(service_name:, hycu_activate_license_payload:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'hycu_activate_license_payload is required' if hycu_activate_license_payload.nil? @connection.call( :POST, '/license/hycu/{serviceName}/activate' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: hycu_activate_license_payload ) end |
#service_name_confirm_termination_post(service_name:, cloud_project_service_name_confirm_termination_post_request:) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/ovh-api/api/license/hycu.rb', line 34 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/hycu/{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
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/ovh-api/api/license/hycu.rb', line 48 def service_name_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/hycu/{serviceName}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_license_get(service_name:) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/ovh-api/api/license/hycu.rb', line 60 def service_name_license_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/hycu/{serviceName}/license' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_put(service_name:, license_hycu_hycu:) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/ovh-api/api/license/hycu.rb', line 72 def service_name_put(service_name:, license_hycu_hycu:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'license_hycu_hycu is required' if license_hycu_hycu.nil? @connection.call( :PUT, '/license/hycu/{serviceName}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: license_hycu_hycu ) end |
#service_name_refresh_post(service_name:, hycu_refresh_license_payload:) ⇒ Object
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/ovh-api/api/license/hycu.rb', line 86 def service_name_refresh_post(service_name:, hycu_refresh_license_payload:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'hycu_refresh_license_payload is required' if hycu_refresh_license_payload.nil? @connection.call( :POST, '/license/hycu/{serviceName}/refresh' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: hycu_refresh_license_payload ) end |
#service_name_service_infos_get(service_name:) ⇒ Object
100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/ovh-api/api/license/hycu.rb', line 100 def service_name_service_infos_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/hycu/{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
112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/ovh-api/api/license/hycu.rb', line 112 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/hycu/{serviceName}/serviceInfos' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: services_service ) end |
#service_name_terminate_post(service_name:) ⇒ Object
126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/ovh-api/api/license/hycu.rb', line 126 def service_name_terminate_post(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :POST, '/license/hycu/{serviceName}/terminate' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |