Class: License::OfficePrepaid
- Inherits:
-
Object
- Object
- License::OfficePrepaid
- Defined in:
- lib/ovh-api/api/license/office_prepaid.rb
Instance Method Summary collapse
- #get(iam_tags: nil) ⇒ Object
-
#initialize(connection) ⇒ OfficePrepaid
constructor
A new instance of OfficePrepaid.
- #service_name_change_password_post(service_name:, license_office_prepaid_office_tenant_post_change_password:) ⇒ 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_parent_tenant_accept_agreement_post(service_name:) ⇒ Object
- #service_name_parent_tenant_create_attestation_post(service_name:, license_office_prepaid_create_attestation_post_payload:) ⇒ Object
- #service_name_parent_tenant_get(service_name:) ⇒ Object
- #service_name_parent_tenant_put(service_name:, license_office_prepaid_office_tenant_put_parent_tenant:) ⇒ Object
- #service_name_put(service_name:, license_office_prepaid_put_office_user_native:) ⇒ Object
- #service_name_service_infos_get(service_name:) ⇒ Object
- #service_name_service_infos_put(service_name:, services_service:) ⇒ Object
- #service_name_tenant_pending_task_get(service_name:) ⇒ Object
- #service_name_tenant_pending_task_id_get(id:, service_name:) ⇒ Object
- #service_name_tenant_usage_statistics_get(service_name:, from: nil, to: nil) ⇒ Object
- #service_name_terminate_post(service_name:) ⇒ Object
- #service_name_unconfigure_post(service_name:) ⇒ Object
Constructor Details
#initialize(connection) ⇒ OfficePrepaid
Returns a new instance of OfficePrepaid.
6 7 8 |
# File 'lib/ovh-api/api/license/office_prepaid.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/office_prepaid.rb', line 10 def get(iam_tags: nil) @connection.call( :GET, '/license/officePrepaid', type: nil, auth: [], query: { 'iamTags' => } ) end |
#service_name_change_password_post(service_name:, license_office_prepaid_office_tenant_post_change_password:) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 20 def service_name_change_password_post(service_name:, license_office_prepaid_office_tenant_post_change_password:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'license_office_prepaid_office_tenant_post_change_password is required' if license_office_prepaid_office_tenant_post_change_password.nil? @connection.call( :POST, '/license/officePrepaid/{serviceName}/changePassword' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: license_office_prepaid_office_tenant_post_change_password ) 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/office_prepaid.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/officePrepaid/{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/office_prepaid.rb', line 48 def service_name_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/officePrepaid/{serviceName}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_parent_tenant_accept_agreement_post(service_name:) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 60 def service_name_parent_tenant_accept_agreement_post(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :POST, '/license/officePrepaid/{serviceName}/parentTenant/acceptAgreement' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_parent_tenant_create_attestation_post(service_name:, license_office_prepaid_create_attestation_post_payload:) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 72 def service_name_parent_tenant_create_attestation_post(service_name:, license_office_prepaid_create_attestation_post_payload:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'license_office_prepaid_create_attestation_post_payload is required' if license_office_prepaid_create_attestation_post_payload.nil? @connection.call( :POST, '/license/officePrepaid/{serviceName}/parentTenant/createAttestation' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: license_office_prepaid_create_attestation_post_payload ) end |
#service_name_parent_tenant_get(service_name:) ⇒ Object
86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 86 def service_name_parent_tenant_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/officePrepaid/{serviceName}/parentTenant' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_parent_tenant_put(service_name:, license_office_prepaid_office_tenant_put_parent_tenant:) ⇒ Object
98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 98 def service_name_parent_tenant_put(service_name:, license_office_prepaid_office_tenant_put_parent_tenant:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'license_office_prepaid_office_tenant_put_parent_tenant is required' if license_office_prepaid_office_tenant_put_parent_tenant.nil? @connection.call( :PUT, '/license/officePrepaid/{serviceName}/parentTenant' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: license_office_prepaid_office_tenant_put_parent_tenant ) end |
#service_name_put(service_name:, license_office_prepaid_put_office_user_native:) ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 112 def service_name_put(service_name:, license_office_prepaid_put_office_user_native:) raise ArgumentError, 'service_name is required' if service_name.nil? raise ArgumentError, 'license_office_prepaid_put_office_user_native is required' if license_office_prepaid_put_office_user_native.nil? @connection.call( :PUT, '/license/officePrepaid/{serviceName}' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: license_office_prepaid_put_office_user_native ) end |
#service_name_service_infos_get(service_name:) ⇒ Object
126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 126 def service_name_service_infos_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/officePrepaid/{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
138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 138 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/officePrepaid/{serviceName}/serviceInfos' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], body: services_service ) end |
#service_name_tenant_pending_task_get(service_name:) ⇒ Object
152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 152 def service_name_tenant_pending_task_get(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/officePrepaid/{serviceName}/tenantPendingTask' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_tenant_pending_task_id_get(id:, service_name:) ⇒ Object
164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 164 def service_name_tenant_pending_task_id_get(id:, service_name:) raise ArgumentError, 'id is required' if id.nil? raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/officePrepaid/{serviceName}/tenantPendingTask/{id}' .gsub('{id}', ERB::Util.url_encode(id.to_s)) .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_tenant_usage_statistics_get(service_name:, from: nil, to: nil) ⇒ Object
178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 178 def service_name_tenant_usage_statistics_get(service_name:, from: nil, to: nil) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :GET, '/license/officePrepaid/{serviceName}/tenantUsageStatistics' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [], query: { 'from' => from, 'to' => to } ) end |
#service_name_terminate_post(service_name:) ⇒ Object
191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 191 def service_name_terminate_post(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :POST, '/license/officePrepaid/{serviceName}/terminate' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |
#service_name_unconfigure_post(service_name:) ⇒ Object
203 204 205 206 207 208 209 210 211 212 213 |
# File 'lib/ovh-api/api/license/office_prepaid.rb', line 203 def service_name_unconfigure_post(service_name:) raise ArgumentError, 'service_name is required' if service_name.nil? @connection.call( :POST, '/license/officePrepaid/{serviceName}/unconfigure' .gsub('{serviceName}', ERB::Util.url_encode(service_name.to_s)), type: nil, auth: [] ) end |